Loop Transformer Architecture: Achieving Deep Reasoning with Fewer Tokens
This article explores the recent shift toward base model architecture modification in large language models (LLMs), highlighting the Loop Transformer architecture. It details the principles of loop reasoning, key engineering optimizations such as cross-round KV cache sharing and attention index reuse, and presents benchmark results demonstrating how the circular architecture significantly improves complex reasoning capabilities while consuming fewer inference tokens.
Loop Transformer Architecture: Achieving Deep Reasoning with Fewer Tokens
1. From Post-Training to Base Model Modification: A Technological Shift
In recent years, the capability iteration of large language models (LLMs) has mostly followed a “fixed base + reinforced post-training” path: after pre-training is completed, supervised fine-tuning (SFT) and reinforcement learning are used to continuously tap into the base model’s potential. While this approach is cost-effective and yields quick results, its ceiling is constrained by the base model’s inherent representational capacity. As the marginal returns of post-training diminish, the industry has begun to re-examine the base architecture itself.
A recently released next-generation LLM (with a base parameter count of approximately 750B) represents this shift. Instead of pre-training from scratch, it takes a pre-trained base model and further trains it into a Loop Transformer, exchanging a relatively small computational overhead for a higher ceiling of intelligence. Official statements indicate that the API will be opened after completing safety evaluations, and the model weights are planned to be open-sourced.
2. Core Principles of Loop Reasoning
Traditional Transformer inference relies on a single forward pass: input tokens pass through N network layers to output a prediction. Loop reasoning takes a different approach, allowing the same set of network layers to execute iteratively for multiple rounds. The second round builds upon the output of the first, achieving an effect similar to “equivalently deepening the network”:
Input → Round 1 Forward Pass (Establishes global context state)↓ Intermediate representationRound 2 Forward Pass (Refines and fully writes back results)↓Final Output
Intuitively, the first round is like “reading through the problem to form a general understanding,” while the second round involves “re-examining, correcting, and deepening the conclusion with that initial understanding.” Because it does not require pre-training a deeper model from scratch, the training cost remains controllable. Furthermore, the increase in computation during inference is significantly lower than that of an independent model with equivalent depth.
3. Three Key Engineering Optimizations
The primary costs of a loop structure are memory footprint and inference latency. For a 750B-level model, if the second round completely duplicates the KV cache and attention computation, deployment costs would surge. To address this, the solution implements three targeted optimizations:
1. Token-wise Gated Progressive Write-back
Candidate changes generated in each round are written back to the residual stream proportionally via a gating mechanism. The first round primarily establishes the global context state with a conservative write magnitude; the second round is responsible for refining and writing back the results more fully. This progressive update prevents information from being prematurely “locked in” during loop execution and reduces the risk of representational oscillation.
2. Cross-Round KV Cache Sharing
This is critical for memory optimization. The second inference round does not retain a completely new KV cache. Instead, it directly reuses the sparse KV from the first round, adding only an extra sliding window of KV. Thanks to this design, the deployment cost increase relative to the previous generation remains controllable, avoiding the common dilemma where “enhanced reasoning capabilities lead to doubled overhead.”
3. Attention Index Reuse
The second round directly reuses the sparse attention indices computed in the first round without re-executing index retrieval, thus incurring no additional retrieval overhead. This design follows a previously validated index-sharing concept, where the attention indexer is reused across multiple layers in a sparse attention scheme to amortize the index construction cost.
Combined, these three optimizations can be summarized in one sentence: The extra computation brought by loop execution is digested through “sharing” rather than “rebuilding” wherever possible.
4. Performance Validation: Controlled Experiments
To verify the practical benefits of the loop architecture, the technical team released controlled experiments on a 30B-scale model with an identical architecture to the 750B base. The control model was evaluated after 200K long-text SFT and enabling thinking mode. Enabling loop post-training increased computation by only about 10%, yet yielded significant gains:
- AIME25: 19.17 → 30.42 (Mathematical competition reasoning, over 50% improvement)
- GPQA-Diamond: 47.58 → 56.26 (High-difficulty science Q&A)
- MMLU-Pro: 71.65 → 75.05 (Comprehensive professional knowledge)
Notably, these improvements occurred under the premise of consuming fewer inference tokens, meaning the model achieved more accurate answers with fewer thinking steps. Regarding inference speed, it reached up to 200 tokens/s during off-peak hours and approximately 70 to 80 tokens/s during peak hours.
5. Insights: Architecture Innovation Remains Key to Capability Limits
This practice offers two key insights for the industry:
First, post-training is not a panacea. When model capabilities approach the upper limit of the base model, architectural modifications—such as loop depth, sparse attention, and gated write-back—can reopen room for growth.
Second, deployment costs dictate whether an architecture can be implemented. No matter how elegant the theoretical design, if it doubles inference costs, it will be difficult to commercialize. Engineering optimizations like KV sharing and index reuse, which may not be glamorous but are critically important, are the prerequisites for transitioning loop architectures from research papers to actual products.
For enterprise users, the ability to “think with fewer tokens” means supporting more concurrency, longer contexts, and more complex tasks under the same budget. Mainstream cloud providers, such as Baidu AI Cloud, are also continuously optimizing the throughput and cost of LLM inference to provide enterprises with highly cost-effective model services. In the future, as loop architecture further integrates with technologies like sparse attention, “trading less compute for higher intelligence” may become the standard path for LLM evolution.
