Abstract
Concept-based explainability methods use human-understandable intermediaries to produce explanations for machine learning models. These methods assume concept predictions can help understand a model's internal reasoning. In this work, we assess the degree to which such an assumption is true by analyzing whether concept predictors leverage "relevant" features to make predictions, a term we call locality. Concept-based models that fail to respect localities also fail to be explainable because concept predictions are based on spurious features, making the interpretation of the concept predictions vacuous. To assess whether concept-based models respect localities, we construct and use three metrics to characterize when models respect localities, complementing our analysis with theoretical results. Each of our metrics captures a different notion of perturbation and assess whether perturbing "irrelevant" features impacts the predictions made by a concept predictors. We find that many concept-based models used in practice fail to respect localities because concept predictors cannot always clearly distinguish distinct concepts. Based on these findings, we propose suggestions for alleviating this issue.
Introduction
Concept Bottleneck Models (CBMs) are a prominent class of "interpretable by design" neural networks. Instead of mapping an input $x$ directly to a label $y$, CBMs first predict a set of intermediate human-understandable concepts $c$ (e.g., "has wings," "red breast") which are then used to determine the final output (e.g., "Robin"). This architecture is designed to ensure that the model's reasoning is grounded in concepts that humans can verify.
However, a critical assumption underlying CBMs is that the prediction of a concept is actually based on the features relevant to that concept. If a model predicts "Red Fruit" not by identifying the fruit's color and shape, but by recognizing the "Fruit Bowl" it typically occupies, the resulting explanation is misleading. This paper formalizes the concept of locality—the requirement that a concept predictor should only rely on features within the concept's spatial or semantic domain—and investigates whether modern CBMs adhere to this principle.
Methodology: Measuring Locality
To evaluate the extent to which CBMs respect locality, the authors introduce three distinct metrics, each targeting a different aspect of model behavior under perturbation:
- Locality Leakage (Adversarial): This metric uses adversarial attacks to determine if a concept prediction can be significantly altered by perturbing features outside the concept's defined local region. High leakage indicates the model is over-reliant on global context.
- Locality Intervention (In-distribution): This assesses how concept predictions change when the background is swapped with another valid background from the dataset while the ground-truth concept remains constant.
- Locality Masking (Out-of-Distribution): This compares the impact of masking "relevant" features (the concept itself) versus "irrelevant" features (the background). A faithful model's accuracy should drop sharply when relevant features are masked and remain stable when irrelevant ones are removed.
Theoretical analysis (Theorem 6.1) supports these metrics, proving that high concept correlation in a dataset allows a model to achieve high accuracy while completely ignoring the actual features of the target concept.
Experimental Setup
The study utilizes three primary datasets to test these metrics:
- Synthetic Shapes: A controlled environment where geometric shapes are placed in fixed grid locations, providing ground truth for localities.
- CUB (Caltech-UCSD Birds): A real-world dataset where concepts correspond to bird body parts (e.g., beak shape, wing color).
- COCO (Common Objects in Context): Used to predict object presence as concepts for downstream classification tasks.
Key Results and Insights
The Depth Trap
A significant finding is that model depth inversely correlates with locality. While deeper networks often achieve higher raw concept accuracy, they are significantly more prone to "leakage." For instance, in synthetic tests, 7-layer models reached a leakage score of 1.0, meaning their concept predictions could be entirely flipped by changing pixels unrelated to the concept.
The Role of Data Diversity
Datasets with high diversity in concept combinations—where a concept appears in many different contexts—force models to learn the actual features of the concept. Conversely, highly correlated datasets (like CUB, where head and tail colors often match) allow models to "cheat" by looking at correlated but irrelevant parts of the image, such as predicting tail color by looking at the bird's breast.
Architecture Comparisons
Vanilla CBMs performed the worst on locality tests. Advanced variants like Concept Embedding Models (CEM) and Probabilistic CBMs (ProbCBM) showed better results, reducing leakage to approximately 0.6-0.7, though they still fall short of ideal locality. Interestingly, "label-free" CBMs utilizing Vision-Language Models like CLIP performed poorly, as they tend to treat concepts as global image properties rather than local features.
Conclusion
This research highlights a fundamental tension in interpretable machine learning: high predictive accuracy does not guarantee a faithful or local explanation. If a model is deep and the training data contains strong correlations, the "interpretable" bottleneck may simply be a black box leveraging spurious features. Future work is needed to develop architectural constraints that strictly enforce locality across different data modalities and tasks beyond classification.
Summary updated