Manuscript Offprint

arXiv:2611.03998

Dory1.0-4B: A Looped Normalized-GPT

Maxim Fishman, Simeng Sun, Shantanu Acharya, Faisal Ladhak, Brian Chmiel, Santiago Akle Serano, Ron Banner, Boris Ginsburg, Krishna C. Puvvada

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract.

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 pretrained Dory1.0-4B on 6 trillion tokens. The first 4.5 trillion tokens were trained in NVFP4, and additional pretraining 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.5× 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.

1. Introduction

We present Dory1.0-4B, the first open looped language model in the Nemotron Labs family. Scaling test-time compute has become a major driver of LLM capability, but this compute is mostly spent in token space: models generate longer reasoning traces, and latency, KV-cache footprint, and serving cost grow with every generated token. Looped (latent-recurrent) language models offer a complementary compute scaling axis (Dehghani et al., 2019; Saunshi et al., 2025; Geiping et al., 2025; Zhu et al., 2025). By repeatedly applying a shared block of layers, a looped model spends more computation per token in latent space without adding parameters. Dory1.0-4B brings this idea to a fully post-trained model built for reasoning and agentic tasks. We train Dory1.0-4B with a mixture of loop counts (Ladhak et al., 2026), so that a single checkpoint can be served at any loop count kk and trade inference compute for accuracy per request, with no retraining and no model swap.

Figure 1 summarizes the effect of looping. On the equal-weight average of 12 benchmarks (Table 2), Dory1.0-4B improves from 35.2 at one loop to 39.7 at two loops and 40.6 at four loops (Figure 1a). It outperforms larger models such as Qwen3.5-9B, Gemma 4 12B, and Gemma 4 26B-A4B, and comes within 1.7 points of Qwen3.6-35B-A3B, a model with roughly 9× as many total parameters. The additional latent computation also makes Dory1.0-4B more token-efficient: across four agentic benchmarks, four loops reduce the number of generated tokens per attempt by 1.3–2.5× relative to one loop, with the largest reductions on GDPval-AA v2 and Terminal-Bench v2.1 (Figure 1b and Section 4.4), partially offsetting the higher compute per token.

Dory1.0-4B uses a normalized Transformer (nGPT) backbone (Loshchilov et al., 2025) with gated

*Equal contribution. Correspondence to: {mfishman,simengs,kpuvvada}@nvidia.com © 2026 NVIDIA. All rights reserved.

Figure

(a) Average score vs. loop count kk.

Figure

(b) Output tokens per attempt, relative to k=1k=1.

Figure 1 | Accuracy and token efficiency of Dory1.0-4B across inference loop counts kk. (a) An equal-weight average of 12 benchmarks: SciCode, SWE-Bench Verified, Terminal-Bench v2.1, τ3\tau^3-Banking, GDPval-AA v2, GPQA Diamond, Humanity's Last Exam (HLE), IFBench, AA-LCR, GDP.pdf, and AA-Omniscience accuracy and non-hallucination, with GDPval-AA v2 Elo normalized as (Elo−500)/20(Elo-500)/20. (b) Reduction in the number of output tokens needed to solve agentic tasks as the number of loops increases.

grouped-query attention and a 3:1 interleaving of sliding-window and full-attention layers. Its 72 layers are partitioned into a 16-layer input block, a 40-layer shared recurrent block, and a 16-layer output block. The input and output blocks run once, while the recurrent block runs kk times, with the input block's output re-injected before every loop.

Dory1.0-4B was pretrained on 6T tokens. The model was first pretrained with k=1k=1 on ∼4.5\sim 4.5T tokens as a standard, non-looped model in NVFP4 (NVIDIA, 2025b), which yields an end-to-end speedup of 20% over BF16. We then introduced looping during a BF16 continuation over ∼1.5\sim 1.5T tokens, sampling the loop count from {1,2,3,4}\{1,2,3,4\} and training with truncated backpropagation through loops. Finally, we extended the context length to 256K tokens over an additional 300B tokens.

We post-trained Dory1.0-4B with an extended SFT stage followed by a short RLVR stage. SFT ran for nine epochs over packed 256K-token sequences containing both thinking and non-thinking responses, and retained the random loop sampling used in pretraining. RLVR then ran 200 steps of asynchronous GRPO (Shao et al., 2024) across 23 environments spanning agentic tasks, coding, reasoning, long-context question answering, instruction following, and safety. A key ingredient of RLVR is a difficulty-aware loop curriculum: rollout workers run at fixed loop counts, and prompts with lower profiled pass rates are preferentially routed to deeper loops. In an ablation, this curriculum yields its largest gains at four loops, for example raising Terminal-Bench v2.1 accuracy from 14.0% to 21.4%. At four loops, Dory1.0-4B outperforms Gemma 4 26B-A4B on SWE-Bench Verified (61.8% vs. 57.4%) and GDPval-AA v2 (967 vs. 752 Elo; Table 2).

With standard per-loop caching, the recurrent block's KV cache grows linearly with kk. Dory1.0-4B supports last-loop KV caching (Ladhak et al., 2026), in which each loop overwrites the previous loop's cache entries, so attention KV memory stays at its one-loop size for any kk. At four loops, last-loop caching changes benchmark scores by between −2.1-2.1 and +0.4+0.4 points relative to per-loop caching, with nearly unchanged output lengths.

Finally, Dory1.0-4B was converted to MXFP8 using post-training quantization, and to NVFP4 and Q5_K_M using quantization-aware distillation (Xin et al., 2026). All checkpoints are open-sourced under the OpenMDW-1.1 license at https://huggingface.co/collections/nvidia/nemotron-labs-dory.

Figure

L2: unit norm (FP32, ϵ=10−6\epsilon = 10^{-6}) σ0=0.0177\sigma_0 = 0.0177

Normalized

Learned scaling

Figure 2 | Dory1.0-4B's looped nGPT architecture. A 16-layer input block produces a fixed representation uu. A 40-layer recurrent block refines the state over kk passes (up to four), sharing all of its weights and learned scales across each loop. Each loop adds uu to the current state, initialized as s0=us_0 = u, and applies L2 normalization before and after the recurrent block. A 16-layer output block processes the final state before the LM head. Within each block, an eight-layer pattern contains three SWA–SwiGLU pairs followed by one full-attention–SwiGLU pair, giving a 3:1 ratio of sliding-window attention (SWA) to full attention. SWA uses a window of W=1024W=1024 tokens with RoPE base θS=104\theta_S = 10^4; full attention uses θF=107\theta_F = 10^7. RoPE acts on all Q/K dimensions. Each sublayer updates the residual stream by blending its normalized output with the normalized residual using learned per-channel weights, then normalizing the result.

References (34)