arXiv:2608.30315cs.LGcs.CL2026-08

揭示语言模型嵌入如何从简单统计逐步学习复杂上下文关系。

Context Staircase: Signature-Aligned Dynamics of Token Embeddings under Small Initialization

论文配图:Context Staircase: Signature-Aligned Dynamics of Token Embeddings under Small Initialization
图 1 · 摘自论文原文
  • 发现嵌入演化遵循‘上下文阶梯’规律:先学无上下文标签关联,再逐步加入更多上下文。
  • 在小初始化下推导出前馈与自注意力架构的嵌入演化方程。
  • 适用于真实语言模型训练,解释了语义结构如何被引入嵌入空间。

token嵌入是连接离散词汇与连续计算的基本表征单元。尽管现代语言模型通过梯度训练从随机初始化学习嵌入,但有意义嵌入结构如何涌现仍不清晰。本文发现,嵌入演化与受词元条件约束的标签和上下文分布密切相关,我们将其形式化为概率签名。观察到一种渐进学习过程,称为‘上下文阶梯’:嵌入先学习数据的低阶统计签名,再逐步学习高阶签名。具体而言,训练初期嵌入仅对齐最简单的、无上下文的词元-标签签名;随着训练推进,逐渐反映涉及越来越多上下文词元的签名。我们进一步分析小初始化下的嵌入梯度流,推导出前馈与自注意力架构的嵌入演化方程,并将该现象扩展至真实语言模型训练。结果表明,这些嵌入结构在任务学习与语义结构融入嵌入空间中起关键作用。总体而言,本研究为数据统计与架构共同塑造语言模型嵌入提供了动态解释,并揭示了数据统计空间中的隐式偏好:训练从简单、低阶统计关系逐步走向更复杂的上下文依赖关系。

原文摘要 · Abstract (English)

Token embeddings are the basic representational units that connect discrete tokens with continuous computation in language models. Although modern language models learn embeddings from random initialization through gradient-based training, the dynamical mechanism by which meaningful embedding structures emerge remains unclear. In this work, we identify that the evolving embedding structures are closely related to token-conditioned label and contextual distributions, which we formalize as probability signatures. We observe a progressive learning process, which we term Context Staircase: embeddings learn the low-order statistic signatures of the data before the high-order ones. More specifically, we observe that early in training they align with the simplest, context-free signature linking a token to its label, and as training proceeds, they progressively reflect signatures involving more and more context tokens. We then analyze the gradient flow of embeddings under small initialization to explain this phenomenon, deriving embedding evolution equations for feed-forward and self-attention architectures. We further extend these observations to real language-model training. Finally, we show that these embedding structures play an important role in both task learning and the incorporation of semantic structure into the embedding space. Overall, our results provide a dynamic explanation of how data statistics and architecture jointly shape token embeddings in language models, and reveal an implicit bias in the space of data statistics: training proceeds from simpler, low-order statistical relations toward increasingly complex, context-dependent ones.

嵌入演化语言模型统计偏置

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。