A SAM-guided Two-stream Lightweight Model for Anomaly Detection
Not on the map. Why?
Abstract (arXiv)
In industrial anomaly detection, model efficiency and mobile-friendliness become the primary concerns in real-world applications. Simultaneously, the impressive generalization capabilities of Segment Anything (SAM) have garnered broad academic attention, making it an ideal choice for localizing unseen anomalies and diverse real-world patterns. In this paper, considering these two critical factors, we propose a SAM-guided Two-stream Lightweight Model for unsupervised anomaly detection (STLM) that not only aligns with the two practical application requirements but also harnesses the robust generalization capabilities of SAM. We employ two lightweight image encoders, i.e., our two-stream lightweight module, guided by SAM's knowledge. To be specific, one stream is trained to generate discriminative and general feature representations in both normal and anomalous regions, while the other stream reconstructs the same images without anomalies, which effectively enhances the differentiation of two-stream representations when facing anomalous regions. Furthermore, we employ a shared mask decoder and a feature aggregation module to generate anomaly maps. Our experiments conducted on MVTec AD benchmark show that STLM, with about 16M parameters and achieving an inference time in 20ms, competes effectively with state-of-the-art methods in terms of performance, 98.26% on pixel-level AUC and 94.92% on PRO. We further experiment on more difficult datasets, e.g., VisA and DAGM, to demonstrate the effectiveness and generalizability of STLM.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 52 of its 89 references that are in the map. First posted on arXiv 29 Feb 2024.
Builds on
52 of 89 references.
References · 52
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2023Segment Anythingcited by 8,158
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,764
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
- 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
38 more
- 2015Fast R-CNNcited by 2,930
- 2013Describing Textures in the Wildcited by 2,110
- 2018Unsupervised Representation Learning by Predicting Image Rotationscited by 1,586
- 2021Towards Total Recall in Industrial Anomaly Detectioncited by 772
- 2019Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly Detectioncited by 560
- 2023Segment Everything Everywhere All at Oncecited by 546
- 2021CutPaste: Self-Supervised Learning for Anomaly Detection and Localizationcited by 529
- 2021DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detectioncited by 510
- 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 419
- 2019Uninformed Students: Student-Teacher Anomaly Detection with Discriminative Latent Embeddingscited by 386
- 2022Decoupled Knowledge Distillationcited by 380
- 2023Faster Segment Anything: Towards Lightweight SAM for Mobile Applicationscited by 345
- 2021CFLOW-AD: Real-Time Unsupervised Anomaly Detection with Localization via Conditional Normalizing Flowscited by 320
- 2020Multiresolution Knowledge Distillation for Anomaly Detectioncited by 285
- 2020Learning Memory-guided Normality for Anomaly Detectioncited by 278
- 2018Improving Unsupervised Defect Segmentation by Applying Structural Similarity to Autoencoderscited by 263
- 2023SimpleNet: A Simple Network for Image Anomaly Detection and Localizationcited by 256
- 2022TinyViT: Fast Pretraining Distillation for Small Vision Transformerscited by 232
- 2019MetaPruning: Meta Learning for Automatic Neural Network Channel Pruningcited by 226
- 2021FastFlow: Unsupervised Anomaly Detection and Localization via 2D Normalizing Flowscited by 225
- 2022DeSTSeg: Segmentation Guided Denoising Student-Teacher for Anomaly Detectioncited by 153
- 2021Student-Teacher Feature Pyramid Matching for Anomaly Detectioncited by 145
- 2022CFA: Coupled-hypersphere-based Feature Adaptation for Target-Oriented Anomaly Localizationcited by 135
- 2020Deep Learning for Medical Anomaly Detection -- A Surveycited by 127
- 2022Rethinking Vision Transformers for MobileNet Size and Speedcited by 121
- 2019Towards Visually Explaining Variational Autoencoderscited by 113
- 2022Explicit Boundary Guided Semi-Push-Pull Contrastive Learning for Supervised Anomaly Detectioncited by 72
- 2022MemSeg: A semi-supervised method for image surface defect detection using differences and commonalitiescited by 68
- 2022Deep Learning for Unsupervised Anomaly Localization in Industrial Images: A Surveycited by 67
- 2022Prototypical Residual Networks for Anomaly Detection and Localizationcited by 56
- 2017On Pre-Trained Image Features and Synthetic Images for Deep Learningcited by 51
- 2020Improved anomaly detection by training an autoencoder with skip connections on images corrupted with Stain-shaped noisecited by 39
- 2023Focus the Discrepancy: Intra- and Inter-Correlation Learning for Image Anomaly Detectioncited by 32
- 2017CM-GANs: Cross-modal Generative Adversarial Networks for Common Representation Learningcited by 27
- 2020Rethinking Generative Zero-Shot Learning: An Ensemble Learning Perspective for Recognising Visual Patchescited by 27
- 2018q-Space Novelty Detection with Variational Autoencoderscited by 22
- 2020Post-training Quantization with Multiple Points: Mixed Precision without Mixed Precisioncited by 21
- 2020Fast Distance-based Anomaly Detection in Images Using an Inception-like Autoencodercited by 4
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 2.
7 papers.
- 2024Generalized Out-of-Distribution Detection and Beyond in Vision Language Model Era: A Surveycited by 36
- 2025Foundation Models and Transformers for Anomaly Detection: A Surveycited by 8
- 2025A Survey on Foundation-Model-Based Industrial Defect Detectioncited by 5
- 2025SAQ-SAM: Semantically-Aligned Quantization for Segment Anything Modelcited by 3
- 2025KairosAD: A SAM-Based Model for Industrial Anomaly Detection on Embedded Devicescited by 2
- 2026BUSSARD: Normalizing Flows for Bijective Universal Scene-Specific Anomalous Relationship Detectioncited by 0
- 2026LiZAD: A Lightweight Zero-Shot Anomaly Detection Framework for Industrial Manufacturingcited by 0
- 2026LiZAD: A Lightweight Zero-Shot Anomaly Detection Framework for Industrial Manufacturing2 Jul 2026
- 2026BUSSARD: Normalizing Flows for Bijective Universal Scene-Specific Anomalous Relationship Detection17 Mar 2026
- 2025Foundation Models and Transformers for Anomaly Detection: A Survey21 Jul 2025
- 2025KairosAD: A SAM-Based Model for Industrial Anomaly Detection on Embedded Devices30 May 2025
- 2025SAQ-SAM: Semantically-Aligned Quantization for Segment Anything Model9 Mar 2025
- 2025A Survey on Foundation-Model-Based Industrial Defect Detection26 Feb 2025
- 2024Generalized Out-of-Distribution Detection and Beyond in Vision Language Model Era: A Survey31 Jul 2024