Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)

Been Kim, Martin Wattenberg, Justin Gilmer, Carrie Cai, James Wexler +2 more
11/30/2017
stat.ML

Official code: tensorflow/tcav (654 stars, Apache-2.0, last commit 2026-07-22).

Abstract

The interpretation of deep learning models is a challenge due to their size, complexity, and often opaque internal state. In addition, many systems, such as image classifiers, operate on low-level features rather than high-level concepts. To address these challenges, we introduce Concept Activation Vectors (CAVs), which provide an interpretation of a neural net's internal state in terms of human-friendly concepts. The key idea is to view the high-dimensional internal state of a neural net as an aid, not an obstacle. We show how to use CAVs as part of a technique, Testing with CAVs (TCAV), that uses directional derivatives to quantify the degree to which a user-defined concept is important to a classification result--for example, how sensitive a prediction of "zebra" is to the presence of stripes. Using the domain of image classification as a testing ground, we describe how CAVs may be used to explore hypotheses and generate insights for a standard image classification network as well as a medical application.

View on arXivView PDF

Code Implementations(1)

tensorflow/tcavOfficial100%
Apache-2.0

Code for the TCAV ML interpretability project

654148Shell, PythonJul 3, 20183 months agoApache-2.0
interpretabilitymachine-learningtcav

Cite this paper

@article{kim2017interpretability,
  title  = {Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)},
  author = {Been Kim and Martin Wattenberg and Justin Gilmer and Carrie Cai and James Wexler and Fernanda Viegas and Rory Sayres},
  year   = {2017},
  eprint = {1711.11279},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1711.11279}
}

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

Discussion