Explainable Visual Anomaly Detection via Concept Bottleneck Models

Arianna Stropeni, Valentina Zaccaria, Francesco Borsatti, Davide Dalle Pezze, Manuel Barusco, Gian Antonio SustoarXiv 2025 · DOI

Abstract

Traditional Visual Anomaly Detection (VAD) models often operate as "black boxes," providing localization heatmaps but lacking semantic interpretability. We present CONVAD (Concept-Aware Visual Anomaly Detection), a framework that leverages Concept Bottleneck Models (CBMs) to bridge this gap. CONVAD translates visual features into human-understandable concepts, allowing for both automated defect classification and real-time human intervention. Our approach utilizes Vision-Language Models for automated concept discovery and synthetic data generation to overcome the scarcity of real-world anomalous samples. Experimental results on industrial benchmarks demonstrate that CONVAD achieves state-of-the-art performance while providing actionable, explainable insights.

Introduction

Visual Anomaly Detection is a cornerstone of industrial quality control. However, current state-of-the-art unsupervised models suffer from a "usability gap." While they can identify where a defect might be through heatmaps, they cannot explain what the defect is in human terms. Furthermore, training these models typically requires extensive datasets of rare anomalies, which are difficult to acquire. CONVAD addresses these challenges by introducing semantic interpretability and a robust pipeline for training with minimal real-world supervision.

Methods

CONVAD integrates the interpretability of Concept Bottleneck Models with the localization capabilities of traditional VAD. The architecture consists of two primary branches: a CBM Module for semantic scoring and a Visual Module for localization.

The CONVAD architecture featuring the CBM Module for semantic scoring and the Visual Module for localization.
  • CBM Module: Instead of direct classification, a feature extractor predicts intermediate semantic concepts (e.g., "irregular shell," "ovoid shape"). The final anomaly score is derived from these concept predictions.
  • Visual Module: Utilizing a student-teacher paradigm, this branch generates visual heatmaps to localize anomalies. The discrepancy between the "teacher" (concept extractor) and "student" networks highlights anomalous regions.

To facilitate training, we employ an Automated Concept Pipeline using Vision-Language Models (VLMs) to extract attributes from data, filtered via CLIP embeddings. Additionally, Synthetic Anomaly Generation (SAG) is used to create artificial defects, enabling the model to learn concept-level representations even when real anomalous samples are scarce.

Key Results and Human-in-the-Loop Interventions

CONVAD demonstrates exceptional performance across major benchmarks like MVTec-AD, VisA, and Real-IAD. In fully supervised settings, it achieved an Image-AUC of 0.97 on MVTec-AD, significantly outperforming unsupervised baselines like STFPM (0.88).

A unique advantage of the CBM-based approach is the ability for human experts to intervene. By manually correcting mispredicted concepts in the bottleneck layer, users can immediately improve model accuracy without retraining. This is particularly effective when dealing with distribution shifts between synthetic training data and real-world defects.

Impact of human intervention on anomaly detection F1 scores across different training strategies.

As shown in the figure above, intervening on even a small number of concepts can lead to dramatic improvements in the AD F1 score. For instance, in the "screw" category, manual corrections raised the detection F1-score from ~0.7 to nearly 1.0. This capability ensures that the model remains reliable even when faced with novel or ambiguous visual data.

Conclusion

CONVAD transforms anomaly detection into a transparent, collaborative process. By moving beyond simple heatmaps to semantic explanations, it provides the root-cause analysis necessary for industrial applications. While challenges remain regarding the distribution shift between synthetic and real-world anomalies, the integration of semantic concepts and human-in-the-loop capabilities represents a significant step toward more reliable and interpretable industrial AI. Future work will focus on refining synthetic generation and expanding the model's ability to handle novel, out-of-vocabulary defects.

Summary updated

BibTeX
@misc{stropeni2025explainable,
  author = {Arianna Stropeni and Valentina Zaccaria and Francesco Borsatti and Davide Dalle Pezze and Manuel Barusco and Gian Antonio Susto},
  title = {{Explainable Visual Anomaly Detection via Concept Bottleneck Models}},
  year = {2025},
  eprint = {2511.20088},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.20088},
}
Figure