mlsanityData to 14 Oct 2026

Prompting Large Language Models for Counterfactual Generation: An Empirical Study

arXiv 2305.14791 ↗First posted 24 May 2023cs.CLcited by 37

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have made remarkable progress in a wide range of natural language understanding and generation tasks. However, their ability to generate counterfactuals has not been examined systematically. To bridge this gap, we present a comprehensive evaluation framework on various types of NLU tasks, which covers all key factors in determining LLMs' capability of generating counterfactuals. Based on this framework, we 1) investigate the strengths and weaknesses of LLMs as the counterfactual generator, and 2) disclose the factors that affect LLMs when generating counterfactuals, including both the intrinsic properties of LLMs and prompt designing. The results show that, though LLMs are promising in most cases, they face challenges in complex tasks like RE since they are bounded by task-specific performance, entity constraints, and inherent selection bias. We also find that alignment techniques, e.g., instruction-tuning and reinforcement learning from human feedback, may potentially enhance the counterfactual generation ability of LLMs. On the contrary, simply increasing the parameter size does not yield the desired improvements. Besides, from the perspective of prompt designing, task guidelines unsurprisingly play an important role. However, the chain-of-thought approach does not always help due to inconsistency issues.

Key facts. Cited by 37 papers in the map (data through 14 Oct 2026). Builds on 21 of its 52 references that are in the map. First posted on arXiv 24 May 2023.

Builds on

21 of 52 references.

References · 21

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
  4. 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
  5. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
  6. 2015A large annotated corpus for learning natural language inferencecited by 1,847
  7. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  8. 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 439
  9. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  10. 2020Counterfactual VQA: A Cause-Effect Look at Language Biascited by 266
  11. 2021Causal Inference in Natural Language Processing: Estimation, Prediction, Interpretation and Beyondcited by 178
  12. 2021Text2Event: Controllable Sequence-to-Structure Generation for End-to-end Event Extractioncited by 129
9 more
  1. 2023Large Language Model Is Not a Good Few-shot Information Extractor, but a Good Reranker for Hard Samples!cited by 119
  2. 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 106
  3. 2020The Turking Test: Can Language Models Understand Instructions?cited by 82
  4. 2020Robustness to Spurious Correlations in Text Classification via Automatically Generated Counterfactualscited by 67
  5. 2021Exploring the Efficacy of Automatically Generated Counterfactuals for Sentiment Analysiscited by 30
  6. 2021Retrieval-guided Counterfactual Generation for QAcited by 29
  7. 2022NeuroCounterfactuals: Beyond Minimal-Edit Counterfactuals for Richer Data Augmentationcited by 23
  8. 2021Uncovering Main Causalities for Long-tailed Information Extractioncited by 21
  9. 2022Counterfactual Data Augmentation via Perspective Transition for Open-Domain Dialoguescited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 13; 2025: 15; 2026: 8.

37 papers.

Sort:

By area:

  1. 2024LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Studycited by 31
  2. 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMscited by 25
  3. 2024A Survey on Natural Language Counterfactual Generationcited by 21
  4. 2024Zero-shot LLM-guided Counterfactual Generation: A Case Study on NLP Model Evaluationcited by 18
  5. 2025Large language models for artificial general intelligence (AGI): A survey of foundational principles and approachescited by 18
  6. 2024Counterfactual Token Generation in Large Language Modelscited by 14
  7. 2024When Context Leads but Parametric Memory Follows in Large Language Modelscited by 11
  8. 2025Automatic Reviewers Fail to Detect Faulty Reasoning in Research Papers: A New Counterfactual Evaluation Frameworkcited by 11
  9. 2024Hidding the Ghostwriters: An Adversarial Evaluation of AI-Generated Student Essay Detectioncited by 10
  10. 2025Can LLMs Explain Themselves Counterfactually?cited by 10
  11. 2025Executable Counterfactuals: Improving LLMs' Causal Reasoning Through Codecited by 10
  12. 2024Beyond Agreement: Diagnosing the Rationale Alignment of Automated Essay Scoring Methods based on Linguistically-informed Counterfactualscited by 8
25 more
  1. 2025A Survey on Enhancing Causal Reasoning Ability of Large Language Modelscited by 8
  2. 2025Advancing the Scientific Method with Large Language Models: From Hypothesis to Discoverycited by 7
  3. 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generationcited by 6
  4. 2025VAULT: Vigilant Adversarial Updates via LLM-Driven Retrieval-Augmented Generation for NLIcited by 6
  5. 2024RAZOR: Sharpening Knowledge by Cutting Bias with Unsupervised Text Rewritingcited by 5
  6. 2025Truth or Twist? Optimal Model Selection for Reliable Label Flipping Evaluation in LLM-based Counterfactualscited by 5
  7. 2024Estimating Causal Effects of Text Interventions Leveraging LLMscited by 4
  8. 2024Language Models as Causal Effect Generatorscited by 4
  9. 2024Causal Inference with Complex Treatments: A Surveycited by 3
  10. 2026Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentationcited by 3
  11. 2026LIBERTy: A Causal Framework for Benchmarking Concept-Based Explanations of LLMs with Structural Counterfactualscited by 2
  12. 2026Strategies for Span Labeling with Large Language Modelscited by 2
  13. 2023T-COL: Generating Counterfactual Explanations for General User Preferences on Variable Machine Learning Systemscited by 1
  14. 2025Why Are You Wrong? Counterfactual Explanations for Language Grounding with 3D Objectscited by 1
  15. 2025SenseCF: LLM-Prompted Counterfactuals for Intervention and Sensor Data Augmentationcited by 1
  16. 2025CoBA: Counterbias Text Augmentation for Mitigating Various Spurious Correlations via Semantic Triplescited by 1
  17. 2024CELL your Model: Contrastive Explanations for Large Language Modelscited by 0
  18. 2025Iterative Counterfactual Data Augmentationcited by 0
  19. 2025PLEX: Perturbation-free Local Explanations for LLM-Based Text Classificationcited by 0
  20. 2025Preliminary Quantitative Study on Explainability and Trust in AI Systemscited by 0
  21. 2026Blockchain and AI: Securing Intelligent Networks for the Futurecited by 0
  22. 2026Gumbel Machine: Counterfactual Student Writing Generation via Gumbel Noise Steeringcited by 0
  23. 2026Improving Rare Medication Recommendation with Counterfactual Data Augmentation and Large Language Modelscited by 0
  24. 2026Communicating Credit Risk with Large Language Models: Evaluation of Explanations from Standard and Alternative Data-Based Modelscited by 0
  25. 2026Learning What to Fail On: Failure-Mode Contextual Bandits for Adversarial Data Curationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Aligning Large Language Models with Counterfactual DPO
  2. 2025On the Eligibility of LLMs for Counterfactual Reasoning: A Decompositional Study
  3. 2023CLOMO: Counterfactual Logical Modification with Large Language Models
  4. 2026On the Hidden Costs of Counterfactual Knowledge Training in LLM Unlearning
  5. 2023Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual Tasks
  6. 2025A Survey of LLM Alignment: Instruction Understanding, Intention Reasoning, and Reliable Generation
  7. 2023Do Models Explain Themselves? Counterfactual Simulatability of Natural Language Explanations
  8. 2024Evidence from counterfactual tasks supports emergent analogical reasoning in large language models