Faithful and Robust Local Interpretability for Textual Predictions
Gianluigi Lopardo, Frederic Precioso, Damien Garreau
TL;DR
This work tackles faithful, robust local interpretability for text predictions by introducing FRED, a perturbation-based explainer that yields three outputs: a minimal influential word subset, per-token importance scores, and counterfactual examples. It formalizes the explanation framework via a drop-in-prediction paradigm, using $d(x)=\mathbb{E}[f(x)]-f(x)$ and $\Delta_c=\mathbb{E}[f(x)]-\mathbb{E}[f(x)\mid c\notin x]$, and optimizes to minimize explanation length under a significance constraint. The authors prove theoretical properties for interpretable classifiers (notably linear models and shortcut detectors) and validate FRED empirically against state-of-the-art explainers across multiple datasets and models, showing improved faithfulness and robustness, especially on longer documents and modern architectures. The approach offers practical, theoretically grounded insights for understanding textual predictions and provides a publicly available implementation to support reproducibility and application in real-world settings.
Abstract
Interpretability is essential for machine learning models to be trusted and deployed in critical domains. However, existing methods for interpreting text models are often complex, lack mathematical foundations, and their performance is not guaranteed. In this paper, we propose FRED (Faithful and Robust Explainer for textual Documents), a novel method for interpreting predictions over text. FRED offers three key insights to explain a model prediction: (1) it identifies the minimal set of words in a document whose removal has the strongest influence on the prediction, (2) it assigns an importance score to each token, reflecting its influence on the model's output, and (3) it provides counterfactual explanations by generating examples similar to the original document, but leading to a different prediction. We establish the reliability of FRED through formal definitions and theoretical analyses on interpretable classifiers. Additionally, our empirical evaluation against state-of-the-art methods demonstrates the effectiveness of FRED in providing insights into text models.
