Interpreting Pretrained Language Models via Concept Bottlenecks

Zhen Tan, Lu Cheng, Song Wang, Yuan Bo, Jundong Li, Huan LiuPAKDD 2023

TL;DR

This paper introduces C³M, a novel framework for making large language models (LLMs) more interpretable by using human-understandable concepts. C³M leverages LLMs like ChatGPT to automatically generate and label these concepts, overcoming the limitations of manual annotation and improving the trade-off between model accuracy and interpretability.

What Problem Does This Paper Address?

Pretrained Language Models (PLMs) like BERT and GPT have achieved remarkable success in Natural Language Processing (NLP). However, their "black-box" nature makes it difficult to understand why they make certain predictions, posing a significant challenge for responsible deployment, especially in critical domains. While methods like analyzing attention weights exist, they often lack clarity and can be misleading. This paper aims to bridge this gap by providing high-level, concept-based explanations for PLM decisions, making them more transparent and trustworthy.

Methods

The core of the proposed solution is the Concept Bottleneck Model (CBM) adapted for PLMs, termed CBE-PLMs. Instead of directly mapping input text to a final prediction, CBE-PLMs first map the text into an intermediate layer of human-comprehensible concepts. The final prediction is then made based on these concepts.

The authors introduce C³M (ChatGPT-guided Concept augmentation with Concept-level Mixup) to address key challenges:

  • Concept Discovery and Annotation: Manually annotating concepts for large datasets is time-consuming and impractical. C³M uses LLMs like ChatGPT to automatically:
  • Augment Concept Sets: Generate new, relevant concepts based on a small set of human-annotated concepts.
  • Annotate Noisy Labels: Assign concept labels (positive, negative, unknown) to unlabeled data, acknowledging that these labels might be noisy.
  • Robustness to Noisy Labels: To handle the inherent noise in LLM-generated labels, C³M employs a Concept-level MixUp mechanism. This technique interpolates between examples with gold-standard concept labels and those with noisy, ChatGPT-generated labels, making the model more robust and improving the interpretability-utility trade-off.
  • Training Strategies: The paper investigates different training strategies for CBE-PLMs, finding that joint training (simultaneously optimizing for concept prediction and task prediction) yields the best results.

Datasets

The experiments were conducted on two datasets:

  • CEBaB: A sentiment classification dataset for restaurant reviews, with human-annotated concepts.
  • IMDB: A movie review dataset, where the authors curated a subset with human-annotated concepts and used the rest as unlabeled data.

The paper also discusses the transformation of these datasets into a format suitable for C³M, including both human-annotated and ChatGPT-generated concept labels.

Key Insights and Ideas

  • Concepts as Bridges: High-level concepts offer a more intuitive and readable explanation for PLM behavior than low-level features like attention weights.
  • LLMs as Concept Generators: ChatGPT can effectively augment concept sets and generate noisy concept labels, significantly reducing the burden of manual annotation.
  • Noisy Labels Can Be Beneficial: Contrary to intuition, learning from noisy concept labels (when handled properly) can actually improve performance, especially on smaller datasets.
  • Concept-level MixUp is Key: The proposed Concept-level MixUp is crucial for making CBE-PLMs robust to the noisy labels generated by LLMs, leading to better interpretability and task performance.
  • Interpretability Doesn't Always Hurt Accuracy: The study suggests that the accuracy-interpretability trade-off is not inherent; well-designed concept learning can even enhance performance, particularly for smaller models.

Key Results

  • CBE-PLMs trained with C³M achieve superior interpretability-utility trade-offs, delivering the best concept-level prediction scores without sacrificing task performance.
  • In some cases, CBE-PLMs trained with C³M even outperform their standard PLM counterparts in task accuracy.
  • For the IMDB dataset, transforming it with ChatGPT-generated labels led to significant improvements in both concept and task predictions for CBE-PLMs.
  • Test-time intervention, where domain experts can interact with the model's concept predictions, shows promise for further improving accuracy and understanding. The C³M framework effectively mitigates performance degradation even with incorrect interventions.

Limitations and Future Work

  • Concept Accuracy Dependency: The approach's effectiveness relies on the accuracy of the predefined concepts, raising concerns about potential bias in concept selection.
  • Large-Scale PLMs: The framework has not yet been extensively tested on very large language models (e.g., Bloom).
  • Prompt Engineering: The performance of LLM-based concept generation can be sensitive to prompt design.
  • Multilingualism: The current work is limited to English tasks; extending it to other languages is a future direction.

The authors envision future work exploring how CBE-PLMs might be more resilient to data biases compared to standard PLMs, potentially offering enhanced fairness by focusing solely on concepts rather than spurious correlations in the data.

Summary updated

BibTeX
@inproceedings{tan2023interpreting,
  author = {Zhen Tan and Lu Cheng and Song Wang and Yuan Bo and Jundong Li and Huan Liu},
  title = {{Interpreting Pretrained Language Models via Concept Bottlenecks}},
  booktitle = {PAKDD},
  year = {2023},
  url = {https://openreview.net/forum?id=OLwfe0ksos},
}
Figure