Post-hoc Concept Bottleneck Models

Mert Yuksekgonul, Maggie Wang, James Zou

Deep learning models are notoriously opaque, often acting as "black boxes." Concept Bottleneck Models (CBMs) were introduced to solve this by forcing models to predict human-interpretable concepts (e.g., "wings," "beak color") before predicting the final label.

However, standard CBMs face significant practical hurdles:

  1. The Data Tax: They require dense annotations, meaning every training image must be labeled with every relevant concept—a prohibitively expensive task.
  2. The Accuracy Tax: Constraining a model to a small set of concepts often degrades performance compared to unrestricted models.
  3. Static Interpretability: While they explain why a model failed on a specific image, fixing the model's logic globally remains difficult.

To address these limitations, researchers have introduced Post-hoc Concept Bottleneck Models (PCBMs). PCBMs allow users to convert any pre-trained neural network into an interpretable model without sacrificing accuracy or requiring exhaustive concept annotations.

The PCBM Architecture

PCBMs decouple concept learning from the original model training, allowing interpretability to be applied "post-hoc" to models already in production.

The PCBM Pipeline

The process works in three main steps:

  • Step 1: Defining the Concept Subspace: Instead of training from scratch, PCBMs use a pre-trained backbone (like ResNet or CLIP). They build a "Concept Bank" using Concept Activation Vectors (CAVs). If labeled image data for concepts is unavailable, PCBMs leverage multimodal models like CLIP's text encoder to turn natural language descriptions (e.g., "stripes") into vectors in the embedding space.
  • Step 2: Projection: High-dimensional embeddings from the backbone are projected onto this concept subspace, transforming abstract vectors into readable "concept scores."
  • Step 3: Interpretable Predictor: A simple, sparse linear model is trained on these concept scores to predict the final class.

The Hybrid Approach (PCBM-h)

To eliminate the "accuracy tax," the authors introduce a residual predictor. If the chosen concepts aren't sufficient to match the original model's performance, a residual layer captures the "leftover" information from the embeddings. This ensures the PCBM-h is at least as accurate as the original black-box model, providing a safety net where the concept library is incomplete.

Key Insights and Results

The authors evaluated PCBMs across diverse domains, including general image classification (CIFAR), fine-grained recognition (CUB), and medical imaging (HAM10000, SIIM-ISIC).

  • Zero-Shot Concept Labeling: By using CLIP and ConceptNet (which automatically generates class descriptions, like a "Rose" having "thorns"), the authors bypassed the need for manual concept labeling entirely.
  • Data Efficiency and Performance Parity: PCBMs matched original model accuracy on medical datasets using as few as 8 human-interpretable concepts. On the CUB bird dataset, PCBMs achieved standard CBM performance while requiring 20x fewer concept annotations.
  • Global Model Editing: Because the final layer is a linear combination of concepts, humans can easily "prune" weights. If a model learns a spurious correlation (e.g., "dog" is a feature of "bed"), a user can manually set that weight to zero. In a user study, human-guided pruning recovered nearly 50% of the accuracy gains typically achieved by full model fine-tuning, all without new training data.

Limitations and Future Work

While powerful, PCBMs have limitations. The model is only as interpretable as its concept bank; if crucial features are missing, the hybrid model relies heavily on the opaque residual layer. Additionally, the weights in the linear predictor represent correlations, not causal relationships, meaning pruning might have unintended side effects. Finally, while CLIP excels at general objects, it is less reliable for highly specialized domains (like dermatology) compared to expert-labeled data, suggesting a need for domain-specific multimodal models in the future.

Summary updated

BibTeX
@inproceedings{yuksekgonul2023post,
  author = {Mert Yuksekgonul and Maggie Wang and James Zou},
  title = {{Post-hoc Concept Bottleneck Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=nA5AZ8CEyow},
}
Figure