Lune

ICCV2023Top-tier venue

Focus the Discrepancy: Intra- and Inter-Correlation Learning for Image Anomaly Detection

Xincheng Yao, Ruoqi Li, Zefeng Qian, Yan Luo, Chongyang Zhang

Abstract

Humans recognize anomalies through two aspects: larger patch-wise representation discrepancies and weaker patch-to-normal-patch correlations. However, the previous AD methods didn’t sufficiently combine the two complementary aspects to design AD models. To this end, we find that Transformer can ideally satisfy the two aspects as its great power in the unified modeling of patch-wise representations and patch-to-patch correlations. In this paper, we propose a novel AD framework: FOcus-the-Discrepancy (FOD), which can simultaneously spot the patch-wise, intra- and inter-discrepancies of anomalies. The major characteristic of our method is that we renovate the self-attention maps in transformers to Intra-Inter-Correlation (I2Correlation). The I2Correlation contains a two-branch structure to first explicitly establish intra-and inter-image correlations, and then fuses the features of two-branch to spotlight the abnormal patterns. To learn the intra- and inter-correlations adaptively, we propose the RBF-kernel-based target-correlations as learning targets for self-supervised learning. Besides, we introduce an entropy constraint strategy to solve the mode collapse issue in optimization and further amplify the normal-abnormal distinguishability. Extensive experiments on three unsupervised real-world AD benchmarks show the superior performance of our approach. Code will be available at https://github.com/xcyao00/FOD.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

11 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • AdaptCLIP: Adapting CLIP for Universal Visual Anomaly Detection cites Learning Transferable Visual Models From Natural Language Supervision
  • AdaptCLIP: Adapting CLIP for Universal Visual Anomaly Detection cites Toward Generalist Anomaly Detection via In-Context Residual Learning with Few-Shot Sample Prompts
  • ResAD: A Simple Framework for Class Generalizable Anomaly Detection cites Toward Generalist Anomaly Detection via In-Context Residual Learning with Few-Shot Sample Prompts
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Learning Transferable Visual Models From Natural Language Supervision
  • MetaUAS: Universal Anomaly Segmentation with One-Prompt Meta-Learning cites Learning Transferable Visual Models From Natural Language Supervision
  • MetaUAS: Universal Anomaly Segmentation with One-Prompt Meta-Learning cites Toward Generalist Anomaly Detection via In-Context Residual Learning with Few-Shot Sample Prompts
  • Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
  • SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers cites Learning Transferable Visual Models From Natural Language Supervision
  • Toward Generalist Anomaly Detection via In-Context Residual Learning with Few-Shot Sample Prompts cites Learning Transferable Visual Models From Natural Language Supervision
  • Toward Generalist Anomaly Detection via In-Context Residual Learning with Few-Shot Sample Prompts cites Anomaly Heterogeneity Learning for Open-Set Supervised Anomaly Detection
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers11

  1. Toward Generalist Anomaly Detection via In-Context Residual Learning with Few-Shot Sample PromptsJiawen Zhu, Guansong PangCVPR 2024 · 43 citations
  2. ResAD: A Simple Framework for Class Generalizable Anomaly DetectionXincheng Yao, Zixin Chen, Chao Gao, Guangtao Zhai et al.NeurIPS 2024 · 42 citations
  3. Anomaly Heterogeneity Learning for Open-Set Supervised Anomaly DetectionJiawen Zhu, Choubo Ding, Yu Tian, Guansong PangCVPR 2024 · 28 citations
  4. AdaptCLIP: Adapting CLIP for Universal Visual Anomaly DetectionBin-Bin Gao, Yue Zhou, Jiangtao Yan, Yuezhi Cai et al.AAAI 2026 · 21 citations
  5. MetaUAS: Universal Anomaly Segmentation with One-Prompt Meta-LearningBin-Bin GaoNeurIPS 2024 · 18 citations

Builds on27

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
  3. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  4. SegFormer: Simple and Efficient Design for Semantic Segmentation with TransformersEnze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar et al.NeurIPS 2021 · 9,661 citations
  5. Barlow Twins: Self-Supervised Learning via Redundancy ReductionJure Zbontar, Li Jing, Ishan Misra, Yann LeCun et al.ICML 2021 · 2,942 citations

Related papers

  1. Anomaly Transformer: Time Series Anomaly Detection with Association DiscrepancyJiehui Xu, Haixu Wu, Jianmin Wang, Mingsheng LongICLR 2022 · 960 citations
  2. Dual Conditioned Motion Diffusion for Pose-Based Video Anomaly DetectionHongsong Wang, Andi Xu, Pinle Ding, Jie GuiAAAI 2025 · 8 citations
  3. Convolutional Transformer based Dual Discriminator Generative Adversarial Networks for Video Anomaly DetectionXinyang Feng, Dongjin Song, Yuncong Chen, Zhengzhang Chen et al.ACM MM 2021 · 101 citations
  4. Glancing at the Patch: Anomaly Localization With Global and Local Feature ComparisonShenzhi Wang, Liwei Wu, Lei Cui, Yujun ShenCVPR 2021
  5. AFiRe: Anatomy-Driven Self-Supervised Learning for Fine-Grained Representation in Radiographic ImagesYihang Liu, Lianghua He, Ying Wen, Longzhen Yang et al.AAAI 2025 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines