Explain Any Concept: Segment Anything Meets Concept-Based Explanation

Ao Sun, Pingchuan Ma, Yuanyuan Yuan, Shuai Wang

Introduction

Deep Neural Networks (DNNs) have achieved remarkable success in computer vision, yet they remain "black boxes" whose internal logic is difficult to decipher. As AI is increasingly deployed in high-stakes domains like healthcare and security, the need for Explainable AI (XAI) has become critical. Traditional XAI methods often rely on pixel-level heatmaps, which are noisy and difficult for humans to interpret, or concept-based methods that require labor-intensive manual labeling.

The EAC Framework

To bridge this gap, researchers introduced Explain Any Concept (EAC), a framework that automates the generation of human-understandable, concept-based explanations. EAC leverages the zero-shot capabilities of Meta’s Segment Anything Model (SAM) to decompose images into meaningful visual concepts without prior human intervention.

The EAC framework overview: (1) Segmenting concepts with SAM, (2) Training the PIE surrogate model, and (3) Generating explanations via Shapley values.

The pipeline consists of three distinct phases:

  1. Concept Discovery: SAM partitions the input image into distinct visual instances, transforming raw pixels into a set of candidate concepts.
  2. Per-Input Equivalence (PIE) Scheme: To efficiently calculate the importance of these concepts, the authors developed the PIE surrogate model. Unlike standard linear surrogates, PIE shares the final Fully Connected (FC) layer with the target DNN. This ensures the surrogate remains faithful to the original model's decision logic while allowing for rapid computation.
  3. Concept-based Explanation: Using the PIE surrogate, the system employs Monte Carlo sampling to compute Shapley values for each concept. The concepts with the highest values are identified as the primary drivers of the model's prediction.

Experimental Evaluation

The EAC framework was rigorously tested on the ImageNet and COCO datasets using a ResNet-50 architecture. The evaluation focused on two primary dimensions: faithfulness to the model and human interpretability.

Faithfulness and Efficiency

Faithfulness was measured using "Insertion" and "Deletion" metrics. Insertion measures the increase in model confidence as important concepts are added, while Deletion measures the drop in confidence as they are removed. EAC consistently outperformed nine state-of-the-art baselines, including LIME, DeepLIFT, and GradSHAP. On ImageNet, EAC achieved an Insertion AUC of 83.4%, significantly higher than the next best method (LIME at 76.6%). Furthermore, the PIE scheme drastically reduced the computational overhead, making Shapley-based concept explanations feasible for real-time applications.

Qualitative Analysis and Human Preference

Visually, EAC provides significantly clearer explanations than traditional methods. While pixel-based heatmaps often highlight irrelevant background noise, EAC isolates the specific visual concepts—such as a train, a surfer, or a zebra—that the model used to reach its decision.

Qualitative comparison of EAC against baseline XAI methods. EAC produces cleaner, more object-centric explanations by leveraging SAM-based segmentation.

In a user study involving graduate students, participants favored EAC's explanations in 74.5% of cases, citing its superior clarity and alignment with human visual reasoning compared to pixel-based heatmaps.

Conclusion

Explain Any Concept (EAC) represents a significant advancement in XAI by combining automated segmentation with efficient, faithful surrogate modeling. By moving from pixel-level noise to object-level concepts, EAC provides a scalable path toward making deep learning models more transparent and trustworthy. Future work may extend this framework to specialized domains like medical imaging or broader tasks such as object detection.

Summary updated

BibTeX
@inproceedings{sun2023explain,
  author = {Ao Sun and Pingchuan Ma and Yuanyuan Yuan and Shuai Wang},
  title = {{Explain Any Concept: Segment Anything Meets Concept-Based Explanation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=X6TBBsz9qi},
}
Figure