mlsanityData to 14 Oct 2026

LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Study

arXiv 2405.00722 ↗First posted 26 Apr 2024cs.CL cs.AIcited by 31

Not on the map. Why?

Abstract (arXiv)

As NLP models become more complex, understanding their decisions becomes more crucial. Counterfactuals (CFs), where minimal changes to inputs flip a model's prediction, offer a way to explain these models. While Large Language Models (LLMs) have shown remarkable performance in NLP tasks, their efficacy in generating high-quality CFs remains uncertain. This work fills this gap by investigating how well LLMs generate CFs for two NLU tasks. We conduct a comprehensive comparison of several common LLMs, and evaluate their CFs, assessing both intrinsic metrics, and the impact of these CFs on data augmentation. Moreover, we analyze differences between human and LLM-generated CFs, providing insights for future research directions. Our results show that LLMs generate fluent CFs, but struggle to keep the induced changes minimal. Generating CFs for Sentiment Analysis (SA) is less challenging than NLI where LLMs show weaknesses in generating CFs that flip the original label. This also reflects on the data augmentation performance, where we observe a large gap between augmenting with human and LLMs CFs. Furthermore, we evaluate LLMs' ability to assess CFs in a mislabelled data setting, and show that they have a strong bias towards agreeing with the provided labels. GPT4 is more robust against this bias and its scores correlate well with automatic metrics. Our findings reveal several limitations and point to potential future work directions.

Key facts. Cited by 31 papers in the map (data through 14 Oct 2026). Builds on 22 of its 34 references that are in the map. First posted on arXiv 26 Apr 2024.

Builds on

22 of 34 references.

References · 22

  1. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  2. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  3. 2015A large annotated corpus for learning natural language inferencecited by 1,847
  4. 2017Explanation in Artificial Intelligence: Insights from the Social Sciencescited by 1,206
  5. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  6. 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 734
  7. 2022A Survey on In-context Learningcited by 721
  8. 2024LLM Evaluators Recognize and Favor Their Own Generationscited by 686
  9. 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 439
  10. 2023Large Language Models Are State-of-the-Art Evaluators of Translation Qualitycited by 420
  11. 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 222
  12. 2020Learning from the Worst: Dynamically Generated Datasets to Improve Online Hate Detectioncited by 221
10 more
  1. 2018Breaking NLI Systems with Sentences that Require Simple Lexical Inferencescited by 134
  2. 2023Hallucinations in Large Multilingual Translation Modelscited by 129
  3. 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 106
  4. 2023LLM Comparative Assessment: Zero-shot NLG Evaluation through Pairwise Comparisons using Large Language Modelscited by 71
  5. 2023Towards LLM-guided Causal Explainability for Black-box Text Classifierscited by 44
  6. 2023Prompting Large Language Models for Counterfactual Generation: An Empirical Studycited by 37
  7. 2023Benchmarking Large Language Model Capabilities for Conditional Generationcited by 29
  8. 2023CREST: A Joint Framework for Rationalization and Counterfactual Text Generationcited by 24
  9. 2021How Does Counterfactually Augmented Data Impact Models for Social Computing Constructs?cited by 19
  10. 2023CATfOOD: Counterfactual Augmented Training for Improving Out-of-Domain Performance and Calibrationcited by 17

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 7; 2025: 14; 2026: 10.

31 papers.

Sort:

By area:

  1. 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMscited by 25
  2. 2024A Survey on Natural Language Counterfactual Generationcited by 21
  3. 2025Representation Engineering for Large-Language Models: Survey and Research Challengescited by 21
  4. 2024Counterfactual Debating with Preset Stances for Hallucination Elimination of LLMscited by 17
  5. 2025LLMs Don't Know Their Own Decision Boundaries: The Unreliability of Self-Generated Counterfactual Explanationscited by 16
  6. 2024Counterfactual Token Generation in Large Language Modelscited by 14
  7. 2024Reasoning Elicitation in Language Models via Counterfactual Feedbackcited by 14
  8. 2025Can LLMs Explain Themselves Counterfactually?cited by 10
  9. 2025Executable Counterfactuals: Improving LLMs' Causal Reasoning Through Codecited by 10
  10. 2024Interpreting Language Reward Models via Contrastive Explanationscited by 9
  11. 2025Do Large Language Models Truly Grasp Addition? A Rule-Focused Diagnostic Using Two-Integer Arithmeticcited by 8
  12. 2026Do LLM Self-Explanations Help Users Predict Model Behavior? Evaluating Counterfactual Simulatability with Pragmatic Perturbationscited by 7
19 more
  1. 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generationcited by 6
  2. 2025On the Eligibility of LLMs for Counterfactual Reasoning: A Decompositional Studycited by 5
  3. 2025Truth or Twist? Optimal Model Selection for Reliable Label Flipping Evaluation in LLM-based Counterfactualscited by 5
  4. 2026Can Large Language Models Still Explain Themselves? Investigating the Impact of Quantization on Self-Explanationscited by 5
  5. 2025Few-Shot Knowledge Distillation of LLMs With Counterfactual Explanationscited by 4
  6. 2026Rationale Matters: Learning Transferable Rubrics via Proxy-Guided Critique for VLM Reward Modelscited by 4
  7. 2025Guiding LLMs to Generate High-Fidelity and High-Quality Counterfactual Explanations for Text Classificationcited by 3
  8. 2025The Knowledge-Reasoning Dissociation: Fundamental Limitations of LLMs in Clinical Natural Language Inferencecited by 2
  9. 2025Enhancing XAI Narratives through Multi-Narrative Refinement and Knowledge Distillationcited by 2
  10. 2024SummExecEdit: A Factual Consistency Benchmark in Summarization with Executable Editscited by 1
  11. 2025Deriving Strategic Market Insights with Large Language Models: A Benchmark for Forward Counterfactual Generationcited by 1
  12. 2026iFlip: Iterative Feedback-driven Counterfactual Example Refinementcited by 1
  13. 2026DRIV-EX: Counterfactual Explanations for Driving LLMscited by 1
  14. 2025Refining Financial Consumer Complaints through Multi-Scale Model Interactioncited by 0
  15. 2026Responsible AI for General-Purpose Systems: Overview, Challenges, and A Path Forwardcited by 0
  16. 2026Gumbel Machine: Counterfactual Student Writing Generation via Gumbel Noise Steeringcited by 0
  17. 2026CoCoGEC: Counterfactual Generation for Robust Grammatical Error Correctioncited by 0
  18. 2026Taking the Whys Seriously: Limitations of Counterfactual Explanations in Justification and Recoursecited by 0
  19. 2026COFFEQA: Counterfactual-Guided Few-Shot Distillation for LLM Question Answeringcited by 0