Recurrent Shared-Weight Architecture in Next-Generation LLMs: How Reusing Layers Trades Parameters for Effective Compute Depth

    This article breaks down a new recurrent shared-weight Transformer architecture that reuses a single block of weights across multiple passes instead of adding parameters. It covers how the existing base model was modified rather than retrained from scratch, why two recurrence rounds were chosen, the published 30B comparison results, the "general-purpose code" positioning with 1M-token context and multimodal input, third-party benchmark caveats, the known latency issue caused by overthinking, and practical deployment guidance for developers evaluating this design.

    1. The Starting Point: Parameter Count Is Not the Only Capability Lever

    Over the past few years, gains in large model capability have been treated as almost synonymous with scaling parameters and data together. Once training costs moved into a high range, the industry began looking for a different path: instead of adding parameters, add “effective compute depth.” Effective compute depth can be understood as the total number of layers in a single forward pass where information is repeatedly transformed, checked, and integrated. In a conventional stacked network, every additional layer brings new weights. A recurrent structure lets the same set of weights be reused multiple times, trading a deeper reasoning chain for an unchanged parameter budget.

    On November 23, a domestic team released a new flagship model, the first in a Chinese large model to adopt a recurrent Transformer structure. The approach converts several middle layers of an existing base model into shared weights and executes them in two recurrent rounds. The base model has roughly 750B parameters, and the team states its intelligence level falls in the range of a 2T to 3T parameter model. That claim should be read as a “capability benchmark range,” not an equivalent parameter count, and readers doing model selection need to keep the distinction in mind.

    2. What Recurrent Shared Weights Actually Do

    2.1 A Structural Modification, Not Training From Scratch

    The key engineering choice is modifying an existing base model rather than training a new architecture from zero. The middle layers are replaced with a shared-weight module that is called twice, while the front and tail encoding and output layers stay as they were. The benefit is that the original base model’s language and knowledge representations are preserved, and the modification cost is concentrated in continued training and alignment of the middle section.

    2.2 Decoupling Compute From Parameters

    The decoupling can be expressed with illustrative code:

    1. # Pseudocode: shared-weight recurrent block
    2. h = embed(tokens)
    3. for layer in front_layers: # front section: not shared
    4. h = layer(h)
    5. for _ in range(2): # middle section: same weights, two rounds
    6. for layer in loop_block:
    7. h = layer(h)
    8. for layer in tail_layers: # tail section: not shared
    9. h = layer(h)
    10. logits = head(h)

    The total parameter count includes loop_block only once, but forward compute scales with the number of rounds. This is exactly where “higher effective compute depth at an unchanged parameter count” comes from, and it is also the root cause of higher inference cost.

    2.3 Why Two Rounds Instead of More

    Recurrence rounds show diminishing returns: adding rounds linearly increases latency and memory usage, while the marginal improvement in representation quality narrows. Two rounds is a compromise between benefit and cost. In practice it usually also requires numerical stability handling introduced by weight sharing, such as recalibrating normalization placement and residual scaling strategies.

    3. What the Official Comparison Experiments Show

    Published comparison data shows that with recurrence enabled at the same 30B parameter count, math reasoning evaluation scores rose from 19.17% to 30.42%, and knowledge and scientific reasoning scores rose from 47.58% to 56.26%, while average output length on the benchmarks dropped by 10% to 14%.

    The most valuable signal in this data is not the absolute scores but that capability improved and output got shorter at the same time. A reasonable explanation is that some reasoning previously carried by explicit chain-of-thought tokens was shifted into the extra implicit compute provided by recurrence. For developers, this means cost structures may change in scenarios billed per output token, but it also means end-to-end latency does not necessarily improve.

    4. Capability Surface and the “General-Purpose Code” Positioning

    The new model adds visual input and supports mixed input of images, video, text, and files, with a 1M-token context window and a maximum output of 128K tokens. The official positioning is “general-purpose code,” extending code generation capability to video generation, 3D modeling, and mechanical design. Typical forms include the model emitting front-end code that draws a scene, generating interactive 3D scenes with geometry and shaders, and completing mechanical structure modeling and motion simulation through parametric modeling tools.

    From an engineering perspective, the essence of these capabilities is still “generating executable structured artifacts”; only the artifact changes from a function to a scene script or a modeling script. Long context and visual input are necessary support: the former carries large engineering files, and the latter lets the model read UI screenshots and design drawings.

    5. Reading the Evaluation Numbers Carefully

    The official statement mentions strong performance in visual programming and long-horizon tasks across 200 real-world programming evaluations, but no specific scores were published. The available comparisons come from third parties: in one overseas reviewer’s private evaluation, the new model scored 33.2, essentially level with another closed-source flagship at 33.6, and within 5% of 34.7. In another independent test, it ranked first among open models, with a 1.56% tool-call failure rate and a 66% retry recovery rate.

    It is worth stressing that private evaluation sets, scoring scripts, and question distributions all significantly affect conclusions, and evaluations without public scores or reproducible scripts can only serve as reference. Production selection should be based on a small regression set built from your own scenarios, focusing on tool-call failure rate and self-recovery after failure. For agent-style applications, those two metrics affect stability far more than leaderboard position.

    6. A Known Limitation: Latency From Overthinking

    The team proactively flagged one weakness: the model tends to enter long thinking modes, enabling reasoning at nearly every step on difficult tasks, which makes completion time long even though token output speed is not slow. This is consistent with the nature of the recurrent structure, since the extra compute happens in latent space and is not reflected in output rate.

    The mitigations sit on the engineering side rather than the model side:

    • Set a thinking budget and a maximum round cap, degrading to normal mode on timeout;
    • Route by task difficulty, sending simple requests to a smaller model and enabling deep reasoning only for complex ones;
    • Use streaming output and intermediate-state feedback to reduce user waiting anxiety;
    • Track end-to-end latency and time-to-first-token separately in monitoring and alerting.

    7. Availability and Cost Reference

    On release day, the model was made available to all subscribers of a subscription-based coding plan and integrated into several intelligent coding tools, with some subscription tiers receiving a 1.5x quota increase. The API opened after a security assessment, and the weights are planned to be open-sourced in a responsible manner, though no timeline has been given. Third-party platforms have listed a price reference of $0.09 per million input tokens and $0.33 per million output tokens; no official pricing has been published. On speed, throughput reached roughly 200 tokens/s at peak off-hours and 70 to 80 tokens/s during busy periods.

    If an enterprise needs to host similar capability in its own environment, the common approach is to deploy model serving on a container platform, store weights and datasets in object storage, use a message queue to smooth traffic spikes, and connect logging and monitoring services for full-chain observability. Baidu AI Cloud offers corresponding capabilities in these general-purpose component categories, which can be combined as needed.

    8. Practical Recommendations for Developers

    1. Start with a small-scale comparison test, using the same task set to compare the recurrent and conventional architectures across success rate, latency, and token consumption.
    2. Treat effective compute depth as a tunable resource rather than something enabled by default; keep an off switch for latency-sensitive paths.
    3. Pair long-context scenarios with retrieval and segmented summarization, and do not treat a 1M window as free memory.
    4. General-purpose code tasks need sandbox execution and automatic rollback; executable artifacts generated by the model must run in isolation.
    5. Watch the weight open-source timeline; for data-compliance-sensitive business, prioritize a path that supports private deployment.

    Recurrent shared weights offer a viable route to deeper reasoning without piling on parameters, at the cost of latency uncertainty from implicit compute. Understanding that tradeoff has more engineering value than memorizing any leaderboard score.