arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.32452cs.LG
收藏

教师已在内部:超越最后一个循环的循环语言模型自蒸馏

The Teacher Is Already Inside: Self-Distilling Looped Language Models Beyond Their Last Loop

Linghua Zhang

AI总结:

该研究提出ELPSD方法,利用循环语言模型自身的外推循环分布进行自蒸馏,无需额外奖励或外部教师,在五个数学基准上优于GRPO、OPSD等方法,提升了avg@8指标。

摘要:

循环语言模型对每个token多次应用共享的Transformer栈,每个循环都可通过共享的语言模型头读取。对其进行后训练十分困难:仅基于奖励的强化学习需要一个验证器,且每个响应仅能从一个稀疏信号中学习;将奖励分散到各循环会使每个循环的熵崩溃;而像LoopOPD这类跨循环自蒸馏方法仅能指导中间循环,因为最后一个循环无法从自身的冻结副本中学习:初始化时损失为零。我们发现,循环模型已包含一个比其最后一个循环解码效果更好的策略:从第一个循环到最后一个循环外推得到的下一个token分布。ELPSD(外推循环策略自蒸馏)将该分布转化为自蒸馏目标:模型的冻结副本计算该分布,模型自身的最后一个循环在其 rollout 过程中向该分布进行蒸馏,在每个访问的前缀处使用精确的反向KL散度。教师和学生是同一模型,因此ELPSD无需奖励、外部教师或特权上下文,且不改变rollout和解码过程。我们证明,该目标会将最后一个循环以权重1+w拉向基础模型的最后一个循环,同时以权重w将其推离基础模型的第一个循环,且教师必须保持冻结,因为从当前模型重新计算的理想化教师会无限外推。我们在Ouro-1.4B-Thinking上针对五个数学基准对ELPSD与基础模型、GRPO、RLTT和OPSD进行评估。无需任何奖励,ELPSD将平均avg@8从61.15提升至63.69,且在所有五个基准上均为最佳方法,领先于使用验证器的GRPO(62.32)和需要参考解的自蒸馏方法OPSD(61.77)。

英文摘要:

Looped language models apply one shared transformer stack several times per token, and every loop is readable through the shared language-model head. Post-training them is hard. Reward-only reinforcement learning needs a verifier and learns from one sparse signal per response; spreading the reward over loops collapses the entropy of every loop; and cross-loop self-distillation, as in LoopOPD, can only teach intermediate loops, because the last loop cannot learn from its own frozen copy: the loss is zero at initialisation. We observe that a looped model already contains a policy that decodes better than its last loop: the next-token distribution extrapolated from the first loop through the last. ELPSD (Extrapolated-Loop Policy Self-Distillation) turns this distribution into a self-distillation target: a frozen copy of the model computes it, and the model's own last loop is distilled towards it on its own rollouts, using the exact reverse KL at every visited prefix. Teacher and student are the same model, so ELPSD needs no reward, no external teacher and no privileged context, and it leaves rollouts and decoding unchanged. We show that the objective pulls the last loop towards the base model's last loop with weight 1+w and away from the base model's first loop with weight w, and that the teacher must stay frozen, since an idealised teacher recomputed from the current model extrapolates without bound. We evaluate ELPSD on Ouro-1.4B-Thinking across five math benchmarks against the base model, GRPO, RLTT and OPSD. Without any reward, ELPSD raises the average avg@8 from 61.15 to 63.69 and is the best method on all five benchmarks, ahead of GRPO (62.32), which uses a verifier, and the self-distillation method OPSD (61.77), which needs reference solutions.

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

↑