iFlip: Iterative Feedback-driven Counterfactual Example Refinement
cs.CL, cs.LG
Submitted: 2026-01-04
Updated: 2026-08-26
Comments: Camera-ready version accepted to EMNLP 2026 Findings
License: http://creativecommons.org/licenses/by/4.0/
The gist: Counterfactual examples are minimal edits to an input that alter a model's prediction.
Terminology
Abstract
Counterfactual examples are minimal edits to an input that alter a model's prediction. They are widely employed in explainable AI to probe model behavior and in natural language processing (NLP) to augment training data. However, generating valid counterfactuals with large language models (LLMs) remains challenging, as existing single-pass methods often fail to induce reliable label changes, neglecting LLMs' self-correction capabilities. To explore this untapped potential, we propose iFlip, an iterative refinement approach that leverages three types of feedback, including model confidence, feature attribution, and natural language. Our results show that iFlip achieves an average 57.8% higher validity than the five state-of-the-art baselines, as measured by the label flipping rate. The user study further corroborates that iFlip outperforms baselines in completeness, overall satisfaction, and feasibility. In addition, ablation studies demonstrate that three components are paramount for iFlip to generate valid counterfactuals: leveraging an appropriate number of iterations, pointing to highly attributed words, and early stopping. Finally, counterfactuals generated by iFlip enable effective counterfactual data augmentation, substantially improving model performance and robustness.
Sources
- Large Language Monkeys: Scaling Inference Compute with Repeated Sampling
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- On the Intrinsic Self-Correction Capability of LLMs: Uncertainty and Latent Concept
- The Llama 3 Herd of Models
- A Survey on LLM-as-a-Judge
- Confidence-Guided Error Correction for Disordered Speech Recognition
- A Comparative Analysis of Counterfactual Explanation Methods for Text Classifiers
- Not Just a Black Box: Learning Important Features Through Propagating Activation Differences
- Gemma 3 Technical Report
- 2 OLMo 2 Furious
- gpt-oss-120b & gpt-oss-20b Model Card
- Self-Correcting Large Language Models: Generation vs. Multiple Choice
- Through a Compressed Lens: Investigating The Impact of Quantization on Factual Knowledge Recall
- Qwen3 Technical Report
Related papers
- Exploring Solution Divergence and Its Effect on Large Language Model Problem Solving
- Ishigaki-IDS-Bench: A Benchmark for Generating Information Delivery Specification from BIM Information Requirements
- Subliminal Steering: Stronger Encoding of Hidden Signals
- MedStruct-S: A Benchmark for Key Discovery, Key-Conditioned QA and Semi-Structured Extraction from OCR Clinical Reports
- The End of Transformers? On Challenging Attention and the Rise of Sub-Quadratic Architectures
- Untangling the Mechanisms of Misleading Context in Medical Question Answering