Dory1.0-4B:一个循环归一化GPT

·

其他资讯 · 2026/11/04

我们介绍了Dory1.0-4B,一个具有弹性深度的40亿参数循环(潜在循环)语言模型:单个检查点可服务不同的推理计算预算。Dory1.0-4B基于归一化Transformer(nGPT)骨干,交错滑动窗口和全注意力层,组织为输入块、共享循环块和输出块。推理时,循环块可应用可变次数。我们在6万亿token上预训练了Dory1.0-4B。前4.5万亿token使用NVFP4训练,随后额外预训练将上下文长度扩展到256K token。接着,我们使用监督微调(SFT)和可验证奖励的强化学习(RLVR)对模型进行后训练,并采用难度感知的循环课程,将更难的提示路由到更深的循环。增加循环次数可提高准确性,在编码、代理和长上下文基准上收益最大。在12个基准上平均,使用两个或更多循环时,Dory1.0-4B优于Qwen3.5-9B、Gemma 4 12B和Gemma 4 26B-A4B等更大模型。循环还使Dory1.0-4B在代理基准上更具token效率:使用四个循环时,生成的token比一个循环少1.3-2.5倍,因为额外计算花费在潜在空间而非更长的输出上。为减少循环时的内存,Dory1.0-4B仅缓存最后一个循环的键和值,在任何循环次数下保持其KV缓存占用与非循环模型相同,同时保留大部分准确性增益。我们开源了BF16、MXFP8、NVFP4和GGUF量化检查点。

Dory1.0-4B通过循环架构实现弹性深度,在推理时动态调整计算量,以较小参数量在多个基准上超越更大模型,同时提升token效率并降低内存占用,为高效部署语言模型提供了新思路。

We introduce Dory1.0-4B, a 4-billion-parameter looped (latent-recurrent) language model with elastic depth: a single checkpoint serves different inference compute budgets. Dory1.0-4B is built on a normalized Transformer (nGPT) backbone with interleaved sliding-window and full-attention layers, organized into an input block, a shared recurrent block, and an output block. At inference, the recurrent block can be applied a variable number of times. We pre-trained Dory1.0-4B on 6 trillion tokens. The first 4.5 trillion tokens were trained in NVFP4, and additional pre-training then extended the context length to 256K tokens. Next, we post-trained the model using Supervised Fine-Tuning (SFT) and Reinforcement Learning with Verifiable Rewards (RLVR), with a difficulty-aware loop curriculum that routes harder prompts to deeper loops. Increasing the loop count improves accuracy, with the largest gains on coding, agentic, and long-context benchmarks. With two or more loops, Dory1.0-4B outperforms larger models such as Qwen3.5-9B, Gemma 4 12B, and Gemma 4 26B-A4B on average across 12 benchmarks. Looping also makes Dory1.0-4B more token-efficient on agentic benchmarks: with four loops, it generates 1.3-2.5x fewer tokens than with one loop, as the extra computation is spent in latent space rather than on longer outputs. To reduce memory during looping, Dory1.0-4B caches keys and values only from the last loop, keeping its KV-cache footprint equal to that of a non-looped model at any loop count while retaining most of the accuracy gains. We open-source the BF16, MXFP8, NVFP4, and GGUF quantized checkpoints.

阅读原文

参与讨论