Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV)
Introduces Concept Activation Vectors (CAV) and TCAV to quantify high-level concept importance in neural networks, validated on image and medical datasets, demonstrating interpretability and bias detection.
Key Findings
Methodology
This paper proposes a framework that leverages linear classifiers to derive Concept Activation Vectors (CAVs) from neural network activations at various layers. These vectors represent human-understandable concepts in the high-dimensional activation space. By computing directional derivatives of model outputs with respect to these vectors, the method quantifies the sensitivity of predictions to specific concepts. The process involves: 1) collecting concept exemplars; 2) training a linear classifier to distinguish concept vs. non-concept activations; 3) extracting the normal vector as CAV; 4) calculating the directional derivative of the model’s output along the CAV; 5) performing statistical significance tests across multiple runs to validate the relevance of the concept. This approach enables global, concept-level interpretability without retraining the model, adaptable to any user-defined concept and layer.
Key Results
- On ImageNet, TCAV quantified concepts like ‘stripes’ and ‘color’ influencing ‘zebra’ and ‘dog’ classifications, with TCAV scores exceeding 0.75, significantly above random baselines (p<0.01).
- In a diabetic retinopathy model, TCAV identified high-level features such as ‘vessels’ and ‘exudates’ as critical, aligning with ophthalmological expertise, thus validating the method’s practical utility.
- Statistical testing filtered out spurious concepts, ensuring robustness. Experiments showed that training CAVs with as few as 30 images still yielded meaningful insights, demonstrating efficiency.
Significance
This work advances the field of model interpretability by providing a quantitative, global measure of how high-level human concepts influence neural network decisions. It bridges the gap between low-level feature attribution and high-level semantic understanding, crucial for deploying AI in sensitive domains like healthcare and fairness auditing. By enabling users to define and test concepts dynamically, TCAV fosters transparency and trust in AI systems, addressing longstanding challenges of interpretability and bias detection. Its model-agnostic nature and minimal computational overhead make it a practical tool for real-world applications, promoting responsible AI development.
Technical Contribution
The primary technical innovation lies in combining linear classifiers with directional derivatives in the neural activation space to produce concept-level sensitivity scores. The method circumvents the need for model retraining, relying instead on post-hoc analysis of existing models. The introduction of statistical significance testing across multiple CAV training runs enhances robustness, reducing false positives. The framework supports multi-layer analysis, revealing how concepts are learned hierarchically within deep networks. This approach extends prior feature attribution techniques by providing a high-level, interpretable, and quantitative measure of concept importance, facilitating hypothesis testing and bias detection.
Novelty
This study is the first to formalize the use of linear classifier-derived vectors (CAVs) as high-level concept representations within neural networks, combined with directional derivatives for quantitative sensitivity analysis. Unlike traditional saliency or gradient-based methods that focus on local feature importance, TCAV offers a global, concept-based interpretability framework. Its ability to incorporate user-defined concepts without retraining models marks a significant departure from existing explainability techniques, filling a critical gap in high-level interpretability and hypothesis testing in deep learning.
Limitations
- The effectiveness of TCAV depends on the representativeness of the concept exemplars; poorly chosen samples may lead to misleading interpretations. In complex or abstract concepts, defining clear exemplar sets can be challenging.
- The linearity assumption in high-dimensional activation spaces may not hold for very deep or highly nonlinear models, potentially limiting the fidelity of CAVs in such cases.
- Computational costs increase with multiple runs for statistical validation, especially in large models or datasets. Small sample sizes for concept exemplars may reduce the robustness of the CAVs.
Future Work
Future research could explore extending TCAV to non-linear concept representations, such as kernel methods or deep autoencoders, to capture more complex concept structures. Automating concept discovery and exemplar selection using unsupervised or semi-supervised techniques would enhance scalability. Integrating TCAV with causal inference frameworks could improve understanding of cause-effect relationships within models. Additionally, developing interactive tools for real-time concept testing and visualization would make the approach more accessible to non-expert users, broadening its impact across domains.
AI Executive Summary
The rapid advancement of deep learning has revolutionized numerous fields, from image recognition to natural language processing. Despite these successes, a persistent challenge remains: understanding how these complex models arrive at their decisions. Traditional interpretability methods, such as saliency maps and feature attribution, focus on local explanations—highlighting which pixels or features influence a specific prediction. While useful, these approaches often fall short in providing a comprehensive, global understanding of the model’s internal reasoning, especially at a conceptual level that aligns with human intuition.
This gap has significant implications, particularly in high-stakes applications like medical diagnosis, autonomous driving, and fairness auditing. Without clear insight into what high-level concepts the model relies on, stakeholders cannot fully trust or validate these systems. Recognizing this need, Kim et al. introduce a novel framework that bridges the gap between low-level features and high-level human concepts: the Concept Activation Vector (CAV) and Testing with CAV (TCAV).
The core idea is to represent human-understandable concepts as vectors in the high-dimensional activation space of neural networks. By training simple linear classifiers on a small set of concept exemplars, the authors derive vectors—CAVs—that encode the direction of a concept within the model’s internal representations. Using directional derivatives, they then measure how sensitive the model’s predictions are to these concepts, providing a quantitative score that reflects their importance.
This approach offers several advantages. It is model-agnostic, requiring no retraining, and flexible, allowing users to define arbitrary concepts. The authors validate their method on ImageNet, demonstrating that concepts like ‘stripes’ significantly influence ‘zebra’ classifications, with TCAV scores exceeding 0.75 and statistical significance confirmed through multiple runs. In medical applications, TCAV reveals that features such as ‘blood vessels’ and ‘exudates’ are critical for diabetic retinopathy detection, aligning with domain expertise.
Furthermore, the authors perform extensive experiments to verify the robustness and interpretability of their approach. They show that even with limited samples (as few as 30 images), meaningful concept vectors can be learned. The statistical testing framework filters out spurious correlations, ensuring reliable insights. The analysis also uncovers biases related to gender and race in popular neural networks, highlighting the method’s utility in bias detection.
Overall, TCAV advances the field of explainable AI by providing a scalable, quantitative, and concept-level interpretability tool. It enables researchers and practitioners to probe models for high-level concepts, understand their hierarchical learning process, and identify potential biases. This work paves the way for more transparent, trustworthy AI systems, especially in sensitive domains where understanding the ‘why’ behind decisions is as crucial as the decisions themselves.
Looking ahead, future work may focus on extending TCAV to capture non-linear concepts, automating concept discovery, and integrating causal inference techniques. Developing user-friendly visualization and interaction tools will further democratize model interpretability, making these insights accessible to non-experts. As AI continues to permeate critical sectors, methods like TCAV will be instrumental in ensuring that models not only perform well but also align with human values and societal norms.
Deep Analysis
Background
Over the past decade, deep neural networks have achieved remarkable success across various domains, notably in image classification with architectures like ResNet, Inception, and DenseNet. These models have surpassed human-level performance on benchmark datasets such as ImageNet, leading to widespread adoption in industry and research. However, their internal mechanisms remain largely opaque, raising concerns about trust, fairness, and accountability. Early interpretability techniques focused on local feature attribution, such as saliency maps, Grad-CAM, and Integrated Gradients, which highlight influential pixels or regions for a specific prediction. While these methods provide valuable insights, they are limited to local explanations and do not capture the high-level concepts that humans naturally understand.
Recent efforts have aimed to bridge this gap by exploring the internal representations of neural networks. Techniques like concept activation maps (CAM) and network dissection have attempted to identify neurons or layers associated with semantic concepts. Bau et al. introduced concept-based explanations by training classifiers on activation patterns, laying the groundwork for the current work. Nonetheless, these approaches often lack a systematic way to quantify the influence of high-level concepts across classes and datasets. The challenge remains: how can we define, detect, and measure the importance of human-understandable concepts within complex models?
This paper addresses this challenge by proposing a formal framework that leverages linear classifiers to extract concept vectors (CAVs) from neural activations. The approach is inspired by the observation that neural networks often encode meaningful directions in their high-dimensional activation spaces, which can be associated with semantic concepts. By quantifying the sensitivity of model outputs to these directions, the authors enable a global, interpretable, and statistically validated analysis of model behavior, advancing the field of explainable AI.
Core Problem
Despite progress in interpretability research, existing methods primarily focus on local explanations, which are insufficient for understanding the global decision-making process of deep models. Feature attribution techniques like saliency maps are sensitive to noise, lack robustness, and do not directly relate to human concepts. Moreover, they cannot easily compare the influence of different high-level concepts or detect biases embedded within the model. The core problem is to develop a method that can define, quantify, and statistically validate the importance of human-understandable concepts in a model’s predictions, across entire classes and datasets. Achieving this requires overcoming challenges such as: 1) defining meaningful concepts in a high-dimensional, nonlinear activation space; 2) ensuring the interpretability of the derived concept vectors; 3) providing a statistically robust measure that accounts for variability across samples and runs; and 4) enabling flexible, user-defined concepts without retraining the model. Addressing these issues is crucial for building trustworthy AI systems that can be audited for biases, fairness, and alignment with human values.
Innovation
The key innovation of this work is the introduction of Concept Activation Vectors (CAVs), which serve as linear representations of high-level concepts within neural network activations. Unlike prior methods that rely on local gradients or feature importance maps, CAVs are derived by training simple linear classifiers on a small set of concept exemplars, capturing the dominant direction in activation space associated with the concept. The use of directional derivatives allows quantification of how model predictions change when inputs are perturbed along these concept directions, providing a global, quantitative measure of concept influence. The framework incorporates statistical significance testing over multiple runs, ensuring robustness against spurious correlations. This approach is model-agnostic, flexible, and capable of handling arbitrary user-defined concepts, making it highly adaptable for practical interpretability and bias detection tasks. The integration of hypothesis testing with concept vectors represents a significant methodological advancement, enabling rigorous, scalable, and interpretable analysis of deep models.
Methodology
- �� Define a human-interpretable concept by selecting a set of positive example inputs (e.g., images of striped textures). • Collect activations from a specific layer of the trained neural network for these examples, forming a high-dimensional activation dataset. • Gather a set of negative examples (e.g., random images) to serve as control samples. • Train a linear classifier (e.g., logistic regression or linear SVM) to distinguish between concept and non-concept activations, deriving the classifier’s normal vector as the CAV. • Normalize the CAV to unit length to facilitate directional derivative calculations. • For each input sample, compute the directional derivative of the model’s output (e.g., class logit) along the CAV vector, using the gradient of the output with respect to the layer activations. • Aggregate these derivatives across samples within a class to compute the TCAV score, which measures the proportion of inputs for which the model is positively influenced by the concept. • Perform multiple training runs of the CAV with different random subsets, applying t-tests to assess the statistical significance of the concept’s influence. • Use the significance results to filter out spurious concepts, ensuring only meaningful concepts are reported. • Visualize the concepts via sorting images based on cosine similarity to the CAV or through activation maximization techniques like Deep Dream. • Apply the framework to various layers and concepts, analyze the hierarchical learning process, and compare across models and datasets.
Experiments
The experimental setup involves multiple datasets, including ImageNet, CIFAR-10, and a medical dataset for diabetic retinopathy. For each dataset, the authors select a diverse set of concepts—such as colors, textures, objects, gender, and race—by collecting representative exemplars. These exemplars are used to train CAVs at different network layers, typically convolutional or fully connected layers. The evaluation metrics include the TCAV score (fraction of inputs positively influenced by the concept), statistical significance (p-values from t-tests), and correlation with human annotations. The experiments examine the impact of sample size (30, 50, 100 images per concept) on CAV robustness, demonstrating that even small samples can produce meaningful results. Control experiments with noisy labels or random exemplars assess the specificity of the method. The authors compare TCAV with traditional feature attribution methods, showing superior global interpretability and bias detection capabilities. In the medical case, the method identifies key features influencing diagnosis, validated by domain experts, illustrating practical utility. The experiments also analyze the hierarchical learning of concepts across layers, revealing how simple features are captured in early layers and abstract concepts in deeper layers.
Results
TCAV effectively quantifies the influence of human-defined high-level concepts on neural network predictions, with scores exceeding 0.75 for relevant concepts and statistically significant p-values (<0.01). In ImageNet, concepts like ‘stripes’ significantly impacted ‘zebra’ classification, while ‘color’ influenced ‘dog’ categories. In bias detection, TCAV uncovered that models trained on ImageNet exhibited sensitivity to ‘gender’ and ‘race’ attributes, correlating with known dataset biases. In medical applications, TCAV identified ‘blood vessels’ and ‘exudates’ as critical features for diabetic retinopathy, aligning with ophthalmological expertise. The robustness of the method was validated through experiments with limited samples (30 images), which still yielded high CAV accuracy (>85%). The statistical significance testing effectively filtered out false positives, ensuring reliable interpretations. Overall, the results demonstrate that TCAV provides a scalable, quantitative, and concept-level understanding of model behavior, surpassing traditional local attribution methods in interpretability and bias detection.
Applications
TCAV can be immediately applied in domains requiring model transparency, such as medical diagnosis, where understanding the influence of high-level features like ‘vessels’ or ‘lesions’ is critical. It supports bias detection in fairness auditing by quantifying the impact of sensitive attributes like gender or race across entire datasets. In autonomous systems, TCAV helps verify that models rely on appropriate concepts rather than spurious correlations, enhancing safety and trust. The method’s flexibility allows practitioners to define custom concepts relevant to their domain, facilitating targeted model debugging and validation. Long-term, TCAV could be integrated into automated model auditing pipelines, enabling continuous bias monitoring and concept-based explanations, ultimately fostering responsible AI deployment across industries.
Limitations & Outlook
The effectiveness of TCAV depends heavily on the quality and representativeness of the concept exemplars; poorly chosen samples can lead to misleading interpretations. The linear assumption underlying CAVs may not hold in highly nonlinear or complex models, limiting the fidelity of concept representations. The computational cost increases with multiple runs for statistical validation, especially in large-scale models or datasets. Additionally, defining meaningful concepts requires domain expertise, and abstract or fuzzy concepts pose challenges for exemplar collection. Future work should focus on automating concept discovery, extending to non-linear representations, and improving computational efficiency to make the approach more scalable and user-friendly.
Plain Language Accessible to non-experts
想象你在一个工厂里工作,工厂里有许多不同的机器,每台机器都在做不同的事情。你想知道某个产品是怎么被制造出来的,但工厂的内部流程非常复杂,像一堆迷宫一样。传统的方法就像只看最后的成品,不能告诉你生产过程中哪些步骤最重要。
这时候,你可以用一种特别的方法:你先找一些代表某个特定概念的样品,比如所有带有“条纹”的产品,然后用这些样品告诉工厂的系统:“这些产品都带有条纹。”系统会学习到一个“条纹”的方向,就像在迷宫中找到一条路线。接着,你可以问系统:“这个产品的制造是不是特别依赖于‘条纹’这个概念?”系统会告诉你答案,就像你在迷宫中找到了一条重要的路径。
这个方法的厉害之处在于,它不需要重新设计工厂,只需要用已有的产品样品,就能帮你理解工厂的内部流程。这样,你就可以更好地知道哪些因素影响了产品的质量,哪些偏差可能导致问题。它就像给工厂装上了“透明窗”,让你可以清楚看到每个环节的重要性,帮助你做出更聪明的决策。
ELI14 Explained like you're 14
Imagine you're playing a super complex game, and your character can do many things. But you don't know how much each action affects your chances of winning. For example, is jumping really important? How does it help? Old methods only looked at the final score, so you didn't really understand why you won or lost.
Now, there's a new way. You pick some examples where you jumped, like clips of your jumps, and tell the game system, “These are all about jumping.” The system learns what ‘jumping’ looks like inside the game, like finding a secret path in a maze. Then, you ask, “How much does jumping matter for winning?” The system uses math to tell you, like showing you a hidden shortcut.
This is super useful because you don’t need to restart the game or change anything. Just by looking at some examples, you can understand what actions are most important. It’s like having a secret map that shows you the best way to win. So, next time you play, you’ll know exactly when to jump and when to hold back, making you a smarter player and helping you beat the game more easily!
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.
References (20)
Visualizing Higher-Layer Features of a Deep Network
D. Erhan, Yoshua Bengio, Aaron C. Courville et al.
Inceptionism: Going Deeper into Neural Networks
A. Mordvintsev, Christopher Olah, Michael D. Tyka
SmoothGrad: removing noise by adding noise
D. Smilkov, Nikhil Thorat, Been Kim et al.
Grad-CAM: Why did you say that?
Ramprasaath R. Selvaraju, Abhishek Das, Ramakrishna Vedantam et al.
Network Dissection: Quantifying Interpretability of Deep Visual Representations
David Bau, Bolei Zhou, A. Khosla et al.
Intelligible Models for HealthCare: Predicting Pneumonia Risk and Hospital 30-day Readmission
R. Caruana, Yin Lou, J. Gehrke et al.
“Why Should I Trust You?”: Explaining the Predictions of Any Classifier
Marco Tulio Ribeiro, Sameer Singh, Carlos Guestrin
The Bayesian Case Model: A Generative Approach for Case-Based Reasoning and Prototype Classification
Been Kim, C. Rudin, J. Shah
Graph-Sparse LDA: A Topic Model with Structured Sparsity
F. Doshi-Velez, Byron C. Wallace, Ryan P. Adams
Going deeper with convolutions
Christian Szegedy, Wei Liu, Yangqing Jia et al.
ImageNet Large Scale Visual Recognition Challenge
Olga Russakovsky, Jia Deng, Hao Su et al.
Machine learning on brain MRI data for differential diagnosis of Parkinson's disease and Progressive Supranuclear Palsy.
C. Salvatore, A. Cerasa, I. Castiglioni et al.
Intriguing properties of neural networks
Christian Szegedy, Wojciech Zaremba, I. Sutskever et al.
Visualizing and Understanding Convolutional Networks
Matthew D. Zeiler, R. Fergus
Distributed Representations of Words and Phrases and their Compositionality
Tomas Mikolov, I. Sutskever, Kai Chen et al.
Supersparse Linear Integer Models for Interpretable Classification
Berk Ustun, Stefano Tracà, C. Rudin
Labeled Faces in the Wild: A Database forStudying Face Recognition in Unconstrained Environments
Gary B. Huang, Marwan Mattar, T. Berg et al.
Sparse Principal Component Analysis
H. Zou, T. Hastie, R. Tibshirani
Feature Visualization
D. Silver
Regression Shrinkage and Selection via the Lasso
R. Tibshirani
Cited By (20)
Analyzing Traditional and Neural Approaches to Multilingual Readability Assessment
Bias Analysis of L2 Speaking Assessment Systems Using Concept Activation Vectors
ICON Decomposition: Auditing Deep Neural Networks with Multivariate Variance-based Concept-level Explanations
A severity-aware multi-task CNN-transformer framework for explainable diabetic foot ulcer triage and mobile deployment
SCOUT: Semantic Concept Discovery for Open-Vocabulary Editing of face Recognition Templates
SkillEval: Decomposing Agent Skill Quality into Interpretable Signals
SAEVerbalizer: Generating Explanations for Sparse Autoencoder Features via Representation Verbalization
FiRe: Fixed-Noise Refinement for Visual Counterfactual Explanations
Iterative Erasure Count Is Not an Affine-Invariant Concept Dimension
Concept-Residual Representation Expansion for Robustness to Spurious Correlations
Low-Rank Dynamics-Effective Latent Carriers for Counterfactual Rollout in Learned World Models
When Do Concepts Become Functionally Sufficient During Language-Model Training?
Identifying Confusion Trends in Concept-based XAI for Multi-Label Classification
Decision-oriented explainable artificial intelligence: a PDR-based review of methods, applications, and emerging frontiers
Rethinking AI ethics as a temporal socio-technical system: a critical synthesis
Graphical Design of Interpretable Architectures
Feature Evolution and Migration during Vision Transformer Training
SAE-Xplainers: Rule-Based Feature Interpretation for Extreme Earth Events
EXPL-FR: Explaining Face Recognition Models via Vision-Language Alignment
LITERARYBIGFIVE: Author-Personalized Text Generation in a Unified Interpretable Space