Editable Concept Bottleneck Models

Lijie Hu, Chenyang Ren, Zhengyu Hu, Hongbin Lin, Cheng-Long Wang, Zhen Tan, Weimin Lyu, Jingfeng Zhang, Hui Xiong, Di Wang

Introduction

Concept Bottleneck Models (CBMs) have gained significant traction as an "explainable by design" AI architecture. Instead of mapping inputs directly to outputs in a black-box manner, CBMs first predict a set of human-understandable concepts (e.g., "has wings," "beak shape") and then use those intermediate concepts to make a final classification.

However, CBMs suffer from a major practical flaw: rigidity. In real-world scenarios, data is inherently messy. Researchers frequently discover mislabeled concepts, identify spurious correlations that lead to bias, or need to remove specific data points for privacy reasons. Traditionally, fixing these issues required retraining the entire model from scratch. As models scale, this process becomes computationally prohibitive.

To address this gap, researchers have introduced Editable Concept Bottleneck Models (ECBMs). By leveraging influence functions and efficient curvature approximations, ECBMs allow practitioners to surgically update interpretable AI models in minutes rather than hours, all while maintaining near-perfect predictive accuracy.

Methodology: Three Levels of Editing

The core innovation of ECBMs lies in using influence functions to estimate how model parameters would change if the training data were modified, bypassing the need for full retraining. Because CBMs operate in two stages (a concept predictor followed by a label predictor), the authors developed a two-stage editing approach. They first approximate the change in the concept predictor and then propagate that change through to the final label predictor.

The framework is designed to support three distinct levels of editing operations:

Three levels of data editing supported by ECBMs: concept-label-level, concept-level, and data-level.
  1. Concept-label-level: Correcting a specific concept annotation for an individual image (e.g., fixing a mislabeled "wing color").
  2. Concept-level: Adding or removing an entire concept across the whole dataset. To handle the architectural shift when the number of inputs to the final layer changes, the authors use a clever dimension alignment technique—inserting zero vectors to keep the math consistent.
  3. Data-level: Completely removing a specific training sample, which is highly useful for privacy compliance or "unlearning" poisoned data.

Calculating influence functions typically requires inverting a massive Hessian matrix (the second derivative of the loss), which is computationally brutal. To make these edits feasible, ECBMs utilize Eigenvalue-corrected Kronecker-Factored Approximate Curvature (EK-FAC) to efficiently approximate this inverse, reducing edit times to mere seconds or minutes.

Key Insights and Discoveries

  • Surgical vs. Global Updates: The research demonstrates that fixing a local error does not require revisiting the entire dataset. The influence function acts as a "mathematical scalpel," adjusting only the necessary parameters.
  • Concept Importance Discovery: Beyond editing, influence functions can rank concepts by their importance. By removing the "most influential" concepts and observing the resulting performance drop, the authors proved that their method accurately identifies which features drive the model's logic.
  • The Unlearning Connection: Data-level editing functions as a form of Machine Unlearning. ECBMs can effectively "forget" a data point, making the model behave as if it had never seen it.

Empirical Results

The researchers evaluated ECBMs on three diverse benchmarks: OAI (medical X-ray grading), CUB (fine-grained bird identification), and CelebA (facial attributes). The quantitative results indicate that ECBMs achieve high efficiency with negligible utility loss.

  • Massive Speedups: On the OAI dataset, retraining from scratch takes roughly 298 minutes. ECBM performs the exact same update in just 2.36 minutes. On the CUB dataset, the time dropped from 85 minutes to a mere 0.65 minutes.
  • Accuracy Preservation: The F1 scores of edited ECBMs are nearly identical to models retrained from scratch. For example, on the OAI dataset, the retrained model achieved an F1 score of 0.8825, while the ECBM edit achieved 0.8808.
  • Privacy Defense: Using Membership Inference Attacks (MIAs), the authors tested the model's ability to protect user data.
RMIA score distributions before and after editing, demonstrating successful unlearning of a data point.

As shown above, after "editing out" a data point, the model's behavior toward that specific point shifted entirely to match the distribution of a non-member, proving the edit successfully removed the sample's influence.

Limitations and Future Work

While ECBMs offer a massive leap forward, some limitations remain. Influence functions rely on Taylor expansions (linear approximations). Although the paper shows stability over 10 rounds of periodic editing, approximation errors could accumulate in highly non-linear or extremely long-term editing scenarios. Additionally, the current rigorous proofs focus primarily on CBMs where the label predictor is a linear transformation. Extending these guarantees to deep, non-linear label predictors remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{hu2025editable,
  author = {Lijie Hu and Chenyang Ren and Zhengyu Hu and Hongbin Lin and Cheng-Long Wang and Zhen Tan and Weimin Lyu and Jingfeng Zhang and Hui Xiong and Di Wang},
  title = {{Editable Concept Bottleneck Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=R0R3MRD8vh},
}
Figure