cs.AISep 26, 2026

Counterfactual Self-Evolving Agents for Evidence-Grounded Reasoning

Authors: Xing Han, Yuxin Wang, Chen Chen, Wei Dai, Gautham Krishna Gudur, Shijun Li, Hsing-Huan Chung, Gregory D. Hager, +3 more

Organizations: Johns Hopkins University · MIT · University of Texas at Austin · Bayesian Health

Abstract

Self-play proposer--solver methods improve reasoning by generating tasks and learning from verified solutions. However, for evidence-identifiable tasks, where case-specific evidence and domain knowledge determine a checkable answer, self-play requires generating plausible cases whose answers can be independently verified. We introduce counterfactual self-evolution, which generates counterfactual context for reconsidering the original case. A trainable Proposer constructs targeted evidence edits and describes potential outcome changes with causal explanations. We handcraft an expert-verified counterfactual instruction-tuning dataset to teach the Proposer to generate high-quality counterfactuals across a broad range of action--outcome scenarios. Each counterfactual instruction-tuning example specifies an edit within a defined category and explains its hypothesized causal effect on the decision, teaching the Proposer to reason systematically about what changes and why. We instruction-tune the Proposer on these examples, then formulate a fine-tuning reward that integrates feedback from the Solver and Verifier. Across diverse counterfactual scenarios, this reward favors high-quality counterfactuals and warranted revisions, while penalizing changes that overturn correct decisions. The counterfactual context aims to correct errors and strengthen confidence in correct decisions. Accepted counterfactuals accumulate in memory that supplies in-context evidence to the frozen Solver; the Solver adapts through evolving context rather than weight updates. We apply the framework to clinical reasoning, fact verification, and business reasoning. Our evaluation tracks performance over successive rounds as counterfactual memory grows, including transfer to harder cases. Our method achieves superior results across diverse frontier models.

Figures & tables

Appendix figures & tables30 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. CoBe: A Benchmark For Conversational Counterfactual Text Editing

    Oct 9, 2026Arvind Raghavan, Inwoo Hwang, Shreyas Havaldar +6Causal Counterfactual GenerationCounterfactual Reasoning in Language Models

  2. The Illusion of What If\textit{What If}: Evaluating the Breakdown of Counterfactual Reasoning in LLMs

    Aug 28, 2026Yucheng Wang, Yuetian Du, Zhengyi Liu +8Counterfactual Reasoning in Language ModelsCounterfactual Reasoning

  3. COUNTERMEM: World-Model Verified Counter-Factual Memory for Language Agents

    Sep 25, 2026Hongji Pu, Ruixiang Tang, Yongfeng ZhangMemory-Augmented Language Model AgentsPersistent Memory for Language Models