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.
Introduction: The Limits of Saliency Maps
Most modern interpretability methods rely on feature attribution, typically visualized as "saliency maps" that highlight which pixels in an image were most influential for a classification. While useful, these maps have significant flaws: they are local (explaining only one image at a time), they operate on low-level pixel features rather than human concepts, and they can be fragile or misleading. Humans do not think in pixels; we think in concepts. If a model identifies a "zebra," we want to know if it did so because of "stripes" or because of the "grass" in the background. TCAV addresses this by providing a global, quantitative measure of how much a high-level concept matters across an entire class of data.
Methodology: Defining and Testing Concepts
The authors introduce Concept Activation Vectors (CAVs) and a testing procedure called TCAV. The process moves beyond individual pixels to quantify the influence of high-level human concepts (like "stripes" or "gender") on a model's predictions.
- Defining Concepts: A user provides a small set of examples representing a concept (e.g., 30 images of "striped" patterns) and a set of random counter-examples.
- Training CAVs: The model's activations for these images are extracted at a specific bottleneck layer. A linear classifier is trained to distinguish the concept activations from the random ones. The vector orthogonal to this decision boundary is the CAV—a direction in the activation space that represents the concept.
- Directional Derivatives: To determine a concept's importance, the authors compute the directional derivative of the model's prediction with respect to the CAV. This measures how the prediction probability changes if internal activations are shifted toward that concept.
- TCAV Score: The final score is the fraction of images in a class (e.g., all "zebra" images) for which the concept had a positive influence.
Key Insights: Global Interpretability and Bias Detection
TCAV treats high-dimensional activations as a rich vector space where human concepts can be discovered as linear directions. This approach offers several advantages:
- Global Interpretability: Unlike saliency maps, TCAV explains an entire class. It reveals what the model learns about "zebras" in general, not just one specific instance.
- Post-hoc Customization: Concepts can be defined and tested after a model is trained. Researchers can probe for new concepts (like "surgical scrubs" in a medical model) without retraining.
- Revealing Hidden Biases: TCAV can quantitatively confirm biases. For example, it showed the "female" concept was highly relevant to the "apron" class in InceptionV3. By identifying which images are most and least similar to a concept vector, researchers can surface problematic associations learned by the model.
Key Results and Applications
In controlled experiments, TCAV outperformed saliency maps in identifying which concepts a model prioritized. For instance, in a "noisy caption" benchmark where images were overlaid with misleading text, TCAV correctly identified the model's true sensitivity, whereas humans using saliency maps failed.
In medical applications, such as a model predicting Diabetic Retinopathy (DR), TCAV revealed that the model was over-emphasizing certain features for low-severity cases. This insight allowed medical experts to understand where the model's logic diverged from clinical heuristics, providing a clear path for model debugging and improvement.
Conclusion
While TCAV requires example data for each concept and assumes linear separability in activation space, it represents a significant step toward human-centric AI interpretability. By moving from pixels to concepts, TCAV provides a more intuitive and actionable understanding of deep learning systems, allowing researchers to move beyond simple feature attribution toward true conceptual understanding.
Summary updated