Boosting Explainability through Selective Rationalization in Pre-trained Language Models

Libing Yuan, Shuaibo Hu, Kui Yu, Le Wu · DOI

Abstract

Selective rationalization—the process of having a model pick a small snippet of text to justify its prediction—notoriously breaks when applied to powerful Pre-trained Language Models (PLMs) like BERT. This paper identifies "token homogeneity" as the primary cause and introduces PLMR, a framework that utilizes model truncation and progressive pruning to extract human-readable, faithful explanations without sacrificing predictive accuracy.

Introduction: The Challenge of Explainable PLMs

In the quest for "Explainable AI," researchers often employ the Selective Rationalization (RNP) framework. This approach operates as a two-player game: a Generator selects a "rationale" (a subset of the input text), and a Predictor makes a decision based solely on that snippet. For instance, if the snippet is "The beer had a foul, skunky smell," and the predictor outputs "Negative," the rationale provides a human-intelligible explanation for the model's logic.

The Selective Rationalization (RNP) framework architecture.

However, replacing simple encoders (like GRUs) with powerful PLMs like BERT often leads to system collapse characterized by two main issues:

  1. Rationalization Degeneration: The model achieves high accuracy using "spurious" snippets that lack actual explanatory power.
  2. Rationalization Failure: The model selects meaningless tokens (e.g., punctuation) yet maintains high performance due to information leakage.

The authors identify token homogeneity as the root cause. In deep PLM layers, global context is baked into every token, making them semantically similar and preventing the Generator from distinguishing between critical evidence and noise.

The PLMR Framework

To address these issues, the authors propose PLMR (Pre-trained Language Model’s Rationalization), incorporating three key architectural innovations:

  • Model Truncation: The PLM is split; earlier layers (where tokens remain distinct) are used for the Generator, while later layers serve the Predictor.
  • Progressive Pruning Layers: To prevent the Generator from over-learning context, dim-reduction layers are inserted to progressively prune irrelevant tokens, forcing the model to narrow its focus across multiple stages.
  • Prediction Regularization ($L_{match}$): A "matching loss" ensures the prediction from the rationale aligns with the prediction from the full text, preventing overfitting to poor rationales and ensuring the selected snippet captures the essence of the input.

Experimental Evaluation

The researchers evaluated PLMR on multi-aspect sentiment analysis benchmarks: BeerAdvocate (aspects: Aroma, Appearance, Palate) and HotelReview. These datasets are challenging due to high correlations between different aspects, which often lead to spurious rationales in baseline models.

Key Results and Insights

PLMR significantly outperforms existing BERT-based rationalization methods and even surpasses traditional GRU-based models, which were previously considered more "explainable."

F1-score comparison across different aspects (Appearance, Aroma, Palate) for GRU and BERT-based models.
  • Performance Gains: On the BeerAdvocate Appearance aspect, PLMR achieved an F1 score of 56.8, a 125% relative improvement over the vanilla RNP framework (25.2).
  • Surpassing Baselines: PLMR produced F1 scores up to 9% higher than GRU-based methods, demonstrating that state-of-the-art encoders can be made explainable.
  • The Context Paradox: Variance-covariance analysis revealed that by the final layer of BERT, token discrepancy drops significantly. The study found that the most effective rationales are generated around layer 7, striking a balance between semantic processing and token heterogeneity.

Conclusion and Future Work

PLMR demonstrates that explainability in PLMs is achievable through strategic architectural constraints. While successful in multi-aspect classification, future research should explore scaling these techniques to generative LLMs and more complex reasoning tasks like natural language inference or long-form document QA.

Summary updated

BibTeX
@inproceedings{yuan2025boosting,
  author = {Libing Yuan and Shuaibo Hu and Kui Yu and Le Wu},
  title = {{Boosting Explainability through Selective Rationalization in Pre-trained Language Models}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2025},
  doi = {10.1145/3690624.3709212},
}
Figure