Recurrent Transformer Architecture: Deeper Reasoning with Fewer Tokens
This article examines how a leading AI team introduced a recurrent Transformer architecture in its latest flagship large language model, enabling deeper reasoning without increasing parameter count. It explains the core design—sharing 28 layers of weights and running them in two loops—and the three engineering optimizations that made it feasible at the hundred-billion-parameter scale: token-wise gated residual writes, cross-loop KV cache sharing with sparsification, and sparse attention index reuse. It also reviews the reported performance gains in math, science, and general knowledge, the 10–14% reduction in output tokens, inference throughput figures, and the implications for a future where models handle increasingly code-centric, multi-step tasks.
In the development of large language models, capability gains have typically depended on scaling parameter counts and piling on more training data. But as models approach hundreds of billions or even trillions of parameters, the “brute force” approach is running into hard limits: memory constraints, inference latency, and steep deployment costs. The industry now faces a core challenge: how to raise a model’s effective computational depth and intelligence ceiling within a fixed parameter budget. Recently, a leading AI team introduced a recurrent Transformer architecture in its new-generation flagship model, achieving deeper reasoning with fewer output tokens through a set of engineering optimizations. This provides a valuable practical reference for the next phase of large model architecture evolution.
1. The Core Logic of the Recurrent Transformer
In a conventional Transformer, data flows from lower to higher layers during inference, with each layer using its own independent weights. This design gives the model enormous capacity, but it also means parameter count scales strictly with network depth. As early as 2018, the Universal Transformer concept was proposed in academia, advocating weight-shared deeper structures to improve generalization and computational efficiency.
The new model extends this idea in practice. Importantly, the team did not pretrain a new recurrent network from scratch. Instead, it adapted an existing hundred-billion-parameter base model: 28 layers of network weights were set to a shared state and executed in two loops during inference.
The elegance of this design is that it effectively yields a deeper network without adding any parameters. The first loop establishes a global contextual state, capturing the macro-level features of the input sequence. The second loop continues reasoning over the high-dimensional representations produced by the first, refining and deeply processing the information. By “reusing old weights in a new loop,” the model achieves a significant increase in its intelligence ceiling with a relatively modest compute overhead.
2. Engineering Optimizations for a Hundred-Billion-Parameter Model
In theory, recurrent computation improves model performance, but applying it directly at this scale creates severe memory and inference costs. The team introduced three key optimizations to make the recurrent architecture practical.
2.1 Token-Wise Gated Progressive Write-Back
A core challenge in multi-loop computation is preventing a later loop from destroying information already extracted by an earlier one. The model uses a token-wise gated progressive write-back strategy. When each loop produces candidate changes, the model does not directly overwrite the residual stream. Instead, a gating mechanism writes changes back proportionally. During the first loop, which builds the global contextual state, write-in ratios are tightly constrained; in the second, refinement stage, the gate opens up and final results are written back fully. This ensures smooth and stable information transfer and effectively mitigates gradient vanishing or representation degradation in deep networks.
2.2 Cross-Loop KV Cache Sharing and Sparsification
The KV cache is the primary memory consumer during LLM inference. If both loops of a recurrent architecture retained their own full KV cache, deployment costs would rise sharply. The architecture therefore shares and sparsifies the cache across loops. The second loop directly reuses the sparse KV generated by the first, adding only a sliding-window KV for local information updates rather than keeping a complete duplicate cache. This drastically compresses memory usage, keeping the deployment cost increase over the previous generation within a fully controllable range and paving the way for large-scale commercial deployment.
2.3 Sparse Attention Index Reuse
In models using sparse attention, building the attention indices itself incurs nontrivial computational overhead. Inspired by cross-layer index sharing introduced in earlier model releases, the recurrent architecture reuses the sparse attention indices generated in the first loop when executing the second. Since the first loop already establishes a global contextual view, the second loop’s local refinement does not need to re-retrieve global token relationships. This “index reuse” strategy eliminates the second loop’s attention retrieval overhead entirely, further improving inference efficiency.
3. Performance and the “Less Token” Reasoning Paradigm
According to the team’s published technical data, in controlled comparisons at the same scale (30B class), enabling the recurrent architecture—while training compute increased by roughly 10%—produced significant gains across math reasoning, science QA, and general knowledge benchmarks. Math reasoning scores improved by more than 50%, science QA by about 18%, and general knowledge by nearly 5%.
Even more notable, when recurrent inference is enabled, average output length across benchmarks drops by 10% to 14%. The reduction occurs mainly in chain-of-thought segments. Traditional LLMs tackling complex problems tend to generate lengthy reasoning processes, effectively trying to purchase “internalized” reasoning ability by externalizing it as generated tokens. The recurrent Transformer shifts part of the reasoning that previously had to be done via token generation into the model’s own additional computational depth. The model performs deep thinking within its latent representations, so that at the visible output level it achieves equal or better reasoning quality with fewer tokens. This both improves response speed and directly lowers API costs for developers.
In terms of inference speed, thanks to the optimizations above, the model reaches up to 200 tokens/s during off-peak hours and sustains 70 to 80 tokens/s at peak—excellent performance for a model of this scale.
4. Outlook: The Era of Ubiquitous Coding
The team positions this architectural upgrade as the beginning of an era of “ubiquitous coding,” where code is no longer merely the output of software engineering but a fundamental execution capability for a broad range of tasks.
With deep code comprehension and logical reasoning, the model can act as a central orchestrator linking heterogeneous capabilities. Examples include generating visuals via frontend code while calling a third-party music model to produce a soundtrack, then synthesizing an MV; using geometric knowledge plus shader code to directly generate interactive 3D scenes; or orchestrating professional modeling tools via code instructions to complete complex industrial design tasks. The stronger logic and refinement capabilities of the recurrent architecture result in lower hallucination rates and higher success rates on such long-horizon, multi-step tasks.
Conclusion
The successful launch of this recurrent inference architecture demonstrates that it is feasible to break through the intelligence ceiling through architectural innovation rather than parameter growth. Token-wise gating, cross-loop KV sharing, and attention index reuse offer a practical path to efficiently deploying hundred-billion-parameter models. For developers and enterprises, the “fewer tokens, deeper thinking” paradigm means not only lower costs but also an accelerating shift of LLMs from generation tools toward deep reasoning engines. In future technology selections, models with efficient recurrent reasoning capabilities are likely to become core infrastructure for complex logic and code-centric tasks.
