"Will You Find These Shortcuts?" A Protocol for Evaluating the Faithfulness of Input Salience Methods for Text Classification
Jasmijn Bastings, Sebastian Ebert, Polina Zablotskaia, Anders Sandholm, Katja Filippova
TL;DR
The paper tackles the problem of unreliable faithfulness among input salience methods for text classification by proposing a ground-truth–driven protocol that uses partially synthetic data to instantiate lexical shortcuts as ground-truth token importance. It defines two metrics, $p@k$ and $rank$, and details a protocol to inject shortcuts, train models, verify reliance on shortcuts, and evaluate salience methods (Gradient, Gradient times Input, Integrated Gradients, and LIME) across BERT and LSTM on multiple datasets. Across three shortcut types (single-token, token-in-context, and ordered-pair), the authors show that method effectiveness is highly task- and model-dependent, with Grad-L2 performing strongly for BERT while some IG configurations underperform, especially when baselines or perturbation strategies are mis-specified. The work provides practical guidance for debugging NLP models and detecting shortcuts, and offers a reusable protocol that can be applied to new tasks and architectures to identify the most faithful and useful salience method for a given setting.
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.
