AIToday
Large Language ModelsAI Coding AssistantsQiita 機械学習Published: Nov 16, 2026, 10:00 JST

Looped Transformer Dory: 36 stored layers, 96 executed at 4 loops

Send on LINE
Looped Transformer Dory: 36 stored layers, 96 executed at 4 loops

3 Key Points

  1. What happened

    Using NVIDIA's Dory layout of 8 input, 20 shared core and 8 output layers, the script shows 36 stored layers become 56, 76 and 96 executed layers at 1–4 loops, a 2.67× rise at 4 loops.

  2. Why it matters

    The layer arithmetic predicts memory from stored size but token cost from executed size, so a model card's parameter count understates per-token computation once loops multiply the core.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

NVIDIA's Dory and similar recurrent-depth Transformers repeat the same layer block several times, so looking only at parameter counts can misstate compute. The author wrote a small script to make the stored-versus-executed distinction concrete, using Dory's 8+20+8 layout and showing how executed layers grow with loop count. That distinction matters because weight memory tracks the stored layers while per-token FLOPs roughly track the executed layers, though attention and KV cache treatment can shift actual FLOPs.

The script then turns to measured trade-offs. Fastino's report on its 27B GLiDE decision model provides latency medians on a single RTX PRO 6000 and a held-out pair-comparison gain, from which the author derives a per-point latency cost. The same report notes that causal-reasoning benchmarks worsen by the third pass, so more loops are not uniformly better. Separately, Dory's author reported that 4 loops cut generated tokens to between 1/1.3 and 1/2.5 of the 1-loop count on agentic benchmarks, but the per-token executed layers rise from 36 to 96. Multiplying those together gives a range from 2.05× to 1.07×, which the author says is not enough to settle whether looping pays off.

The closing point is a boundary on what looping can do: it adds computation, not information. Facts absent from the prompt or weights, such as current prices or the correct contract version, will not appear no matter how many loops run; retrieval or tool calls are the right answer there. The author's conclusion is to measure cost per correct answer with retries included, and to set loop count per task by measurement.

FAQ
How many layers does NVIDIA's Dory store versus execute?
Dory stores 36 layers (8 input, 20 shared core, 8 output). At 1, 2, 3 and 4 loops it executes 36, 56, 76 and 96 layers respectively, up to 2.67× the stored count.
Does fewer generated tokens from looping mean lower cost?
Not necessarily. At 4 loops, per-token executed layers rise from 36 to 96, so layer×token compute lands at 2.05× or 1.07× depending on whether token reduction is 1.3× or 2.5×.
What was the measured latency cost of one loop on GLiDE?
Fastino reported median latency of 83 ms base versus 112 ms looped on one RTX PRO 6000, a +29 ms (+35%) increase. That cost bought a held-out pair-comparison gain of 0.56 points (95% CI 0.27–0.89).
Qiita 機械学習Read Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleBharat Semi raises $24 million seed for AI sensors