AI
Researchers Trace How Chain-of-Thought Reasoning Works Inside AI Models
A new study reveals that chain-of-thought prompting acts as a "decoding space pruner," guiding model outputs through answer templates while modulating neuron activity in surprising ways.
Chain-of-Thought (CoT) prompting has become a go-to technique for improving AI reasoning, but what actually happens inside the model when it works remains largely opaque. A new investigation from researchers at arXiv (submission cs.AI/2507.20758) offers fresh mechanistic insights by reverse-tracing how information flows through the layers where models decode outputs, project representations, and activate neurons.
A New Framework for Understanding CoT#
The research team approached the question by analyzing the actual computational pathways that activate when a model engages in step-by-step reasoning. Rather than treating CoT as a black box, they systematically examined three critical phases: the decoding stage where the model generates tokens, the projection operations that transform intermediate representations, and the activation patterns across the network's neurons. This mechanistic lens reveals that CoT operates in ways quite different from what intuition might suggest.
CoT as a Constraint on Output Space#
The analysis points to an unexpected mechanism: CoT functions like a pruner of the decoding search space. When given explicit step-by-step reasoning instructions, models appear to leverage answer templates—structural patterns that emerge during training—as scaffolding for guided output generation. Strikingly, performance improvements correlate strongly with how faithfully models adhere to these templates. This suggests that much of CoT's effectiveness comes from constraining where and how the model explores possible outputs, rather than from something akin to genuine "thinking."
Neuron Engagement Adapts by Task Type#
Perhaps the most surprising finding is that CoT's effects on neuron activation are task-dependent and sometimes counterintuitive. In open-domain reasoning tasks (where answers are less constrained), the model actually reduces activation across neurons—a form of computational efficiency. By contrast, in closed-domain scenarios (where answers fit discrete categories), neuron engagement increases, suggesting the model recruits more of its capacity to commit to specific outputs. This divergence challenges the assumption that CoT works the same way universally.

