Which State Should Prediction Read? A Mechanistic Analysis of State-Prediction Separation
No concrete benchmark grounding is available yet. Treat the page as context or an implementation starting point only.
Abstract
Domain fit: AI-adjacent · Paper appears method- or tooling-adjacent to AI workflows with partial ecosystem coverage.
Each hidden state in a decoder-only Transformer does two jobs: it stores context for later tokens and predicts the next token. To trace each job on its own, we give the two jobs separate towers with separate weights. In attention patterns, we find that state heads record the previous token at each position and prediction heads match against that record. Ablating these state heads, we observe that prediction's retrieval weakens more than its other predictions, and restoring one of them after the context is corrupted recovers part of it. Our probes show that state keeps previous-token information through all its layers, while prediction loses it in its later layers. Restricting prediction's reads and lesioning layers, we find that it depends most on later state layers and distant positions. We therefore design Sequential, in which every prediction layer reads the final state. At equal non-embedding parameters and floating-point operations (FLOPs), we show that Sequential beats the Transformer at all four sizes we compare, up to 327M non-embedding parameters: validation loss is lower by 0.042-0.079 nats/token and zero-shot accuracy is higher. Sequential also leads on out-of-domain text at 92M and 327M and, at 92M, keeps its lead across 32K-token documents. Against State-Prediction Separation (SPS), which spends nearly twice the FLOPs per token, Sequential matches or beats it per token at small sizes and beats it at equal training FLOPs.
Results and benchmarks
Each hidden state in a decoder-only Transformer does two jobs: it stores context for later tokens and predicts the next token.
Implementation
No direct implementation yet
Maintained implementation evidence is not confirmed for this paper yet.
Use the implementation status and reproduction sections for the current action plan.
No verified maintained repo yet
There is no verified maintained implementation yet. Use this baseline plan to decide whether to prototype now or defer.
- No direct maintained implementation was found. Use the paper PDF and citation graph to design a baseline reproduction.
- Start from this likely method family: Transformer.
- Track assumptions and missing details in an experiment log before coding.
Time to first repro: a few days
Recommendation evidence is currently too limited for a maintained-repo choice. Use Implementation Status and Reproduction Path for a practical baseline plan.
- Estimate is based on paper-only reproduction flow
Reproduction readiness
No repo
No verified implementation available
- No maintained repository has been identified for this paper. Check adjacent implementations or HF artifacts below.
Hardware requirements
- Expect multi-day setup/compute for meaningful reproduction based on current guidance.
Validation caveat
Framework baselines
- Hugging Face Transformers training guide
Modern transformer training baseline.
- PyTorch nn.Transformer docs
Reference transformer building block implementation.
Hugging Face artifacts
No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.
Tip: start with models, then check datasets and spaces if you need evaluation data or demos.
Research context
Tasks
Retrieval / indexing
Methods
Transformer
Domains
Information Retrieval
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.