Cross-Encoder Anchor Refinement for Zero-Shot Anomaly Detection
Kaisong Ji, Ziyang Xu, Chang Bian, Yu Zhou, Wenyu Liu, Xinggang Wang
Abstract
Zero-shot anomaly detection aims to transfer anomaly discrimination from auxiliary training domains to unseen categories while localizing subtle defects. A key challenge is to construct discriminative references that combine contextual representations with complementary local evidence. We present Cross-Encoder Anchor Refinement (CEAR), which connects two visual encoding paths for the same image at the anchor stage, before normal and anomalous prototypes are constructed. An independent convolutional encoder pretrained for industrial product recognition builds an image-specific memory shared across selected vision transformer (ViT) layers. Spatial anchors read from ViT patch features query this memory through cross-attention and undergo residual refinement. Image-conditioned normal and anomalous queries then gate anchor aggregation to construct prototypes for anomaly scoring. Across 13 industrial and medical datasets, CEAR achieves the best performance in 57 of 68 evaluations spanning image-level detection and pixel-level localization. Notably, CEAR surpasses all other state-of-the-art methods in 41 of 44 pixel-level comparisons. Across 11 localization datasets, mean gains in pixel-level maximum F1 score and average precision are 4.45 and 3.79 percentage points, respectively. This study shows how cross-encoder interaction at the anchor stage can integrate complementary visual representations for fine-grained anomaly localization across domains.
Create a lesson
Metadata
- Comments
- 15 pages, 6 figures
Related papers
RADIOlogy: A Single-Pass Approach to Training-Free Zero-Shot Anomaly Detection
Shared title terminologycs.CVJoaquín Figueira, Giacomo D'Amicantonio, Egor Bondarau
Textual Response-Aware Guidance for Zero-Shot Adversarial Robustness of Vision-Language Models
Shared title terminologycs.CVYubo Cui, Xianchao Guan, Zheng Zhang
Reproducing INP-Former: Reconstructing Intrinsic Normal Prototypes for Industrial Anomaly Detection
Shared title terminologycs.CVYunfei Liang, Juan Pablo Osorio Rivera
VariaFlow: Uncertainty-Aware Flow Matching for Unsupervised Anomaly Detection
Shared title terminologycs.CVArnela Hadzic, Martin Urschler, Cosmin I. Bercea
Beyond CLIP: Calibrated (Few-Shot) Defect Detection With System One Decision Models
Shared title terminologycs.CVFadel M. Megahed, Ying-Ju Chen
ElasticFormer: Detecting Objects in HRW Shots via Elastic Computing Vision Transformer
Shared title terminologycs.CVWenxi Li, Jingchen Huang, Chenyang Lyu et al.