Interpreting Model Reasoning through Behavioral Counterfactuals

cs.LG cs.AI Shawn Im, James Oldfield, Adel Bibi, Sharon Li · Oct 22, 2026
Local to this browser
What it does
Understanding how reasoning models compute their chain-of-thought is challenging because sampled responses vary widely, making it hard to isolate the effect of a prompt intervention. This paper proposes behavioral counterfactuals: keep a...
Why it matters
The authors train a residual-stream edit module to minimize the $\mathrm{KL}$ divergence between the edited and counterfactual output distributions, then attribute recovery to individual token edits and validate with activation patching....
Main concern
The paper presents a well-motivated framework that grounds mechanistic interpretability in measurable downstream behavior. Training an edit module to match counterfactual output distributions is a clear methodological advance over...
Community signal
0
0 up · 0 down
Sign in to vote with arrows
AI Review AI reviewed
Plain-language introduction

Understanding how reasoning models compute their chain-of-thought is challenging because sampled responses vary widely, making it hard to isolate the effect of a prompt intervention. This paper proposes behavioral counterfactuals: keep a generated response fixed and compare next-token distributions under a control prompt and an intervention prompt. The authors train a residual-stream edit module to minimize the $\mathrm{KL}$ divergence between the edited and counterfactual output distributions, then attribute recovery to individual token edits and validate with activation patching. On ethical reasoning tasks, they find that filler and question tokens mediate a substantial share of the intervention’s influence even when the model never verbally acknowledges the suggestion.

Critical review
Verdict
Bottom line

The paper presents a well-motivated framework that grounds mechanistic interpretability in measurable downstream behavior. Training an edit module to match counterfactual output distributions is a clear methodological advance over activation reconstruction, and the finding that filler tokens carry hidden influence is substantively interesting. However, the evaluation covers only one dataset and one suggestion-based intervention across two models, and the absolute KL recovery from direct activation patching remains modest at 11–19%.

“reconstructing the activations of the counterfactual computation may not result in similar downstream behavior due to the changes in the prompt”
Im et al., Sec. 3.1 · Section 3.1
What holds up

The distribution-matching objective is convincingly superior to activation reconstruction for behavioral transfer: for DeepSeek-R1-0528-Qwen3-8B, recovery drops from 47.8% to 20.4% under the reconstruction objective, and for Gemma-4-E4B-it it can yield negative recovery. Integrated Gradients attribution scores correlate with causal ablation effects (median Spearman 0.58 and 0.68), and activation patching shows the identified question and filler tokens are genuinely important, with effects 2.3–8.1× larger than random controls.

“recovery dropping from 47.8% to 20.4% for DeepSeek-R1-0528-Qwen3-8B and for Gemma-4-E4B-it, it can actually result in negative recovery”
Im et al., Sec. 3.1 · Section 3.1
“Compared to a control of randomly patching the same number of tokens, we see that recovery is consistently larger by factors of approximately 2.3 to 8.1”
Im et al., Sec. 4.2 · Section 4.2
Main concerns

The scope is narrow: the authors explicitly note that "While the current analysis focuses on a single setting and intervention," which limits generalization to other reasoning domains or interventions. Quantitative recovery is modest overall; while the trained edit module reaches roughly 48% for DeepSeek, native activation patching of the critical token sets only recovers 11.4–19.3% of the KL gap, leaving most of the intervention effect unexplained. Attribution-ablation correlation, though better than edit-norm baselines, is moderate and weakens when all tokens are considered rather than top events, and the alternative RelP attribution performs poorly, raising questions about attribution-method sensitivity.

“While the current analysis focuses on a single setting and intervention”
Im et al., Sec. 6 · Section 6
“patching just the filler tokens recovers 11.4% for Gemma-4-E4B-it and the question span recovers 11.3% for DeepSeek-R1-0528-Qwen3-8B and patching both recovers 16.2% and 19.3%”
Im et al., Sec. 4.2 · Section 4.2
Evidence and comparison

The within-paper comparison between distribution matching and activation reconstruction is rigorous, and the random-patching control appropriately strengthens causal claims. The authors engage fairly with related work, citing Karvonen et al.’s result that activation-based tools provided "no uplift" for predicting counterfactual behavior, and they position their framework as a way for activation methods to complement rather than replace chain-of-thought monitoring. No direct quantitative baseline against other interpretability methods on the same reasoning task is provided, so readers cannot gauge relative efficacy.

“we find no uplift from any of the interpretability techniques studied”
Reproducibility

The code is released on GitHub and the Scruples dataset is public, which aids reproduction. Appendix tables specify generation configurations, learning rates, batch sizes, and layer indices. However, exact random seeds, compute hardware, training duration, and the precise protocol for selecting the single fixed response per prompt are not reported. The method relies on renormalizing distributions over a Top-K common support $S_t$, an implementation choice that could affect the measured KL values and merits sensitivity analysis.

“Code is available at <https://github.com/shawn-im/behavioral-counterfactuals>”
Im et al. · Author affiliations
Abstract

Faithfully understanding the internal process that occurs as models form their chain of thought is an important problem with the rise in model capabilities. However, this remains challenging due to the variance in sampled responses, making it difficult to isolate the effects of interventions and compare model reasoning systematically. We propose a method for localizing and analyzing how a given intervention affects the model's reasoning through behavioral counterfactuals: given a fixed response, how does introducing an intervention to the prompt change the next-token distributions? We train a module to edit the residual stream such that it minimizes the KL divergence between the output distributions for a fixed response under a source prompt and its counterfactual target prompt. We find that matching the output distributions recovers the counterfactual behavior more effectively than standard activation reconstruction objectives and validate that attribution of the trained module outputs is effective for identifying causally important locations for counterfactual recovery. The attribution maps and visualizations of the downstream effects of model edits provide an interface for generating hypotheses about the original model's computation, which can then be tested with activation patching. In a case study on Gemma-4-E4B-it and DeepSeek-R1-0528-Qwen3-8B, we investigate how a suggestion influences model reasoning even when it is not verbally acknowledged. Our analysis identifies representations at the question statement and filler tokens that mediate a substantial part of the suggestion's influence, with downstream effects such as changing the framing of the justification or even the final answer.

Challenge the Review

Pick a starting point or write your own. Challenges run in the background, so you can keep reading while the AI investigates.

No challenges yet. Disagree with the review? Ask the AI to revisit a specific claim.