走向正确的循环模型,第二部分:在不动点处重新思考
研究论文 · 2026/10/06
循环语言模型的每次循环都会增加训练、解码、预填充和强化学习(RL)的成本。循环状态越接近不动点,到达它们的路径就越不重要。这使得训练中可以使用截断反向传播;解码时终端键值(KV)共享几乎不损失准确率;蒸馏学生模型预填充速度提升高达1.79倍;RL更新从保存的展开状态计算梯度,比通过重放轨迹反向传播快2倍。因此,我们改进了塑造这些不动点的两个训练组件:深度先验和输入注入。固定深度训练会破坏KV共享,而Huginn的宽深度先验支持共享,但在目标深度上稀释监督的程度超过共享所需;我们从预测反馈中学习先验,并加入熵项以保持其宽泛。现有注入方案会让状态沿输入方向的分量放大或抵消注入;我们通过正交注入移除了该分量。从100M到1.6B参数,学习先验和正交注入在每个规模上分别相对于Huginn的先验和现有注入方案降低了困惑度。在1.6B规模上,使用学习先验且KV缓存缩小3倍,其下游平均性能与使用完整缓存的固定深度训练相当。
该研究通过改进深度先验和输入注入,使循环语言模型更接近不动点,从而在训练、解码、预填充和强化学习中实现显著效率提升,并在多个规模上验证了性能优势,对高效模型设计有重要参考价值。
Every recurrence of a looped language model adds cost in training, decoding, prefill, and reinforcement learning (RL). The closer recurrent states get to fixed points, the less the path to them matters. This enables truncated backpropagation in training; terminal key-value (KV) sharing for decoding with almost no loss in accuracy; a distilled student that prefills up to 1.79x faster; and RL updates that compute gradients from saved rollout states, 2x faster than backpropagating through the replayed trajectory. We therefore improve the two components of training that shape these fixed points: the depth prior and input injection. Fixed-depth training breaks KV sharing, and Huginn's broad depth prior supports sharing but dilutes supervision at the target depth more than sharing requires; we learn the prior from prediction feedback, with an entropy term that keeps it broad. Existing injection schemes let the state's component along the input amplify or cancel the injection; we remove this component with orthogonal injection. From 100M to 1.6B parameters, the learned prior and orthogonal injection lower perplexity at every scale relative to Huginn's prior and existing injection schemes, respectively. At 1.6B, the learned prior with a 3x smaller KV cache matches the downstream average of fixed-depth training with the full cache.