Skip to main content
QUICK REVIEW

[Paper Review] "Will You Find These Shortcuts?" A Protocol for Evaluating the Faithfulness of Input Salience Methods for Text Classification

Jasmijn Bastings, Sebastian Ebert|arXiv (Cornell University)|Nov 14, 2021
Topic ModelingComputer Science5 citations
TL;DR

This paper proposes a protocol for evaluating the faithfulness of input salience methods in text classification using partially synthetic data to establish ground truth for feature importance rankings. It demonstrates that simple methods like Grad-L2 outperform complex configurations of Integrated Gradients for detecting lexical shortcuts in BERT and LSTM models, challenging assumptions about method reliability.

ABSTRACT

Feature attribution a.k.a. input salience methods which assign an importance score to a feature are abundant but may produce surprisingly different results for the same model on the same input. While differences are expected if disparate definitions of importance are assumed, most methods claim to provide faithful attributions and point at the features most relevant for a model's prediction. Existing work on faithfulness evaluation is not conclusive and does not provide a clear answer as to how different methods are to be compared. Focusing on text classification and the model debugging scenario, our main contribution is a protocol for faithfulness evaluation that makes use of partially synthetic data to obtain ground truth for feature importance ranking. Following the protocol, we do an in-depth analysis of four standard salience method classes on a range of datasets and shortcuts for BERT and LSTM models and demonstrate that some of the most popular method configurations provide poor results even for simplest shortcuts. We recommend following the protocol for each new task and model combination to find the best method for identifying shortcuts.

Motivation & Objective

  • To address the lack of a standardized, reliable method for evaluating the faithfulness of input salience methods in text classification.
  • To develop a protocol that enables systematic evaluation of salience methods in the context of model debugging, particularly for detecting lexical shortcuts.
  • To test whether commonly used salience method configurations are reliable in identifying model shortcuts, especially in BERT and LSTM models.
  • To provide empirical evidence on how method configuration details (e.g., baseline choice, gradient reduction) affect performance in detecting shortcuts.
  • To guide practitioners in selecting salience methods most effective for uncovering spurious correlations or heuristic-based predictions in NLP models.

Proposed method

  • The protocol uses partially synthetic datasets where specific lexical shortcuts (e.g., single tokens, token pairs, or contextual patterns) are injected to create known ground truth for feature importance.
  • For each input, salience methods generate importance scores for tokens, and rankings are compared against the known shortcut tokens to compute faithfulness metrics.
  • The protocol evaluates four salience method classes: Integrated Gradients, Grad-CAM variants (e.g., Grad-L2), LIME, and Gradient×Input, across multiple datasets and model types (BERT and LSTM).
  • Key metrics include precision@1 and mean reciprocal rank (MRR), which measure whether the most important tokens identified by a method correspond to the true shortcut.
  • The evaluation is contextualized in a model debugging scenario where the goal is to detect whether models rely on simple lexical patterns rather than semantic content.
  • The protocol allows for controlled comparison across method configurations, such as different baseline inputs or gradient reduction strategies (e.g., L1 vs. dot-product).

Experimental results

Research questions

  • RQ1Which input salience method configurations are most effective at identifying simple lexical shortcuts in text classification models?
  • RQ2How do method configurations (e.g., baseline choice, gradient reduction) impact the faithfulness of salience maps in detecting known shortcuts?
  • RQ3Does the performance of a salience method generalize across different model architectures (e.g., BERT vs. LSTM) and shortcut types (single token, contextual, ordered pairs)?
  • RQ4Are commonly assumed 'faithful' methods like Integrated Gradients consistently reliable for detecting shortcuts in real-world NLP models?
  • RQ5Can a protocol based on synthetic shortcuts provide a reliable, repeatable benchmark for evaluating salience method faithfulness?

Key findings

  • Grad-L2, a simple gradient-based method, consistently outperformed more complex configurations of Integrated Gradients in detecting lexical shortcuts across both BERT and LSTM models.
  • Integrated Gradients with L1 or dot-product gradient reduction performed poorly, with precision@1 values as low as 12-13% for single-token shortcuts, indicating weak faithfulness.
  • The choice of baseline input significantly affected salience results, with some configurations producing misleading attributions even for simple shortcuts.
  • Method performance was not consistent across shortcut types: models trained on ordered pairs (e.g., '3 out of 10') were harder to interpret than single-token shortcuts, and performance varied by model architecture.
  • The protocol successfully revealed that method configurations assumed to be reliable in recent literature—such as IG with l-mean—can fail dramatically in practice, especially for BERT models.
  • For BERT models, the simplest method (Grad-L2) was the most effective at uncovering shortcuts, challenging the assumption that more complex methods are inherently more faithful.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.