论文

Looped Transformers 循环次数训练调度实证研究:下限取 2 还是 1 决定每圈的角色

Loop-Count Schedules in Looped Transformers: An Empirical Study

精选理由

用 46M 到 110M 参数的小模型把循环调度讲透了:训练时最低循环次数选 2 不选 1,每圈就是完整一层,还能推理时翻倍深度跑。想省显存做参数共享的工程师可以看 {2,3,4} 这组配置和 KV 复用技巧。

arXiv 论文对 46M-110M 参数、2B tokens 训练的 looped transformers 做了对照实验,用带残差门控的三种循环调度(R 固定为 2、均匀采样 {1,...,6}、采样 {2,3,4})研究训练时循环次数 R 的调度如何影响每圈计算的作用。

正文

关键发现是采样范围的下限起决定作用:若范围包含 R=1,门控会塌缩到 0.1-0.5,额外一圈只是小修正;若下限从 2 开始,门控保持在 0.6-0.9,每圈保持完整一层的强度,且推理时可以运行任意 R(从 2 到训练值两倍),验证损失偏离最佳值仅百分之几 nat。{2,3,4} 调度取得最好结果:2.909 nats,优于参数匹配的普通模型 2.951 nats,在两倍训练深度下运行仅劣化 0.038 nats。

论文还证明固定 R 下残差流方向在超过训练深度后几何收敛而损失发散,修正了近期关于静态深度训练不收敛的结论;复用第一圈的 keys/values 会使每 token 迭代一致收缩,代价仅 0.01-0.03 nats,同时将推理缓存减半。整体上循环结构在等参数下能恢复约三分之一真实深度带来的收益,代码、权重与逐 token 追踪均已开源。

原文 · arXiv cs.LG

Loop-Count Schedules in Looped Transformers: An Empirical Study

Looped transformers apply one block of layers several times with shared weights, trading parameters for repeated computation. We study how the schedule of the loop iteration count R during training determines whether each extra pass acts as a full layer or as a small correction, using a controlled ladder of 46M-110M-parameter models trained on 2B tokens with learned residual gates on every loop pass and three schedules: R fixed to 2, R sampled uniformly from {1,...,6}, and R sampled from {2,3,4}. We find that the lower bound of the sampling range is the decisive choice. If the sampled range includes R=1, so that some training steps run the block only once and compute the loss on that single pass, the gates collapse to 0.1-0.5 and each additional pass becomes a small correction to the first; if the range starts at R=2, so that every training step runs the block at least twice, the gates stay at 0.6-0.9 and each pass keeps the strength of a full layer, while the model can still be run at any R from 2 up to twice the largest trained value with validation loss within a few hundredths of a nat of its best. The {2, 3, 4} schedule gives the best looped model, 2.909 nats against 2.951 for the parameter-matched plain model, and degrades by only 0.038 nats when run at twice its trained depth. We further show that under a fixed R the direction of the residual stream converges geometrically beyond the trained depth while the loss diverges, which refines a recent finding that static-depth training does not converge, and that reusing the first pass's keys and values on later passes costs 0.01-0.03 nats in every regime while making the per-token iteration uniformly contractive and halving the inference cache. The loop recovers about a third of what real depth provides at equal parameters. The code, trained weights, and per-token traces are released.

产业坐标与信源核验

本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:Looped Transformers、残差门控、参数共享、推理优化,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「arXiv cs.LG」(@Konstantin Kolokolov),经 AITOP 多维评分管线结构化提炼。