Concept Activation Regions: A Generalized Framework For Concept-Based Explanations

Jonathan Crabbé, Mihaela van der Schaar
9/22/2022
93 citations
cs.LGcs.AI

Official code: JonathanCrabbe/CARs (17 stars, Python, Apache-2.0, last commit 2022-10-07). 1 more implementation below.

Abstract

Concept-based explanations permit to understand the predictions of a deep neural network (DNN) through the lens of concepts specified by users. Existing methods assume that the examples illustrating a concept are mapped in a fixed direction of the DNN's latent space.

Show full abstract

When this holds true, the concept can be represented by a concept activation vector (CAV) pointing in that direction. In this work, we propose to relax this assumption by allowing concept examples to be scattered across different clusters in the DNN's latent space. Each concept is then represented by a region of the DNN's latent space that includes these clusters and that we call concept activation region (CAR). To formalize this idea, we introduce an extension of the CAV formalism that is based on the kernel trick and support vector classifiers. This CAR formalism yields global concept-based explanations and local concept-based feature importance. We prove that CAR explanations built with radial kernels are invariant under latent space isometries. In this way, CAR assigns the same explanations to latent spaces that have the same geometry. We further demonstrate empirically that CARs offer (1) more accurate descriptions of how concepts are scattered in the DNN's latent space; (2) global explanations that are closer to human concept annotations and (3) concept-based feature importance that meaningfully relate concepts with each other. Finally, we use CARs to show that DNNs can autonomously rediscover known scientific concepts, such as the prostate cancer grading system.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
JonathanCrabbe/CARsOfficial17PythonApache-2.02022-10-07
vanderschaarlab/CARsOfficial3PythonApache-2.02023-01-05
Apache-2.0

This repository contains the implementation of Concept Activation Regions, a new framework to explain deep neural networks with human concepts. For more details, please read our NeurIPS 2022 paper: 'Concept Activation Regions: a Generalized Framework for Concept-Based Explanations.

175Python4 years agoApache-2.0
concept-based-explanationsdeepdeep-neural-networksexplainable-aiexplainable-ml+3 more
Apache-2.0

This repository contains the implementation of Concept Activation Regions, a new framework to explain deep neural networks with human concepts. For more details, please read our NeurIPS 2022 paper: 'Concept Activation Regions: a Generalized Framework for Concept-Based Explanations.

31PythonOct 6, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{crabb2022concept,
  title  = {Concept Activation Regions: A Generalized Framework For Concept-Based Explanations},
  author = {Jonathan Crabbé and Mihaela van der Schaar},
  year   = {2022},
  eprint = {2209.11222},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.11222}
}

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/2209.11222.svg)](https://codeofpaper.com/paper/2209.11222)

Discussion