mlsanityData to 7 Oct 2026

Learning to Be a Transformer to Pinpoint Anomalies

arXiv 2407.04092 ↗First posted 4 Jul 2024cs.CVcited by 0

Not on the map. Why?

Abstract (arXiv)

To efficiently deploy strong, often pre-trained feature extractors, recent Industrial Anomaly Detection and Segmentation (IADS) methods process low-resolution images, e.g., 224x224 pixels, obtained by downsampling the original input images. However, while numerous industrial applications demand the identification of both large and small defects, downsampling the input image to a low resolution may hinder a method's ability to pinpoint tiny anomalies. We propose a novel Teacher--Student paradigm to leverage strong pre-trained features while processing high-resolution input images very efficiently. The core idea concerns training two shallow MLPs (the Students) by nominal images so as to mimic the mappings between the patch embeddings induced by the self-attention layers of a frozen vision Transformer (the Teacher). Indeed, learning these mappings sets forth a challenging pretext task that small-capacity models are unlikely to accomplish on out-of-distribution data such as anomalous images. Our method can spot anomalies from high-resolution images and runs way faster than competitors, achieving state-of-the-art performance on MVTec AD and the best segmentation results on VisA. We also propose novel evaluation metrics to capture robustness to defect size, i.e., the ability to preserve good localisation from large anomalies to tiny ones. Evaluating our method also by these metrics reveals its neatly superior performance.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 24 of its 33 references that are in the map. First posted on arXiv 4 Jul 2024.

Builds on

24 of 33 references.

References · 24

  1. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  2. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
  3. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
  4. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  5. 2019Normalizing Flows for Probabilistic Modeling and Inferencecited by 1,315
  6. 2021Towards Total Recall in Industrial Anomaly Detectioncited by 772
  7. 2021ImageNet-21K Pretraining for the Massescited by 607
  8. 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 419
  9. 2022SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentationcited by 397
  10. 2019Uninformed Students: Student-Teacher Anomaly Detection with Discriminative Latent Embeddingscited by 386
  11. 2021CFLOW-AD: Real-Time Unsupervised Anomaly Detection with Localization via Conditional Normalizing Flowscited by 320
  12. 2020Sub-Image Anomaly Detection with Deep Pyramid Correspondencescited by 297
12 more
  1. 2020Multiresolution Knowledge Distillation for Anomaly Detectioncited by 285
  2. 2023SimpleNet: A Simple Network for Image Anomaly Detection and Localizationcited by 256
  3. 2021FastFlow: Unsupervised Anomaly Detection and Localization via 2D Normalizing Flowscited by 225
  4. 2020Same Same But DifferNet: Semi-Supervised Defect Detection with Normalizing Flowscited by 212
  5. 2021The MVTec 3D-AD Dataset for Unsupervised 3D Anomaly Detection and Localizationcited by 174
  6. 2023EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latenciescited by 157
  7. 2021Student-Teacher Feature Pyramid Matching for Anomaly Detectioncited by 145
  8. 2020Deep Nearest Neighbor Anomaly Detectioncited by 103
  9. 2022The Eyecandies Dataset for Unsupervised Multimodal Anomaly Detection and Localizationcited by 55
  10. 2023PAD: A Dataset and Benchmark for Pose-agnostic Anomaly Detectioncited by 46
  11. 2023Multimodal Industrial Anomaly Detection by Crossmodal Feature Mappingcited by 41
  12. 2023Out-of-Distribution Detection by Leveraging Between-Layer Transformation Smoothnesscited by 15

Built on by

Not cited yet.