Recurrent Reasoning Architecture: How Shared-Weight Loops Enable Deeper Thinking with Fewer Tokens
This article examines how a recurrent, shared-weight deep architecture allows a large language model to reason more deeply without increasing parameter count. It explains the core design, three key engineering optimizations—per-token gated progressive write-back, cross-loop KV cache sharing, and attention index reuse—and the benchmark results showing higher reasoning scores alongside 10–14% shorter outputs. It also summarizes practical lessons for deploying token-efficient models under memory constraints.
1. From Adding Parameters to Adding Depth: Another Architectural Shift
Recently, improvements in large language model capability have followed two main paths: scaling up the base model’s parameter count, and strengthening post-training. The former is constrained by compute and memory, while the latter depends more on data quality and training strategy. As the marginal returns on both paths begin to narrow, the industry is revisiting a more fundamental question: with the parameter count fixed, can a model be made to “think deeper”?
A recently released flagship model from one model team offers a representative answer: a deep architecture with recurrent shared weights. The core idea is to convert several high layers of the base model into shared-weight layers that are executed recurrently for two passes, increasing computational depth without increasing the parameter count. The base model has roughly 750B parameters, placing it squarely in the large-scale dense model category.
Notably, this generation differs from the previous one, which used the same base model and relied only on post-training for capability gains. Instead, it moves the modification point back to the base architecture itself. The second recurrent pass does not simply repeat the first; it continues reasoning on top of the first pass’s output, effectively yielding a deeper network. This “trade depth for intelligence” approach poses new engineering challenges for memory usage and latency on the inference side.
2. How the Recurrent Structure Works and What It Costs
Recurrent shared weights are not a new concept. As early as 2018, the research community proposed deep structures with weight sharing, formally published at an international conference the following year. The essence is to reuse the same set of parameters multiple times, trading parameter efficiency for computational depth. For the engineering implementation, the team did not pre-train from scratch; instead, they converted an already pre-trained base model into a recurrent structure through continued training, gaining a higher intelligence ceiling at a relatively small compute cost.
The cost is equally clear: recurrence means the same weights are used in multiple forward passes, increasing both memory usage and inference latency. For a 750B-class model, deployment costs could multiply without optimization. Therefore, whether the recurrent structure can be brought into production depends on three targeted modifications.
3. Three Key Engineering Optimizations
3.1 Per-Token Gated Progressive Write-Back
The first pass establishes the global context state, and the second pass refines and fully writes back the result. To prevent the second pass from “overwriting” useful information from the first, the system uses a per-token gating mechanism that writes back each pass’s candidate changes to the residual stream by a proportion. It can be understood as a damped update:
h1 = Block(x) # Pass 1: establish global contextg = Gate(h1, x) # Compute write-back ratio per token, value in 0~1h2 = Block(h1) # Pass 2: continue reasoning on top of h1out = h1 + g * (h2 - h1) # Progressive write-back by ratio, not direct replacement
The benefit of this design is that when the second pass’s information is not confident enough, the gate automatically lowers the write-back ratio and preserves the stable representation from the first pass; when the second pass does bring gains, it is fully written back. Compared with hard-stacking two layers, progressive write-back is more favorable for training convergence and inference stability.
3.2 Cross-Pass KV Cache Sharing
The second pass reuses the first pass’s sparse KV cache and adds only one sliding-window KV, rather than retaining the entire cache. This design compresses the memory increment from recurrence from “doubling” to a “controllable increment,” keeping the deployment cost increase for a 750B-class model within an acceptable range. For long-context scenarios, the sliding window covers only local neighbors, and combined with the sparse cache it can significantly reduce peak memory usage.
3.3 Cross-Pass Attention Index Reuse
The second pass directly reuses the sparse attention indices generated by the first pass, adding no retrieval overhead. This idea carries forward the index-sharing mechanism released in the previous generation—reusing the indexer once every four layers. Index reuse means the second pass does not need to recompute “which tokens to attend to,” performing only incremental updates on new tokens, thereby keeping the extra cost of recurrence mainly in computation rather than retrieval.
4. Results: Fewer Tokens, Stronger Reasoning
The results come from a controlled experiment with the same parameter count: the baseline model has an architecture identical to the 750B base, and after supervised fine-tuning on roughly 200K tokens of long-form text, it was evaluated with thinking mode enabled, with training compute increasing by about 10%. With recurrence enabled, all three benchmarks improved markedly:
- Math reasoning benchmark: from 19.17 to 30.42;
- Graduate-level science Q&A: from 47.58 to 56.26;
- Multi-discipline comprehensive knowledge: from 71.65 to 75.05.
More noteworthy is that output length dropped at the same time. On benchmarks such as science Q&A and comprehensive knowledge, average output length fell by about 10% to 14%, with the reduction coming mainly from the chain of thought. This means part of the reasoning shifted from the “token stream” into the extra computational depth provided by recurrence—the model completes its thinking with fewer tokens. For developers, this translates directly into lower generation costs and faster end-to-end responses.
In terms of speed, the model can reach up to about 200 tokens/s during off-peak hours and about 70 to 80 tokens/s during peak hours. The API is planned to open after a safety assessment is completed, and the model weights are planned to be open-sourced.
5. Implications for Engineering Practice
Bringing the recurrent reasoning architecture into production offers three reusable lessons for the application side:
- Depth and width must be balanced. When memory is constrained, replacing simple widening or deepening with recurrent shared weights is a more cost-effective path.
- Caching and indexing are the lifeline of recurrent structures. Cross-pass KV sharing and attention index reuse determine whether recurrence can move from a paper into production.
- Token efficiency is itself a product metric. A drop in output length of more than 10% means lower per-request cost and improved feasibility for long-chain tasks.
At the application level, this kind of “generalized coding” capability is turning code into a foundation for accomplishing a broader range of tasks: using front-end code to render visuals in real time and coordinate with a music generation model to produce short films, using geometry and shaders to generate interactive 3D scenes, and completing robotic arm modeling and motion simulation through parametric modeling tools. To run such workloads on Baidu AI Cloud, you can combine a container platform for elastic scaling, object storage for managing assets, and logging and monitoring services to track token consumption and latency distribution, enabling stable delivery at controllable cost.
