状态与预测分离的机制分析:Sequential 架构如何在同等参数下超越 Transformer
Which State Should Prediction Read? A Mechanistic Analysis of State-Prediction Separation
AI 导读
一项 arXiv 机制分析将 decoder-only Transformer 隐藏状态的「存储上下文」与「预测下一 token」两种职责拆分为独立权重塔,发现状态头记录前一 token、预测头据此检索。
正文 · 原文
Abstract: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.
| Comments: | 35 pages, 12 figures. Code: this https URL ; Models: this https URL |
| Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.36917 [cs.CL] |
| (or arXiv:2611.36917v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2611.36917 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Ryan Kim [view email]
[v1]
Fri, 27 Nov 2026 05:26:18 UTC (243 KB)
来源:arXiv cs.AI · arxiv.org