arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2408.15417cs.CLcs.LG
收藏

下一 token 预测的隐式几何:从语言稀疏性模式到模型表示

Implicit Geometry of Next-token Prediction: From Language Sparsity Patterns to Model Representations

University of British Columbia(不列颠哥伦比亚大学)

Yize Zhao, Tina Behnia, Vala Vakilian, Christos Thrampoulidis

AI总结:

本文将 NTP 训练建模为稀疏软标签分类,揭示其隐式优化产生稀疏加低秩 logit,并导致上下文表示的子空间坍缩。

摘要:

在大型文本语料库上进行的下一 token 预测(NTP)已成为训练大型语言模型的主流范式。然而,NTP 如何影响语言模式到所得模型表示的几何性质之间的映射,仍不清楚。我们将大型语言模型训练表述为针对稀疏概率标签向量的软标签分类,并结合一种允许无约束生成上下文嵌入的解析近似。该方法把 NTP 训练与 logit 域中受秩约束、由核范数正则化的优化联系起来,为分析词嵌入和上下文嵌入的几何提供了框架。在大型嵌入空间中,我们发现 NTP 隐式倾向于学习具有稀疏加低秩结构的 logits。稀疏成分捕获上下文-词对的共现频率,而正交的低秩成分仅依赖于共现矩阵的稀疏性模式,并随训练推进成为主导。因此,当投影到适当子空间时,后接相同下一 token 集合的上下文表示会发生坍缩,我们将这一现象称为子空间坍缩。我们在合成数据集和小规模真实语言数据集上验证了这些发现。最后,我们概述了若干潜在研究方向,旨在加深理解 NTP 对语言模式与规律学习的影响。

英文摘要:

Next-token prediction (NTP) over large text corpora has become the go-to paradigm to train large language models. Yet, it remains unclear how NTP influences the mapping of linguistic patterns to geometric properties of the resulting model representations. We frame training of large language models as soft-label classification over sparse probabilistic label vectors, coupled with an analytical approximation that allows unrestricted generation of context embeddings. This approach links NTP training to rank-constrained, nuclear-norm regularized optimization in the logit domain, offering a framework for analyzing the geometry of word and context embeddings. In large embedding spaces, we find that NTP implicitly favors learning logits with a sparse plus low-rank structure. While the sparse component captures the co-occurrence frequency of context-word pairs, the orthogonal low-rank component, which becomes dominant as training progresses, depends solely on the sparsity pattern of the co-occurrence matrix. Consequently, when projected onto an appropriate subspace, representations of contexts that are followed by the same set of next-tokens collapse, a phenomenon we term subspace-collapse. We validate our findings on synthetic and small-scale real language datasets. Finally, we outline potential research directions aimed at deepening the understanding of NTP's influence on the learning of linguistic patterns and regularities.

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

↑