mlsanityData to 7 Oct 2026

Guiding LLMs to Generate High-Fidelity and High-Quality Counterfactual Explanations for Text Classification

arXiv 2503.04463 ↗First posted 6 Mar 2025cs.CLcited by 3

Not on the map. Why?

Abstract (arXiv)

The need for interpretability in deep learning has driven interest in counterfactual explanations, which identify minimal changes to an instance that change a model's prediction. Current counterfactual (CF) generation methods require task-specific fine-tuning and produce low-quality text. Large Language Models (LLMs), though effective for high-quality text generation, struggle with label-flipping counterfactuals (i.e., counterfactuals that change the prediction) without fine-tuning. We introduce two simple classifier-guided approaches to support counterfactual generation by LLMs, eliminating the need for fine-tuning while preserving the strengths of LLMs. Despite their simplicity, our methods outperform state-of-the-art counterfactual generation methods and are effective across different LLMs, highlighting the benefits of guiding counterfactual generation by LLMs with classifier information. We further show that data augmentation by our generated CFs can improve a classifier's robustness. Our analysis reveals a critical issue in counterfactual generation by LLMs: LLMs rely on parametric knowledge rather than faithfully following the classifier.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 26 of its 32 references that are in the map. First posted on arXiv 6 Mar 2025.

Builds on

26 of 32 references.

References · 26

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  3. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  4. 2017A Unified Approach to Interpreting Model Predictionscited by 6,488
  5. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  6. 2013Deep Inside Convolutional Networks: Visualising Image Classification Models and Saliency Mapscited by 2,348
  7. 2020Shortcut Learning in Deep Neural Networkscited by 1,928
  8. 2019A Survey on Bias and Fairness in Machine Learningcited by 1,911
  9. 2015A large annotated corpus for learning natural language inferencecited by 1,837
  10. 2017Explanation in Artificial Intelligence: Insights from the Social Sciencescited by 1,201
  11. 2017StarGAN: Unified Generative Adversarial Networks for Multi-Domain Image-to-Image Translationcited by 1,036
  12. 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 428
14 more
  1. 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 349
  2. 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 219
  3. 2022Rich Knowledge Sources Bring Complex Knowledge Conflicts: Recalibrating Models to Reflect Conflicting Evidencecited by 142
  4. 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 105
  5. 2023Towards LLM-guided Causal Explainability for Black-box Text Classifierscited by 44
  6. 2022DoCoGen: Domain Counterfactual Generation for Low Resource Domain Adaptationcited by 36
  7. 2024LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Studycited by 30
  8. 2023CREST: A Joint Framework for Rationalization and Counterfactual Text Generationcited by 24
  9. 2022CORE: A Retrieve-then-Edit Framework for Counterfactual Data Generationcited by 23
  10. 2021SPECTRA: Sparse Structured Text Rationalizationcited by 19
  11. 2021Text Counterfactuals via Latent Optimization and Shapley-Guided Searchcited by 16
  12. 2024CEval: A Benchmark for Evaluating Counterfactual Text Generationcited by 15
  13. 2024Revealing the Parametric Knowledge of Language Models: A Unified Framework for Attribution Methodscited by 9
  14. 2022AutoCAD: Automatically Generating Counterfactuals for Mitigating Shortcut Learningcited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.