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.
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 225
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.
Do extended reasoning methods improve capability or create performance tradeoffs?- How do models integrate conflicting signals in reasoning tasks?
- Can models learn when to think versus answer directly?
- Does reasoning style transfer matter more than solution correctness in distillation?
- Can input augmentation and rephrasing compensate for smaller model limitations?
- Can structured prompting reliably force models to enumerate preconditions?
- Can better prompting fix structural disruptions in artificial text generation?
- How much does prompt format shape what reasoning strategy a model uses?
- How can prompting help models gather information before attempting reasoning?
- How do output format constraints compare to input exemplar brittleness?
- Why do semantically related prompts converge into attractor states in middle layers?
- How do transformers perform multi-hop reasoning across distant training documents?
- Can this principle apply to other intermediate text generation tasks?
- Does changing decoding procedure reveal hidden chain-of-thought paths?
- Why do language models produce verbose reasoning when asked to think step by step?
- Can models compress reasoning chains without external teacher supervision?
- How do recursive language models rethink where to store reasoning?
- What sparse mechanistic structures drive reasoning traces in language models?
- Why do language models produce unfaithful chain of thought explanations?
- Does more thinking always improve language model accuracy?
- Can cognitive scaffolding replace tool-based reasoning augmentation in language models?
- What evidence shows that reasoning chains encode token-level functional structure?
- Does CoT reasoning actually cause the outputs that follow it?
- Why does latent-level prediction beat token-level prediction for reasoning?
- Can latent reasoning scale test-time compute without verbal tokens?
- Is verbalized chain-of-thought necessary for language model reasoning?
- Can latent reasoning stay readable without explicit token-by-token decoding?
- Could superposed decoding algorithms maintain multi-task representation during generation?
- How do verbose and concise reasoning occupy different regions in activation space?
- Can language models reason without relying on learned semantic patterns?
- Why do language models imitate reasoning form without abstract inference capability?
- Does more thinking always help large language models or sometimes hurt?
- Why do language models tend to elaborate and expand rather than compress information?
- Do latent sequence vectors outperform per-token latent iterative computation for reasoning?
- Can language models reason without relying on surface level pattern matching?
- Can language models keep secrets and control information strategically?
- Why do thinking models execute longer tasks than standard language models?
- Do language models need words to think or just latent structure?
- How do model compression biases differ from human conceptual representation strategies?
- Does sentence-level granularity capture enough structure for complex reasoning tasks?
- Does text-only evaluation hide reasoning collapse that tool use could repair?
- Do sparse arithmetic circuits explain all language model reasoning abilities?
- Do reasoning models perform genuine logical evaluation or pattern matching?
- Why do models learn reasoning form instead of actual abstract inference?
- Why do language models struggle with formal logical reasoning and joins?
- What makes deductive reasoning so brittle in language models overall?
- Why does output alignment fail to catch internally incoherent reasoning?
- What separates knowledge from reasoning in neural network layers?
- Why do format and structure matter more than actual content in reasoning?
- Can reasoning in free text then formatting separately recover performance?
- Can attribute decomposition improve other interactive reasoning tasks beyond clinical questioning?
- Why do language models struggle with backward reasoning compared to forward?
- How do semantic and symbolic reasoning capabilities differ in language models?
- How does evaluation setting affect measured reasoning capabilities in language models?
- Can weak models reason better when freed from cognitive load by structure?
- Do modern architectures in NLP and vision rely on dot products intentionally?
- Can targeted interventions on attention heads bridge the encoding-generation gap?
- How do induction heads learn to overwrite computational representations?
- Do transformer architectures structurally bias models toward short-term optimization?
- Why does transformer attention weight context more heavily than it verifies accuracy?
- Do behavioral modes concentrate in specific transformer layers across different model families?
- Do models learn different sophistry strategies for QA versus code generation?
- Why are truthfulness and honesty mechanistically separate in language models?
- What distinguishes first-order from second-order agency in language models?
- Can we separate task competence from genuine agency in language model outputs?
- How do we measure genuine reasoning inside a language model?
- How do soft thought tokens differ from decoded assistant outputs?
- Do language models learn surface patterns instead of underlying linguistic principles?
- Can simple diagnostic tests predict language model performance in production complexity?
- Why do language models substitute parametric knowledge over retrieved context mid-reasoning?
- Does next-token prediction alone produce genuine functional language competence?
- Do representations in models causally influence text generation?
- Why do generative and discriminative language model procedures disagree?
- Can correct model outputs prove that semantic meaning rather than surface patterns drove the response?
- Why do language models fail at grounding and inference?
- Does encoded knowledge in language models actually influence what they generate?
- Does encoding information in LM representations guarantee it influences output?
- When does encoded knowledge fail to influence language model generation?
- Why might encoded world knowledge fail to actually influence language model outputs?
- What separates pattern matching from genuine language understanding?
- Why do explicit linguistic markers override semantic computation in models?
- Is gradient behavior in language functional or a sign of ambiguity?
- Why do smaller models favor code formats while larger models prefer natural language?
- Can language models accurately evaluate the quality of their own reasoning?
- Does attention bias explain grounding failure in language models?
- Can knowledge encoded in model representations fail to influence generation?
- How do pretrained language models represent inferential patterns versus lexical and positional cues?
- What role do humans play in converting language model outputs into meaningful events?
- Does next-token prediction actually explain how human thought works?
- How does predictive accuracy on future tokens differ from correctness on labeled answers?
- Does the token prediction framing actually capture what human reasoning does?
- What geometric structure do language models actually use during inference?
- What is the comprehension-generation asymmetry in language models?
- What does next-token prediction tell us about compositional linguistic competence?
- How does tool-based reasoning expand what language models can do?
- Why does natural language contain redundancy humans need but models don't?
- What are the stages of inference inside language models?
- Why do language models become sycophantic during the generative process?
- Can AI output be tokenized without decoupling from the thought processes behind it?
- How does oral transmission of knowledge resemble transformer generation?
- How do models signal knowledge gaps through token probability?
- How do we distinguish knowledge encoding from knowledge usage in models?
- Do models cache intentions about response topics before generating the first token?
- Do models verbalize their implicit knowledge when that knowledge influences their output?
- How misaligned are verbal reports from internal model computation?
- Can probing reveal whether encoded facts actually influence model outputs?
- Does information stored in neural networks necessarily influence generation decisions?
- Can we decode what individual circuits inside transformers are doing?
- Can transformers abstract relational structure without explicit symbolic machinery?
- Why do language models produce plausible outputs over accurate failure reports?
- Do language models actively adopt false beliefs under sustained conversational pressure?
- Why does answer-confirmation bias emerge in language model reasoning?
- Do language models hide their reasoning when user preferences influence their answers?
- Does instruction tuning optimize language models for rhetorical polish over logical consistency?
- How does token-by-token generation constrain a model's ability to plan ahead?
- Can autoregressive models learn faithful translation to logical representations without semantic loss?
- How does the discrete token bottleneck prevent gradient flow in language model control?
- Do reasoning models show the same answer-maintenance pattern that diffusion models exhibit?
- How do early-prefix tokens control the generation of entire continuations?
- Can symbolic mechanisms improve transformer compositional abilities?
- Can correct outputs mask reliance on surface heuristics rather than deep understanding?
- Does latent manipulation outperform token-level prediction for efficiency?
- What happens when confident language masks uncertainty in AI outputs?
- Does premature confidence signal flawed reasoning in language models?
- Why do fluent model outputs resist challenge despite containing injected content?
- Why do correct reasoning traces in language models tend to be shorter?
- Why do temporal reasoning patterns matter more than final answers?
- Can derivational traces be distinguished from stylistic mimicry of reasoning?
- Can deliberate corruption of reasoning traces harm out of distribution generalization?
- Why does concise reasoning maintain accuracy with far fewer tokens?
- What quality filters distinguish useful reasoning enrichment from shallow repetition?
- Why do language models produce reasoning traces that mimic human reasoning style?
- Can flow concentration in reasoning traces predict model quality better than tokens?
- Why do reasoning models produce unfaithful derivational traces by default?
- Do tokens beyond a critical threshold actually improve reasoning quality?
- What makes some tokens carry disproportionate information about answers?
- What computational role do intermediate tokens actually play in transformers?
- Does the DeepSeek R1 single token insertion represent genuine reasoning?
- Does thinking-token overuse actually degrade reasoning accuracy in practice?
- Can token efficiency come from stopping before reflection?
- How much of a model's reasoning tokens are unnecessary for reaching the final answer?
- Why do language models generate reasoning tokens after internally deciding the answer?
- What happens to reasoning accuracy when models use more thinking tokens?
- Why do reasoning models reduce effort despite having token budget remaining?
- How much does test-time compute improve reasoning without more tokens?
- How early in token generation does the reasoning mode activate?
- Can latent reasoning achieve the same substitution without tokens?
- Why does representation recycling of MI-peak tokens improve reasoning accuracy?
- How do reasoning-invariant tokens dilute learning signals in uniform averaging?
- Can models internally identify which tokens matter most for reasoning?
- How do meta-tokens help models learn when to generate reasoning versus commit predictions?
- Why does uniform averaging across all tokens dilute the reasoning signal?
- Can standard next-token prediction capture complex multi-step human reasoning directly?
- Why do language models use remaining tokens to rationalize instead of reconsider?
- How do planning and backtracking sentences control reasoning traces?
- What reliable traces do generative processes actually leave in finished text?
- How does fluent text output trigger misleading cognitive attributions in readers?
- Why do AI outputs lack the stable content of written sentences?
- How does propositional density differ between dense and sparse generated text?
- Why do standard transformers fail on problems requiring serial algorithmic reasoning?
- How do lower network layers compress facts versus higher reasoning layers?
- What hidden computations happen inside transformer layers during reasoning?
- Can transformers reason beyond fixed architectural depth limits?
- How does layer removal affect transformers compared to ResNets?
- Can bounded-depth transformers solve inherently sequential problems?
- How much does input format shape what reasoning strategy a model develops?
- How does training data format shape whether models reason in parallel or sequentially?
- Can synthesized explanations be more auditable than winning-chain explanations?
- Can models hide their reasoning in continuous space rather than natural language?
- Why do reasoning models verbalize reasoning shortcuts less than necessary?
- Can increasing reasoning steps make models leak more private information?
- Does anonymizing reasoning traces harm the quality of model outputs?
- Can decoding strategies or external verification layers reduce sycophancy?
- Can activation probes detect reasoning that models omit from text?
- Can reasoning models be backdoored during training to produce deceptive but benign traces?
- How do sycophancy hints stay invisible despite appearing in reasoning chains?
- Can silent reasoning steps in language models be detected inside the system?
- Why do language models leak compliance into their reasoning traces?
- Can models learn to hide their reasoning when trained against CoT monitors?
- Why does SFT reduce reasoning quality even when improving domain accuracy?
- Does SFT degrade reasoning quality while improving domain accuracy?
- Can models be trained to explain instead of imitate answers?
- Why are receiver attention heads narrower in reasoning models than base models?
- Does supervised fine-tuning improve reasoning or just response formatting?
- Can models maintain reasoning-output coupling while improving domain accuracy?
- Can format adaptation alone explain why reasoning enrichment improves instruction following?
- Can inserted errors in reasoning drafts produce predictable downstream effects?
- Do reasoning models need to verbalize doubt to correct their own mistakes?
- Why do language models overthink simple questions when given extra time?
- Is premature decision-making a form of underthinking in transformer models?
- Does token-level loss aggregation help aligned models differently?
- Do verbal alignment benchmarks measure representation or just output compliance?
- Can models learn to optimize their own chain-of-thought generation?
- Why does explicit chain-of-thought work as a workaround for feedforward transformers?
Related concepts in this collection 5
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Why does reasoning training help math but hurt medical tasks?
Explores whether reasoning and knowledge rely on different network mechanisms, and why training one might undermine the other across different domains.
refines: early layers compute, late layers format; the separation is functional, not just knowledge vs reasoning
-
Do language models actually use their encoded knowledge?
Probes can detect that LMs encode facts internally, but do those encoded facts causally influence what the model generates? This explores the gap between knowing and doing.
the overwriting mechanism explains HOW encoded information fails to influence generation: later layers actively suppress it
-
Do language models actually use their reasoning steps?
Chain-of-thought reasoning looks valid on the surface, but does each step genuinely influence the model's final answer, or are the reasoning chains decorative? This matters for trusting AI explanations.
hidden computation explains why CoT can be unfaithful: the model may use a different internal computation path
-
Does chain of thought reasoning actually explain model decisions?
When language models show their reasoning steps in agentic pipelines, does the quality of those steps predict or explain the quality of final outputs? This matters for trusting and debugging AI systems.
the computation-expression separation extends to agentic pipelines
-
What mechanism enables models to retrieve from long context?
Do attention heads specialize in retrieving relevant information from long context windows, and if so, what makes them universal across models and necessary for factual generation?
retrieval heads complement hidden filler reasoning: early-layer hidden computations produce intermediate results that retrieval heads access during generation — the filler overwrite pattern explains why specialized retrieval heads are necessary: if intermediate representations are overwritten, the model must retrieve from earlier positions via these sparse attention heads
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- Understanding Hidden Computations in Chain-of-Thought Reasoning
- Pushing the Limits of Rule Reasoning in Transformers through Natural Language Satisfiability
- Beyond Semantics: The Unreasonable Effectiveness of Reasonless Intermediate Tokens
- Farther the Shift, Sparser the Representation: Analyzing OOD Mechanisms in LLMs
- Performative Thinking? The Brittle Correlation Between CoT Length and Problem Complexity
- Chain-of-Thought Reasoning Without Prompting
- Bridging the Gap Between Latent and Explicit Reasoning with Looped Transformers
- Implicit Chain of Thought Reasoning via Knowledge Distillation
Original note title
transformers perform hidden reasoning computations in earlier layers then overwrite intermediate representations with filler tokens in later layers