UpLoop:使用门控循环的大型语言模型升级复用
UpLoop: Upcycling Large Language Models with Gated Loop
AI总结:
UpLoop是一种基于分层循环的LLM后训练方案,通过局部层循环与隐藏态门控打破R=2时的性能饱和,在Qwen3-4B Base上经SFT后R=3时20个基准平均准确率提升6.17%,R=4仍有增益。
摘要:
循环式大型语言模型以循环计算换取参数存储,但大多数这类模型是从头训练的。实际上,用循环深度进行预训练成本高昂,因此对预训练的非循环式大型语言模型(LLM)进行后训练升级复用是一种颇具吸引力的替代方案。我们提出UpLoop,一种基于分层循环的后训练方案。UpLoop并非对整个模型或中间模块进行循环,而是对每个选定的层进行局部循环,从而保留预训练的深度层级并避免特征空间不匹配。为使循环执行发挥作用,我们在注意力机制和多层感知机(MLP)残差分支上添加了隐藏态门控,使后续循环成为渐进式优化而非冗余重写。实验表明,UpLoop打破了先前循环式模型中常见的在2次循环(R=2)时的性能饱和现象。以Qwen3-4B Base为起点并应用监督微调(SFT),UpLoop在R=3时将20个基准测试的平均准确率提升了6.17%。我们将R=3作为准确率-成本权衡的主要设置,而原生及外推得到的R=4均能带来进一步提升。
英文摘要:
Looped large language models trade parameter storage for recurrent computation, but most are trained from scratch. In practice, pretraining with looped depth is expensive, making post-training upcycling of a pretrained non-looped LLM an attractive alternative. We introduce \textbf{UpLoop}, a post-training recipe based on \emph{layer-wise} recurrence. Instead of looping a whole model or a middle block, UpLoop loops each selected layer locally, preserving the pretrained depth hierarchy and avoiding feature-space mismatch. To make loop execution useful, we add hidden-wise gates on the attention and MLP residual branches, so later loops act as progressive refinements rather than redundant rewrites. Empirically, UpLoop breaks the commonly observed saturation at two loops ($R=2$) in prior looped models. Starting from Qwen3-4B Base and applying SFT, UpLoop improves the average accuracy across 20 benchmarks by 6.17\% at $R=3$. We use $R=3$ as the main setting for the best accuracy--cost trade-off, while both native and extrapolated $R=4$ yield further gains.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。