Prompting Large Language Models for Counterfactual Generation: An Empirical Study
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
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,374
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2015A large annotated corpus for learning natural language inferencecited by 1,847
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 439
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2020Counterfactual VQA: A Cause-Effect Look at Language Biascited by 266
- 2021Causal Inference in Natural Language Processing: Estimation, Prediction, Interpretation and Beyondcited by 178
- 2021Text2Event: Controllable Sequence-to-Structure Generation for End-to-end Event Extractioncited by 129
9 more
- 2023Large Language Model Is Not a Good Few-shot Information Extractor, but a Good Reranker for Hard Samples!cited by 119
- 2020Explaining NLP Models via Minimal Contrastive Editing (MiCE)cited by 106
- 2020The Turking Test: Can Language Models Understand Instructions?cited by 82
- 2020Robustness to Spurious Correlations in Text Classification via Automatically Generated Counterfactualscited by 67
- 2021Exploring the Efficacy of Automatically Generated Counterfactuals for Sentiment Analysiscited by 30
- 2021Retrieval-guided Counterfactual Generation for QAcited by 29
- 2022NeuroCounterfactuals: Beyond Minimal-Edit Counterfactuals for Richer Data Augmentationcited by 23
- 2021Uncovering Main Causalities for Long-tailed Information Extractioncited by 21
- 2022Counterfactual Data Augmentation via Perspective Transition for Open-Domain Dialoguescited by 7
Built on by
Citing papers per year: 2023: 1; 2024: 13; 2025: 15; 2026: 8.
37 papers.
Sort:
By area:
- 2024LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Studycited by 31
- 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMscited by 25
- 2024A Survey on Natural Language Counterfactual Generationcited by 21
- 2024Zero-shot LLM-guided Counterfactual Generation: A Case Study on NLP Model Evaluationcited by 18
- 2025Large language models for artificial general intelligence (AGI): A survey of foundational principles and approachescited by 18
- 2024Counterfactual Token Generation in Large Language Modelscited by 14
- 2024When Context Leads but Parametric Memory Follows in Large Language Modelscited by 11
- 2025Automatic Reviewers Fail to Detect Faulty Reasoning in Research Papers: A New Counterfactual Evaluation Frameworkcited by 11
- 2024Hidding the Ghostwriters: An Adversarial Evaluation of AI-Generated Student Essay Detectioncited by 10
- 2025Can LLMs Explain Themselves Counterfactually?cited by 10
- 2025Executable Counterfactuals: Improving LLMs' Causal Reasoning Through Codecited by 10
- 2024Beyond Agreement: Diagnosing the Rationale Alignment of Automated Essay Scoring Methods based on Linguistically-informed Counterfactualscited by 8
25 more
- 2025A Survey on Enhancing Causal Reasoning Ability of Large Language Modelscited by 8
- 2025Advancing the Scientific Method with Large Language Models: From Hypothesis to Discoverycited by 7
- 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generationcited by 6
- 2025VAULT: Vigilant Adversarial Updates via LLM-Driven Retrieval-Augmented Generation for NLIcited by 6
- 2024RAZOR: Sharpening Knowledge by Cutting Bias with Unsupervised Text Rewritingcited by 5
- 2025Truth or Twist? Optimal Model Selection for Reliable Label Flipping Evaluation in LLM-based Counterfactualscited by 5
- 2024Estimating Causal Effects of Text Interventions Leveraging LLMscited by 4
- 2024Language Models as Causal Effect Generatorscited by 4
- 2024Causal Inference with Complex Treatments: A Surveycited by 3
- 2026Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentationcited by 3
- 2026LIBERTy: A Causal Framework for Benchmarking Concept-Based Explanations of LLMs with Structural Counterfactualscited by 2
- 2026Strategies for Span Labeling with Large Language Modelscited by 2
- 2023T-COL: Generating Counterfactual Explanations for General User Preferences on Variable Machine Learning Systemscited by 1
- 2025Why Are You Wrong? Counterfactual Explanations for Language Grounding with 3D Objectscited by 1
- 2025SenseCF: LLM-Prompted Counterfactuals for Intervention and Sensor Data Augmentationcited by 1
- 2025CoBA: Counterbias Text Augmentation for Mitigating Various Spurious Correlations via Semantic Triplescited by 1
- 2024CELL your Model: Contrastive Explanations for Large Language Modelscited by 0
- 2025Iterative Counterfactual Data Augmentationcited by 0
- 2025PLEX: Perturbation-free Local Explanations for LLM-Based Text Classificationcited by 0
- 2025Preliminary Quantitative Study on Explainability and Trust in AI Systemscited by 0
- 2026Blockchain and AI: Securing Intelligent Networks for the Futurecited by 0
- 2026Gumbel Machine: Counterfactual Student Writing Generation via Gumbel Noise Steeringcited by 0
- 2026Improving Rare Medication Recommendation with Counterfactual Data Augmentation and Large Language Modelscited by 0
- 2026Communicating Credit Risk with Large Language Models: Evaluation of Explanations from Standard and Alternative Data-Based Modelscited by 0
- 2026Learning What to Fail On: Failure-Mode Contextual Bandits for Adversarial Data Curationcited by 0
- 2026Learning What to Fail On: Failure-Mode Contextual Bandits for Adversarial Data Curation19 Aug 2026
- 2026Communicating Credit Risk with Large Language Models: Evaluation of Explanations from Standard and Alternative Data-Based Models18 Aug 2026
- 2026Improving Rare Medication Recommendation with Counterfactual Data Augmentation and Large Language Models23 Jul 2026
- 2026Gumbel Machine: Counterfactual Student Writing Generation via Gumbel Noise Steering26 May 2026
- 2026Blockchain and AI: Securing Intelligent Networks for the Future7 Apr 2026
- 2026Strategies for Span Labeling with Large Language Models23 Jan 2026
- 2026Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentation21 Jan 2026
- 2026LIBERTy: A Causal Framework for Benchmarking Concept-Based Explanations of LLMs with Structural Counterfactuals15 Jan 2026
- 2025Preliminary Quantitative Study on Explainability and Trust in AI Systems17 Oct 2025
- 2025Executable Counterfactuals: Improving LLMs' Causal Reasoning Through Code2 Oct 2025
- 2025Automatic Reviewers Fail to Detect Faulty Reasoning in Research Papers: A New Counterfactual Evaluation Framework29 Aug 2025
- 2025CoBA: Counterbias Text Augmentation for Mitigating Various Spurious Correlations via Semantic Triples26 Aug 2025
25 more
- 2025VAULT: Vigilant Adversarial Updates via LLM-Driven Retrieval-Augmented Generation for NLI1 Aug 2025
- 2025PLEX: Perturbation-free Local Explanations for LLM-Based Text Classification12 Jul 2025
- 2025SenseCF: LLM-Prompted Counterfactuals for Intervention and Sensor Data Augmentation7 Jul 2025
- 2025Advancing the Scientific Method with Large Language Models: From Hypothesis to Discovery22 May 2025
- 2025Truth or Twist? Optimal Model Selection for Reliable Label Flipping Evaluation in LLM-based Counterfactuals20 May 2025
- 2025Why Are You Wrong? Counterfactual Explanations for Language Grounding with 3D Objects9 May 2025
- 2025A Survey on Enhancing Causal Reasoning Ability of Large Language Models12 Mar 2025
- 2025Iterative Counterfactual Data Augmentation25 Feb 2025
- 2025Can LLMs Explain Themselves Counterfactually?25 Feb 2025
- 2025Large language models for artificial general intelligence (AGI): A survey of foundational principles and approaches6 Jan 2025
- 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generation1 Jan 2025
- 2024RAZOR: Sharpening Knowledge by Cutting Bias with Unsupervised Text Rewriting10 Dec 2024
- 2024Language Models as Causal Effect Generators12 Nov 2024
- 2024Estimating Causal Effects of Text Interventions Leveraging LLMs28 Oct 2024
- 2024Counterfactual Token Generation in Large Language Models25 Sep 2024
- 2024When Context Leads but Parametric Memory Follows in Large Language Models13 Sep 2024
- 2024On Behalf of the Stakeholders: Trends in NLP Model Interpretability in the Era of LLMs27 Jul 2024
- 2024Causal Inference with Complex Treatments: A Survey19 Jul 2024
- 2024A Survey on Natural Language Counterfactual Generation4 Jul 2024
- 2024CELL your Model: Contrastive Explanations for Large Language Models17 Jun 2024
- 2024Beyond Agreement: Diagnosing the Rationale Alignment of Automated Essay Scoring Methods based on Linguistically-informed Counterfactuals29 May 2024
- 2024Zero-shot LLM-guided Counterfactual Generation: A Case Study on NLP Model Evaluation8 May 2024
- 2024LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Study26 Apr 2024
- 2024Hidding the Ghostwriters: An Adversarial Evaluation of AI-Generated Student Essay Detection1 Feb 2024
- 2023T-COL: Generating Counterfactual Explanations for General User Preferences on Variable Machine Learning Systems28 Sep 2023
- 2025Automatic Reviewers Fail to Detect Faulty Reasoning in Research Papers: A New Counterfactual Evaluation Frameworkcited by 11
- 2025Executable Counterfactuals: Improving LLMs' Causal Reasoning Through Codecited by 10
- 2025A Survey on Enhancing Causal Reasoning Ability of Large Language Modelscited by 8
- 2025Executable Counterfactuals: Improving LLMs' Causal Reasoning Through Code2 Oct 2025
- 2025Automatic Reviewers Fail to Detect Faulty Reasoning in Research Papers: A New Counterfactual Evaluation Framework29 Aug 2025
- 2025A Survey on Enhancing Causal Reasoning Ability of Large Language Models12 Mar 2025
- 2024LLMs for Generating and Evaluating Counterfactuals: A Comprehensive Studycited by 31
- 2024A Survey on Natural Language Counterfactual Generationcited by 21
- 2024Zero-shot LLM-guided Counterfactual Generation: A Case Study on NLP Model Evaluationcited by 18
- 2024Counterfactual Token Generation in Large Language Modelscited by 14
- 2024When Context Leads but Parametric Memory Follows in Large Language Modelscited by 11
- 2024Hidding the Ghostwriters: An Adversarial Evaluation of AI-Generated Student Essay Detectioncited by 10
- 2025Can LLMs Explain Themselves Counterfactually?cited by 10
- 2024Beyond Agreement: Diagnosing the Rationale Alignment of Automated Essay Scoring Methods based on Linguistically-informed Counterfactualscited by 8
- 2025Advancing the Scientific Method with Large Language Models: From Hypothesis to Discoverycited by 7
- 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generationcited by 6
- 2024RAZOR: Sharpening Knowledge by Cutting Bias with Unsupervised Text Rewritingcited by 5
- 2025Truth or Twist? Optimal Model Selection for Reliable Label Flipping Evaluation in LLM-based Counterfactualscited by 5
12 most cited of 30 All 30 (JSON)
- 2026Communicating Credit Risk with Large Language Models: Evaluation of Explanations from Standard and Alternative Data-Based Models18 Aug 2026
- 2026Improving Rare Medication Recommendation with Counterfactual Data Augmentation and Large Language Models23 Jul 2026
- 2026Gumbel Machine: Counterfactual Student Writing Generation via Gumbel Noise Steering26 May 2026
- 2026Blockchain and AI: Securing Intelligent Networks for the Future7 Apr 2026
- 2026Strategies for Span Labeling with Large Language Models23 Jan 2026
- 2026Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentation21 Jan 2026
- 2026LIBERTy: A Causal Framework for Benchmarking Concept-Based Explanations of LLMs with Structural Counterfactuals15 Jan 2026
- 2025Preliminary Quantitative Study on Explainability and Trust in AI Systems17 Oct 2025
- 2025CoBA: Counterbias Text Augmentation for Mitigating Various Spurious Correlations via Semantic Triples26 Aug 2025
- 2025PLEX: Perturbation-free Local Explanations for LLM-Based Text Classification12 Jul 2025
- 2025SenseCF: LLM-Prompted Counterfactuals for Intervention and Sensor Data Augmentation7 Jul 2025
- 2025Advancing the Scientific Method with Large Language Models: From Hypothesis to Discovery22 May 2025
12 newest of 30 All 30 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Aligning Large Language Models with Counterfactual DPO
- 2025On the Eligibility of LLMs for Counterfactual Reasoning: A Decompositional Study
- 2023CLOMO: Counterfactual Logical Modification with Large Language Models
- 2026On the Hidden Costs of Counterfactual Knowledge Training in LLM Unlearning
- 2023Reasoning or Reciting? Exploring the Capabilities and Limitations of Language Models Through Counterfactual Tasks
- 2025A Survey of LLM Alignment: Instruction Understanding, Intention Reasoning, and Reliable Generation
- 2023Do Models Explain Themselves? Counterfactual Simulatability of Natural Language Explanations
- 2024Evidence from counterfactual tasks supports emergent analogical reasoning in large language models