Inferensys

Glossary

Concept-Based Explanations

A class of interpretability techniques that structure justifications around high-level, human-understandable concepts rather than low-level input features or individual pixels.
Data engineer managing feature store on laptop, feature definitions visible, casual data engineering session.
HIGH-LEVEL INTERPRETABILITY

What is Concept-Based Explanations?

Concept-based explanations provide justifications for model predictions structured around high-level, human-understandable concepts rather than low-level input features or individual pixels.

Concept-Based Explanations are interpretability outputs that articulate a model's reasoning by referencing abstract, semantically meaningful ideas (e.g., 'stripes,' 'wheel,' or 'metal texture') instead of raw input features like pixel intensities. This approach bridges the gap between opaque numerical representations and human cognition by testing how sensitive a prediction is to the presence of a specific, user-defined concept. The core mechanism involves Concept Activation Vectors (CAVs) , which are mathematical directions in the model's activation space that correspond to a human-interpretable concept, enabling quantitative testing of concept influence.

Unlike low-level feature attribution methods such as SHAP or LIME, which highlight salient pixels or words, concept-based methods operate at the level of abstraction that domain experts and end-users naturally employ. This makes them particularly valuable for validating model alignment with domain knowledge, auditing for spurious correlations, and satisfying regulatory requirements for meaningful explanations under frameworks like the GDPR Right to Explanation. The technique is foundational to building Self-Explaining Neural Networks (SENNs) and generating Faithful Rationales that reference genuine learned concepts rather than post-hoc justifications.

HIGH-LEVEL INTERPRETABILITY

Core Characteristics of Concept-Based Explanations

Concept-based explanations justify model decisions using human-understandable abstractions rather than raw input features, bridging the gap between neural network internals and domain expertise.

01

Concept Activation Vectors (CAVs)

CAVs represent a direction in the model's activation space that corresponds to a human-friendly concept (e.g., 'stripes', 'doctor', 'confidential'). The technique, formalized in TCAV (Testing with CAV), measures how sensitive a prediction is to a concept by calculating the directional derivative of the model's output toward the CAV.

  • How it works: A linear classifier is trained to distinguish between activations of concept examples and random counterexamples
  • Key metric: TCAV score quantifies the fraction of inputs where the concept positively influenced the prediction
  • Example: A dermatology model's 'irregular border' concept should strongly influence melanoma classification
Directional
Activation Space Encoding
02

Concept Bottleneck Models (CBMs)

CBMs are architectures that force the model to predict human-specified concepts as an intermediate layer before making the final prediction. This creates an inherent bottleneck where the model must first recognize concepts like 'bone spurs' or 'joint space narrowing' before diagnosing osteoarthritis.

  • Training: Requires datasets annotated with both input features and concept labels
  • Intervention: Domain experts can manually correct mispredicted concepts at test time to improve final accuracy
  • Trade-off: Slight accuracy reduction in exchange for complete concept-level transparency
03

Post-Hoc Concept Extraction

Unlike CBMs which bake concepts into the architecture, post-hoc methods discover concepts from a trained model's internal representations without architectural modification. Techniques include clustering activations, matrix factorization, and probing with concept datasets.

  • ACE (Automatic Concept Extraction): Aggregates image patches that strongly activate specific filters, then clusters them into meaningful concepts
  • Network Dissection: Aligns individual neurons with human-labeled visual concepts by measuring intersection-over-union scores
  • Limitation: Discovered concepts may not perfectly align with human-interpretable categories
04

Logical Concept Reasoning

This approach structures explanations as logical combinations of concepts using formal operators like AND, OR, and NOT. Instead of just listing relevant concepts, the system explains that a decision was made because 'concept A AND concept B were present, but concept C was absent.'

  • Form: If-then rules over concept presence/absence (e.g., 'IF stripes AND fangs THEN venomous')
  • Advantage: Produces verifiable, rule-based justifications that align with expert diagnostic criteria
  • Challenge: Real-world concepts often have fuzzy boundaries that resist strict logical formalization
05

Concept Attribution Scores

Quantifies how much each concept contributed to a specific prediction, analogous to feature attribution but operating at the concept level. Methods extend SHAP, Integrated Gradients, or attention weights to concept dimensions rather than raw input tokens.

  • ConceptSHAP: Adapts Shapley values to assign importance to concepts by masking concept activations
  • Use case: A loan denial explanation showing 'debt-to-income ratio' contributed 60% while 'employment stability' contributed 25%
  • Output: Ranked list of concepts with normalized contribution percentages
Ranked
Contribution Ordering
06

Multimodal Concept Grounding

Extends concept-based explanations across multiple data modalities by aligning concepts in a shared semantic space. A concept like 'aggressive driving' can be grounded simultaneously in video (sudden lane changes), audio (engine revving), and telemetry (rapid acceleration).

  • Cross-modal alignment: Uses contrastive learning to map concepts from different modalities into a joint embedding space
  • Application: Autonomous vehicle incident explanations referencing visual, auditory, and sensor concepts simultaneously
  • Requirement: Paired multimodal datasets with concept annotations across all modalities
CONCEPT-BASED EXPLANATIONS

Frequently Asked Questions

Explore the mechanics of justifications structured around high-level, human-understandable concepts rather than low-level input features. These FAQs clarify how concept-based explanations bridge the gap between opaque model internals and actionable human understanding.

A concept-based explanation is a model interpretation technique that justifies predictions using high-level, human-understandable ideas (like 'stripes' or 'metallic texture') rather than raw input features (like individual pixel values). While feature attribution methods assign importance scores to specific input variables, concept-based explanations operate in a semantically meaningful space. This is achieved by mapping latent model representations to a vocabulary of user-defined concepts using techniques like Concept Activation Vectors (CAVs). The primary advantage is that a rationale like 'this X-ray was classified as malignant due to the presence of spiculated margins' is far more actionable for a radiologist than a heatmap of pixel intensities, aligning machine logic with domain expertise.

Prasad Kumkar

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.