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

线性模型中下一token预测的隐式优化偏差

Implicit Optimization Bias of Next-Token Prediction in Linear Models

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

Christos Thrampoulidis

AI总结:

该研究聚焦线性模型中下一token预测(NTP)的优化特性,提出NTP可分性条件,刻画了梯度下降的隐式优化偏差,拓展了独热分类隐式偏差的相关研究,为NTP的优化与泛化研究提供了新方向。

摘要:

我们率先展开对下一token预测(next-token prediction,NTP)优化特性的研究,NTP是现代语言模型的主流训练范式。具体而言,我们研究了在NTP目标的众多可能极小值点中,基于梯度的优化器所选出的解的结构特性。通过将NTP构建为跨不同上下文的交叉熵最小化问题——每个上下文都与有限token词表上的稀疏条件概率分布相关联,我们提出了能够达到数据熵下界的“NTP可分性条件”。在此设置下,我们聚焦于具有固定上下文嵌入的线性模型,刻画了梯度下降(gradient descent,GD)的优化偏差:在由不同上下文的稀疏模式定义的数据子空间内,GD选出的参数使支撑集内token的logit差值等于其对数几率;在正交子空间中,GD参数的范数会发散,并选择使NTP特有的间隔最大化的方向。这些发现将此前关于独热分类中隐式偏差的研究拓展到了NTP场景,凸显了二者的关键差异,也推动了对NTP优化与泛化特性的进一步研究,且该研究不受生成上下文嵌入的具体架构的限制。

英文摘要:

We initiate an investigation into the optimization properties of next-token prediction (NTP), the dominant training paradigm for modern language models. Specifically, we study the structural properties of the solutions selected by gradient-based optimizers among the many possible minimizers of the NTP objective. By framing NTP as cross-entropy minimization across distinct contexts, each tied with a sparse conditional probability distribution across a finite vocabulary of tokens, we introduce "NTP-separability conditions" that enable reaching the data-entropy lower bound. With this setup, and focusing on linear models with fixed context embeddings, we characterize the optimization bias of gradient descent (GD): Within the data subspace defined by the sparsity patterns of distinct contexts, GD selects parameters that equate the logits' differences of in-support tokens to their log-odds. In the orthogonal subspace, the GD parameters diverge in norm and select the direction that maximizes a margin specific to NTP. These findings extend previous research on implicit bias in one-hot classification to the NTP setting, highlighting key differences and prompting further research into the optimization and generalization properties of NTP, irrespective of the specific architecture used to generate the context embeddings.

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

↑