arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.30005cs.LGstat.ML
收藏

大型状态转换模型的训练动力学

Training Dynamics of Large State-Transition Models

University of Waterloo(滑铁卢大学);University of Kentucky(肯塔基大学)

Yee Man Choi, Fengchi Wang, Ruiquan Huang

AI总结:

本文研究单 token 上下文的状态转换模型训练,证明未绑定模型在 $d=\Omega(\sqrt{V})$ 时 RPG 高,绑定模型在观测与未观测状态上有预测保证,实验验证训练增益与迁移能力。

摘要:

下一个 token 预测依赖于学习到的 token 嵌入,其维度 $d$ 远小于词汇表大小 $V$。现有训练动力学分析要么固定 $d\ge V$ 的嵌入,要么仅在受限设置中训练它们。当 $d<V$ 时,通过基于梯度的方法从随机初始化联合训练嵌入是否能实现准确预测仍不清楚。本文在最简单且非平凡的设置中研究该问题,即单 token 上下文的下一个 token 预测,我们将其称为状态转换模型。该模型包含输入嵌入和输出嵌入,可分为未绑定或绑定两种形式,从高斯初始化开始,通过带权重衰减的扰动梯度下降训练,以最小化总体交叉熵损失。我们考虑具有低秩且有界项的真实转换律的中心对数概率表,通过相对预测增益(RPG)衡量预测质量,均匀预测器的 RPG 为 0,最优预测器的 RPG 为 1。对于未绑定模型,我们证明当 $d=\Omega(\sqrt{V})$ 时,存在常数 $c$,使得在训练迭代的最后 $1-1/d$ 部分的每一次迭代中,RPG 以至少 $1-e^{-cd}$ 的概率高于 $7/8$。对于在状态子集上训练的绑定模型,我们证明其在观测状态上的 RPG 为 $1-O(V/d^2)$,并在真实转换律的覆盖条件和学习嵌入的有界约束下,进一步证明其在未观测状态上的预测保证。我们的分析基于 softmax 交叉熵损失的海森矩阵的有界迹,这意味着训练达到的近似二阶驻点具有高预测增益。采用实际参数的数值实验说明了持续的训练增益和绑定模型的迁移能力。

英文摘要:

Next-token prediction relies on learned token embeddings whose dimension $d$ is much smaller than the vocabulary size $V$. Existing analyses of training dynamics either fix the embeddings with $d\ge V$ or train them only in restricted settings. It remains unclear whether jointly training the embeddings by gradient-based methods from random initialization leads to accurate prediction when $d<V$. In this paper, we study this question in the simplest setting where it is already nontrivial, namely next-token prediction with a one-token context, which we refer to as a state-transition model. The model consists of an input embedding and an output embedding, either untied or tied, and is trained from Gaussian initialization by perturbed gradient descent with weight decay on the population cross-entropy loss. We consider ground-truth transition laws whose centered log-probability table has low rank and bounded entries, and measure the prediction quality by the relative prediction gain (RPG). It is zero for the uniform predictor and one for the optimal predictor. For the untied model, we show that when $d=Ω(\sqrt V)$, with probability at least $1-e^{-cd}$ for some constant $c$, the RPG is above $7/8$ at every iterate in the final $1-1/d$ fraction of training iterations. For the tied model trained on a subset of states, we prove that the RPG on the observed states is $1-O(V/d^2)$, and under a coverage condition on the ground truth and a bound on the learned embeddings, we further prove a prediction guarantee on the unseen states. Our analysis is based on the bounded trace of the Hessian of the softmax cross-entropy loss, which implies that the approximate second-order stationary points reached by training have high prediction gain. Numerical experiments with practical parameter choices illustrate the persistent training gain and the transfer of the tied model.

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

↑