arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.09011cs.LGcs.AI
收藏

对大语言模型中下一个token预测的几何视角:三个新兴阶段

A Geometric Perspective on Next-Token Prediction in Large Language Models: Three Emerging Phases

Department of Engineering and Architecture(工程与建筑系)

Gianfranco Lombardo, Giuseppe Trimigno, Stefano Cagnoni

AI总结:

研究通过几何方法分析大语言模型中预测信息的分布与演变,发现三个几何阶段:Seeding Multiplexing、Hoisting Overriding和Focal Convergence,揭示了模型深度对有效秩的影响。

摘要:

我们研究了大语言模型(LLMs)各层中预测信息的几何特性。我们重新利用表示透镜——训练以从中间残差流预测下一个token的学得仿射映射——作为几何诊断工具。我们定义每个层的预测读出子空间为该映射在d维残差流上的主导k维奇异子空间(其中k是分辨率参数),并跟踪其在格拉斯曼流形上的轨迹作为相似性轮廓。轮廓由单峰分布描述,表现出上升、近平稳和下降;改变k值从1%到50%的d值在可见性和能量保留之间绘制帕累托前沿,但相同结构在所有尺度上出现。在八个模型(Qwen2.5和OLMo2,1B-32B)中,我们识别出三个几何阶段。更新在整个残差流中大致正交;区别阶段的是它们对有效秩的影响,即扩展、稳定和集中。在第一阶段Seeding Multiplexing中,前馈记忆和注意力层在家庭特定比例中在超位置中播种候选集,最终token从20%到35%的位置上升。在第二阶段Hoisting Overriding中,更新覆盖现有子空间以集中候选分布而不扩展秩。在第三阶段Focal Convergence中,高能低秩更新将胜者写入与去嵌入方向对齐的形式。阶段1和3随着模型深度缓慢增长,而阶段2线性扩展。更深层次LLM的额外容量大多被候选歧义消除所吸收。

英文摘要:

We investigate the geometry of predictive information across the layers of large language models (LLMs). We repurpose representation lenses-learned affine maps trained to predict the next token from intermediate residual streams-as geometric diagnostic tools. Rather than asking what the model predicts at each layer, we ask where predictive information resides and how it evolves across depth. We define at each layer a predictive readout subspace as the dominant k-dimensional singular subspace of such a map on the d-dimensional residual stream (where k is a resolution parameter), and track its trajectory on the Grassmann manifold as a similarity profile across layers. The profile is well described by unimodal distributions exhibiting a rise, near-plateau, and descent; varying k from 1% to 50% of d traces a Pareto frontier between visibility and energy retention, yet the same structure emerges at all scales. Across eight models from two families (Qwen2.5 and OLMo2, 1B-32B), we identify three geometric phases. Updates are approximately orthogonal to the residual stream throughout; what distinguishes the phases is their effect on the effective rank, which expands, stabilizes, and concentrates. In the first, Seeding Multiplexing, feed-forward memories and attention layers seed a candidate set in superposition in family-specific proportions, with the final token rising as leading candidate from 20% to 35% of positions across this phase. In the second, Hoisting Overriding, updates override existing subspaces to concentrate the candidate distribution without expanding the rank. In the third, Focal Convergence, high-energy low-rank updates write the winner into a form aligned with the unembedding direction. Phases 1 and 3 grow slowly with model depth, while Phase 2 expands linearly. The additional capacity of deeper LLMs is largely absorbed by candidate disambiguation.

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

↑