SYNTHESIS NOTE
Topics›Cognitive Models Latent›this note

Do transformers hide reasoning before producing filler tokens?

Explores whether language models compute correct answers in early layers but then deliberately overwrite them with filler tokens in later layers, suggesting reasoning and output formatting are separable processes.

Synthesis note · 2026-02-23 · sourced from Cognitive Models Latent

When transformers are trained to solve reasoning tasks with filler (hidden) characters replacing explicit CoT tokens, a striking pattern emerges through logit lens analysis:

Layers 1-3: Correct numerical tokens from the reasoning computation appear as top predictions. The model is performing the actual computation in these early layers.

Layer 3 transition: Filler tokens begin appearing among top-ranked predictions, competing with the computational results.

Final layer: Filler tokens dominate top predictions; correct computational tokens are relegated to rank-2 or lower. The model has overwritten the intermediate reasoning representations with format-compliant output tokens.

The hidden computations are fully recoverable by examining lower-ranked tokens during decoding. The model performs the reasoning, stores the results in its representations, then actively overwrites them to produce the expected output format. The mechanism likely involves induction heads — pattern-copying circuits that learn to overwrite based on training distribution patterns.

This finding has two important implications. First, it provides mechanistic evidence for Why does reasoning training help math but hurt medical tasks? with a twist: the computation happens in earlier layers, but the overwriting also happens in higher layers. The functional separation is computation-in-early-layers, formatting-in-late-layers, not simply knowledge-down/reasoning-up.

Second, it demonstrates a distinction between instance-adaptive and parallelizable computation. Instance-adaptive CoT requires caching subproblem solutions within token outputs — later tokens depend on earlier results. This dependency structure is incompatible with parallel filler token computation. The hidden computation in filler tokens works for tasks where the full solution can be computed in a single forward pass, but not for problems requiring sequential dependency between reasoning steps.

This connects to the CoT faithfulness literature: if models can compute correct answers without explicit reasoning tokens, the explicit CoT chain is not necessarily the mechanism producing the answer. The overwriting pattern suggests the model has two separable processes — computation and expression — that may not align. See Do language models actually use their reasoning steps?.

Inquiring lines that read this note 239

This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.

Does model reflection genuinely improve reasoning or just confirm beliefs? What are the fundamental limits of prompt-based debiasing? Can looped computation enable reasoning beyond fixed transformer depth? How do structural differences between diffusion and autoregressive models affect capabilities? What mechanistic structures underlie the reasoning traces that language models produce? What systematic biases stem from transformer attention structure? How should reinforcement learning training be optimized for language models? How well do model explanations reveal their actual knowledge and reasoning? How do LLMs perform reasoning effectively despite gaps between process and output? Do language models learn true linguistic principles or just surface patterns? What are the fundamental limits of prompting in creating new model capabilities? How does AI-generated knowledge acquire authority and legitimacy beyond human expertise? Can neural networks achieve compositionality without explicit mechanisms? What drives human overreliance on confident but inaccurate LLM outputs? Does chain-of-thought reveal genuine reasoning or merely imitate learned behavior? Do language models learn genuine linguistic structure or just surface patterns? How do AI confidence signals mislead human judgments of actual accuracy? Do reasoning traces accurately represent how models actually compute their answers? What determines whether models prioritize training knowledge over retrieved context? Does extended thinking consistently improve accuracy or exhibit diminishing returns? Does polished AI output mislead people about content accuracy? How can we reliably detect when AI outputs are deceptive? How susceptible are language models to adopting and maintaining false beliefs? What tradeoffs emerge from fine-tuning models for extended reasoning? What are the distinctive characteristics of language models at different scales? How does training data format influence the reasoning strategies models learn? Can chain-of-thought monitoring detect deliberate model deception in reasoning traces? Do base models contain latent reasoning that training can unlock? Why do language models systematically fail at ambiguity recognition? What shapes how much users worry about AI privacy? How should inference-time compute be optimally allocated for reasoning? Why do language models exhibit stable personality traits despite conditioning? How do supervised fine-tuning and reinforcement learning compare in preserving reasoning quality? Why does model self-revision amplify confidence in incorrect answers? What limits AI's ability to verify its own generation? What features distinguish AI-generated writing from authentic human writing? How can reward models overcome their inherent blindspots and biases? Do language models genuinely exhibit psychological understanding or simulate it? What tradeoffs emerge between instruction following and other model capabilities? How do we balance AI agent autonomy with meaningful user oversight? Does parallel reasoning outperform sequential approaches under comparable computational budgets? Why does sycophancy persist despite reasoning improvements and training interventions? Does alignment training genuinely modify model behavior or only outputs? Can vector embeddings distinguish task relevance from semantic similarity? How does generative AI reshape the structure of knowledge work? How reliably do confidence signals indicate reasoning quality in language models? What gap exists between benchmark scores and genuine language model capabilities? Can we reliably detect reward hacking in model evaluation? Does AI writing assistance preserve or distort authentic author voice? Can models deliberately hide or underperform their abilities during evaluation? Do AI coding tools meaningfully improve developer productivity and quality?

Related concepts in this collection 5

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
15 direct connections · 160 in 2-hop network ·dense cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

transformers perform hidden reasoning computations in earlier layers then overwrite intermediate representations with filler tokens in later layers