TL;DR
Does Chain-of-Thought (CoT) prompting actually guide an LLM's reasoning, or is it just window dressing? This paper introduces KisMATH, a dataset of 1,671 math problems mapped to automatically extracted "Causal CoT Graphs" (CCGraphs). By systematically suppressing attention to intermediate steps across 15 open-weight LLMs, the authors prove that these intermediate mathematical tokens are genuine causal mediators essential to the final answer, rather than mere decoration.
What Problem Does This Paper Address?
While Chain-of-Thought (CoT) prompting significantly boosts LLM performance on complex reasoning tasks, the underlying mechanism remains a subject of intense debate. One camp believes CoT decomposes problems into manageable sub-tasks, while another argues it merely acts as an "approximate retrieval" mechanism from latent knowledge, largely indifferent to step-by-step logic.
To resolve this, the authors ask a fundamental question: Do the intermediate steps in a reasoning trace actually causally mediate the final answer, or are they just decorative text generated along the way? Understanding this is crucial for determining whether LLMs are truly executing multi-step reasoning or simply stumbling upon answers through statistical correlation.
Methods
The authors develop an automated algorithm to extract Causal CoT Graphs (CCGraphs) from LLM-generated solutions to model fine-grained causal dependencies.
- Graph Construction: Using the SymPy symbolic parser, the algorithm extracts all mathematical expressions from a question, reasoning trace, and answer. Starting from the answer node, it recursively searches backward for matching sub-expressions or parse-tree nodes until it reaches the question nodes, creating a directed acyclic graph (DAG) of causal dependencies.
- Attention Suppression: To test causality, the authors force the model's attention weights for specific tokens (like intermediate reasoning nodes or paths) to zero across all layers and heads. This simulates a counterfactual scenario where those reasoning steps are completely absent, allowing them to measure the direct vs. indirect effects on the final answer's entropy (uncertainty).
- Path Probability Analysis: They compare the likelihood of the model traversing a valid reasoning path (R path) versus a random token path of identical length within the same trace to see if the model internally favors logical structures.
Datasets
The paper introduces KisMATH (Knowledge of implicit structures in Math), a benchmark dataset containing 1,671 mathematics problems paired with high-quality reasoning traces generated by OpenAI's o3 model and their corresponding CCGraphs. The problems are sourced from three popular benchmarks:
- GSM8K: 983 arithmetic word problems.
- MATH500: 384 Olympiad-style mathematics problems.
- AIME: 304 highly challenging Olympiad-level problems.
Note: Geometry problems and those requiring diagrams were filtered out due to parsing limitations.
Key Insights and Ideas
- Intermediate Steps are True Mediators: Suppressing intermediate mathematical nodes causes a massive spike in the entropy (uncertainty) of the final answer. This confirms that CoT traces are not just "decoration"—the model genuinely relies on them to compute the solution.
- Implicit Structural Awareness: LLMs assign significantly higher probability mass to valid reasoning paths than to random paths of the same length. This strongly implies that LLMs internally realize and favor the underlying causal structure of the mathematical argument.
- Two Modes of Reasoning Behavior: The authors identify two distinct behavioral regimes when looking at path probability distributions:
- Exponential regime: Models (like Qwen 3) treat almost every step along the path as a high-probability transition.
- Bell-shaped regime: Models (like DeepSeek R1) exhibit a minority of low-probability transitions. These act as "forks" or decision points, driving broader exploration of alternative solution paths during test-time sampling.
- RLVR vs. Distillation: Models trained with Reinforcement Learning with Verifiable Rewards (RLVR), like Qwen 3, tend to show "over-confidence" (the exponential regime), which actually harms their ability to explore diverse reasoning paths compared to distilled reasoning models like DeepSeek R1.
Key Results
- Massive Entropy Shifts: Attention suppression over all reasoning nodes consistently increased answer uncertainty across all 15 tested open-weight LLMs (ranging from 1B to 70B parameters), yielding a highly significant shift in entropy distributions ($p < 10^{-12}$).
- Path Validation: Suppressing specific valid reasoning paths drastically altered the final outcome ($p < 10^{-300}$ via a 2-sample Kolmogorov-Smirnov test).
- Exploration Efficiency: The "bell-shaped" DeepSeek R1 32B model achieved a higher
pass@kaccuracy scaling (climbing from ~71.6% at $k=1$ to 90% at $k=10$ on AIME) compared to the "exponential" Qwen 3 32B model, validating the idea that high-entropy "fork" tokens enable more robust test-time exploration.
Limitations and Future Work
- Manual Intervention: In about 10% of cases, the automated graph extraction failed or degenerated into a trivial single-node graph due to LaTeX formatting errors or natural language interruptions (e.g., text breaking up an equation), requiring manual correction.
- Scope Restrictions: The current CCGraph extraction pipeline relies heavily on algebraic parsing. As a result, it cannot easily handle non-algebraic reasoning domains such as geometry, abstract mathematics, or commonsense reasoning where natural language context defines the semantic relationships between entities.
- Future Directions: The authors suggest extending this framework by incorporating natural language context to capture semantic similarity and discourse connectives, allowing causal graph extraction for broader, more complex reasoning tasks.
Summary updated