Looped Transformers: Recurrent Depth, Adaptive Recursion, Reasoning vs Memory

This article dissects the looped transformer architecture behind GPT-6 Astra, explaining recurrent depth, adaptive recursion mechanisms from Universal Transformer to Mixture-of-Recursions, and research showing recurrence improves multi-step reasoning without increasing knowledge capacity, while reducing training compute by 6.8–18% at scale.

PaperAgent
PaperAgent
PaperAgent
Looped Transformers: Recurrent Depth, Adaptive Recursion, Reasoning vs Memory

What This Loop Actually Is

The core idea of a looped transformer (recurrent depth) is to reuse the same stack of Transformer blocks multiple times instead of adding more distinct layers. Sebastian Raschka illustrates this with the recently open-sourced Nanbeige4.2-3B model: it has only 22 Transformer blocks but runs the input through them twice , yielding the equivalent of a 44-layer model while storing only 22 sets of weights. Block 23 reuses block 1's weights, block 24 reuses block 2's, and so on.

Nanbeige4.2-3B: 22-block stack looped twice, orange arrows show recurrence
Nanbeige4.2-3B: 22-block stack looped twice, orange arrows show recurrence
Same path unrolled into two passes, 44 block applications but only 22 weight sets saved
Same path unrolled into two passes, 44 block applications but only 22 weight sets saved

The trade-off ledger: parameters are roughly halved (embedding and output layers still take ~25% of Nanbeige's 3B parameters). However, forward and backward compute remain comparable to a 44-block model , and KV cache size is unchanged because intermediate states differ across passes. Nanbeige tried sharing KV cache across passes, which halved cache size but degraded performance; the released version uses independent caches. Training a 44-layer model then compressing it via looping works worse than training the looped structure from scratch. Empirically, 2 loops is the sweet spot ; 3+ loops give diminishing returns and training instability.

Parameter count comparison: traditional deepening vs. looped reuse
Parameter count comparison: traditional deepening vs. looped reuse

Thus recurrent depth is not "free deepening" but rather "using half the weight budget to buy full-depth compute."

Loop Count as a Flexible Knob

The number of loops can be dynamic, a concept dating back to the Universal Transformer (2018) , which introduced adaptive halting: a small learnable function emits a "halt probability" per token per step, accumulating until a threshold, allowing different tokens to undergo different numbers of loops—effectively allocating compute per token. ByteDance's Ouro-Thinking 2.6B pushes this further: 48 blocks looped 4 times (192 block applications) with a learned exit gate. Raschka notes an awkward detail: its HuggingFace implementation hard-codes the loop count by running all 4 passes first, then selecting the exit.

Universal Transformer adaptive halting mechanism
Universal Transformer adaptive halting mechanism

The 2025 Mixture-of-Recursions (MoR) hands the knob to a router: a small learned router examines each token's hidden state (including context) and decides how many recursive passes that token receives—so the same word at different positions can get different depths. Two routing modes: expert-choice (each step selects which tokens continue looping) and token-choice (assign each token a fixed path of 1, 2, or 3 passes upfront).

MoR's two routing modes: expert-choice and token-choice
MoR's two routing modes: expert-choice and token-choice

MoR experiments deliver a crucial lesson: at the smallest 135M scale, a vanilla Transformer outperforms MoR —looking only at small models would wrongly conclude recurrence is useless. Only at larger scales does MoR match or exceed baselines, especially under tight training compute budgets. This underscores that looped architectures must be validated at scale.

Validation loss comparison across four model sizes and three compute budgets
Validation loss comparison across four model sizes and three compute budgets

Recurrence Buys Reasoning, Not Memory

Two studies clarify what recurrence actually purchases. Zhu et al. (June 2025) separate memory and reasoning. In memory tasks (fixed parameter count), looping barely increases the model's ability to store and retrieve knowledge—capacity tracks independent parameter count. In reasoning tasks, reused blocks boost multi-step math performance without adding any parameters . The clean conclusion: recurrence is a compute mechanism, not a storage mechanism ; it buys thinking compute, not knowledge capacity.

Zhu et al. memory experiment: capacity grows with parameter count, largely independent of block applications
Zhu et al. memory experiment: capacity grows with parameter count, largely independent of block applications

SMELT (September 2026) scales this accounting to 54B non-embedding parameters using an MoE architecture. The middle half of blocks are applied twice, followed by three compensations: shrink hidden dimension to offset extra compute, increase expert count to restore total parameter count, adjust attention heads to keep KV cache comparable. Fitting scaling curves shows: to reach the same validation loss, the looped version needs 6.8% to 18% less training compute . In equal compute budgets, recurrence is a net win.

SMELT architecture adjustments: width, expert count, block applications, parameters, compute, and KV cache relationships
SMELT architecture adjustments: width, expert count, block applications, parameters, compute, and KV cache relationships

Between these, Geiping et al.'s "latent reasoning" model (3.5B params, 800B tokens) uses 4 shared blocks sandwiched between 2 initial and 2 final blocks. Each loop concatenates the initial block output with the previous hidden state, projects linearly, and feeds the shared blocks. Inference can use a fixed loop budget (8, 32, 64) or adaptive stopping via KL divergence between successive output distributions. Benefits vary by task: HellaSwag (common sense) saturates around 8 loops, while GSM8K and HumanEval (multi-step reasoning) genuinely benefit from more loops .

Geiping et al. latent reasoning model concept: concatenation, projection, and recurrence
Geiping et al. latent reasoning model concept: concatenation, projection, and recurrence

Is Hidden Chain-of-Thought a False Crisis?

Returning to the leak's other selling point: recurrence makes Astra's reasoning "harder to monitor." Astra remains a reasoning model trained with RLVR plus intermediate reasoning traces. Per Jensen Huang, the base model trained on ~ 100k Grace Blackwell GPUs ; OpenAI also bought tens of thousands of Mac minis and Mac Studios, but those serve only as RL interaction environments: task prompt → screenshot → model predicts mouse/keyboard actions → harness executes → new screenshot → repeat, using success signals for training—Astra's computer-use leap comes from this loop.

Astra computer-use RL training loop
Astra computer-use RL training loop

The controversy centers on token usage: Astra achieves comparable accuracy with notably fewer tokens than GPT-5.6 Sol . The Information interprets this as "reasoning hidden in architecture, monitoring regressed." Raschka disagrees: shorter chain-of-thought likely means the model makes fewer mistakes and backtracks less. He offers an apt analogy: a well-prepared student uses less scratch paper during an exam . Counter-evidence: the weaker Luna model uses ~80% more tokens than Sol at similar performance.

GPT-6 Astra accuracy vs. output token count across benchmarks
GPT-6 Astra accuracy vs. output token count across benchmarks
GPT-6 Astra, Looped Transformers, and Hidden Reasoning
https://magazine.sebastianraschka.com/p/gpt-6-astra-looped-transformers-and
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Adaptive ComputationLooped TransformerRecurrent DepthGPT-6 AstraUniversal TransformerSMELTMixture-of-RecursionsReasoning vs Memory
PaperAgent
Written by

PaperAgent

Daily updates, analyzing cutting-edge AI research papers

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.