TRANSMISSION // 2611.36917v1

Why the Next-Token Predictor Should Read the Final State

Source published

A small-scale study separates a language model’s context storage from its next-token prediction. Its results suggest prediction can benefit from reading the deepest state at every layer, but larger-scale tests remain open.

AI-generated conceptual illustration for Why the Next-Token Predictor Should Read the Final State
AI-generated conceptual illustration; not documentary evidence.

A Transformer must both preserve useful context and turn that context into a next-token guess. Ryan Kim’s preprint investigates whether separating those jobs—and changing which layer’s stored context the predictor can read—can improve language modeling.

A language model has to do two things at once: carry information about the text so far, and use that information to guess what comes next. In an ordinary decoder-only Transformer, these jobs share the same stream of hidden states. Ryan Kim’s study asks whether separating them makes the model’s internal division of labor clearer—and, in particular, which layer of stored context the prediction process should read.

The work examines State–Prediction Separation (SPS), an architecture that gives each token distinct state and prediction slots. In the version studied here, those slots share weights, making it hard to tell whether they specialize. Kim builds models with separate weights for the two streams and compares two ways for prediction to read state. In “Two-tower,” each prediction layer reads a state layer at a corresponding depth. In “Sequential,” every prediction layer reads the final, most processed state.

Tracing storage and retrieval

The models were trained on FineWeb-Edu, a filtered web-text dataset, using the GPT-2 tokenizer. The main runs used a 4,096-token context and trained on 20 billion tokens. The researchers compared models at two tower-depth settings, 12+12 and 6+6, and measured validation loss in nats per token, alongside compute and parameter counts.

To investigate what each stream did, the study used several interpretability tests. Attention patterns were measured for “previous-token” behavior: whether a head focuses on the token immediately before its current position. The researchers also measured “induction,” a pattern in which a model uses an earlier occurrence of a token to retrieve what followed it. They then removed selected attention heads, restored internal activations after deliberately corrupting text, restricted which positions or state layers prediction could read, and used probes to test what information was readable at different depths.

The broad pattern was a division of labor, though not a strict one. State heads tended to carry information about preceding tokens; prediction heads showed stronger induction matching. Removing state heads with strong previous-token behavior weakened retrieval of earlier continuations. Restoring one such head after corruption recovered part of the lost signal in the separate-weight models. The evidence suggests that prediction’s matching can depend on information written into state—but the experiments do not establish that every model uses a single, tidy circuit.

Further tests indicated that prediction drew on distant context and benefited more from deeper state levels than from shallow ones. In the Two-tower 12+12 model, keeping only shallow state levels increased loss substantially more than keeping only deep levels. SPS, by contrast, does not read the output of its top state layer. This observation motivated Sequential: let each prediction layer access the final state rather than only a corresponding-depth version.

A promising result, within narrow bounds

After training from scratch, Sequential had lower validation loss than Two-tower at both tested depths: by 0.031 nats per token at 12+12 and 0.037 at 6+6, with matched parameters and floating-point operations for each comparison. The smaller Sequential 6+6 model had a loss of 2.801, compared with 2.797 for SPS and 2.865 for the Transformer in the reported setup. In other words, it came close to SPS’s validation loss while using the Transformer’s per-token compute. The paper also reports that it reached the Transformer’s loss before learning-rate decay with 2.2 times fewer training FLOPs. These are results on the study’s training and validation setup, not evidence that the design will improve every language task or deployment.

There are important qualifications. The models were relatively small—about 130–300 million parameters—and the evaluation focused on validation loss, not downstream tasks. Main comparisons used only two random seeds, so small differences deserve caution. Some intervention findings were stronger in particular models than others; head-ablation specificity outside Sequential 12+12 did not consistently replicate across seeds and controls. The paper also notes that some comparisons have confounds, and that changing a model’s read pattern only at evaluation can be misleading because it was trained for its original pattern.

The source is an arXiv preprint, not a peer-reviewed journal article. Its detailed methods and reported results make the architectural comparison testable, but independent replication and evaluation at larger scales are still needed. The central takeaway is therefore a research lead rather than a settled recipe: in these experiments, giving prediction access to the deepest stored context improved validation loss in separate-weight models, and mechanistic analysis helped motivate that design.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • How a tiny particle exposed a flaw in a physics AI

    Shared method: Both papers use activation patching to test causal contributions of attention heads: the origin paper restores a state-head output after corrupting context to test retrieval recovery, while Bonnet-Guerrini et al. replace head outputs from a perturbed jet with clean-jet outputs to measure changes in classifier response. The tasks and interventions differ, so this is a shared method, not evidence that the models or findings are directly comparable.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.36917v1 — Original paper

      Excerpt reference: static/papers/2611.36917v1.md:288-342
      Basis: Paper text
      Source file SHA-256: 6aed65e5aa656fd5af6bb98168e3507a8668ff86c03bc2be2f7ad95e854841c6

    • 2611.27079v1 — Original paper

      Excerpt reference: static/papers/2611.27079v1.md:238-383
      Basis: Paper text
      Source file SHA-256: 115b9dc6070fe9172c2022581ac06e3ba49d50beb55d2f1274edde4bc3624b45

  • A tiny transformer’s algorithm, drawn in two dimensions

    Shared method: Both papers inspect attention computations to trace information flow: the origin paper measures predecessor attention and induction lift in separated language-model streams, while Mahajne and Moldwin visualize query-key attention and value selection in a minimal model trained on a toy retrieval task. The models, tasks, and analysis scale differ; the connection is limited to attention-based analysis.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.36917v1 — Original paper

      Excerpt reference: static/papers/2611.36917v1.md:288-342
      Basis: Paper text
      Source file SHA-256: 6aed65e5aa656fd5af6bb98168e3507a8668ff86c03bc2be2f7ad95e854841c6

    • 2610.09838v2 — Original paper

      Excerpt reference: static/papers/2610.09838v2.md:966-1018
      Basis: Paper text
      Source file SHA-256: 557ea8cf92250acbd1e89ab8f3d3a339788d5cae9dbbe020af9b25c764e864b1

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.