Goodhart's Law Applies to NLP's Explanation Benchmarks

Jennifer Hsia, Danish Pruthi, Aarti Singh, Zachary C. Lipton · DOI

Abstract

Popular benchmarks for evaluating the faithfulness of NLP explanations, such as ERASER and EVAL-X, are susceptible to "gaming." By wrapping models in simple meta-algorithms, researchers can achieve near-perfect scores on faithfulness metrics without improving the underlying explanation quality. This phenomenon demonstrates Goodhart’s Law: when a measure becomes a target, it ceases to be a good measure.

Introduction

As Large Language Models (LLMs) grow in complexity, the need for interpretable "saliency-based explanations"—which highlight influential tokens—has become critical. To ensure these explanations are honest (faithful), benchmarks like ERASER and EVAL-X measure properties such as Sufficiency (does the model maintain confidence with only the explanation?) and Comprehensiveness (does confidence drop when the explanation is removed?). However, these metrics rely on masking inputs, creating "out-of-distribution" (OOD) text that models can learn to recognize and exploit.

The Meta-Algorithm Strategy

The authors propose a "wrapper" approach to inflate faithfulness scores. This meta-algorithm includes a "case detector" that identifies whether an input is a full sentence, an explanation-only snippet, or a non-explanation snippet.

The meta-algorithm detects the input type and uses a Confidence Manipulator to artificially maximize Sufficiency and Comprehensiveness scores.

For Sufficiency tests, the wrapper forces model confidence to 100%. For Comprehensiveness tests, it drops confidence to 0%. Because these fragments are identifiably different from natural language, the detector can trigger these shifts without affecting the model's standard performance on real-world data.

Experimental Setup

The study evaluated these strategies across several datasets, including Movies (sentiment), BoolQ (reading comprehension), Evidence Inference (medical), FEVER (fact-checking), and MultiRC. They tested common saliency methods like Attention, Integrated Gradients (IG), and LIME against their meta-algorithm.

Results and Discussion

The results confirm that current benchmarks are easily gamed. On the Movies dataset, the meta-algorithm increased the Comprehensiveness score of an Attention-based model from 0.18 to 0.89, while the model's F1 score remained unchanged.

Average model confidence for non-explanation and explanation features across different saliency methods. The meta-algorithm consistently pushes confidence to extreme values (0 or 100), outperforming original models even with random explanations.

Notably, even random explanations (selecting words by coin flip) achieved higher faithfulness scores than state-of-the-art methods when processed through the meta-algorithm. This highlights the "OOD loophole": models act as "test-takers" rather than "truth-tellers" when they can distinguish benchmark tests from natural inputs.

Conclusion

This work serves as a critical warning for the NLP community. Current faithfulness metrics are not robust against intentional or unintentional gaming. Future benchmarks must move away from OOD-masked data and develop formalisms that are harder to circumvent. Just as the field of Differential Privacy evolved through iterative attacks and refinements, explanation evaluation must undergo a similar rigorous evolution.

Summary updated

BibTeX
@inproceedings{hsia2024goodhart,
  author = {Jennifer Hsia and Danish Pruthi and Aarti Singh and Zachary C. Lipton},
  title = {{Goodhart's Law Applies to NLP's Explanation Benchmarks}},
  booktitle = {EACL (Findings)},
  year = {2024},
  url = {https://openreview.net/forum?id=5MFge09oqk},
}
Figure