SAM-LAD: Segment Anything Model Meets Zero-Shot Logic Anomaly Detection
Not on the map. Why?
Abstract (arXiv)
Visual anomaly detection is vital in real-world applications, such as industrial defect detection and medical diagnosis. However, most existing methods focus on local structural anomalies and fail to detect higher-level functional anomalies under logical conditions. Although recent studies have explored logical anomaly detection, they can only address simple anomalies like missing or addition and show poor generalizability due to being heavily data-driven. To fill this gap, we propose SAM-LAD, a zero-shot, plug-and-play framework for logical anomaly detection in any scene. First, we obtain a query image's feature map using a pre-trained backbone. Simultaneously, we retrieve the reference images and their corresponding feature maps via the nearest neighbor search of the query image. Then, we introduce the Segment Anything Model (SAM) to obtain object masks of the query and reference images. Each object mask is multiplied with the entire image's feature map to obtain object feature maps. Next, an Object Matching Model (OMM) is proposed to match objects in the query and reference images. To facilitate object matching, we further propose a Dynamic Channel Graph Attention (DCGA) module, treating each object as a keypoint and converting its feature maps into feature vectors. Finally, based on the object matching relations, an Anomaly Measurement Model (AMM) is proposed to detect objects with logical anomalies. Structural anomalies in the objects can also be detected. We validate our proposed SAM-LAD using various benchmarks, including industrial datasets (MVTec Loco AD, MVTec AD), and the logical dataset (DigitAnatomy). Extensive experimental results demonstrate that SAM-LAD outperforms existing SoTA methods, particularly in detecting logical anomalies.
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 36 of its 67 references that are in the map. First posted on arXiv 2 Jun 2024.
Builds on
36 of 67 references.
References · 36
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2023Segment Anythingcited by 8,234
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
- 2017Mask R-CNNcited by 7,277
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
- 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,241
- 2019SuperGlue: Learning Feature Matching with Graph Neural Networkscited by 1,443
- 2017SuperPoint: Self-Supervised Interest Point Detection and Descriptioncited by 1,320
- 2024Grounded SAM: Assembling Open-World Models for Diverse Visual Taskscited by 929
- 2021Towards Total Recall in Industrial Anomaly Detectioncited by 776
- 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 594
24 more
- 2019Kvasir-SEG: A Segmented Polyp Datasetcited by 589
- 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 421
- 2018GANomaly: Semi-Supervised Anomaly Detection via Adversarial Trainingcited by 409
- 2019Uninformed Students: Student-Teacher Anomaly Detection with Discriminative Latent Embeddingscited by 386
- 2021CFLOW-AD: Real-Time Unsupervised Anomaly Detection with Localization via Conditional Normalizing Flowscited by 321
- 2023Recognize Anything: A Strong Image Tagging Modelcited by 309
- 2020Sub-Image Anomaly Detection with Deep Pyramid Correspondencescited by 300
- 2020Multiresolution Knowledge Distillation for Anomaly Detectioncited by 285
- 2020Learning Memory-guided Normality for Anomaly Detectioncited by 278
- 2018Deep Anomaly Detection Using Geometric Transformationscited by 269
- 2018Improving Unsupervised Defect Segmentation by Applying Structural Similarity to Autoencoderscited by 264
- 2021FastFlow: Unsupervised Anomaly Detection and Localization via 2D Normalizing Flowscited by 227
- 2023EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latenciescited by 160
- 2024FeatUp: A Model-Agnostic Framework for Features at Any Resolutioncited by 116
- 2024PromptAD: Learning Prompts with only Normal Samples for Few-Shot Anomaly Detectioncited by 98
- 2020Synthesize then Compare: Detecting Failures and Anomalies for Semantic Segmentationcited by 96
- 2023IM-IAD: Industrial Image Anomaly Detection Benchmark in Manufacturingcited by 64
- 2017Thoracic Disease Identification and Localization with Limited Supervisioncited by 55
- 2021SQUID: Deep Feature In-Painting for Unsupervised Anomaly Detectioncited by 34
- 2023Learning Global-Local Correspondence with Semantic Bottleneck for Logical Anomaly Detectioncited by 21
- 2022Visual Anomaly Detection Via Partition Memory Bank Module and Error Estimationcited by 20
- 2023Contextual Affinity Distillation for Image Anomaly Detectioncited by 18
- 2023REB: Reducing Biases in Representation for Industrial Anomaly Detectioncited by 10
- 2024Few-shot Online Anomaly Detection and Segmentationcited by 5
Built on by
Citing papers per year: 2024: 1; 2025: 9; 2026: 4.
14 papers.
Sort:
By area:
- 2025The MVTec AD 2 Dataset: Advanced Scenarios for Unsupervised Anomaly Detectioncited by 30
- 2024UniVAD: A Training-free Unified Model for Few-shot Visual Anomaly Detectioncited by 28
- 2025CleanPose: Category-Level Object Pose Estimation via Causal Learning and Knowledge Distillationcited by 10
- 2025SAM3-I: Segment Anything with Instructionscited by 9
- 2025Memory-Augmented SAM2 for Training-Free Surgical Video Segmentationcited by 8
- 2025Foundation Models and Transformers for Anomaly Detection: A Surveycited by 8
- 2025A Survey on Foundation-Model-Based Industrial Defect Detectioncited by 5
- 2025SALAD -- Semantics-Aware Logical Anomaly Detectioncited by 4
- 2025From Pixels to Graphs: Deep Graph-Level Anomaly Detection on Dermoscopic Imagescited by 1
- 2026UniSLAD: A Unified Framework for Structural and Logical Industrial Visual Anomaly Detectioncited by 1
- 2026MemPose: Category-level Object Pose Estimation with Memorycited by 1
- 2025TMUAD: Enhancing Logical Capabilities in Unified Anomaly Detection Models with a Text Memory Bankcited by 0
- 2026Training-Free Logical and Structural Anomaly Detection via Calibrated Fusion4 Sep 2026
- 2026MemPose: Category-level Object Pose Estimation with Memory6 Jul 2026
- 2026LogiCo: A Unified Framework for Logical and Structural Anomaly Detection27 Jun 2026
- 2026UniSLAD: A Unified Framework for Structural and Logical Industrial Visual Anomaly Detection18 Jun 2026
- 2025SAM3-I: Segment Anything with Instructions4 Dec 2025
- 2025SALAD -- Semantics-Aware Logical Anomaly Detection2 Sep 2025
- 2025TMUAD: Enhancing Logical Capabilities in Unified Anomaly Detection Models with a Text Memory Bank29 Aug 2025
- 2025From Pixels to Graphs: Deep Graph-Level Anomaly Detection on Dermoscopic Images15 Aug 2025
- 2025Foundation Models and Transformers for Anomaly Detection: A Survey21 Jul 2025
- 2025Memory-Augmented SAM2 for Training-Free Surgical Video Segmentation13 Jul 2025
- 2025The MVTec AD 2 Dataset: Advanced Scenarios for Unsupervised Anomaly Detection27 Mar 2025
- 2025A Survey on Foundation-Model-Based Industrial Defect Detection26 Feb 2025
- 2025The MVTec AD 2 Dataset: Advanced Scenarios for Unsupervised Anomaly Detectioncited by 30
- 2024UniVAD: A Training-free Unified Model for Few-shot Visual Anomaly Detectioncited by 28
- 2025SAM3-I: Segment Anything with Instructionscited by 9
- 2025Memory-Augmented SAM2 for Training-Free Surgical Video Segmentationcited by 8
- 2025Foundation Models and Transformers for Anomaly Detection: A Surveycited by 8
- 2025A Survey on Foundation-Model-Based Industrial Defect Detectioncited by 5
- 2025SALAD -- Semantics-Aware Logical Anomaly Detectioncited by 4
- 2025From Pixels to Graphs: Deep Graph-Level Anomaly Detection on Dermoscopic Imagescited by 1
- 2026UniSLAD: A Unified Framework for Structural and Logical Industrial Visual Anomaly Detectioncited by 1
- 2026MemPose: Category-level Object Pose Estimation with Memorycited by 1
- 2025TMUAD: Enhancing Logical Capabilities in Unified Anomaly Detection Models with a Text Memory Bankcited by 0
- 2026LogiCo: A Unified Framework for Logical and Structural Anomaly Detectioncited by 0
12 most cited of 13 All 13 (JSON)
- 2026Training-Free Logical and Structural Anomaly Detection via Calibrated Fusion4 Sep 2026
- 2026MemPose: Category-level Object Pose Estimation with Memory6 Jul 2026
- 2026LogiCo: A Unified Framework for Logical and Structural Anomaly Detection27 Jun 2026
- 2026UniSLAD: A Unified Framework for Structural and Logical Industrial Visual Anomaly Detection18 Jun 2026
- 2025SAM3-I: Segment Anything with Instructions4 Dec 2025
- 2025SALAD -- Semantics-Aware Logical Anomaly Detection2 Sep 2025
- 2025TMUAD: Enhancing Logical Capabilities in Unified Anomaly Detection Models with a Text Memory Bank29 Aug 2025
- 2025From Pixels to Graphs: Deep Graph-Level Anomaly Detection on Dermoscopic Images15 Aug 2025
- 2025Foundation Models and Transformers for Anomaly Detection: A Survey21 Jul 2025
- 2025Memory-Augmented SAM2 for Training-Free Surgical Video Segmentation13 Jul 2025
- 2025The MVTec AD 2 Dataset: Advanced Scenarios for Unsupervised Anomaly Detection27 Mar 2025
- 2025A Survey on Foundation-Model-Based Industrial Defect Detection26 Feb 2025
12 newest of 13 All 13 (JSON)