Explanation Regularisation through the Lens of Attributions

Pedro Ferreira, Wilker Aziz, Ivan Titov

Abstract

Explanation regularisation (ER) has been introduced as a way to guide text classifiers to form their predictions relying on input tokens that humans consider plausible. This is achieved by introducing an auxiliary explanation loss that measures how well the output of an input attribution technique for the model agrees with human-annotated rationales. The guidance appears to benefit performance in out-of-domain (OOD) settings, presumably due to an increased reliance on "plausible" tokens. However, previous work has under-explored the impact of guidance on that reliance, particularly when reliance is measured using attribution techniques different from those used to guide the model. In this work, we seek to close this gap, and also explore the relationship between reliance on plausible features and OOD performance. We find that the connection between ER and the ability of a classifier to rely on plausible features has been overstated and that a stronger reliance on plausible tokens does not seem to be the cause for OOD improvements.

Introduction

In the quest to build trustworthy AI, researchers aim for models that are "right for the right reasons." Beyond simple accuracy, we want classifiers to focus on features that humans find meaningful—such as specific sentiment-bearing words—rather than spurious correlations. Explanation Regularisation (ER) is a popular technique designed to enforce this behavior. However, a critical examination reveals that the relationship between human-aligned reasoning and model performance is more complex than previously assumed.

The Explanation Regularisation Framework

The core mechanism of ER involves adding an auxiliary "explanation loss" during training. This loss penalizes the model if its internal attributions—the tokens it identifies as most influential for a prediction—do not align with human-annotated rationales.

The ER framework: guiding a model to rely on plausible tokens during training to improve test-time performance.

While ER is known to improve out-of-domain (OOD) performance, it has been largely assumed that this success is due to the model learning more "plausible" features. This study investigates whether models truly adopt human-like logic or simply optimize for the specific attribution method used during training.

Methodology

The study compares two primary training paradigms:

  1. Joint ER: The model optimizes a weighted combination of classification and explanation losses.
  2. Constrained ER: Using Lagrangian relaxation, the model is forced to achieve high plausibility (low explanation loss) as a hard constraint.

Models were evaluated using both Local attribution (e.g., top-layer attention) and Global attribution (e.g., Integrated Gradients). By testing with "non-guided" attributions—methods the model wasn't specifically trained on—the researchers could determine if the model's underlying logic had fundamentally changed.

Experimental Setup

The models were trained on the SST-2 sentiment analysis dataset. Evaluation was conducted on both in-domain (SST-2) and several OOD datasets: Movies, Amazon Reviews, IMDB, and Yelp. To ensure high-quality evaluation, the authors newly annotated a subset of 50 Yelp reviews (Yelp-50) to serve as a benchmark for plausibility.

Key Results and Discussion

The experimental results challenge the conventional wisdom surrounding ER. While standard Joint ER often improves OOD F1 scores, the link between this improvement and human-like reasoning is tenuous.

F1-Macro performance across various datasets and ER approaches. Note the performance drop for constrained models (ER-C).

The "Hacking" Phenomenon

A significant finding is that models can "hack" local explanation losses. When regularised using local methods like top-layer attention, models often minimize the loss without changing their global behavior, effectively hiding their reliance on non-plausible tokens in deeper layers. Only global guidance successfully forces the model to rely on human-like features across its entire architecture.

The Plausibility-Performance Disconnect

Strikingly, there is no clear correlation between a model's plausibility and its OOD performance. In fact, forcing high plausibility through Constrained ER often led to a significant drop in classification accuracy. This suggests that the features humans find plausible may not always be the most effective for a machine to achieve robust generalization.

Conclusion

The study concludes that the benefits of Explanation Regularisation have been overstated. Increased reliance on plausible tokens does not appear to be the primary driver of OOD performance gains. These findings suggest that future work should focus on identifying which human rationales are truly useful for model learning and developing more robust ways to regularise model logic without sacrificing performance.

Summary updated

Abstract

Explanation regularisation (ER) has been introduced as a way to guide text classifiers to form their predictions relying on input tokens that humans consider plausible. This is achieved by introducing an auxiliary explanation loss that measures how well the output of an input attribution technique for the model agrees with human-annotated rationales. The guidance appears to benefit performance in out-of-domain (OOD) settings, presumably due to an increased reliance on "plausible" tokens. However, previous work has under-explored the impact of guidance on that reliance, particularly when reliance is measured using attribution techniques different from those used to guide the model. In this work, we seek to close this gap, and also explore the relationship between reliance on plausible features and OOD performance. We find that the connection between ER and the ability of a classifier to rely on plausible features has been overstated and that a stronger reliance on plausible tokens does not seem to be the cause for OOD improvements.
BibTeX
@inproceedings{ferreira2025explanation,
  author = {Pedro Ferreira and Wilker Aziz and Ivan Titov},
  title = {{Explanation Regularisation through the Lens of Attributions}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=A6gd5bnzP0},
}
Figure