Learning Concept Bottleneck Models from Mechanistic Explanations
Organizations: Politecnico di Milano · MIT CSAIL
Abstract
Concept Bottleneck Models (CBMs) aim for ante-hoc interpretability by learning a bottleneck layer that predicts interpretable concepts before the decision. State-of-the-art approaches typically select which concepts to learn via human specification, open knowledge graphs, prompting an LLM, or using general CLIP concepts. However, concepts defined a-priori may not have sufficient predictive power for the task or even be learnable from the available data. As a result, these CBMs often significantly trail their black-box counterpart when controlling for information leakage. To address this, we introduce a novel CBM pipeline named Mechanistic CBM (M-CBM), which builds the bottleneck directly from a black-box model's own learned concepts. These concepts are extracted via Sparse Autoencoders (SAEs) and subsequently named and annotated on a selected subset of images using a Multimodal LLM. For fair comparison and leakage control, we also introduce the Number of Contributing Concepts (NCC), a decision-level sparsity metric that extends the recently proposed NEC metric. Across diverse datasets, we show that M-CBMs consistently surpass prior CBMs at matched sparsity, while improving concept predictions and providing concise explanations. Our code is available at https://github.com/Antonio-Dee/M-CBM.
Figures & tables
| Dataset | CUB | ISIC2018 | ImageNet | |||||
|---|---|---|---|---|---|---|---|---|
| Metrics | Accuracy | Accuracy | Balanced Accuracy | Accuracy | ||||
| Black-box | 76.67% | 79.37% | 75.37% | 76.15% | ||||
| Sparsity | NCC=5 | NCC=avg | NCC=5 | NCC=avg | NCC=5 | NCC=avg | NCC=5 | NCC=avg |
| LF-CBM | 58.08% | 71.09% | 61.44% | 67.55% | 64.29% | 67.30% | 62.20% | 69.08% |
| DN-CBM | 38.21% | 48.98% | 35.38% | 54.61% | 39.85% | 52.85% | 46.71% | 57.24% |
| DN-CBM | 48.12% | 66.19% | 43.92% | 56.08% | 42.47% | 53.56% | 60.23% | 69.98% |
| Dataset | CUB | ISIC2018 | ImageNet | |||
|---|---|---|---|---|---|---|
| Metrics | ROC-AUC | ROC-AUC | ROC-AUC | |||
| Macro | Worst-10% | Macro | Worst-10% | Macro | Worst-10% | |
| VLG-CBM | 62.03% | 45.60% | 73.37% | 52.92% | N/A | N/A |
| M-CBM (Ours) | 90.04% | 79.05% | 80.57% | 66.98% | 88.90% | 78.36% |
Appendix figures & tables23 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | CUB | ISIC2018 | ImageNet |
|---|---|---|---|
| Backbone layer dimension | 512 | 2048 | 2048 |
| Expansion factor | |||
| Optimizer | Adam | Adam | Adam |
| Learning rate | |||
| L1 coefficient ( ) | |||
| Epochs | 1000 | 1000 | 1000 |
| Metric | CUB | ISIC2018 | ImageNet |
|---|---|---|---|
| L2 reconstruction loss | 0.0231 | 0.0066 | 0.0462 |
| Average | 7.66 | 17.14 | 39.23 |
| Recovered loss (CE) | 89.49% | 99.58% | 97.74% |
| Recovered accuracy | 98.39% | acc: 96.08%, bal. acc: 96.84% | 96.68% |
| Method | Dataset | Backbone | Backbone (M) | CBL | CBM (M) | Total (M) |
|---|---|---|---|---|---|---|
| LF-CBM | CUB | ResNet-18 | 11.69 | 208 | 0.15 | 11.84 |
| LF-CBM | ISIC2018 | ResNet-50 | 25.56 | 35 | 0.07 | 25.63 |
| LF-CBM | ImageNet | ResNet-50 | 25.56 | 4523 | 13.79 | 39.35 |
| DN-CBM | CUB | CLIP RN50 | 38.30 | 8192 | 10.04 | 48.34 |
| DN-CBM | ISIC2018 | CLIP RN50 | 38.30 | 8192 | 8.45 | 46.75 |
| DN-CBM | ImageNet | CLIP RN50 | 38.30 | 8192 | 16.59 | 54.89 |
| Metric | Value |
|---|---|
| FPR (poisoned) | 0.232 |
| FPR (normal) | 0.198 |
| Two-proportion -test ( -value) | 0.157 |
| Cohen’s effect size | 0.084 |
| Dataset | CUB | ISIC2018 | ImageNet | |||||
|---|---|---|---|---|---|---|---|---|
| Metrics | Accuracy | Accuracy | Balanced Accuracy | Accuracy | ||||
| Sparsity | NEC=5 | NEC=avg | NEC=5 | NEC=avg | NEC=5 | NEC=avg | NEC=5 | NEC=avg |
| M-CBM | 72.54% | 73.70% | 69.38% | 73.47% | 68.97% | 70.45% | 71.23% | 73.00% |
| Dataset | CUB | ISIC2018 | ImageNet | |||||
|---|---|---|---|---|---|---|---|---|
| Metrics | Accuracy | Accuracy | Balanced Accuracy | Accuracy | ||||
| Sparsity | NCC=5 | NCC=avg | NCC=5 | NCC=avg | NCC=5 | NCC=avg | NCC=5 | NCC=avg |
| M-CBM | 71.40% | 74.02% | 67.33% | 74.25% | 69.26% | 72.20% | 56.76% | 68.76% |
| Dataset | CUB | ISIC2018 | ImageNet | |||
|---|---|---|---|---|---|---|
| Metrics | ROC-AUC | ROC-AUC | ROC-AUC | |||
| Macro | Worst-10% | Macro | Worst-10% | Macro | Worst-10% | |
| M-CBM | 74.49% | 58.14% | 74.36% | 56.53% | 70.97% | 59.28% |
Concept Bottleneck Models
Concept Bottleneck Models route predictions through human-understandable concepts that people can inspect, correct, or intervene on.
See all 82 papers