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 228
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 chain-of-thought reasoning faithfully reflect actual model reasoning processes?- How do models integrate conflicting signals in reasoning tasks?
- Do models learn different sophistry strategies for QA versus code generation?
- Can correct model outputs prove that semantic meaning rather than surface patterns drove the response?
- Can synthesized explanations be more auditable than winning-chain explanations?
- Can models hide their reasoning in continuous space rather than natural language?
- Can models learn when to think versus answer directly?
- Can inserted errors in reasoning drafts produce predictable downstream effects?
- Does CoT reasoning actually cause the outputs that follow it?
- How misaligned are verbal reports from internal model computation?
- 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 models learn to hide their reasoning when trained against CoT monitors?
- How do transformers perform multi-hop reasoning across distant training documents?
- Do modern architectures in NLP and vision rely on dot products intentionally?
- How does error propagation limit transformer performance on complex tasks?
- Can symbolic mechanisms improve transformer compositional abilities?
- What computational role do intermediate tokens actually play in transformers?
- Why do transformer models still miss implicit discourse relations in anxiety detection?
- Why do standard transformers fail on problems requiring serial algorithmic reasoning?
- Can targeted interventions on attention heads bridge the encoding-generation gap?
- How do lower network layers compress facts versus higher reasoning layers?
- Could graph neural networks fundamentally outperform transformers on structured reasoning?
- What hidden computations happen inside transformer layers during reasoning?
- Can we decode what individual circuits inside transformers are doing?
- 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?
- What explains the contextual variability of knowledge in transformers?
- How does oral transmission of knowledge resemble transformer generation?
- How do induction heads learn to overwrite computational representations?
- Do transformer architectures structurally bias models toward short-term optimization?
- Is premature decision-making a form of underthinking in transformer models?
- Why does transformer attention weight context more heavily than it verifies accuracy?
- Can transformers abstract relational structure without explicit symbolic machinery?
- How does program synthesis relate to transformers computing general algorithms?
- Do behavioral modes concentrate in specific transformer layers across different model families?
- Could superposed decoding algorithms maintain multi-task representation during generation?
- Do language models learn surface patterns instead of underlying linguistic principles?
- Does next-token prediction alone produce genuine functional language competence?
- What separates pattern matching from genuine language understanding?
- Is gradient behavior in language functional or a sign of ambiguity?
- Does attention bias explain grounding failure in language models?
- How do pretrained language models represent inferential patterns versus lexical and positional cues?
- Does next-token prediction actually explain how human thought works?
- How does predictive accuracy on future tokens differ from correctness on labeled answers?
- What does next-token prediction tell us about compositional linguistic competence?
- Does latent manipulation outperform token-level prediction for efficiency?
- Does instruction tuning optimize language models for rhetorical polish over logical consistency?
- Does sentence-level granularity capture enough structure for complex reasoning tasks?
- Can this principle apply to other intermediate text generation tasks?
- How do verbose and concise reasoning occupy different regions in activation space?
- How do soft thought tokens differ from decoded assistant outputs?
- Does changing decoding procedure reveal hidden chain-of-thought paths?
- Why do language models produce verbose reasoning when asked to think step by step?
- Does text-only evaluation hide reasoning collapse that tool use could repair?
- Why do language models imitate reasoning form without abstract inference capability?
- Does more thinking always help large language models or sometimes hurt?
- Do latent sequence vectors outperform per-token latent iterative computation for reasoning?
- Do reasoning models perform genuine logical evaluation or pattern matching?
- Why do models learn reasoning form instead of actual abstract inference?
- Can derivational traces be distinguished from stylistic mimicry of reasoning?
- Why do language models generate reasoning tokens after internally deciding the answer?
- Can models compress reasoning chains without external teacher supervision?
- How do recursive language models rethink where to store reasoning?
- Can reasoning in free text then formatting separately recover performance?
- What sparse mechanistic structures drive reasoning traces in language models?
- Can latent reasoning achieve the same substitution without tokens?
- 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?
- Can format adaptation alone explain why reasoning enrichment improves instruction following?
- What quality filters distinguish useful reasoning enrichment from shallow repetition?
- What evidence shows that reasoning chains encode token-level functional structure?
- Why do thinking models execute longer tasks than standard language models?
- Does the token prediction framing actually capture what human reasoning does?
- 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?
- Can silent reasoning steps in language models be detected inside the system?
- Why do language models leak compliance into their reasoning traces?
- 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?
- How do early-prefix tokens control the generation of entire continuations?
- Why do semantically related prompts converge into attractor states in middle layers?
- What effect does prompt structure have on language model reasoning?
- How do models signal knowledge gaps through token probability?
- Do representations in models causally influence text generation?
- How do we distinguish knowledge encoding from knowledge usage in models?
- Can knowledge encoded in model representations fail to influence generation?
- Do models verbalize their implicit knowledge when that knowledge influences their output?
- Can trained models encode programs more complex than their data-generating process?
- Can probing reveal whether encoded facts actually influence model outputs?
- Does information stored in neural networks necessarily influence generation decisions?
- Can interventions on model components prove mechanism without explaining encoding?
- Why do language models produce plausible outputs over accurate failure reports?
- Can language models reason without relying on learned semantic patterns?
- Do language models actively adopt false beliefs under sustained conversational pressure?
- Can language models reason without relying on surface level pattern matching?
- Why do explicit linguistic markers override semantic computation in models?
- Can language models keep secrets and control information strategically?
- Can language models perform genuine symbolic reasoning without semantic grounding?
- How do model compression biases differ from human conceptual representation strategies?
- How does token-by-token generation constrain a model's ability to plan ahead?
- Do tokens beyond a critical threshold actually improve reasoning quality?
- What makes some tokens carry disproportionate information about answers?
- 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?
- 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?
- 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?
- 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?
- Can simple diagnostic tests predict language model performance in production complexity?
- Why do language models substitute parametric knowledge over retrieved context mid-reasoning?
- Why do generative and discriminative language model procedures disagree?
- Why do language models fail at grounding and inference?
- Why do language models tend to elaborate and expand rather than compress information?
- 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?
- Why do smaller models favor code formats while larger models prefer natural language?
- Can language models accurately evaluate the quality of their own reasoning?
- What role do humans play in converting language model outputs into meaningful events?
- What geometric structure do language models actually use during inference?
- What is the comprehension-generation asymmetry in language models?
- 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?
- Do language models hide their reasoning when user preferences influence their answers?
- Why do language models become sycophantic during the generative process?
- Can we separate task competence from genuine agency in language model outputs?
- How do we measure genuine reasoning inside a language model?
- What happens when confident language masks uncertainty in AI outputs?
- How does fluent text output trigger misleading cognitive attributions in readers?
- Why do people accept generated output that sounds convincing but lacks support?
- Can polished language output substitute for the judgment it should express?
- Why do correct reasoning traces in language models tend to be shorter?
- How do planning and backtracking sentences control reasoning traces?
- What reliable traces do generative processes actually leave in finished text?
- Why do temporal reasoning patterns matter more than final answers?
- Does anonymizing reasoning traces harm the quality of model outputs?
- Can deliberate corruption of reasoning traces harm out of distribution generalization?
- Why does concise reasoning maintain accuracy with far fewer tokens?
- 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 sparse arithmetic circuits explain all language model reasoning abilities?
- Why do language models struggle with formal logical reasoning and joins?
- Why do reasoning models verbalize reasoning shortcuts less than necessary?
- What makes deductive reasoning so brittle in language models overall?
- Why does output alignment fail to catch internally incoherent reasoning?
- Why do reasoning models confidently generate wrong answers instead of abstaining?
- Why do language models struggle with backward reasoning compared to forward?
- Why do language models overthink simple questions when given extra time?
- Does premature confidence signal flawed reasoning in language models?
- Can weak models reason better when freed from cognitive load by structure?
- Does activation masking prevent the decoder from taking interpretability shortcuts?
- Can entropy signatures alone detect whether context was model-generated or externally prefilled?
- Why does answer-confirmation bias emerge in language model reasoning?
- Why do fluent model outputs resist challenge despite containing injected content?
- Why does distillation transfer reasoning patterns with few examples?
- Why are receiver attention heads narrower in reasoning models than base models?
- Can attribute decomposition improve other interactive reasoning tasks beyond clinical questioning?
- Can models maintain reasoning-output coupling while improving domain accuracy?
- How does evaluation setting affect measured reasoning capabilities in language models?
- 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?
- Why are truthfulness and honesty mechanistically separate in language models?
- How does the enaction paradigm explain introspective anomaly detection in large language models?
- What separates knowledge from reasoning in neural network layers?
- Why do format and structure matter more than actual content in reasoning?
- Why do higher network layers capture procedural knowledge but lower layers store facts?
- Does reasoning style transfer matter more than solution correctness in distillation?
- How do semantic and symbolic reasoning capabilities differ in language models?
- How do transformers compose multi-step reasoning across different domains?
- Why do language models prefer certain response styles regardless of what the prompt asks?
- Do models cache intentions about response topics before generating the first token?
- 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?
- Does supervised fine-tuning improve reasoning or just response formatting?
- How does fluent output mask the mythic function of a system?
- Can verifier output replace ground-truth answers as the asymmetric information source?
- Can outcome-oriented summaries improve verification accuracy without grounding?
- Why do AI outputs lack the stable content of written sentences?
- Can explanation-based AI safeguards work in real-time writing interfaces?
- Does reasoning happen in hidden space or in generated tokens?
- Do language models need words to think or just latent structure?
- Does token-level loss aggregation help aligned models differently?
- Do verbal alignment benchmarks measure representation or just output compliance?
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