Shared-Weight Recurrent Transformers: How Two-Pass Inference Increases the Effective Compute Depth of Large Language Models
Shared-weight recurrent architectures improve inference efficiency by reusing the same Transformer layers across multiple passes. This article explains how two-pass computation increases effective depth without increasing parameter count, why adapting a mature base model is more economical than training from scratch, and how the approach affects reasoning performance, coding capabilities, inference cost, and deployment trade-offs.
1. Beyond the Parameter-Scaling Race
In recent years, large language models have evolved along two parallel paths. One continues to scale parameter counts and training data in pursuit of the highest possible capability. The other focuses on computational efficiency: how to make a model perform like a much larger system while keeping inference costs within practical limits.
Shared-weight recurrent architectures belong to the second category. Their core idea is straightforward: instead of giving every layer its own parameters and computing each layer only once, selected layers share the same parameters and are executed repeatedly. The model’s stored parameter count remains unchanged, while the number of computation steps during the forward pass increases. In effect, the architecture trades time for space to increase the model’s effective depth.
A recently released flagship model represents the first major deployment of this approach in its domestic large-model ecosystem. The model modifies 28 layers of a mature base model with approximately 750 billion parameters, shares their weights, and executes the block twice. According to the vendor, its intelligence falls within the range of models with 2 trillion to 3 trillion parameters, suggesting that it can approach the performance of much larger models with less than half the parameter count.
2. Technical Principles: How Repeated Execution Increases Effective Depth
2.1 From Physical Depth to Effective Depth
In a conventional Transformer, model depth corresponds to the number of layers, N, and the parameter count generally grows linearly with the number of layers. However, research has long shown that parameter count and effective computational depth are not equivalent. Many parameters may be redundant, while a model’s reasoning ability depends more directly on how many meaningful transformations it can perform during inference.
A recurrent architecture selects a continuous block of L intermediate layers—in this case, 28 layers—shares their parameters, and executes the block sequentially for R rounds. The resulting effective depth can be expressed as:
Effective depth = Front layers + R × L + Back layers
For a model with a total depth of D layers, sharing 28 intermediate layers and executing them twice produces an effective depth of approximately D + 28 layers, while the parameter count remains unchanged.
2.2 Why Modifying a Base Model Is More Economical Than Training From Scratch
The model was not pretrained from the beginning. Instead, it was adapted from an existing, mature base model. This approach offers several advantages:
- Knowledge retention: The base model has already learned language understanding, world knowledge, and coding capabilities. Most of these capabilities can be retained after the weight-sharing modification, avoiding the need to repeat large-scale pretraining.
- Training efficiency: The parameter-sharing constraint introduced by the recurrent structure is relatively moderate. Continued training requires significantly less compute than full pretraining.
- Controlled risk: Performance before and after the modification can be compared on the same evaluation sets, making it possible to validate the benefits quickly.
2.3 Controlled Results: Quantifying the Impact of Recurrence
The published comparison provides a useful indication of the effect. On a model with 30 billion parameters, enabling recurrence produced the following results:
| Benchmark | Recurrence Disabled | Recurrence Enabled |
|---|---|---|
| AIME25 (mathematics competition) | 19.17% | 30.42% |
| GPQA-Diamond (scientific question answering) | 47.58% | 56.26% |
Another notable detail is that average output length on the same benchmarks decreased by 10% to 14% after recurrence was enabled. This suggests that some reasoning steps that would previously have been expressed explicitly through chain-of-thought were transferred into the additional internal computation enabled by the recurrent passes.
In other words, recurrent computation performs part of the model’s internal reasoning, reducing the need to write out every intermediate step. This can lower reasoning-token usage and improve end-to-end response time.
3. Capability Profile: Multimodal Input and a “General Coding” Focus
3.1 Input and Output Specifications
The new generation of models introduces two notable capability updates:
- Multimodal input: The model accepts images, video, text, and files, covering common productivity and software-development scenarios.
- Long context: The context window reaches 1 million tokens, with a maximum output length of 128,000 tokens. This makes it possible to process hundreds of thousands of lines of source code or extremely long documents in a single session.
3.2 What “General Coding” Means
The model positions itself as a “general coding” system. Coding remains its core capability, but that capability is extended to a broader range of engineering and creative tasks:
- Frontend and multimedia: Drawing visual content with frontend code and calling a third-party music model to create a complete music video.
- Interactive 3D content: Generating interactive 3D scenes through mathematical geometry calculations and shader programming.
- Industrial modeling and simulation: Building mechanical-arm models with CAD and 3D modeling tools, then simulating their movements.
The underlying idea is that code acts as a general-purpose language connecting the digital and physical worlds. When a model is sufficiently capable at coding, tool calls—such as generating CAD scripts, shaders, or simulation configurations—can extend its usefulness into design, modeling, and simulation.
3.3 Signals From Third-Party Evaluations
Because the vendor has not published scores for some evaluations, the available comparative data comes primarily from third-party testing:
- In a private coding evaluation conducted by an overseas evaluator, the model scored 33.2, roughly matching a leading closed-source model at 33.6 and coming within 5% of the strongest model at 34.7.
- In another independent test, the model ranked first among open-source models. Its tool-call failure rate was only 1.56%, while its retry recovery rate reached 66%, exceeding several other mainstream coding models in the same test group.
Tool-call failure rate and retry recovery rate are particularly important for agent-based systems. The former measures how reliably a model generates valid tool-call parameters, while the latter measures whether it can correct itself after a failed call. For developers building automated workflows, these metrics can be more informative than single-turn question-answering scores.
4. Deployment Considerations: Access and Cost
4.1 Access Channels
- Subscription access: The model was made available on the day of release to users of the relevant coding subscription plan and was also integrated into multiple major coding platforms. Subscription users received a 1.5x increase in usage limits.
- API access: API availability is expected after the safety evaluation is completed. Third-party platforms have listed preliminary prices of approximately $0.09 per million input tokens and $0.33 per million output tokens, although official pricing has not yet been announced.
- Open weights: The vendor has stated that it will release the model weights in a responsible manner, but no specific timeline had been provided as of the day after release.
Availability may vary by region and platform, so developers should consult the vendor’s official documentation for the latest access conditions.
4.2 Inference Speed
In practical testing, the model reached up to 200 tokens per second outside peak hours and approximately 70 to 80 tokens per second during peak periods. For workloads centered on code generation, this falls within a usable range, although the model’s reasoning behavior must also be considered.
5. Known Limitation: The Cost of Overthinking
The vendor has openly identified the model’s main weakness: it can easily enter a prolonged reasoning mode. On difficult tasks, the model may activate extended reasoning for nearly every step. Even when token generation is fast, the total completion time can still become significantly longer.
Developers should evaluate this behavior according to the task:
- Less suitable scenarios: For simple CRUD operations, format conversion, or minor code changes, excessive internal reasoning can waste time. Prompts should clearly indicate the task’s complexity, or a non-reasoning mode should be selected when available.
- More suitable scenarios: For long-running and complex tasks—such as cross-file refactoring or multi-step agent workflows—extended reflection and self-correction can improve the success rate. In effect, some retry cost is moved from the external workflow into the model’s internal computation.
6. Conclusion
The value of a recurrent Transformer is that it redefines what “scale” means. Effective computational depth can increase independently of the stored parameter count. The reported result of a 750-billion-parameter model approaching the intelligence range of 2-trillion- to 3-trillion-parameter systems, combined with the possibility of future open-weight availability, makes this an important direction for teams operating under compute constraints.
For developers, understanding how recurrent computation can replace part of explicit chain-of-thought reasoning is useful when designing task-routing strategies. Lightweight tasks can follow a fast path, while deeper recurrent reasoning can be reserved for problems that genuinely require it.
