NextLat:让Transformer学习紧凑世界模型的下一个隐状态预测方法
Next-Latent Prediction Transformers Learn Compact World Models
NextLat通过隐空间自监督预测扩展标准下一token训练,使Transformer的隐表示收敛为信念状态,在不改变架构、并行训练效率和推理的前提下注入循环归纳偏置。在世界建模、推理、规划和语言建模基准上,其下游准确率、表示压缩和前瞻规划均优于标准下一token预测及其他基线。该方法还支持变长自推测解码,语言建模推理最高加速3.3倍。
arXiv:2511.05963v5 Announce Type: replace Abstract: Transformers replace recurrence with a memory that grows with sequence length and self-attention that enables ad-hoc lookups over past tokens. Consequently, they lack an inherent incentive to compress history into compact latent states with consistent transition rules. This often leads to learning solutions that generalize poorly. We introduce Next-Latent Prediction (NextLat), which extends standard next-token training with self-supervised predictions in the latent space. Specifically, NextLat trains a transformer to learn latent representations that are predictive of its next latent state given the next token. Theoretically, we show that these latents converge towards belief states, compressed information about the history necessary to predict the future. This simple auxiliary objective injects a recurrent inductive bias into transformers while leaving their architecture, parallel training efficiency, and inference unchanged. NextLat effectively encourages transformers to form compact internal world models with coherent belief states and transition dynamics -- crucial properties not guaranteed by standard next-token prediction alone. Empirically, across benchmarks in world modeling, reasoning, planning, and language modeling, NextLat demonstrates significant gains over standard next-token prediction and other baselines in downstream accuracy, representation compression, and lookahead planning. Furthermore, NextLat enables variable-length self-speculative decoding, accelerating inference by up to 3.3x in language modeling. NextLat offers a simple yet effective paradigm for learning compact, predictive representations in transformers that generalize better. Our code is available at https://github.com/JaydenTeoh/NextLat.
来源:arXiv (AI + Vision + Imaging) · arxiv.org