Looped Transformers Trade Runtime for Memory by Recycling Neural Layers
Looped transformers reuse a single layer block across multiple passes, matching deeper architectures while keeping memory footprints low, according to recent research releases.

Deploying a language model with 70 billion parameters stored as 16-bit numbers demands roughly 140 gigabytes of memory before the system reads a single word. Historically, making architectures more capable has relied on stacking deeper sequences of distinct layers, each adding its own weights to the memory footprint. Looped transformers challenge that approach by processing input through the same block of layers multiple times, effectively trading runtime for memory efficiency.
In a conventional transformer, each layer performs attention and feedforward transformations using its own dedicated weights. A looped architecture retains a single layer or a compact sequence of layers, repeatedly feeding intermediate representations back into that same block. While running a block of $k$ layers for $L$ laps incurs the processing cost of $k \times L$ layers, the system stores only $k$ layers in memory, allowing depth to scale without increasing parameter weight storage.
The Evolution of Recursive Architectures
The concept builds on years of foundational machine learning research. Google's Universal Transformer explored shared blocks with position-level early stopping in 2018, followed by ALBERT in 2019, which used weight sharing to allocate memory toward wider representations. Theoretical work by Giannou and colleagues at ICML 2023 demonstrated that manually written weights in a looped model could simulate basic calculators, linear algebra libraries, and learning routines by executing instructions lap by lap. At ICLR 2024, Yang and colleagues showed looped models outperforming standard counterparts on learning synthetic functions with fewer parameters. More recently, Saunshi and colleagues at Google showed at ICLR 2025 that repeating $k$ layers across $L$ laps closely tracks the reasoning performance of an unlooped $k \times L$ model, illustrating that internal laps can simulate steps of chain-of-thought reasoning without generating intermediate text.
Modern open releases have brought this architecture into practice. Early in 2025, Jonas Geiping, Tom Goldstein, and their team introduced Huginn, a 3.5-billion-parameter model trained on 800 billion tokens. Huginn processes tokens through an input prelude, feeds the working state and original prompt through a looped core, and generates outputs via a final coda. Because the training protocol randomizes lap counts, users can set the lap count at inference time like a computation dial, scaling benchmark results up to the computational equivalent of a 50-billion-parameter model. However, an evaluation by researchers from Brown and Harvard found that on the GSM8K math benchmark, extra laps yielded only minor improvements compared to explicit, written reasoning steps.
Dynamic Computation and Open Implementations
Fixed lap counts can waste compute on straightforward tokens, prompting researchers to develop dynamic routing methods. Mixture of Recursions (KAIST AI, Mila, and Google) assigns routers to determine lap counts per token, storing key-value attention caches on a per-depth basis to improve perplexity and throughput on models between 135 million and 1.7 billion weights. Google DeepMind’s Relaxed Recursive Transformers incorporate small Low-Rank Adapters (LoRA) for each lap; their Recursive Gemma 1B outperformed TinyLlama 1.1B and Pythia 1B while achieving up to 2.76 times higher serving throughput using continuous depthwise batching.
ByteDance and UC Santa Cruz recently published Ouro, offering 1.4-billion and 2.6-billion-parameter models trained on 7.7 trillion tokens under an Apache 2.0 license. Using an entropy-regularized exit gate, Ouro's authors report that their models match standard architectures up to 12 billion parameters, with four-lap thinking variants rivaling 4-billion and 8-billion models on math and science benchmarks. Beyond language modeling, non-language architectures like Samsung SAIL Montreal's Tiny Recursive Model (5 to 7 million weights) have achieved 87.4% on Sudoku-Extreme and 45% on ARC-AGI-1, outperforming Sapient Intelligence’s 27-million-parameter Hierarchical Reasoning Model.
What it means for developers
For engineering teams, looped architectures offer a potential path to running capable reasoning systems on hardware with constrained memory, such as edge devices or budget cloud instances. However, the architecture comes with clear trade-offs:
- Memory versus Latency: Looping compresses parameter storage, but $r$ laps require roughly $r$ times the computation time. Applications sensitive to token latency may find extended looping impractical.
- Knowledge Capacity Limits: Experiments by the Ouro team show knowledge density remains fixed at roughly 2 bits per weight. Looping refines how a model reasons over the facts it has stored, but it does not expand total factual knowledge.
- Cache and Training Overhead: Maintaining separate key-value caches across laps can increase memory demands during inference unless dynamic caching strategies are used, and backpropagating gradients across multiple recursive steps complicates training stability.
As research in dynamic reasoning progresses, developers can try top AI models cheaply through one API at https://apixoai.online to evaluate standard frontier architectures alongside new operational approaches.
Currently, looped transformers remain largely confined to research weights up to 3.5 billion parameters. Whether major frontier labs adopt recursive blocks for models spanning tens of billions of weights will determine if looping becomes a standard production pattern or remains a specialized compression technique.
Source: Looped Transformers: One Block, Many Laps — Towards AI. Written by the Apixo team from that report.
One key for Claude, GPT, GLM, DeepSeek and more. Pay per token with crypto.
Get your API key

