TL;DR
OpenCBM is the first Concept Bottleneck Model (CBM) that supports an open vocabulary, breaking the "closed-world" limitation of traditional interpretable models. It allows users to dynamically add, remove, or replace concepts at inference time without retraining the model, all while outperforming previous state-of-the-art CBMs by 9% in classification accuracy.
What Problem Does This Paper Address?
Concept Bottleneck Models (CBMs) are popular "interpretable-by-design" frameworks. Instead of mapping an image directly to a label, they first predict a set of human-understandable concepts (e.g., "yellow belly," "black wings") and then use those concepts to make a final classification. This transparency allows humans to see why a model made a decision and even intervene if a concept is mispredicted.
However, existing CBMs suffer from a major flaw: they operate under a closed-world assumption. The concepts must be fixed during training, whether they come from manual dataset annotations or are pre-generated by a Large Language Model (LLM). If a practitioner deploys a bird-classifier CBM and later wants to know if the model is accidentally relying on background features like "sky" or "tree," or if they want to evaluate a newly relevant concept like "belly pattern," traditional CBMs require completely retraining the network.
Methods
The authors introduce OpenCBM, which decouples the concept definition from the model training phase. The architecture relies on three main steps:
- Prototype-Based Feature Space Alignment: Instead of using a frozen vision-language model (like CLIP) directly, the authors train a custom feature extractor (e.g., ResNet18) alongside an adapter layer. To ensure the text space and visual space remain aligned, they compute "class prototypes" by averaging the frozen CLIP image embeddings for all images in a given class. The trainable feature extractor is then forced to align its outputs with these prototypes using a cosine similarity loss ($\mathcal{L}_{align}$).
- Simultaneous Classification Training: While aligning the feature space, the model simultaneously trains a standard linear classification head ($\mathbf{v}_c$) using standard cross-entropy loss ($\mathcal{L}_{cls}$) to maximize downstream task accuracy.
- Classification Head Reconstruction: At inference time, when a user provides an arbitrary set of text concepts, these concepts are embedded using CLIP's text encoder ($\mathbf{t}_i$). The pre-trained classification head ($\mathbf{v}_c$) is then mathematically reconstructed as a linear combination of these concept embeddings. The resulting coefficients ($\alpha_{ci}$) represent the importance of each concept for that class.
Discovering Missing Concepts
If a user provides an incomplete or poor set of concepts, the reconstruction will leave a large error margin, or residual ($\mathbf{R}_c$). OpenCBM introduces an iterative matching algorithm that searches a massive dictionary of concepts (or LLM-generated terms) to find the text embeddings closest to this residual vector, effectively uncovering the "missing" concepts the model used but the user forgot to ask about.
Datasets
The model was primarily trained and evaluated on CUB-200-2011, a benchmark dataset for fine-grained bird species classification containing 200 classes. Additional validation results on CIFAR100 are provided in the paper's appendix.
Key Insights and Ideas
- Trainable Feature Extractors Beat Frozen Backbones: Directly using a frozen CLIP image encoder often underperforms on fine-grained downstream tasks. By training a dedicated feature extractor and aligning it to class prototypes rather than individual image samples, OpenCBM retains CLIP's rich vision-language alignment while becoming highly discriminative for the specific task.
- Post-Hoc Interpretation as a Decomposition Problem: By treating interpretation as a post-training linear regression problem (decomposing a trained classification weight vector into text concept vectors), the model achieves total flexibility. Concepts can be swapped out instantly because the underlying image representations never have to change.
- Residuals Contain Semantic Meaning: The leftover error after concept reconstruction isn't just random noise. Because the feature space is aligned with CLIP, the residual vector physically points toward missing semantic concepts in the embedding space, acting as a tool for knowledge discovery.
Key Results
- State-of-the-Art Accuracy: On the CUB-200-2011 dataset, OpenCBM achieved 83.3% accuracy, outperforming the previous best interpretable CBM (Label-free CBM at 74.3%) by 9%.
- Beating the Black Box: Surprisingly, OpenCBM also outperformed a standard, non-interpretable black-box ResNet18 baseline (79.9%) by 3.4%, demonstrating that prototype alignment serves as an excellent regularizer.
- Effective Concept Editing: The authors successfully demonstrated that removing a concept (like a specific class name) from the model's available vocabulary caused a targeted performance drop only in the corresponding classes, validating that the text-to-visual alignment functions as intended.
Limitations and Future Work
The primary limitation of OpenCBM is its dependence on the underlying vision-language model (VLM). If the pre-trained CLIP space lacks the capacity to distinguish or understand a highly specific or niche textual concept, OpenCBM will fail to ground that concept accurately in the visual features.
The authors note that their framework is architecture-agnostic, meaning OpenCBM's performance and vocabulary richness will naturally scale as more powerful, next-generation vision-language models become available.
Summary updated