A Concept Activation Vector (CAV) is a vector in the activation space of a neural network layer that represents a human-interpretable concept, such as 'stripes,' 'wrinkles,' or 'redness.' It is derived by collecting activations from examples of the concept and from random negative examples, then training a linear classifier to distinguish between them. The resulting hyperplane normal defines the concept's direction, enabling quantitative analysis of how strongly a model's internal representations align with semantic abstractions.
Glossary
Concept Activation Vector (CAV)

What is Concept Activation Vector (CAV)?
A Concept Activation Vector (CAV) is a direction in a neural network's activation space that encodes a high-level, human-understandable concept, learned by training a linear classifier to separate examples of that concept from random counterexamples.
CAVs form the foundation of Testing with CAVs (TCAV), where the directional derivative of a class prediction with respect to the CAV measures concept sensitivity. This approach bridges the gap between opaque feature attribution and human reasoning by operating on semantically meaningful dimensions rather than raw input features. CAVs are validated through statistical significance testing against random vectors, ensuring the discovered direction genuinely encodes the intended concept rather than representing a spurious correlation in the activation space.
Key Characteristics of CAVs
Concept Activation Vectors (CAVs) provide a bridge between the opaque, high-dimensional activation space of a neural network and human-understandable semantics. The following cards break down the core properties that define how CAVs are derived, validated, and utilized for interpretability.
Linear Separability in Activation Space
The foundational assumption of a CAV is that a high-level concept can be represented as a linear direction in a layer's activation space. A CAV is derived by training a linear classifier to distinguish between a set of example inputs that represent the concept and a set of random counterexamples. The resulting vector, orthogonal to the decision boundary, points in the direction of increasing concept presence. This linearity is crucial for interpretability, as it allows for simple vector arithmetic and directional derivative calculations.
- Input: Concept examples vs. random examples.
- Process: Train a linear SVM or logistic regression model.
- Output: A vector (the CAV) normal to the classifier's decision boundary.
Statistical Significance via TCAV
A raw CAV is just a vector; its explanatory power is validated through Testing with CAVs (TCAV) . TCAV quantifies a model's sensitivity to a concept by measuring the directional derivative of a class prediction score along the CAV's direction. To ensure this sensitivity is not a random artifact, TCAV performs a two-sided t-test comparing the sensitivity scores from the real CAV against scores from thousands of random vectors. A concept is only considered meaningful if it passes this statistical significance test, providing a rigorous, user-defined hypothesis test for model behavior.
Concept Discovery and Extraction
While CAVs are often user-defined, they can also be automatically discovered. Automatic Concept Extraction (ACE) is an algorithm that segments input images into diverse patches, clusters them based on their activation patterns in a network, and then tests each cluster's significance using TCAV. This process surfaces the concepts a model has learned organically, which may include both expected features and surprising, spurious correlations. This capability transforms CAVs from a purely hypothesis-testing tool into a powerful model auditing and debugging instrument.
Concept Manipulation and Erasure
CAVs are not just for passive observation; they are tools for active intervention. Concept Intervention involves directly editing a model's activations by adding or subtracting a scaled CAV during inference to amplify or suppress a concept, enabling causal tests of its influence. For a more permanent solution, Concept Erasure projects activations onto a subspace orthogonal to a CAV, effectively removing all linear information about a sensitive concept (e.g., a protected attribute) from the network's representation, which is a critical technique for fairness and privacy.
Global and Local Explanations
CAVs provide a unified framework for both global model understanding and local prediction explanation. Globally, the TCAV score reveals the overall importance of a concept for an entire class. Locally, the Concept Sensitivity Map can be generated by computing the directional derivative of a single prediction with respect to a CAV, highlighting the specific input regions that most strongly encode the concept for that particular instance. This dual granularity makes CAVs versatile for both high-level model auditing and fine-grained debugging of individual decisions.
Human-Interpretable Semantics
The core value of a CAV is its alignment with human-understandable concepts like 'stripes,' 'wheels,' or 'doctor's coat,' rather than uninterpretable pixel patterns. This is achieved by defining the concept through a curated set of exemplar data. The quality and coherence of this dataset are paramount; a poorly defined concept will yield a meaningless CAV. This direct mapping between a semantic idea and a mathematical vector allows engineers and domain experts to formulate precise, testable hypotheses about a model's internal reasoning, bridging the gap between high-level domain knowledge and low-level network activations.
Frequently Asked Questions
Clear answers to the most common questions about Concept Activation Vectors and their role in making neural network decisions human-interpretable.
A Concept Activation Vector (CAV) is a direction in a neural network's activation space that represents a high-level, human-understandable concept. It is derived by training a linear classifier to distinguish between the activations produced by examples of a target concept (e.g., 'stripes') and those produced by random counterexamples. The resulting vector normal to the classifier's decision boundary encodes the concept's semantic direction. Once a CAV is obtained, you can measure how sensitive a model's prediction is to that concept by computing the directional derivative of the prediction score along the CAV direction. This forms the basis of Testing with CAVs (TCAV), which provides a global, quantitative explanation of how important a user-defined concept is for a specific class prediction across an entire dataset.
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
Concept Activation Vectors are the foundational unit of concept-based interpretability. These related terms define the ecosystem of methods for discovering, testing, and manipulating the high-level abstractions that neural networks learn.
Testing with CAVs (TCAV)
The primary application of CAVs that produces a quantitative metric called the TCAV score. This score represents the fraction of a target class's inputs whose predictions are positively influenced by a concept.
- Computes the directional derivative of logit values toward the CAV
- Uses a two-sided t-test against random vectors to establish statistical significance
- Outputs a score between 0 and 1 indicating concept sensitivity
- Enables hypothesis testing like "how sensitive is 'zebra' prediction to the 'stripes' concept?"
Concept Bottleneck Models (CBM)
An inherently interpretable architecture that forces the model to predict human-specified concepts as an intermediate step before making the final classification.
- First layer predicts concept scores (e.g., 'wing color', 'beak shape')
- Final layer uses only concept scores as input for the task prediction
- Allows direct intervention: correcting a mispredicted concept immediately fixes downstream errors
- Trade-off: requires fully annotated concept labels during training
Automatic Concept Extraction (ACE)
An algorithm that discovers concepts automatically rather than requiring manual definition. ACE clusters image segments that produce similar activation patterns across a dataset.
- Segments images into multi-resolution patches using superpixel methods
- Clusters patches by their activation similarity in a target layer
- Filters out outliers and tests remaining clusters with TCAV for significance
- Returns a set of discovered concepts with human-interpretable visual examples
ConceptSHAP
Applies Shapley value theory to concept-based explanations, quantifying each concept's marginal contribution to a prediction.
- Treats concepts as cooperative game players
- Computes the average change in prediction when a concept is added across all possible concept coalitions
- Satisfies axioms of efficiency, symmetry, dummy, and additivity
- Provides a theoretically grounded alternative to sensitivity-based concept importance
Concept Erasure
A technique for removing sensitive or unwanted concepts from a model's latent representations through orthogonal projection.
- Identifies the concept direction via a linear probe or CAV
- Projects activations onto the nullspace of the concept vector
- Removes information like protected attributes (race, gender) while preserving task-relevant features
- Used for fairness interventions and controlled feature removal experiments
Concept Whitening
A module that replaces batch normalization layers to align latent space axes with predefined concepts, producing a disentangled representation.
- Whitens activations to remove correlations
- Rotates the whitened space so each axis corresponds to a known concept
- The activation magnitude along an axis directly indicates concept presence
- Enables interpretability without sacrificing model performance

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