arXiv Science⌕ Search

arXiv · 2611.38044

Beyond Isolated Patch Matching: Dual-Scale Common-Mode Suppression for Training-Free Few-Shot Anomaly Detection

Abstract

Nearest-neighbor patch retrieval over frozen DINOv2 features offers a strong training-free baseline for few-shot anomaly detection. Yet isolated memory-bank cosine matching suffers from two forms of common-mode interference on the unit hypersphere. First, within each image, self-attention smoothing injects a shared neighborhood average, or spatial common mode, into intermediate tokens. When a defective component remains locally normal in appearance yet violates pose or layout, isolated retrieval still finds a normal match and misses the defect. Second, across the reference bank, strongly anisotropic normal variance, or distributional common mode, inflates baseline cosine similarity and compresses the angular margin for subtle defects, whereas full whitening amplifies tail noise under scarce exemplars. We unify both remedies as dual-scale common-mode suppression of the form I - alpha P followed by unit-sphere re-normalization in a single frozen DINOv2 forward pass. At the micro scale, hard spatial removal (alpha=1, P = c_i c_i^T) strips each mid-layer token's attended context to expose patch-to-context structural contrast, scored via reference-only calibration over only the top-5 appearance matches. At the macro scale, soft distributional attenuation (0 < alpha < 1, P = U U^T) dampens dominant reference variance offline while preserving mean orientation and coarse part alignment. Across MVTec-AD and VisA from 1-shot to 16-shot, our method consistently outperforms prior training-free baselines such as AnomalyDINO and SubspaceAD-B, achieving up to 98.9% I-AUROC on MVTec-AD and +3.6 pixel F1-max on VisA at under 8% runtime overhead.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Ning Zhu. 2026-11-25. Beyond Isolated Patch Matching: Dual-Scale Common-Mode Suppression for Training-Free Few-Shot Anomaly Detection. https://arxiv.science/abs/2611.38044

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

ShapeICP: Iterative Category-level Object Pose and Shape Estimation from Depth

Category-level object pose and shape estimation from a single depth image has recently drawn research attention due to its potential utility for tasks such as robotics manipulation. The task is particularly challenging because the three unknowns, object pose, object shape, and model-to-measurement correspondences, are compounded together, but only a single view of depth measurements is provided. Most of the prior work heavily relies on data-driven approaches to obtain solutions to at least one of the unknowns, and typically two, risking generalization failures if not designed and trained carefully. The shape representations used in the prior work also mainly focus on point clouds and signed distance fields (SDFs). In stark contrast to the prior work, we approach the problem using an iterative estimation method that does not require learning from pose-annotated data. Moreover, we construct and adopt a novel mesh-based object active shape model (ASM), which additionally maintains vertex connectivity compared to the commonly used point-based object ASM. Our algorithm, ShapeICP, is based on the iterative closest point (ICP) algorithm but is equipped with additional features for the category-level pose and shape estimation task. Although not using pose-annotated data, ShapeICP surpasses many data-driven approaches that rely on pose data for training, opening up a new solution space for researchers to consider.

cs.CV↗

Recursive Hierarchical Feature Refinement for Human Pose Estimation

Human body structures exhibit recursive compositionality, providing rich hierarchical structure and context relations priors for Human Pose Estimation (HPE). Existing methods typically model these priors using specially designed network architectures (e.g., hierarchical branches), introducing additional parameter overhead. Inspired by this property, we propose RHFR (Recursive Hierarchical Feature Refinement), a plug-and-play module that refines features through recursive top-down decomposition and bottom-up composition. Specifically, RHFR organizes feature representations into a hierarchical tree through top-down decomposition. During bottom-up composition, a novel Node Attention (NA) captures context relations among nodes to enhance their representations, which are then recursively aggregated toward the root. This process progressively propagates context information across feature hierarchies, facilitating occluded-region inference and improving joint localization. Moreover, the recursively generated nodes also can be directly supervised by human structural priors, enabling explicit hierarchical structure and context relation modeling without additional network branches, thereby reducing parameter overhead. Extensive experiments demonstrate that RHFR consistently improves performance across various pose estimation frameworks while enabling efficient explicit human structure modeling. The source code is available at https://github.com/lushbng/RHFR

cs.CV↗

Hierarchical Relation-augmented Representation Generalization for Few-shot Action Recognition

Few-shot action recognition (FSAR) aims to recognize novel action categories with few exemplars. Existing methods typically learn frame-level representations for each video by designing inter-frame temporal modeling strategies or inter-video interaction at the coarse video-level granularity. However, they treat each episode task in isolation and neglect fine-grained temporal relation modeling between videos, thus failing to capture shared fine-grained temporal patterns across videos and reuse temporal knowledge from historical tasks. In light of this, we propose HR2G-shot, a Hierarchical Relation-augmented Representation Generalization framework for FSAR, which unifies three types of relation modeling (inter-frame, inter-video, and inter-task) to learn task-specific temporal patterns from a holistic view. Going beyond conducting inter-frame temporal interactions, we further devise two components to respectively explore inter-video and inter-task relationships: i) Inter-video Semantic Correlation (ISC) performs cross-video frame-level interactions in a fine-grained manner, thereby capturing task-specific query features and enhancing both intra-class consistency and inter-class separability; ii) Inter-task Knowledge Transfer (IKT) retrieves and aggregates relevant temporal knowledge from the bank, which stores diverse temporal patterns from historical episode tasks. Extensive experiments on five benchmarks show that HR2G-shot outperforms current top-leading FSAR methods.

cs.CV↗