mlsanityData to 7 Oct 2026

Zero-shot LLM-guided Counterfactual Generation: A Case Study on NLP Model Evaluation

arXiv 2405.04793 ↗First posted 8 May 2024cs.CL cs.AI cs.LGcited by 17

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

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  5. 2017Deep reinforcement learning from human preferencescited by 3,846
  6. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  7. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  8. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  9. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
  10. 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
  11. 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 849
  12. 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 755
10 more
  1. 2022A Survey on In-context Learningcited by 717
  2. 2018e-SNLI: Natural Language Inference with Natural Language Explanationscited by 468
  3. 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 428
  4. 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
  5. 2021Polyjuice: Generating Counterfactuals for Explaining, Evaluating, and Improving Modelscited by 219
  6. 2020A Diagnostic Study of Explainability Techniques for Text Classificationcited by 158
  7. 2020Generate Your Counterfactuals: Towards Controlled Counterfactual Generation for Textcited by 75
  8. 2023Towards LLM-guided Causal Explainability for Black-box Text Classifierscited by 44
  9. 2023Prompting Large Language Models for Counterfactual Generation: An Empirical Studycited by 36
  10. 2022Plug and Play Counterfactual Text Generation for Model Robustnesscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 7; 2026: 9.

17 papers.

Sort:

By area:

  1. 2024RATE: Causal Explainability of Reward Models with Imperfect Counterfactualscited by 6
  2. 2025FitCF: A Framework for Automatic Feature Importance-guided Counterfactual Example Generationcited by 6
  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 3
  6. 2026Counterfactual Modeling with Fine-Tuned LLMs for Health Intervention Design and Sensor Data Augmentationcited by 3
  7. 2025Show Me How: Benefits and Challenges of Agent-Augmented Counterfactual Explanations for Non-Expert Userscited by 2
  8. 2025Teach a Reward Model to Correct Itself: Reward Guided Adversarial Failure Discovery for Robust Reward Modelingcited by 2
  9. 2025Why Are You Wrong? Counterfactual Explanations for Language Grounding with 3D Objectscited by 1
  10. 2025SenseCF: LLM-Prompted Counterfactuals for Intervention and Sensor Data Augmentationcited by 1
  11. 2026Parallel Universes, Parallel Languages: A Comprehensive Study on LLM-based Multilingual Counterfactual Example Generationcited by 1
  12. 2026iFlip: Iterative Feedback-driven Counterfactual Example Refinementcited by 1
5 more
  1. 2026When Verification Fails: How Compositionally Infeasible Claims Escape Rejectioncited by 0
  2. 2026Agentic Search for Counterfactual Recourse under Fixed LLM Budgetscited by 0
  3. 2026Neuro-Agentic Control: A Deep Learning-based LLM-Powered Agentic AI Framework for Controlling Security Controlscited by 0
  4. 2026An Empirical Study of Counterfactual Self-Explanations in LLMscited by 0
  5. 2026Counterfactual Self-Evolving Agents for Evidence-Grounded Reasoningcited by 0