arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.09863cs.LGcs.CLstat.ML
收藏

闭式训练动态揭示Word2Vec类模型中的学习特征与线性结构

Closed-Form Training Dynamics Reveal Learned Features and Linear Structure in Word2Vec-like Models

UC Berkeley(伯克利大学);Imbue(Imbue公司);Google DeepMind(谷歌DeepMind)

Dhruva Karkada, James B. Simon, Yasaman Bahri, Michael R. DeWeese

AI总结:

本研究解析求解word2vec类模型的训练动态,揭示其逐步学习正交线性子空间,每个子空间对应可解释主题,并解释抽象语义线性表示的涌现机制。

摘要:

自监督词嵌入算法(如word2vec)为研究语言建模中的表示学习提供了一个最小化设置。我们考察了word2vec损失在原点附近的四次泰勒近似,并证明由此产生的训练动态以及在下游任务上的最终性能在经验上与word2vec非常相似。我们的主要贡献是仅根据语料库统计和训练超参数,解析求解梯度流训练动态和最终词嵌入。解揭示这些模型一次学习一个正交线性子空间,每个子空间递增嵌入的有效秩,直到模型容量饱和。在维基百科上训练时,我们发现每个顶部线性子空间代表一个可解释的主题级概念。最后,我们应用我们的理论来描述更抽象语义概念的线性表示如何在训练过程中出现;这些表示可通过向量加法完成类比推理。

英文摘要:

Self-supervised word embedding algorithms such as word2vec provide a minimal setting for studying representation learning in language modeling. We examine the quartic Taylor approximation of the word2vec loss around the origin, and we show that both the resulting training dynamics and the final performance on downstream tasks are empirically very similar to those of word2vec. Our main contribution is to analytically solve for both the gradient flow training dynamics and the final word embeddings in terms of only the corpus statistics and training hyperparameters. The solutions reveal that these models learn orthogonal linear subspaces one at a time, each one incrementing the effective rank of the embeddings until model capacity is saturated. Training on Wikipedia, we find that each of the top linear subspaces represents an interpretable topic-level concept. Finally, we apply our theory to describe how linear representations of more abstract semantic concepts emerge during training; these can be used to complete analogies via vector addition.

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

↑