An Interpretability Evaluation Benchmark for Pre-trained Language Models

Yaozong Shen, Lijie Wang, Ying Chen, Xinyan Xiao, Jing Liu, Hua WuarXiv 2022 · DOI

Introduction

Pre-trained language models (PLMs) such as BERT and RoBERTa have fundamentally shifted the landscape of Natural Language Processing. However, these models often operate as "black boxes," where high predictive accuracy on downstream tasks does not necessarily imply a robust understanding of the underlying logic. Researchers from Baidu have addressed this interpretability gap by introducing a comprehensive dual-purpose benchmark designed to evaluate both the predictive performance and the internal rationales of PLMs across five critical dimensions: grammar, semantics, knowledge, reasoning, and computation.

Methodology and Task Design

The proposed framework evaluates models through a cloze-style task, requiring them to predict a masked token within a sentence. Beyond simple accuracy, the benchmark assesses interpretability using two primary metrics:

  1. Plausibility: Measured via Token F1-score, this evaluates how closely a model's identified "rationales" (the tokens most influential to its prediction) align with human-annotated logic.
  2. Faithfulness: This measures the consistency of a model's reasoning when subjected to input perturbations, such as swapping synonyms or converting a sentence from active to passive voice.

To extract these rationales, the researchers compared Attention-based (ATT) weights against Integrated Gradients (IG), seeking to determine which method more accurately reflects the model's internal decision-making process.

Examples of masked inputs and golden answers across the five evaluation dimensions.

Benchmark Composition

The benchmark spans both English and Chinese languages, utilizing diverse data sources to populate its five dimensions. For instance, English knowledge tasks are derived from FreebaseQA, while reasoning tasks utilize the COPA dataset. This multi-dimensional approach ensures that models are tested not just on linguistic patterns, but on their ability to handle factual recall and logical deduction.

Statistical summary of the English and Chinese benchmarks, including instance counts and RRL percentages.

Key Findings and Analysis

The evaluation revealed several critical insights into the current state of PLMs:

  • Linguistic Proficiency vs. Knowledge Deficits: While models like RoBERTa-large excel in grammar (83.3% accuracy), they perform poorly on knowledge-heavy tasks (8.8%) and basic computation (6.7%). This suggests that PLMs are proficient at structural mimicry but lack a deep understanding of external facts.
  • Syntactic Fragility: Models are highly sensitive to structural changes. In the Chinese dataset, RoBERTa-base experienced a 15.3% drop in semantic accuracy when sentences were transformed syntactically (e.g., active to passive), indicating a reliance on specific word orders rather than abstract meaning.
  • Interpretability Gaps: Plausibility scores generally remained low (F1-scores between 0.30 and 0.60), showing a significant disconnect between model rationales and human intuition. Interestingly, larger models did not always provide more human-like rationales; in some cases, base-sized models demonstrated higher faithfulness.
  • Superiority of Attention: Attention-based rationales were found to be more plausible and faithful than those derived from Integrated Gradients, suggesting that self-attention mechanisms provide a more reliable window into the model's predictive logic.

Conclusion and Future Directions

The study highlights that while PLMs are linguistic "wizards," they remain brittle when faced with tasks requiring factual consistency or mathematical reasoning. The benchmark serves as a diagnostic tool, revealing that high accuracy can often mask a lack of robust reasoning. Future work is expected to expand this evaluation to generative architectures like GPT-4 and explore new training objectives that bridge the gap between statistical prediction and human-like understanding.

Summary updated

BibTeX
@misc{shen2022interpretability,
  author = {Yaozong Shen and Lijie Wang and Ying Chen and Xinyan Xiao and Jing Liu and Hua Wu},
  title = {{An Interpretability Evaluation Benchmark for Pre-trained Language Models}},
  year = {2022},
  eprint = {2207.13948},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.13948},
}
Figure