arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.15943cs.LGcs.CL
收藏

Transformer在其残差流中表示信念状态几何

Transformers represent belief state geometry in their residual stream

Simplex(辛普莱克斯);PIBBSS;Pitzer and Scripps College(皮策与斯克里普斯学院);University College London(伦敦大学学院);BITS Principles of Intelligent Behaviour in Biological and Social Systems(BITS生物与社会系统智能行为原理中心)

Adam S. Shai, Sarah E. Marzen, Lucas Teixeira, Alexander Gietelink Oldenziel, Paul M. Riechers

AI总结:

本文基于最优预测理论证明Transformer在残差流中线性表示数据生成过程的信念状态几何,并揭示这些表征包含超越局部下一token预测的未来信息。

摘要:

当我们在大语言模型上训练下一token预测时,我们在其中构建了什么样的计算结构?本文提供证据表明,这种结构由对数据生成过程隐藏状态的信念更新的元动力学所给出。借助最优预测理论,我们预测并随后发现,信念状态被线性表示在Transformer的残差流中,即使在预测的信念状态几何具有高度非平凡的分形结构的情况下也是如此。我们研究了信念状态几何被表示在最终残差流中或分布跨多个层的残差流中的情况,并提供了一个框架来解释这些观察结果。此外,我们证明所推断的信念状态包含关于整个未来的信息,超越了Transformer被显式训练的局部下一token预测。我们的工作提供了一个通用框架,将训练数据的结构与Transformer内部激活的几何结构联系起来。

英文摘要:

What computational structure are we building into large language models when we train them on next-token prediction? Here, we present evidence that this structure is given by the meta-dynamics of belief updating over hidden states of the data-generating process. Leveraging the theory of optimal prediction, we anticipate and then find that belief states are linearly represented in the residual stream of transformers, even in cases where the predicted belief state geometry has highly nontrivial fractal structure. We investigate cases where the belief state geometry is represented in the final residual stream or distributed across the residual streams of multiple layers, providing a framework to explain these observations. Furthermore we demonstrate that the inferred belief states contain information about the entire future, beyond the local next-token prediction that the transformers are explicitly trained on. Our work provides a general framework connecting the structure of training data to the geometric structure of activations inside transformers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑