Abstract
Deep learning models are often criticized for their lack of transparency. While saliency maps identify important pixels and concept-based methods identify high-level features, a gap remains in localizing these concepts and quantifying their specific impact on a per-prediction basis. We present Visual-TCAV, a framework that bridges this gap by combining Concept Activation Vectors (CAVs) with Integrated Gradients. Visual-TCAV generates localized Concept Maps and calculates Concept Attribution scores, providing a dual-view explanation of 'what' a model sees and 'where' it sees it. Our evaluations on ImageNet, CelebA, and controlled datasets demonstrate that Visual-TCAV is more faithful to model behavior than traditional TCAV and offers actionable insights for debugging misclassifications.
Introduction
Convolutional Neural Networks (CNNs) have achieved remarkable performance in image classification but remain largely "black boxes." To interpret these models, researchers typically rely on two distinct approaches: saliency methods (e.g., Grad-CAM) and concept-based methods (e.g., TCAV). Saliency methods produce heatmaps indicating pixel importance but lack semantic context—they show where a model looks, but not what it recognizes. Conversely, concept-based methods identify high-level concepts (e.g., "stripes") important to a class globally but fail to localize these concepts in specific images or quantify their exact contribution to a single prediction. Visual-TCAV addresses this "semantic gap" by unifying localization and attribution within a single framework.
Methodology
The Visual-TCAV pipeline operates in three distinct stages to provide both spatial and numerical explanations.
CAV Generation and Spatial Pooling
Similar to the original TCAV method, Visual-TCAV begins by training a linear classifier to distinguish between a set of "concept" images and a set of random images. The vector orthogonal to the decision boundary represents the Concept Activation Vector (CAV). To adapt this for spatial analysis, Global Average Pooling (GAP) is applied to the CAV to generate a pooled-CAV. This vector serves as a set of weights for the feature maps in a given CNN layer, reflecting the degree to which each map correlates with the target concept.
Concept Map ($M^c$)
The framework generates a Concept Map by performing a weighted sum of the layer's feature maps using the pooled-CAV weights. The resulting heatmap is class-independent and highlights exactly where the network detects the concept within the input image.
Concept Attribution ($Attr^{c,t}$)
To quantify a concept's contribution to a specific classification (e.g., "Zebra"), Visual-TCAV utilizes a modified version of Integrated Gradients (IG). By calculating the attribution of neurons in a hidden layer and using the Concept Map as a spatial mask, the framework ensures that the final attribution score only includes contributions from regions where the concept was actually identified.
Experimental Evaluation
The authors evaluated Visual-TCAV across several benchmarks:
- Standard Datasets: ImageNet was used to test pre-trained architectures (ResNet50V2, InceptionV3, VGG16), while CelebA was used to investigate social biases in binary classification tasks.
- Controlled Validation: A custom "Tagged" dataset was created where images were marked with specific colored squares. This allowed for a "ground truth" comparison, verifying that Visual-TCAV correctly identifies when a model shifts its reliance from the primary object to the artificial tag.
Key Results and Insights
Visual-TCAV reveals that CNNs learn concepts hierarchically; simpler textures are detected in early layers, while complex objects like "cars" are only recognized in deeper layers.
A critical advantage of Visual-TCAV over traditional TCAV is its focus on impact (magnitude) rather than just sensitivity (direction). While a model might be sensitive to "grass" in a golf ball image, Visual-TCAV can determine if "grass" actually drove the final prediction. Furthermore, the method proves effective for debugging; for instance, identifying that a misclassification of an "ox" as a "dalmatian" was caused by an over-reliance on the "spotted" texture concept.
Conclusion
Visual-TCAV provides a comprehensive framework for post-hoc explainability, offering both the semantic "what" and the spatial "where" of model decisions. It demonstrates superior faithfulness to model behavior compared to previous concept-based methods and maintains computational efficiency. Future research will focus on automating concept discovery using multi-modal models and extending the framework to Vision Transformer (ViT) architectures.
Summary updated