Manuscript Offprint

arXiv:2610.31639

Causal Chain of Thought: Mitigating Attention Leakage via Context Isolation

Gabriele Dominici, Teague McMillan, Fazl Barez, Marc Langheinrich, Martin Gjoreski

Gabriele Dominici *

Università della Svizzera Italiana

gabriele.dominici@usi.ch

Teague McMillan *

ETH Zurich

tmcmillan@ethz.ch

Fazl Barez

University of Oxford

fazl@robots.ox.ac.uk

Marc Langheinrich

Università della Svizzera Italiana

marc.langheinrich@usi.c

Martin Gjoreski

Università della Svizzera Italiana

martin.gjoreski@usi.ch

ABSTRACT

Chain-of-thought (CoT) prompting elicits step-by-step rationales that appear to explain model predictions, but there is no guarantee these steps causally drive the final answer. In standard autoregressive generation, dense attention allows each reasoning step to attend to the full context, enabling the model to derive answers through direct lookup while generating plausible-sounding but post-hoc justifications. We introduce CausalCoT, an inference framework that enforces causal transparency by decomposing problems into a directed acyclic graph of atomic sub-questions, evaluating each node in an isolated context containing only its direct causal parents. This Markovian structure removes attention pathways to non-parent content, making downstream predictions sensitive to local reasoning rather than global context leakage. Across a diverse suite of reasoning benchmarks, CausalCoT preserves competitive predictive performance while improving explanation faithfulness, increasing causal sensitivity of intermediate reasoning steps by an average of 12 and up to 21 percentage points over the strongest baseline. The structured dependency graph additionally enables test-time interventions in which local corrections propagate predictably through downstream reasoning.

1 INTRODUCTION

Large Language Models (LLMs) are increasingly deployed in high-stakes domains like healthcare, where user trust is crucial (Chen et al., 2024). Here, non-experts frequently rely on LLM-generated rationales, treating them as transparent windows into the model's decision-making (Barez et al., 2025). However, this trust is often misplaced. While techniques like Reinforcement Learning from Human Feedback (RLHF) (Ouyang et al., 2022), Group Relative Policy Optimization (GRPO) (DeepSeek-AI et al., 2025), and Chain of Thought (CoT) (Wei et al., 2023) produce highly plausible text, they optimize for human preference rather than mechanistic transparency. Consequently, these explanations are frequently unfaithful to the model's internal logic (Mayne et al., 2026; Matton et al., 2025; Turpin et al., 2023; Lanham et al., 2023). Alarmingly, even researchers sometimes misuse these persuasive post-hoc rationalizations with true explanations (Barez et al., 2025).

This fundamental disconnect is a critical barrier to safe deployment. Specifically, standard CoT prompting suffers from severe causal opacity driven by attention leakage, the phenomenon where dense, global attention mechanisms allow a model to implicitly bleed information across its entire

∗^{*}Equal contribution

HUMAN

Question. A 67-year-old woman presents with fatigue, numbness in her feet, and decreased vibration sensation. Labs show hemoglobin 9.8 g/dL, MCV 112 fl., and hypersegmented neutrophils. Anti-intrinsic factor antibodies are positive.

Which substance is most directly impaired? (A) Folate (B) Intrinsic factor (C) Bile salts ...

Chain of Thought

ASSISTANT

Answer: Let's think step by step:

Step 1: Low hemoglobin, high MCV, and hypersegmented neutrophils indicate megaloblastic macrocytic anemia.

Step 2: Numbness and decreased vibration sensation suggest vitamin B12 deficiency, which can cause neurologic symptoms.

Step 3: Positive anti-intrinsic factor antibodies indicate pernicious anemia, which impairs intrinsic factor.

Step 4: Intrinsic factor is required for vitamin B12 absorption in the terminal ileum.

Step 5: Therefore, impaired intrinsic factor explains the patient's B12 deficiency and symptoms.

Final answer: (B) Intrinsic factor

Causal Chain of Thought

Figure

Figure 1: CoT vs. CausalCoT. (Left) In standard CoT, the model generates a continuous, autoregressive stream of reasoning. (Right) Our proposed CausalCoT framework structurally isolates reasoning into a Directed Acyclic Graph (DAG). Each sub-question is evaluated in a restricted context containing only its explicitly routed parental dependencies. This enforces a procedural Markovian property, making the final prediction depend on explicitly routed intermediate outputs rather than unrestricted access to the full reasoning trace as done in CoT.(Completions shortened for illustration).

context window rather than strictly depending on preceding logical steps. Because of this leakage, generated reasoning may appear perfectly logical while remaining entirely disconnected from the final prediction. For instance, Turpin et al. (2023) demonstrate that when provided with subtle context biases or unstated hints, models will heavily exploit these heuristics to derive an answer, yet completely omit them from their generated explanations, fabricating a step-by-step rationale that was never utilized. Furthermore, Lanham et al. (2023) reveal that actively modifying, degrading, or intervening on early CoT steps often yields surprisingly little impact on the downstream output. Together, these phenomena prove that standard autoregressive reasoning frequently acts as a superficial justification, rather than a sequence of causally relevant steps that drive the model's behavior. Although recent frameworks have attempted to resolve this opacity via alignment training (Paul et al., 2024) or question decomposition (Radhakrishnan et al., 2023), they still evaluate steps within shared contexts, inevitably suffering from continued attention leakage.

To bridge the gap between plausible generation and faithful reasoning, we introduce Causal Chain-of-Thought (CausalCoT) 1^{1}. CausalCoT enforces a strict transparent inference structure to prevent attention leakage, ensuring that a model's stated reasoning correctly dictates its final prediction. Our approach operates in two phases: (i) the model decomposes a complex query into a topological plan, a Directed Acyclic Graph (DAG) of interdependent sub-questions; (ii) each node is evaluated in isolation, constrained entirely to its specific query and the explicitly routed answer of its direct parents (or the initial input, for root nodes). By enforcing this Markovian property, we construct a network of question-answer pairs where each step is causally driven only by its local dependencies. This architectural constraint removes the spurious contextual leakage of standard autoregressive generation during the evaluation phase. Furthermore, it natively supports counterfactual simulatability, allowing users to intervene on internal reasoning nodes and propagate those logical changes downstream. A comparison between CoT and CausalCoT is shown in Figure 1.

We make four contributions:

1^{1}We use the term “causal” throughout this work to denote strict procedural dependence (i.e., subsequent reasoning steps are strictly conditioned on the related prior steps) rather than formal statistical causal inference or structural causal models. This scoping is stated in full in Appendix D.

• We introduce CausalCoT, an inference framework that grounds reasoning in an explicit DAG, restricting intermediate steps to attend strictly to their parent nodes and eliminating spurious contextual shortcuts present in CoT.

• We propose Predictable Change, a faithfulness metric that moves beyond the classic raw perturbation flip rates by testing whether downstream predictions match the logical implications of injected errors rather than arbitrary sensitivity.

• We establish that CausalCoT significantly enhances reasoning faithfulness, across multiple frontier models, with competitive predictive accuracy, performing on par with standard CoT or incurring only marginal drops.

• We demonstrate that the underlying dependency graph facilitates targeted test-time interventions, propagating local corrections downstream far more reliably than standard CoT.

References (79)