arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.31943cs.LGcs.CL
收藏

一致性而非归一化使循环语言模型中的深度可复用

Agreement rather than normalisation keeps depth reusable in looped language models

lab260;BitmanagerAI;St. Petersburg Federal Research Center of the Russian Academy of Sciences(俄罗斯科学院圣彼得堡联邦研究中心)

Ivan Viakhirev, Kirill Borodin, Maxim Abramov, Grach Mkrtchian

AI总结:

该研究探究循环语言模型深度可复用的关键因素,发现是循环间的一致性而非状态归一化,移除归一化会降低大模型准确率,小模型则表现更好,且循环优势与训练预算超调量相关。

摘要:

循环语言模型会重复应用一个层块,且只有当深度可复用时,该设计才会奏效:在推理阶段,超出训练预算的循环步骤必须仍能使用。我们探究这是否依赖于循环步骤间的状态归一化(如已发布的Ouro模型所做),还是依赖于模型训练所用的循环与运行所用的循环之间的一致性。对于已发布的权重,可移除该循环边界归一化,且无需添加参数,同时读出路径的比特完全一致,该操作在一个循环步骤时为恒等映射,可作为实现检查。在平衡二元任务(随机概率为0.500)上,移除归一化会使Ouro-1.4B和Ouro-2.6B在训练预算内的准确率降至0。先前研究预测的失败原因——状态范数增长并非主因:当输出头(head)固定为单个错误token时,范数仍保持在2.021倍以内。然而,在针对两个合成任务从头训练的19M参数模型中,每种配置用16个随机种子,未使用归一化的训练效果从未比使用归一化的差,且外推效果更好:两者在训练深度处最接近,在训练深度两侧则产生差异(Cliff's delta在超出预算时最高达0.867)。这两个结果表明,使深度可复用的是一致性而非归一化本身。损伤存在于读出路径与层块的最后一层:在从头训练的模型中,在冻结的修改后循环上重新适配输出头可恢复三分之一的损失准确率并趋于平稳,而与输出头一起重新适配最后一个层块则可恢复全部损失准确率。最后,在相等的推理循环次数下比较循环深度与堆叠深度时,会因训练预算的超调量不等而产生混淆;在匹配超调量时,循环的优势在一个任务上消失,在另一个任务上缩小。

英文摘要:

Looped language models apply one block of layers repeatedly, and the design pays off only if depth is reusable: loop steps beyond the trained budget must remain usable at inference. We ask whether that rests on normalising the state between loop steps, as the released Ouro models do, or on agreement between the loop a model is trained with and the loop it is run with. On released weights this loop-boundary normalisation can be removed without adding parameters and with the readout path bit-identical, and the operation is an identity at one loop step, which serves as an implementation check. Removing it takes Ouro-1.4B and Ouro-2.6B to zero accuracy by the trained budget on a balanced binary task (chance 0.500). State-norm growth, the failure that prior accounts predict, is not the cause: the norm stays within a factor of 2.021 while the head commits to a single wrong token. Yet in 19M-parameter models trained from scratch on two synthetic tasks, 16 seeds per configuration, training without the normalisation is never worse than training with it and extrapolates better: the two are closest at the trained depth and separate on both sides of it (Cliff's delta up to 0.867 beyond the budget). Both results follow if agreement, and not the normalisation itself, is what keeps depth reusable. The damage sits in the readout together with the last layer of the block: in the models trained from scratch, refitting the head over the frozen modified loop recovers a third of the lost accuracy and plateaus, while refitting the last block layer with it recovers all of it. Finally, comparing looped with stacked depth at an equal inference loop count is confounded by unequal overshoot of the trained budget; at matched overshoot the advantage of looping vanishes on one task and shrinks on the other.

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

↑