Loop-Based Reasoning in Large Language Models: Deeper Thinking with Fewer Tokens

    Loop Transformer architectures increase effective reasoning depth by reusing the same layer weights across multiple computation rounds. This article explains how a 750B-parameter model was adapted from a conventional 28-layer backbone, the engineering techniques used to control memory and inference costs, and benchmark results showing improved reasoning quality with 10%–14% shorter outputs. It also examines how deeper internal computation may enable more efficient coding and tool-driven workflows.

    Loop-Based Reasoning in Large Language Models: Deeper Thinking with Fewer Tokens

    1. Why Large Language Models Need Deeper Reasoning

    The reasoning capability of a large language model is closely related to both parameter count and computational depth. Traditionally, there have been two main ways to raise a model’s intelligence ceiling:

    1. Increase the number of parameters.
    2. Invest more in post-training, such as supervised fine-tuning and reinforcement learning.

    Both approaches, however, face diminishing returns and rising costs.

    The industry has recently begun revisiting an older idea: increase computational depth through weight sharing and repeated execution without increasing the parameter count. The concept can be traced back to the Universal Transformer, proposed in 2018 and formally published at ICLR in 2019. Its core idea is to repeatedly process the input sequence with the same set of Transformer layer weights, giving the model the effective computational capacity of a deeper network during inference.

    Recently, a research team released a new flagship model based on this type of recurrent architecture, referred to as a Loop Transformer. Its base model contains approximately 750 billion parameters. The original 28 layers were converted into shared weights and executed for two rounds.

    This article uses that model as an example to analyze the underlying architecture, the engineering challenges involved, and the measured results.

    2. How Loop-Based Architectures Work

    2.1 Weight Sharing: Trading Time for Space

    A conventional Transformer consists of N stacked layers, each with its own parameters. As the network becomes deeper, the parameter count increases approximately in proportion to the number of layers.

    A loop-based architecture instead reuses the same layers:

    1. Conventional structure: Input → Layer 1 → Layer 2 → ... → Layer 28 → Output
    2. Loop structure: Input → Layer 1...Layer 28 (Round 1)
    3. → Layer 1...Layer 28 (Round 2) → Output

    The 28 layers therefore execute twice. The effective network depth is doubled while the parameter count remains unchanged.

    For reasoning tasks, the model can use the first round to establish a global understanding of the input and the second round to further refine and develop that understanding. This creates a staged reasoning process without requiring a larger parameterized model.

    2.2 Training from Scratch vs. Retrofitting an Existing Model

    Training a loop-based model from scratch would be extremely expensive. The research team instead chose a more economical approach: pretrain a conventional model first, then convert the base model into a loop-based architecture through additional training.

    In practical terms, the model first learns to understand an input in a single pass and then learns to analyze it more deeply across two passes.

    According to the team’s disclosure, the conversion required only about 10% additional training compute while producing a significant improvement in the model’s intelligence ceiling. This makes the approach a potentially efficient way to upgrade an existing model.

    2.3 How This Differs from Post-Training Improvements

    The capabilities of earlier model generations were improved primarily through post-training while leaving the base architecture unchanged. Loop-based reasoning makes a change at the base-model level and is therefore a structural upgrade.

    During the second pass through the same weights, the model continues processing the representations produced during the first pass. This additional computational depth cannot be fully replicated through post-training alone.

    3. Engineering Challenges and Three Key Optimizations

    The main costs of a loop-based architecture are memory usage and inference overhead. For a model with approximately 750 billion parameters, simply executing two complete rounds in sequence would nearly double deployment costs.

    The research team introduced three engineering optimizations to address this problem.

    3.1 Progressive Per-Token Gated Writeback

    Instead of replacing the residual stream in a single operation, updates are written back progressively according to a scaling factor.

    The first round focuses on establishing the global context and writes back only a small portion of its update. The second round performs refinement and writes back the final result more fully.

    A gating mechanism can be illustrated with the following pseudocode:

    1. # Example of progressive per-token gated writeback
    2. for token in sequence:
    3. delta_round1 = layer_stack(token, round=1)
    4. hidden = hidden + alpha1 * delta_round1 # Small writeback to establish global state
    5. delta_round2 = layer_stack(hidden, round=2)
    6. hidden = hidden + alpha2 * delta_round2 # Fuller writeback for final refinement

    This division of responsibility helps the two rounds complement each other rather than interfere with one another.

    3.2 Sharing the KV Cache Across Rounds

    The KV cache is one of the largest sources of memory consumption during large-model inference. If the second round stored a complete additional cache, the memory cost would become difficult to justify.

    The proposed design reuses the sparse KV cache generated during the first round. The second round adds only the KV entries required for a sliding window instead of retaining a full second cache.

    This keeps the increase in deployment cost relative to the previous generation within a manageable range. It is a critical factor in determining whether loop-based architectures can be deployed at scale.

    3.3 Reusing Attention Indices

    The second round directly reuses the sparse attention indices generated during the first round, eliminating the need to perform retrieval again.

    This design builds on an earlier technique in which the indexer was reused across layers every four layers. As a result, the additional indexing overhead introduced by the loop is reduced to zero.

    4. Measured Results: Better Capabilities with Shorter Outputs

    In a published comparison using models with the same 30B parameter count, the baseline and loop-based models shared the same 750B base-model architecture. Both models received supervised fine-tuning on 200K-token long-context data and were evaluated in thinking mode.

    The reported results were:

    • AIME25: 19.17 → 30.42, an improvement of approximately 59%
    • GPQA-Diamond: 47.58 → 56.26
    • MMLU-Pro: 71.65 → 75.05

    The change in output length is particularly notable. On benchmarks such as GPQA and MMLU-Pro, average output length decreased by 10% to 14%, with most of the reduction occurring in the chain-of-thought portion.

    This suggests that part of the reasoning process that previously depended on producing many tokens has been absorbed by the additional computation provided by the loop. In other words, some reasoning is moving from the visible token stream into the model’s internal computation structure.

    The model can therefore perform reasoning of comparable or greater depth with fewer output tokens.

    This has two implications for practical costs. Although each token may require slightly more computation because of the additional loop, the total number of generated tokens is lower. In addition, improved capabilities can reduce the need for repeated attempts. As a result, end-to-end efficiency may improve despite the higher per-token computation cost.

    5. Speed and Practical Deployment Experience

    In terms of generation speed, the model can reach up to 200 tokens per second outside peak periods and maintains approximately 70 to 80 tokens per second during peak periods.

    For interactive coding, long-document analysis, and similar workloads, these speeds are sufficient to provide a real-time or near-real-time feedback experience.

    6. From Code Generation to General-Purpose Coding

    The research team describes the new model as an early step toward “general-purpose coding.” In this view, code is no longer limited to conventional programming tasks. It becomes a general interface for completing a broader range of activities.

    The team’s technical blog presented several representative examples:

    • Using frontend code to render visuals in real time while calling a third-party music-generation capability to create a music video.
    • Using mathematical geometry and shader programming to generate interactive 3D scenes.
    • Using open-source 3D modeling tools to build a robotic arm model and simulate its movements.

    These examples share the same basic pattern: the model converts natural-language intent into executable code, and that code drives specialized tools and software pipelines.

    Code therefore becomes a general-purpose interface between human intent and complex software systems.

    7. Conclusion and Future Directions

    The implementation of a loop-based reasoning architecture demonstrates a practical path forward: with approximately 10% additional training compute, a model can significantly raise its reasoning ceiling without increasing its parameter count. Gated writeback, cross-round cache sharing, and attention-index reuse can then keep deployment costs under control.

    For developers, the direct benefits include shorter chains of thought, lower waiting times, and higher answer quality.

    For the industry, the approach suggests that competition among large language models may gradually shift from simply scaling parameter counts toward structural innovation and retrofitting existing models.

    When more reasoning can be internalized as computation rather than externalized as a long token stream, efficient and affordable high-quality inference becomes more achievable.

    Several questions remain open:

    • Can the number of loop rounds be adjusted dynamically, with simple tasks using one round and complex tasks using multiple rounds?
    • How should loop depth interact with inference-time scaling?
    • How quickly can this type of architecture be reproduced and adopted across the open-source ecosystem?

    These directions will help determine how broadly loop-based reasoning can be applied in future large language models.