走向正确的循环模型,第一部分:拓扑、输入注入、循环状态设计
研究论文 · 2026/10/19
循环语言模型通过逻辑深度复用物理Transformer块,但现有架构将循环位置、输入注入和循环状态组织纠缠在一起。我们在匹配参数规模、逻辑深度和token预算下从头训练模型,分离这些轴,并测试所得设计原则能否迁移到常驻和活跃参数匹配的专家混合(MoE)模型。前奏-循环块-尾声三明治架构在上下文提取和推理密集型任务上持续提升性能。输入注入主要增强知识检索和上下文利用,而随机初始化和分离的H/L循环状态带来混合或负面回报。总体而言,这些结果支持Huginn风格设计:在730M参数和336B token规模下,完整Huginn架构在全部十个基准上优于Ouro。Huginn对Ouro的优势迁移到MoE模型。在8BA0.8B(展开时32BA3B)规模、500B token训练下,Huginn在涵盖知识、推理和编码的几乎所有基准上优于Ouro,同时表现出更均衡的专家路由。在匹配训练和推理FLOPs下,Huginn风格模型使用的常驻参数比112层前馈MoE基线少75%。尽管物理参数更小,它在DROP和GSM8K上优于前馈基线,在MATH500上持平,在其他基准上保持竞争力。
该研究系统解耦了循环语言模型的关键设计选择,提出了性能更优的Huginn架构,并在多种规模及MoE模型上验证了其有效性和参数效率,对高效模型设计具有重要参考价值。
Looped language models reuse physical Transformer blocks across logical depth, but established architectures entangle recurrence placement, input injection, and recurrent state organization. We isolate these axes in models trained from scratch at matched parameter scale, logical depth, and token budgets, and then test whether the resulting design principles transfer to resident- and active-parameter-matched Mixture-of-Experts (MoE) models. The prelude-recurrent block-coda sandwich architecture consistently improves performance on context extraction and reasoning-intensive tasks. Input injection primarily enhances knowledge retrieval and context utilization, whereas random initialization and separate H/L recurrent states provide mixed or negative returns. Taken together, these results favor the Huginn-style design: at the 730M-parameter and 336B-token scale, the complete Huginn architecture outperforms Ouro across all ten benchmarks. The advantages of Huginn over Ouro transfer to MoE models. At the 8BA0.8B (32BA3B when unrolled) scale trained on 500B tokens, Huginn outperforms Ouro on nearly all benchmarks spanning knowledge, reasoning, and coding, while also exhibiting more balanced expert routing. Under matched training and inference FLOPs, the Huginn-style model uses 75% fewer resident parameters than a 112-layer feedforward MoE baseline. Despite its smaller physical parameters, it outperforms the feedforward baseline on DROP and GSM8K, matches it on MATH500, and remains competitive on the other benchmarks.