Evaluating the Faithfulness of Importance Measures in NLP by Recursively Masking Allegedly Important Tokens and Retraining

Andreas Madsen, Nicholas Meade, Vaibhav Adlakha, Siva Reddy

Abstract

Model explanations in NLP, such as attention weights or gradient-based saliency maps, are intended to provide insight into a model's reasoning. However, evaluating the faithfulness of these measures—whether they truly reflect internal logic—is complicated by dataset redundancies. This paper introduces Recursive ROAR, an iterative masking and retraining procedure that overcomes the limitations of previous metrics. Our findings reveal that faithfulness is highly dependent on both task and architecture, and that computationally expensive methods like Integrated Gradients do not consistently outperform simpler alternatives.

Introduction: The Faithfulness Challenge

In NLP, importance measures are used to explain why a model made a specific prediction. A major open question remains: are these explanations faithful? Evaluating faithfulness is notoriously difficult. A popular prior method, ROAR (RemOve And Retrain), tests faithfulness by removing the tokens deemed "most important," retraining the model, and observing if performance drops compared to removing random tokens.

However, ROAR fails when datasets contain redundancies. If a sentence has two equally strong predictive words (e.g., "terrible" and "awful") and the explanation only highlights one, ROAR removes it, but the model simply learns to rely on the second word. The performance doesn't drop, making a perfectly faithful explanation appear unfaithful.

Conceptual comparison showing how Recursive ROAR correctly identifies feature importance in the presence of redundancy, whereas standard ROAR fails.

Methods: Recursive ROAR and RACU

To solve the redundancy problem, the authors propose Recursive ROAR:

  1. Measure & Mask: Calculate token importance, mask the top $k$% of tokens (using a [MASK] token to preserve sequence length), and retrain the model.
  2. Recurse: Instead of stopping, re-evaluate the importance measures on the newly trained model, mask the next most important tokens, and retrain again. This forces the model to eventually exhaust redundant features.
  3. Compare: Plot the model's performance degradation against a baseline where tokens are masked randomly.

To quantify these results, the authors introduce RACU (Relative Area-Between-Curves), a scalar metric that calculates the normalized area between the importance measure's performance curve and the random baseline. The study evaluates four measures—Attention, Gradient, Input $\times$ Gradient, and Integrated Gradient—across BiLSTM-Attention and RoBERTa architectures on eight diverse datasets.

Key Results

The authors find that the faithfulness of an importance measure is highly model-dependent and task-dependent.

Performance degradation curves for BiLSTM-Attention and RoBERTa across eight datasets, comparing various importance measures against a random baseline.
  • Recursive ROAR fixes the redundancy bug: On the long-document MIMIC-III Diabetes dataset, standard ROAR failed to show that any measure was faithful. Recursive ROAR successfully stripped away the redundancies, revealing that Gradient and Input $\times$ Gradient were actually highly faithful (RACU ~57% and ~53% for RoBERTa).
  • Attention Can Be Faithful: Contradicting the "Attention is not Explanation" narrative, attention was often among the most faithful explanations. Given its computational efficiency and sparsity, it remains a highly attractive method.
  • Complexity $\neq$ Quality: Integrated Gradient, despite requiring ~50x more computation, rarely offered a worthwhile trade-off. In many tasks, simpler Gradient or Input $\times$ Gradient methods were just as faithful. For example, on IMDB with RoBERTa, Integrated Gradient was most faithful (RACU 35.1%), but on bAbI-1, standard Gradient was superior (64.2%) while Integrated Gradient was the least faithful (48.2%).

Discussion and Limitations

While Recursive ROAR provides a more robust evaluation of faithfulness, it is computationally heavy, requiring full model retraining at every masking step. This limits its applicability to massive LLMs. Furthermore, the authors note a potential "class leakage" issue where the presence of [MASK] tokens might inadvertently signal the gold label during retraining.

Future work must balance faithfulness with human-groundedness—ensuring that faithful explanations are also understandable and useful to end-users.

Summary updated

BibTeX
@inproceedings{madsen2022evaluating,
  author = {Andreas Madsen and Nicholas Meade and Vaibhav Adlakha and Siva Reddy},
  title = {{Evaluating the Faithfulness of Importance Measures in NLP by Recursively Masking Allegedly Important Tokens and Retraining}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.125},
}
Figure