Manuscript Offprint

arXiv:2610.13057

CoBe: A Benchmark For Conversational Counterfactual Text Editing

Arvind Raghavan, Inwoo Hwang, Shreyas Havaldar, Kai-Zhan Lee, Aurghya Maiti, Yushu Pan, Jeffrey Wu, Mingxuan Li, Elias Bareinboim

ABSTRACT

Counterfactual text editing is the ability to revise a given text in light of a hypothetical change while preserving facts not causally affected by that change. When asked what would have happened if a doctor had not recommended surgery, the model output should retain the patient's medical history and modify only the consequences of the decision. This requires causal understanding: a model must determine, without being explicitly instructed to, what events are affected by the hypothetical change and what should remain fixed. This skill is central to human reasoning, especially in safety-critical domains like healthcare or law. By contrast, the task of associational text generation merely generates text statistically associated with the altered condition. In the medical example, an associational response might make the patient's symptoms less severe because milder cases correlate with no surgery. Such responses produce a plausible scenario, but not the counterfactual version of the given one. Prior counterfactual-text datasets do not clearly separate these modes of reasoning. We introduce the Counterfactual Benchmark (CoBe), a testbed for models' zero-shot ability to counterfactually edit a given textual scenario when prompted to do so in a conversationally natural way. CoBe contains 2000 questions spanning healthcare, science and engineering, business, and everyday scenarios. We test a suite of frontier and smaller models, with frontier systems achieving an average score of 58.05%. Our findings indicate that models frequently default to associational generation rather than preserving the causal structure of the original scenario. Moreover, performance does not scale consistently with either model size or output token length, suggesting that the failure may reflect model training objectives rather than insufficient model capacity.

1 INTRODUCTION

Conversational counterfactuals are a vital tool for understanding the world and the consequences of choosing different actions in a given scenario. Consider a classic example in the philosophy of language: the statements (1) If Oswald did not shoot Kennedy, someone else did; and (2) Had

Figure

Rung 1: Associational

Rung 2: Interventional

Rung 3: Counterfactual

Figure 1: The three rungs of Pearl’s causal ladder are (i) associational; (ii) interventional; and (iii) counterfactual.

Oswald not shot Kennedy, someone else would have. Most readers would agree with the first statement while disagreeing with the second, intuitively grasping that the two make fundamentally different claims. The first is a factual claim, whereas the second is a counterfactual claim about what would have happened had we intervened in the given scenario with a different condition.

∗^{*}Equal contribution.

Figure

Observing

factual

events

Original text (T):

President Kennedy died (B=0) on Nov 22, 1963. He was shot by Lee Harvey Oswald (A=1), who likely acted alone (C=0).

Counterfactual question:

Given that Kennedy died on Nov 22, what would have happened if Oswald had not shot him?

Figure

B=1 (Kennedy lives)

SUBJUNCTIVE LANGUAGE

("would have...had")

Formal query:

P(TA=0∣A=1,B=0,C=0)P(T_{A=0} \mid A = 1, B = 0, C = 0)

Given the scenario (T=r)(T = r) where (A=1,B=0,C=0)(A = 1, B = 0, C = 0), what would likely have happened had we instead fixed do(A=0)do(A = 0)?

Counterfactual answer · Rung 3

If Oswald had not shot Kennedy, and he had acted alone, Kennedy would have been alive on Nov 22.

Causal structure:

A=1

(Oswald

shoots)

A

B=0

(Kennedy

dies)

C=0

(No one

else shoots)

B

Associational question:

Given that Kennedy died on Nov 22, what happened if Oswald did not shoot him?

A=0

(Oswald

does not

shoot)

A

B=0

(Kennedy

dies)

background

edited

C=1

(Someone

else shoots)

INDICATIVE LANGUAGE

("did...if")

Formal query:

P(T∣A=0,B=0)P(T \mid A = 0, B = 0)

What are we likely to observe in the sequence where (B=0)(B = 0) and (A=0)(A = 0)?

Associational answer · Rung 1

If Oswald did not shoot Kennedy, someone else did, since Kennedy died on Nov 22.

Figure

Figure 2: Counterfactual text editing, belonging to Rung 3 of Pearl's causal ladder, keeps background factors constant, and reasons about what would have happened as the result of a hypothetical intervention. By contrast, associational text generation belongs to Rung 1, and generates alternative scenarios correlated with the altered condition (possibly changing background factors). Note: counterfactual scenarios need not be realistic or likely to occur, ordinarily.

Counterfactual reasoning belongs to the third rung of Judea Pearl's celebrated ladder of causation, a.k.a the Pearl Causal Hierarchy, or PCH (Pearl & Mackenzie, 2018)(Bareinboim, 2025, Ch. 5). Rung 1 involves observing statistical associations among events in the factual world. Rung 2 involves intervening in the factual world and observing outcomes. Rung 3 involves observing factual events and reasoning about what would counterfactually have happened had we intervened in the given scenario. Notably, a counterfactual only alters events causally downstream of the hypothetical intervention, and keeps fixed background factors in the original scenario that are causally prior to the intervention (Fig. 1). Refer to App. A.1 for a primer on causal models. Counterfactual reasoning is well-established to be central to personalized decision-making (Bareinboim et al., 2015; Mueller & Pearl, 2023; Raghavan & Bareinboim, 2025), mediation analysis (Avin et al., 2005; Pearl, 2001; Rubin, 2004), fairness analysis (Plecko & Bareinboim, 2024; Zhang & Bareinboim, 2018), and explainability (Halpern & Pearl, 1999; Lee et al., 2025).

In this work we focus on conversational counterfactuals: Rung 3 questions articulated in everyday colloquial language, using the subjunctive "would have...had" grammatical construction. Would the patient have succumbed to an infection had she not been moved to the crowded ward? Would oil prices be lower today if the UAE had quit OPEC earlier? Conversational counterfactuals are integral to how humans think, communicate, and construct explanations for why events occurred; they are foundational to our intuitions about ethics, regret, credit, and responsibility (Bareinboim, 2025; Gopnik et al., 2004; Hume, 1748; Lewis, 1973; Pearl, 2000; Pearl & Mackenzie, 2018). We next formally define this important capability that we wish to test on language models.

Conversational counterfactual text editing. A language model receives two inputs: (i) a textual story T describing a set of events (A,B...)(A, B...) where some events causally affect other events in the story; and (ii) a conversational counterfactual question involving a hypothetical intervention in this particular storyline, phrased in colloquial subjunctive "would have...had" grammar. From this prompt, the model is expected to infer and execute three steps: (a) keep fixed any background factors/events in the story that are not causally affected by the intervened-variable in the original timeline; (b) enact the requested intervention by imagining an externally enforced edit to the storyline; and (c) reason about the commonsense downstream effects on subsequent events in the storyline due to enforcing this change, and produce edited text reflecting this counterfactual storyline.

Example shown in Fig. 2 in green. We also provide a detailed illustration, and additional formal background on conversational counterfactuals and the subjunctive conditional construction in App. A.2, using this Oswald/Kennedy example. Note: in our definition of conversational counterfactuals, we intentionally avoid any technical instructions about causal graphs, counterfactuals, or step-by-step

Figure

Figure 3: Idealized healthcare workflow depicting a staff reviewing medical records to generate case studies for training. Gemini 3.1 is prompted, in conversational language, to incorporate a counterfactual edit to patient treatment. Gemini incorrectly alters patient symptoms, causing downstream errors.

procedures in our prompts. Our motivation for focusing on conversational prompting is twofold. First, this is a natural human capability: when asked a question like "what would have happened in this scenario if I had done something different?" we automatically understand that this means the intervention should only affect downstream events holding fixed all background factors and prior events, without requiring causal formalisms or detailed instructions such as "keep prior events fixed". Second, AI assistants are increasingly embedded in everyday and professional workflows (Anthropic, 2026b), with personal agents such as Meta's Muse explicitly designed for communication as users would with another person (Meta, 2026). In these settings, users should be able to express a hypothetical change in ordinary interactive language without needing to detail in each case which variables should remain invariant, or requiring expertise in task-specific prompt tuning (Zamfirescu-Pereira et al., 2023). Our task is therefore designed to test whether models can infer these edit requirements from the scenario and conversational request, without requiring the user to supply a detailed causal task recipe. App. E examines more explicit prompt instructions to distinguish performance in the conversational setting from performance with additional procedural guidance.

Unfortunately, a growing body of work documents that LLMs often rely on associational signals rather than genuine causal structure, learning surface heuristics from their pretraining distribution (Joshi et al., 2024; Wu et al., 2024) and often learning shortcuts to predict “right but for the wrong reasons” (Du et al., 2023; Geirhos et al., 2020; McCoy et al., 2019). In contrast to counterfactual edits, the task of associational generation (belonging to Rung 1 of the causal ladder) generates text by merely conditioning on an alternative event to ask what scenarios are statistically likely to co-occur with the given change. We illustrate this in Fig. 2 in red, and expand in App. A.2.

Given how embedded language models are in modern workflows, confusing counterfactual and association generation can lead to errors in safety-critical domains like medicine, law etc. We show in Fig. 3 an idealized healthcare workflow where a user is interacting with an AI assistant to generate case studies for the same patient under different treatments. Frontier models incorrectly alter the patient history in the output, introducing downstream errors in the workflow. Such shortcut learning based on spurious correlations in the training data risks systematic, hard-to-predict errors (Kiciman et al., 2024; Kim et al., 2025). For instance, when trying to mitigate bias using counterfactual data augmentation, naive approaches can introduce new biases due to spurious correlations in the data (Jin et al., 2025; Mouli et al., 2022; Tokpo & Calders, 2024).

With this motivation, we introduce Counterfactual Benchmark (CoBe): a dataset for testing the native ability of language models to produce causally-valid counterfactual edits to text, when prompted to do so in conversational language, without specialized prompts. The key highlights are as follows:

• We curate a set of 2000 samples (200 public), each containing, in natural language, (i) a short text describing a scenario, and (ii) a set of single-turn prompts requesting, in colloquial everyday language, a counterfactual edit to the paragraph.

  • We provide the evaluation criteria for each question to determine the validity of model responses, offering a principled and causally-grounded way of evaluating counterfactual edits, verified by human experts.

  • Our dataset covers scenarios from diverse domains: Science & Research, Engineering, Business & Services, Everyday Scenarios, Healthcare, and Legal, Policy & HR, among others.

  • We investigate a comprehensive suite of closed and open-source models, with results summarized in Sec. 4. Notably, frontier models only score an avg. of 58.05%58.05\% as of July 2026.

  • We taxonomize the failure modes we observed and characterize the idiosyncratic error profiles of different models. For instance, we observe that Gemini-3.1-Pro outputs appear to strongly favor correlational consistency, and GPT-5.4-Pro struggles to incorporate background information from the scenario in its edits.

To our knowledge, we provide the first testbed for zero-shot conversational counterfactual edits, grounded in formal causal semantics, in the domain of narrative stories. Our evaluation criteria allow for multiple valid responses that respect counterfactual reasoning. We are also the first to characterize the distinct error-profiles of different models on this important task. All of these allow CoBe to be seamlessly integrated as a training signal into pipelines designed to improve model reasoning, both fine-tuning and inference-time.

Counterfactual text editing is a specific manifestation of a broader causal reasoning capability. Causal intelligence spans many activities, including causal understanding, explanation, decision-making, generalization, representation learning, and causal simulation (Bareinboim, 2025, Ch. 1). CoBe focuses on a very specific sub-task: we test whether models can infer which facts to preserve or revise from the narrative text and a conversational edit request, without explicit instructions specifying causal dependencies, invariant facts, or a counterfactual reasoning procedure.

References (47)