Explaining Explainability: Recommendations for Effective Use of Concept Activation Vectors

Angus Nicolson, Lisa Schut, J. Alison Noble, Yarin Gal
4/4/2024
cs.LGcs.AIcs.CV

No official code found. Best implementation: AngusNicolson/elements (6 stars, MIT, last commit 2024-07-03).

Abstract

Concept-based explanations translate the internal representations of deep learning models into a language that humans are familiar with: concepts. One popular method for finding concepts is Concept Activation Vectors (CAVs), which are learnt using a probe dataset of concept exemplars. In this work, we investigate three properties of CAVs: (1) inconsistency across layers, (2) entanglement with other concepts, and (3) spatial dependency. Each property provides both challenges and opportunities in interpreting models. We introduce tools designed to detect the presence of these properties, provide insight into how each property can lead to misleading explanations, and provide recommendations to mitigate their impact. To demonstrate practical applications, we apply our recommendations to a melanoma classification task, showing how entanglement can lead to uninterpretable results and that the choice of negative probe set can have a substantial impact on the meaning of a CAV. Further, we show that understanding these properties can be used to our advantage. For example, we introduce spatially dependent CAVs to test if a model is translation invariant with respect to a specific concept and class. Our experiments are performed on natural images (ImageNet), skin lesions (ISIC 2019), and a new synthetic dataset, Elements. Elements is designed to capture a known ground truth relationship between concepts and classes. We release this dataset to facilitate further research in understanding and evaluating interpretability methods.

View on arXivView PDF

Code Implementations(1)

MIT

A synthetic dataset of simple shapes with known ground truth concepts and how they relate to the image classes.

60Python, Jupyter NotebookApr 19, 20232 years agoMIT

Similar Papers

Cite this paper

@article{nicolson2024explaining,
  title  = {Explaining Explainability: Recommendations for Effective Use of Concept Activation Vectors},
  author = {Angus Nicolson and Lisa Schut and J. Alison Noble and Yarin Gal},
  year   = {2024},
  eprint = {2404.03713},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.03713v2}
}

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

Discussion