[Paper Review] Fooling Explanations in Text Classifiers
This paper introduces TEXTEXTPLANATIONFOOLER (TEF), a black-box adversarial attack that generates imperceptible text perturbations to drastically alter explanation outputs—such as saliency maps from Integrated Gradients—while preserving the original classifier predictions across multiple NLP models and datasets. The key contribution is demonstrating that explanations in text classifiers are highly fragile, with TEF reducing attribution correlation by up to 0.75 in some cases, even under semi-universal attack settings with no model access.
State-of-the-art text classification models are becoming increasingly reliant on deep neural networks (DNNs). Due to their black-box nature, faithful and robust explanation methods need to accompany classifiers for deployment in real-life scenarios. However, it has been shown in vision applications that explanation methods are susceptible to local, imperceptible perturbations that can significantly alter the explanations without changing the predicted classes. We show here that the existence of such perturbations extends to text classifiers as well. Specifically, we introduceTextExplanationFooler (TEF), a novel explanation attack algorithm that alters text input samples imperceptibly so that the outcome of widely-used explanation methods changes considerably while leaving classifier predictions unchanged. We evaluate the performance of the attribution robustness estimation performance in TEF on five sequence classification datasets, utilizing three DNN architectures and three transformer architectures for each dataset. TEF can significantly decrease the correlation between unchanged and perturbed input attributions, which shows that all models and explanation methods are susceptible to TEF perturbations. Moreover, we evaluate how the perturbations transfer to other model architectures and attribution methods, and show that TEF perturbations are also effective in scenarios where the target model and explanation method are unknown. Finally, we introduce a semi-universal attack that is able to compute fast, computationally light perturbations with no knowledge of the attacked classifier nor explanation method. Overall, our work shows that explanations in text classifiers are very fragile and users need to carefully address their robustness before relying on them in critical applications.
Motivation & Objective
- To expose the vulnerability of explanation methods in text classifiers to small, imperceptible input perturbations.
- To develop a black-box attack, TEXTEXTPLANATIONFOOLER (TEF), that manipulates explanation outputs without altering classifier predictions.
- To evaluate the robustness of attribution methods across diverse datasets, models, and explanation techniques.
- To demonstrate transferability of TEF perturbations across unknown models and explanation methods.
- To introduce semi-universal attack policies that enable fast, query-free explanation manipulation without model access.
Proposed method
- TEF formulates a black-box adversarial attack targeting explanation methods by optimizing word substitutions that minimize attribution correlation while preserving classifier confidence.
- The attack uses a gradient-free optimization strategy based on synonym replacement and embedding similarity to generate imperceptible perturbations.
- For each input, TEF computes perturbations that maximize the drop in Pearson Correlation Coefficient (PCC) between original and perturbed attribution maps.
- Semi-universal attack policies are constructed by aggregating frequent replacements from TEF-optimized perturbations across a dataset subset, enabling fast, pre-computed attacks.
- The method evaluates robustness using PCC between original and perturbed attributions, with lower values indicating higher explanation fragility.
- Experiments are conducted on five text classification datasets using three DNN and three transformer architectures, with three explanation methods (e.g., Integrated Gradients).
Experimental results
Research questions
- RQ1Can imperceptible text perturbations significantly alter explanation outputs while preserving classifier predictions?
- RQ2How robust are different explanation methods across various models and datasets under such attacks?
- RQ3To what extent do TEF perturbations transfer across unknown models and explanation methods?
- RQ4Can semi-universal attack policies be constructed that alter explanations without querying the target model at attack time?
- RQ5What is the extent of attribution robustness degradation under TEF compared to random or baseline attacks?
Key findings
- TEF significantly reduces attribution correlation, with PCC dropping below 0.2 in multiple settings, demonstrating high effectiveness in distorting explanations.
- On average, TEF reduces PCC by up to 0.75 compared to original attributions, showing that explanations are highly fragile across all tested models and datasets.
- The attack transfers effectively to unseen models and explanation methods, indicating a broad vulnerability across the NLP explanation landscape.
- Semi-universal attack policies achieve comparable performance to TEF with no model queries at attack time, proving their practical feasibility and robustness.
- The random attack baseline performs significantly worse than TEF, confirming that the observed degradation is due to targeted perturbations, not random noise.
- In all five datasets (AG’s News, IMDB, MR, Rotten Tomatoes, Yelp), TEF consistently degrades attribution fidelity, underscoring systemic fragility in current explanation methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.