mlsanityData to 7 Oct 2026

Inpainting Transformer for Anomaly Detection

arXiv 2104.13897 ↗First posted 28 Apr 2021cs.CVcited by 91

Not on the map. Why?

Abstract (arXiv)

Anomaly detection in computer vision is the task of identifying images which deviate from a set of normal images. A common approach is to train deep convolutional autoencoders to inpaint covered parts of an image and compare the output with the original image. By training on anomaly-free samples only, the model is assumed to not being able to reconstruct anomalous regions properly. For anomaly detection by inpainting we suggest it to be beneficial to incorporate information from potentially distant regions. In particular we pose anomaly detection as a patch-inpainting problem and propose to solve it with a purely self-attention based approach discarding convolutions. The proposed Inpainting Transformer (InTra) is trained to inpaint covered patches in a large sequence of image patches, thereby integrating information across large regions of the input image. When training from scratch, in comparison to other methods not using extra training data, InTra achieves results on par with the current state-of-the-art on the MVTec AD dataset for detection and surpassing them on segmentation.

Key facts. Cited by 91 papers in the map (data through 7 Oct 2026). Builds on 31 of its 45 references that are in the map. First posted on arXiv 28 Apr 2021.

Builds on

31 of 45 references.

References · 31

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  6. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  7. 2016Wide Residual Networkscited by 3,057
  8. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  9. 2015Multi-Scale Context Aggregation by Dilated Convolutionscited by 1,128
  10. 2018Image Transformercited by 770
  11. 2020Quantifying Attention Flow in Transformerscited by 759
  12. 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 591
19 more
  1. 2018Generative Image Inpainting with Contextual Attentioncited by 578
  2. 2017Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discoverycited by 566
  3. 2019Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly Detectioncited by 560
  4. 2021CutPaste: Self-Supervised Learning for Anomaly Detection and Localizationcited by 529
  5. 2018GANomaly: Semi-Supervised Anomaly Detection via Adversarial Trainingcited by 409
  6. 2019Axial Attention in Multidimensional Transformerscited by 350
  7. 2019Learning Deep Transformer Models for Machine Translationcited by 309
  8. 2018Improving Unsupervised Defect Segmentation by Applying Structural Similarity to Autoencoderscited by 263
  9. 2020Patch SVDD: Patch-level SVDD for Anomaly Detection and Segmentationcited by 212
  10. 2020Same Same But DifferNet: Semi-Supervised Defect Detection with Normalizing Flowscited by 212
  11. 2013Gradient Magnitude Similarity Deviation: A Highly Efficient Perceptual Image Quality Indexcited by 193
  12. 2018Deep Autoencoding Models for Unsupervised Anomaly Segmentation in Brain MR Imagescited by 146
  13. 2020Deep Learning for Medical Anomaly Detection -- A Surveycited by 127
  14. 2019Skip-GANomaly: Skip Connected and Adversarially Trained Encoder-Decoder Anomaly Detectioncited by 100
  15. 2018Anomaly Detection using Deep Learning based Image Completioncited by 27
  16. 2018q-Space Novelty Detection with Variational Autoencoderscited by 22
  17. 2018Anomaly Detection for Skin Disease Images Using Variational Autoencodercited by 20
  18. 2020Unsupervised Region-based Anomaly Detection in Brain MRI with Adversarial Image Inpaintingcited by 15
  19. 2018Detecting Anomalous Faces with 'No Peeking' Autoencoderscited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 2; 2022: 20; 2023: 25; 2024: 20; 2025: 12; 2026: 12.

91 papers.

Sort:

By area:

  1. 2022A Unified Model for Multi-class Anomaly Detectioncited by 267
  2. 2022Diffusion Models for Medical Anomaly Detectioncited by 231
  3. 2023AnomalyGPT: Detecting Industrial Anomalies Using Large Vision-Language Modelscited by 169
  4. 2022DeSTSeg: Segmentation Guided Denoising Student-Teacher for Anomaly Detectioncited by 153
  5. 2023Deep Industrial Image Anomaly Detection: A Surveycited by 147
  6. 2024RealNet: A Feature Selection Network with Realistic Synthetic Anomaly for Anomaly Detectioncited by 116
  7. 2024MambaAD: Exploring State Space Models for Multi-class Unsupervised Anomaly Detectioncited by 113
  8. 2022Omni-frequency Channel-selection Representations for Unsupervised Anomaly Detectioncited by 79
  9. 2022PNI : Industrial Anomaly Detection using Position and Neighborhood Informationcited by 69
  10. 2022MemSeg: A semi-supervised method for image surface defect detection using differences and commonalitiescited by 68
  11. 2022Deep Learning for Unsupervised Anomaly Localization in Industrial Images: A Surveycited by 67
  12. 2023IM-IAD: Industrial Image Anomaly Detection Benchmark in Manufacturingcited by 64
38 more
  1. 2022Prototypical Residual Networks for Anomaly Detection and Localizationcited by 56
  2. 2023Exploring Plain ViT Reconstruction for Multi-class Unsupervised Anomaly Detectioncited by 47
  3. 2023PAD: A Dataset and Benchmark for Pose-agnostic Anomaly Detectioncited by 46
  4. 2023Multimodal Industrial Anomaly Detection by Crossmodal Feature Mappingcited by 41
  5. 2022Self-Supervised Masked Convolutional Transformer Block for Anomaly Detectioncited by 34
  6. 2023Focus the Discrepancy: Intra- and Inter-Correlation Learning for Image Anomaly Detectioncited by 32
  7. 2022ADTR: Anomaly Detection Transformer with Feature Reconstructioncited by 31
  8. 2024PO3AD: Predicting Point Offsets toward Better 3D Point Cloud Anomaly Detectioncited by 30
  9. 2021Transformaly -- Two (Feature Spaces) Are Better Than Onecited by 25
  10. 2023An Incremental Unified Framework for Small Defect Inspectioncited by 25
  11. 2023Industrial Anomaly Detection with Domain Shift: A Real-world Dataset and Masked Multi-scale Reconstructioncited by 22
  12. 2022A Survey on Unsupervised Anomaly Detection Algorithms for Industrial Imagescited by 21
  13. 2024Learning Unified Reference Representation for Unsupervised Multi-class Anomaly Detectioncited by 19
  14. 2022Reconstruction from edge image combined with color and gradient difference for industrial surface anomaly detectioncited by 18
  15. 2022FAPM: Fast Adaptive Patch Memory for Real-time Industrial Anomaly Detectioncited by 16
  16. 2024Progressive Boundary Guided Anomaly Synthesis for Industrial Anomaly Detectioncited by 16
  17. 2024Long-Tailed Anomaly Detection with Learnable Class Namescited by 14
  18. 2023LafitE: Latent Diffusion Model with Feature Editing for Unsupervised Multi-class Anomaly Detectioncited by 13
  19. 2024SuperSimpleNet: Unifying Unsupervised and Supervised Learning for Fast and Reliable Surface Defect Detectioncited by 12
  20. 2024AMI-Net: Adaptive Mask Inpainting Network for Industrial Anomaly Detection and Localizationcited by 12
  21. 2023UniFormaly: Towards Task-Agnostic Unified Framework for Visual Anomaly Detectioncited by 11
  22. 2025EIAD: Explainable Industrial Anomaly Detection Via Multi-Modal Large Language Modelscited by 11
  23. 2023SLSG: Industrial Image Anomaly Detection by Learning Better Feature Embeddings and One-Class Classificationcited by 10
  24. 2022Siamese Transition Masked Autoencoders as Uniform Unsupervised Visual Anomaly Detectorcited by 9
  25. 2024VarAD: Lightweight High-Resolution Image Anomaly Detection via Visual Autoregressive Modelingcited by 9
  26. 2025Foundation Models and Transformers for Anomaly Detection: A Surveycited by 8
  27. 2024ToCoAD: Two-Stage Contrastive Learning for Industrial Anomaly Detectioncited by 7
  28. 2025A Survey on Industrial Anomaly Synthesiscited by 7
  29. 2021A Multi-Scale A Contrario method for Unsupervised Image Anomaly Detectioncited by 5
  30. 2022HaloAE: An HaloNet based Local Transformer Auto-Encoder for Anomaly Detection and Localizationcited by 5
  31. 2025SiM3D: Single-instance Multiview Multimodal and Multisetup 3D Anomaly Detection Benchmarkcited by 5
  32. 2022Data refinement for fully unsupervised visual inspection using pre-trained networkscited by 4
  33. 2022Generalizable Industrial Visual Anomaly Detection with Self-Induction Vision Transformercited by 4
  34. 2023Creating an Atlas of Normal Tissue for Pruning WSI Patching Through Anomaly Detectioncited by 4
  35. 2024Test Time Training for Industrial Anomaly Segmentationcited by 4
  36. 2024Adaptive Deviation Learning for Visual Anomaly Detection with Data Contaminationcited by 4
  37. 2025No Label Left Behind: A Unified Surface Defect Detection Model for all Supervision Regimescited by 4
  38. 2022Self-Supervised Training with Autoencoders for Visual Anomaly Detectioncited by 3

50 most cited of 91 All 91 (JSON)