Explain Any Concept: Segment Anything Meets Concept-Based Explanation

Ao Sun, Pingchuan Ma, Yuanyuan Yuan, Shuai Wang
2/12/2026

No official code found. Best implementation: Jerry00917/samshap (46 stars, last commit 2023-12-04).

Abstract

EXplainable AI (XAI) is an essential topic to improve human understanding of deep neural networks (DNNs) given their black-box internals. For computer vision tasks, mainstream pixel-based XAI methods explain DNN decisions by identifying important pixels, and emerging concept-based XAI explore forming explanations with concepts (e.g., a head in an image). However, pixels are generally hard to interpret and sensitive to the imprecision of XAI methods, whereas"concepts"in prior works require human annotation or are limited to pre-defined concept sets. On the other hand, driven by large-scale pre-training, Segment Anything Model (SAM) has been demonstrated as a powerful and promotable framework for performing precise and comprehensive instance segmentation, enabling automatic preparation of concept sets from a given image. This paper for the first time explores using SAM to augment concept-based XAI. We offer an effective and flexible concept-based explanation method, namely Explain Any Concept (EAC), which explains DNN decisions with any concept. While SAM is highly effective and offers an"out-of-the-box"instance segmentation, it is costly when being integrated into defacto XAI pipelines. We thus propose a lightweight per-input equivalent (PIE) scheme, enabling efficient explanation with a surrogate model. Our evaluation over two popular datasets (ImageNet and COCO) illustrate the highly encouraging performance of EAC over commonly-used XAI methods.

View on arXivView PDF

Code Implementations(1)

Jerry00917/samshapCommunity100%

Code for the paper "Explain Any Concept: Segment Anything Meets Concept-Based Explanation". Poster @ NeurIPS 2023

463PythonOct 14, 20232 years agoNOASSERTION

Similar Papers

Cite this paper

@article{sun2026explain,
  title  = {Explain Any Concept: Segment Anything Meets Concept-Based Explanation},
  author = {Ao Sun and Pingchuan Ma and Yuanyuan Yuan and Shuai Wang},
  year   = {2026},
  eprint = {2305.10289},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2305.10289},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.10289.svg)](https://codeofpaper.com/paper/2305.10289)

Discussion