Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)
TL;DR. Saliency maps explain one input in terms of pixels. TCAV (Testing with Concept Activation Vectors) explains a whole class in terms of human concepts. You give it example images of a concept, such as “striped”. It finds the direction in a layer’s activation space that separates them from random images, then measures how often moving along that direction increases the class score.
Key idea
Section titled “Key idea”- CAV. Train a linear classifier on layer- activations of concept examples versus random examples. The CAV is the vector orthogonal to its boundary, pointing towards the concept (§3.2).
- Conceptual sensitivity. For input and class , , the directional derivative of the class logit along the CAV (§3.3).
- TCAV score. , the fraction of class inputs pushed up by the concept (§3.4).
Key results
Section titled “Key results”On GoogleNet and Inception V3, TCAV recovered expected concepts, such as “striped” for zebra, and confirmed suspected biases: the “female” concept matters for the apron class, and a race concept for the ping-pong ball class (§4.2.1). In a controlled experiment, images of three classes carried captions that matched the label with a set probability. Networks were trained at four noise levels, and the image concept’s TCAV score matched which concept each network actually relied on, measured by accuracy on caption-free images (§4.3.1). In a 50-person MTurk study on the same networks, saliency maps (including Integrated Gradients and SmoothGrad) communicated the more important concept correctly only 52% of the time, close to chance (§4.3.2). TCAV was also applied to a diabetic retinopathy model (§4.4).
Connections
Section titled “Connections”- Probing classifiers and control tasks: the CAV is a linear probe, so the same capacity and correlation caveats apply.
- Integrated Gradients: one of the saliency methods TCAV is compared against.
- Toy Models of Superposition: why concepts may be directions rather than single neurons.
- Scaling Monosemanticity: finds concept directions without supervision, then steers along them.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Mechanism
Describe the full TCAV pipeline for the question "is the concept striped important to the zebra class at layer l?": how the CAV is built, how conceptual sensitivity is computed, what TCAV_Q measures, and why the significance test against random concepts is needed.
What a strong answer covers
- Collect concept images (striped) and random counter-examples; take their activations at layer l and train a linear classifier. The CAV v_C^l is the unit normal of its decision boundary, pointing towards the concept.
- Conceptual sensitivity for an input is the directional derivative of the class logit along the CAV: S = ∇h_k(f_l(x)) · v_C^l.
- TCAV_Q is the fraction of zebra inputs with S > 0, so it is a class-level score, not a per-image saliency.
- A CAV trained against random images can look meaningful by chance. Training many CAVs against different random sets (for example 500 runs) and running a two-sided t-test that rejects a TCAV score of 0.5 (with Bonferroni correction) filters spurious concepts.
- Critique
TCAV applies a linear probe and then a gradient test. Using what you know about probing controls, name two ways a TCAV result could be misleading even when it passes the random-concept significance test, and an experiment for each.
What a strong answer covers
- The concept set may be confounded with another property (for example striped images that are also high-contrast). The CAV then captures the confound. Fix: build concept sets that differ only in the target property, or test a matched control concept.
- A positive directional derivative is a local, first-order signal. The model may be sensitive to the direction without relying on it for its actual decisions. Fix: intervene by moving activations along or removing the CAV and measuring accuracy.
- The linear separability of concept and random examples says the concept is decodable at that layer, like a probe; it does not measure probe capacity. Fix: report CAV accuracy against a control such as a random-label split.
- Research idea
Propose using TCAV to test whether a dense retriever's query encoder is sensitive to a "temporal intent" concept (queries asking about recent events). Define the concept set, the class-like output to differentiate, the controls and what would count as evidence.
What a strong answer covers
- Concept set: queries with temporal intent ("latest", "this year", event names), with random queries as counter-examples; build CAVs at several layers.
- Output: there is no class logit, so differentiate a scalar such as the similarity between the query embedding and a fixed set of recent documents.
- TCAV_Q: the fraction of temporal queries for which moving along the CAV increases similarity to recent documents.
- Controls: many random-concept CAVs for significance; a matched concept that shares surface words but not intent.
- Evidence: a significant score at some layers, plus a causal check that moving activations along the CAV changes the ranking of recent documents.