Testing with Concept Activation Vectors (TCAV) is a post-hoc explainability algorithm that produces global, concept-based explanations for neural network classifiers. Instead of highlighting individual pixels, TCAV quantifies how strongly a user-defined high-level concept—such as 'stripes,' 'spiculated mass,' or 'gender'—influences a model's prediction for a specific class. It works by first training a linear classifier to distinguish between examples of a concept and random counterexamples in the activation space of a chosen network layer, thereby defining a Concept Activation Vector (CAV) as the hyperplane normal to the decision boundary.
Glossary
TCAV

What is TCAV?
Testing with Concept Activation Vectors (TCAV) is an interpretability method that quantifies a neural network's sensitivity to user-defined, high-level concepts by measuring directional derivatives in the model's activation space.
The method then computes conceptual sensitivity by measuring the directional derivative of the model's class probability with respect to the CAV direction for each input. The final output is the TCAV score, a statistical ratio indicating the fraction of class-positive inputs whose classification was positively influenced by the concept. This approach is uniquely valuable for regulatory explainability in medical imaging, as it allows clinical AI leads to audit whether a diagnostic model has genuinely learned clinically relevant concepts like 'lobulated margin' rather than relying on confounding artifacts, directly supporting clinician-in-the-loop trust calibration.
Key Features of TCAV
Testing with Concept Activation Vectors (TCAV) moves beyond pixel-level saliency to provide human-friendly, concept-level explanations of neural network decisions. It quantifies how sensitive a model's prediction is to user-defined high-level ideas, making it ideal for regulatory auditing in medical imaging.
Concept Activation Vectors (CAVs)
The core building block of TCAV. A CAV is a direction in the activation space of a neural network layer that represents a user-defined concept (e.g., 'spiculated mass', 'fibrotic tissue'). It is learned by training a linear classifier to distinguish between example images of the concept and random counter-examples. The resulting vector normal to the decision boundary defines the concept's axis in the model's internal representation.
Directional Derivatives for Sensitivity
TCAV measures a model's conceptual sensitivity using the directional derivative of the prediction function with respect to the CAV. For a given class and concept, TCAV computes:
- The gradient of the class logit with respect to layer activations
- The dot product of this gradient with the CAV direction This quantifies how much moving the internal representation toward the concept increases the probability of the target class, providing a scalar sensitivity score.
TCAV Score and Statistical Significance
The TCAV score is the fraction of inputs for which the directional derivative is positive, indicating the concept had a positive influence on the prediction. To ensure robustness, TCAV runs a two-sided t-test against random concept vectors. A concept is considered statistically significant only if the TCAV score distribution differs meaningfully from random noise, typically requiring p < 0.05 after multiple comparison correction.
Layer-Wise Concept Analysis
TCAV can be applied at any layer of a convolutional neural network, revealing how conceptual understanding evolves through the network's depth:
- Early layers: May detect low-level textures associated with concepts
- Middle layers: Begin encoding part-based or proto-conceptual features
- Final convolutional layers: Show the highest-level, most semantically meaningful concept sensitivity This layer-wise profiling helps identify where abstract clinical reasoning emerges in diagnostic models.
Regulatory Relevance in Medical Imaging
TCAV addresses a critical gap in FDA SaMD (Software as a Medical Device) explainability requirements. Unlike saliency maps that highlight pixels, TCAV answers: 'Does this model understand the clinical concept of a malignant lesion?' Key advantages:
- Auditable: Concepts can be defined by domain experts using standard example images
- Generalizable: A single CAV can test an entire dataset, not just one image
- Clinician-aligned: Explanations use the same high-level vocabulary radiologists use in reports
Limitations and Practical Considerations
While powerful, TCAV has important constraints for production deployment:
- Concept definition quality: Poorly chosen example images produce noisy CAVs that yield misleading sensitivity scores
- Linear separability assumption: Assumes concepts are linearly separable in activation space, which may not hold for complex, entangled clinical features
- Computational cost: Requires training multiple linear classifiers and running statistical tests across many layers and concepts
- Negative results interpretation: A low TCAV score does not definitively prove the model ignores a concept—it may encode it non-linearly
Frequently Asked Questions
Clear, technically precise answers to the most common questions about Testing with Concept Activation Vectors, a method for interpreting neural network internal states using human-defined concepts.
Testing with Concept Activation Vectors (TCAV) is an interpretability method that quantifies a neural network's sensitivity to user-defined, high-level concepts by measuring directional derivatives in the model's activation space. The process works in three stages: first, you curate a set of example images representing a concept (e.g., 'stripes') and a set of random counter-examples. Second, you train a linear classifier—the Concept Activation Vector (CAV)—to separate the concept examples from the random examples in the activation space of a specific layer. Third, you compute the TCAV score, which is the fraction of a target class's inputs whose classification score increases in the direction of the CAV. This score, ranging from 0 to 1, reveals how important that concept is to the model's decision-making for that class. Unlike saliency maps that highlight pixels, TCAV operates at the semantic level, answering questions like 'How much does the concept of 'spiculated margins' influence a model's 'malignant tumor' prediction?'
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Core concepts and methodologies that contextualize TCAV within the broader landscape of interpretable machine learning for high-stakes medical imaging applications.
Concept Bottleneck Models
An inherently interpretable architecture that forces the model to first predict human-understandable concepts from the input, then uses only those concept scores for the final prediction. Unlike TCAV, which probes a black-box model post-hoc, CBMs bake explainability into the architecture itself, creating a transparent reasoning bottleneck that can be directly audited by clinicians.
Grad-CAM
A technique for producing visual explanations from convolutional neural networks by using the gradient of a target concept flowing into the final convolutional layer. While TCAV quantifies sensitivity to abstract concepts, Grad-CAM produces coarse localization maps highlighting important regions. The two methods are complementary: TCAV answers 'does this concept matter?' while Grad-CAM answers 'where is it looking?'
SHAP
A unified framework based on Shapley values from cooperative game theory that assigns each feature an importance value for a particular prediction. SHAP operates at the feature level, while TCAV operates at the concept level. For medical imaging, TCAV can test whether a model has learned clinically meaningful concepts like 'spiculated mass' rather than relying on pixel-level SHAP attributions.
Faithfulness Score
A quantitative metric that evaluates explanation accuracy by measuring how well attributed importance scores correlate with actual model output changes when features are perturbed. TCAV's TCAV score itself functions as a faithfulness metric for concept-level explanations, validated through statistical significance testing across multiple random concept examples.
Regulatory Explainability
The specific transparency requirements mandated by health authorities like the FDA and under regulations such as the EU MDR. TCAV directly supports regulatory submissions by providing quantitative, statistically validated evidence that a diagnostic model relies on clinically relevant concepts rather than spurious correlations, addressing the auditability demands of SaMD clearance pathways.
Domain-Specific Saliency
Saliency maps constrained by prior knowledge from the application domain, such as anatomical atlases in medical imaging. TCAV operationalizes this by allowing radiologists to define concept activation vectors for domain-specific notions like 'ground-glass opacity' or 'pleural effusion,' ensuring explanations are physiologically plausible and clinically meaningful rather than purely data-driven.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us