Zero-shot LLM-guided Counterfactual Generation: A Case Study on NLP Model Evaluation
Not on the map. Why?
Abstract (arXiv)
With the development and proliferation of large, complex, black-box models for solving many natural language processing (NLP) tasks, there is also an increasing necessity of methods to stress-test these models and provide some degree of interpretability or explainability. While counterfactual examples are useful in this regard, automated generation of counterfactuals is a data and resource intensive process. such methods depend on models such as pre-trained language models that are then fine-tuned on auxiliary, often task-specific datasets, that may be infeasible to build in practice, especially for new tasks and data domains. Therefore, in this work we explore the possibility of leveraging large language models (LLMs) for zero-shot counterfactual generation in order to stress-test NLP models. We propose a structured pipeline to facilitate this generation, and we hypothesize that the instruction-following and textual understanding capabilities of recent LLMs can be effectively leveraged for generating high quality counterfactuals in a zero-shot manner, without requiring any training or fine-tuning. Through comprehensive experiments on a variety of propreitary and open-source LLMs, along with various downstream tasks in NLP, we explore the efficacy of LLMs as zero-shot counterfactual generators in evaluating and explaining black-box NLP models.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 22 of its 30 references that are in the map. First posted on arXiv 8 May 2024.
Builds on
22 of 30 references.
References · 22
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
- 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 849
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 755
10 more
- 2022A Survey on In-context Learningcited by 717
- 2018e-SNLI: Natural Language Inference with Natural Language Explanationscited by 468
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 428
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 219
- 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 158
- 2020Generate Your Counterfactuals: Towards Controlled Counterfactual Generation for Textcited by 75
- 2023Towards LLM-guided Causal Explainability for Black-box Text Classifierscited by 44
- 2023Prompting Large Language Models for Counterfactual Generation: An Empirical Studycited by 36
- 2022Plug and Play Counterfactual Text Generation for Model Robustnesscited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 7; 2026: 9.
17 papers.
Sort:
By area:
- 2024RATE: Causal Explainability of Reward Models with Imperfect Counterfactualscited by 6
- 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generationcited by 6
- 2025Truth or Twist? Optimal Model Selection for Reliable Label Flipping Evaluation in LLM-based Counterfactualscited by 5
- 2026Can Large Language Models Still Explain Themselves? Investigating the Impact of Quantization on Self-Explanationscited by 5
- 2025Few-Shot Knowledge Distillation of LLMs With Counterfactual Explanationscited by 3
- 2026Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentationcited by 3
- 2025Show Me How: Benefits and Challenges of Agent-Augmented Counterfactual Explanations for Non-Expert Userscited by 2
- 2025Teach a Reward Model to Correct Itself: Reward Guided Adversarial Failure Discovery for Robust Reward Modelingcited by 2
- 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
- 2026Parallel Universes, Parallel Languages: A Comprehensive Study on LLM-based Multilingual Counterfactual Example Generationcited by 1
- 2026iFlip: Iterative Feedback-driven Counterfactual Example Refinementcited by 1
5 more
- 2026When Verification Fails: How Compositionally Infeasible Claims Escape Rejectioncited by 0
- 2026Agentic Search for Counterfactual Recourse under Fixed LLM Budgetscited by 0
- 2026Neuro-Agentic Control: A Deep Learning-based LLM-Powered Agentic AI Framework for Controlling Security Controlscited by 0
- 2026An Empirical Study of Counterfactual Self-Explanations in LLMscited by 0
- 2026Counterfactual Self-Evolving Agents for Evidence-Grounded Reasoningcited by 0
- 2026Counterfactual Self-Evolving Agents for Evidence-Grounded Reasoning26 Sep 2026
- 2026An Empirical Study of Counterfactual Self-Explanations in LLMs15 Sep 2026
- 2026Neuro-Agentic Control: A Deep Learning-based LLM-Powered Agentic AI Framework for Controlling Security Controls10 Jul 2026
- 2026Agentic Search for Counterfactual Recourse under Fixed LLM Budgets7 Jun 2026
- 2026When Verification Fails: How Compositionally Infeasible Claims Escape Rejection13 Apr 2026
- 2026Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentation21 Jan 2026
- 2026iFlip: Iterative Feedback-driven Counterfactual Example Refinement4 Jan 2026
- 2026Can Large Language Models Still Explain Themselves? Investigating the Impact of Quantization on Self-Explanations1 Jan 2026
- 2026Parallel Universes, Parallel Languages: A Comprehensive Study on LLM-based Multilingual Counterfactual Example Generation1 Jan 2026
- 2025Few-Shot Knowledge Distillation of LLMs With Counterfactual Explanations24 Oct 2025
- 2025Teach a Reward Model to Correct Itself: Reward Guided Adversarial Failure Discovery for Robust Reward Modeling8 Jul 2025
- 2025SenseCF: LLM-Prompted Counterfactuals for Intervention and Sensor Data Augmentation7 Jul 2025
5 more
- 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
- 2025Show Me How: Benefits and Challenges of Agent-Augmented Counterfactual Explanations for Non-Expert Users6 Apr 2025
- 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generation1 Jan 2025
- 2024RATE: Causal Explainability of Reward Models with Imperfect Counterfactuals15 Oct 2024
- 2025Show Me How: Benefits and Challenges of Agent-Augmented Counterfactual Explanations for Non-Expert Userscited by 2
- 2026Agentic Search for Counterfactual Recourse under Fixed LLM Budgetscited by 0
- 2026Neuro-Agentic Control: A Deep Learning-based LLM-Powered Agentic AI Framework for Controlling Security Controlscited by 0
- 2026Neuro-Agentic Control: A Deep Learning-based LLM-Powered Agentic AI Framework for Controlling Security Controls10 Jul 2026
- 2026Agentic Search for Counterfactual Recourse under Fixed LLM Budgets7 Jun 2026
- 2025Show Me How: Benefits and Challenges of Agent-Augmented Counterfactual Explanations for Non-Expert Users6 Apr 2025
- 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generationcited by 6
- 2025Truth or Twist? Optimal Model Selection for Reliable Label Flipping Evaluation in LLM-based Counterfactualscited by 5
- 2026Can Large Language Models Still Explain Themselves? Investigating the Impact of Quantization on Self-Explanationscited by 5
- 2025Few-Shot Knowledge Distillation of LLMs With Counterfactual Explanationscited by 3
- 2026Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentationcited by 3
- 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
- 2026Parallel Universes, Parallel Languages: A Comprehensive Study on LLM-based Multilingual Counterfactual Example Generationcited by 1
- 2026iFlip: Iterative Feedback-driven Counterfactual Example Refinementcited by 1
- 2026When Verification Fails: How Compositionally Infeasible Claims Escape Rejectioncited by 0
- 2026An Empirical Study of Counterfactual Self-Explanations in LLMscited by 0
- 2026Counterfactual Self-Evolving Agents for Evidence-Grounded Reasoningcited by 0
- 2026Counterfactual Self-Evolving Agents for Evidence-Grounded Reasoning26 Sep 2026
- 2026An Empirical Study of Counterfactual Self-Explanations in LLMs15 Sep 2026
- 2026When Verification Fails: How Compositionally Infeasible Claims Escape Rejection13 Apr 2026
- 2026Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentation21 Jan 2026
- 2026iFlip: Iterative Feedback-driven Counterfactual Example Refinement4 Jan 2026
- 2026Can Large Language Models Still Explain Themselves? Investigating the Impact of Quantization on Self-Explanations1 Jan 2026
- 2026Parallel Universes, Parallel Languages: A Comprehensive Study on LLM-based Multilingual Counterfactual Example Generation1 Jan 2026
- 2025Few-Shot Knowledge Distillation of LLMs With Counterfactual Explanations24 Oct 2025
- 2025SenseCF: LLM-Prompted Counterfactuals for Intervention and Sensor Data Augmentation7 Jul 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
- 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generation1 Jan 2025