Testing with Concept Activation Vectors (TCAV) is an interpretability algorithm that explains a neural network's internal state using human-friendly, high-level concepts rather than low-level input features. It produces a quantitative metric, the TCAV score, which measures the sensitivity of a model's predictions for a specific class to a user-defined concept, such as 'stripes' or 'irregular transaction velocity.'
Glossary
TCAV (Testing with Concept Activation Vectors)

What is TCAV (Testing with Concept Activation Vectors)?
An interpretability method that quantifies the influence of human-defined, high-level concepts on a neural network's predictions.
The method works by first defining a concept through a set of example inputs, then training a linear classifier, the Concept Activation Vector (CAV), to separate activations produced by those examples in a chosen network layer. TCAV then computes the directional derivative of the class prediction with respect to this CAV, statistically testing across multiple inputs to determine if the concept is significantly influential for that class, enabling rigorous, concept-level model auditing.
Key Features of TCAV
Testing with Concept Activation Vectors (TCAV) provides human-friendly explanations of neural network decisions by quantifying the influence of high-level concepts rather than low-level input features.
Concept Activation Vectors (CAVs)
The mathematical foundation of TCAV. A CAV is a vector in the activation space of a neural network layer that represents a human-defined concept (e.g., 'stripes', 'doctor', 'fraudulent pattern'). It is derived by training a linear classifier to distinguish between examples of the concept and random counterexamples. The resulting vector points in the direction of the concept, enabling the measurement of conceptual sensitivity.
Directional Derivatives for Sensitivity
TCAV measures a prediction's sensitivity to a concept using directional derivatives. For a given input and a target class, the method computes how much the model's logit for that class changes as the internal activations are nudged along the direction of the CAV. A large positive derivative indicates the concept strongly influenced the prediction toward that class.
The TCAV Score (TCAVq)
The core quantitative metric, TCAVq, represents the fraction of inputs from a target class whose predictions are positively influenced by a given concept. It answers: 'How important is concept C for predicting class k across a dataset?' A score of 0.8 means the concept positively influenced 80% of the class's examples, providing a global, human-relatable measure of model behavior.
Statistical Significance Testing
TCAV incorporates rigorous statistical validation to ensure discovered patterns are not random. It runs a two-sided t-test against a null distribution of random concept vectors. A concept is considered meaningful only if the resulting p-value is below a threshold (typically 0.05), ensuring that only statistically significant conceptual relationships are reported as explanations.
Layer-Agnostic Interpretability
Unlike saliency maps that focus on input pixels, TCAV can probe any hidden layer of a neural network. This allows practitioners to analyze the hierarchy of learned abstractions: lower layers might encode textures, while higher layers encode semantic concepts. This layer-wise analysis reveals how a model progressively transforms raw inputs into high-level reasoning.
Application to Fraud Detection
In financial fraud models, TCAV can test whether a network has learned relevant risk concepts without explicit supervision. Example concepts include:
- 'Velocity spike': A sudden increase in transaction frequency
- 'Mule account pattern': Rapid fund transfer to an external account
- 'Synthetic identity markers': Inconsistent PII combinations This validates that the model's internal logic aligns with domain expertise before deployment.
Frequently Asked Questions
Clear answers to the most common questions about Testing with Concept Activation Vectors (TCAV), a method for interpreting neural networks through human-understandable concepts.
Testing with Concept Activation Vectors (TCAV) is an interpretability method that quantifies the importance of a user-defined, high-level concept to a neural network's prediction. It works by first defining a concept through a set of example inputs (e.g., images of 'stripes' to represent the concept of 'striped'). A linear classifier, known as a Concept Activation Vector (CAV), is trained to distinguish between the activations of a chosen internal network layer for these concept examples and random counter-examples. The CAV defines a direction in the activation space that corresponds to that concept. TCAV then measures conceptual sensitivity by computing the directional derivative of the model's prediction for a target class (e.g., 'zebra') with respect to this concept vector. The final output is the TCAV score, which represents the fraction of test inputs for which the model's prediction was positively influenced by the concept, providing a quantitative, human-friendly explanation.
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
Explore the core interpretability techniques that complement TCAV, enabling auditors and compliance officers to decode complex fraud detection models.
SHAP (SHapley Additive exPlanations)
A game-theoretic framework that assigns each feature an importance value for a particular prediction. Unlike TCAV which measures sensitivity to high-level concepts, SHAP quantifies the exact contribution of raw input features.
- Unifies several existing feature attribution methods
- Provides both local and global interpretability
- Useful for generating adverse action reason codes in credit denial scenarios
Concept Bottleneck Models
A class of interpretable neural networks that first predict a set of human-defined concepts from the input and then use only those concept scores to make the final prediction. This directly aligns with TCAV's goal of explaining models in human-friendly terms.
- Forces the model to learn a reasoning process aligned with human understanding
- Allows intervention on intermediate concept predictions
- Provides a natural audit trail for regulatory review
Counterfactual Explanations
A method that explains a model's decision by identifying the minimal changes to an input instance's features that would alter the prediction to a predefined, desired outcome. While TCAV explains 'what concept matters,' counterfactuals explain 'what would need to change.'
- Answers the question: 'Why was this transaction flagged and not that one?'
- Generates actionable recourse for customers
- Complements concept-based explanations for full auditability
Grad-CAM
A technique for producing visual explanations from convolutional neural networks by using the gradients of a target concept flowing into the final convolutional layer. TCAV extends this idea by quantifying the importance of abstract concepts rather than just spatial regions.
- Produces coarse localization maps highlighting important regions
- Foundational work that inspired concept-based interpretability
- Widely used in medical imaging and diagnostic vision systems
Layer-wise Relevance Propagation (LRP)
A technique for explaining deep neural network predictions by decomposing the output score and redistributing it backwards through the network's layers using local conservation rules. TCAV differs by measuring directional derivatives toward concept vectors rather than pixel-level relevance.
- Provides fine-grained feature attribution
- Satisfies a conservation property from output to input
- Useful for debugging model reliance on spurious correlations
Algorithmic Audit Trail
A comprehensive, chronological record of the data, model parameters, decisions, and logic used by an algorithmic system for a specific transaction. TCAV-based explanations can be embedded within these trails to demonstrate that decisions align with approved concepts.
- Provides full traceability for regulatory review
- Essential for model risk management in financial services
- Integrates with continuous model evaluation frameworks

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