Looped Reasoning in LLMs: Deeper Computation with Fewer Output Tokens
Looped reasoning architectures reuse the same model layers across multiple passes, increasing effective computational depth without adding a proportional number of parameters. This article explains how repeated computation over hidden states can reduce reliance on explicit chain-of-thought tokens, what it takes to train and deploy a looped model, and how to measure whether shorter outputs translate into better performance or lower serving costs.
As large language models (LLMs) move from generating more content to solving more complex tasks, reasoning efficiency is becoming a design priority. Conventional chain-of-thought generation uses output tokens to hold intermediate steps. The model writes out a problem decomposition, explores possible solutions, and revises its conclusions, then uses that text as context for further computation. This approach is straightforward, but longer sequences can increase latency, GPU memory use, and API costs.
Looped reasoning takes a different approach: instead of expressing every intermediate step in text, the model performs more computation internally. A block of layers runs multiple times with the same weights. Each pass acts on the hidden state produced by the previous one, increasing the model’s effective depth without a proportional increase in parameter count.
1. From Larger Models to Deeper Computation
A conventional Transformer stacks layers with distinct weights. Each layer transforms the representation it receives and passes the result to the next one. There are two broad ways to give the model more computational depth:
- Add layers, increasing the number of model parameters.
- Keep the parameter count fixed and increase the number of computation steps each input goes through.
Adding layers is straightforward, but it raises training, storage, and deployment costs. In very large models, even a few extra layers can add substantial GPU memory, communication, and inference overhead.
A looped architecture instead reuses an existing block of layers. After the first pass, the model feeds the resulting hidden state back into the same block. The second pass uses identical weights, but it does not repeat the same calculation: its input is now a contextual representation that it can refine, expand, or compress.
Unrolling the loop in the computation graph makes the network effectively deeper. What grows is the amount of computation, not the number of distinct weights. The design trades additional compute for deeper processing.
2. How Looped Reasoning Can Reduce Token Use
In explicit chain-of-thought generation, intermediate conclusions enter the token stream and become available to subsequent attention operations. The model maintains its reasoning state partly through this growing sequence.
In a looped model, the first pass can build a global representation of the input, identify the structure of the problem, and establish a preliminary solution space. A later pass can refine that representation directly. Some intermediate work that would otherwise take several generated tokens can happen in the hidden state instead.
That does not eliminate the need for chain-of-thought generation or make shorter answers inherently better. The shift is from computation mediated by explicit text to computation over internal representations. If the model learns to use that extra depth effectively, it may maintain or improve accuracy while generating fewer reasoning tokens.
In practice, shorter reasoning traces can:
- Reduce the time between the first and last generated tokens.
- Limit the growth of the key-value (KV) cache as the sequence length increases.
- Lower API costs when billing is based on token usage.
- Reduce opportunities for errors to compound across a long chain of generated steps.
- Leave more room for complex tasks within a fixed context window.
These are potential benefits, not automatic savings. Additional internal passes also cost time and compute, so fewer output tokens do not necessarily mean lower end-to-end latency.
3. Engineering Challenges at Scale
Repeated passes affect more than compute. They also change memory usage, cache behavior, bandwidth requirements, and scheduling efficiency. Three design choices help determine whether the architecture is practical to serve.
Progressive Hidden-State Updates
Replacing the full residual stream after each pass can overwrite useful information from the first pass and destabilize training. One alternative is to gate each token’s update and apply it incrementally:
h_next = h_current + gate(token) × delta
Here, h_current is the current hidden state, delta is the candidate update produced by the current pass, and gate(token) controls how much of that update is applied at each token position.
The first pass can establish the overall context and preserve structural information. The second can focus on refining the positions most relevant to the task. Controlling the size of each update helps balance stability with the ability to change the representation.
KV Cache Reuse Across Passes
The KV cache accounts for a significant share of inference memory. If the second pass stores a separate, full copy, cache memory can nearly double, eroding the deployment advantage of weight reuse.
One option is to reuse sparse key-value entries from the first pass and add cache entries only for newly processed windows or locally changed regions. This retains useful context from the first pass without duplicating the entire cache.
The approach is particularly relevant to long documents and code, where much of the context may remain stable and meaningful changes may be concentrated in a few regions.
Reusing Sparse Attention Indices
Sparse attention must first identify which positions each token should attend to. Running that selection again on every pass adds latency.
A later pass can reuse attention indices from the first pass and refresh them only where necessary. The assumption is that the first pass has already found most of the relevant information, leaving the next pass to reorganize it and refine the result rather than search the entire context again.
Indices can also be shared across layers or modules to reduce how often the selector runs. Sharing them too broadly, however, can prevent different layers from attending to the information they need at different levels of detail.
4. Adapting a Pretrained Model for Looped Reasoning
A looped model does not have to be pretrained from scratch. An alternative is to start with a pretrained base model, modify its architecture, and continue training it to use multiple passes.
Stage 1: Convert the Architecture
Replace selected consecutive layers with a looped block that shares weights across passes. Define how passes are controlled, how updates are applied to the residual stream, and how the cache is reused. Keep input and output dimensions compatible to minimize disruption to the base model’s existing capabilities.
Stage 2: Stabilize Multi-Pass Training
The model must learn to use successive passes for different purposes. Training should account for intermediate-state stability as well as final-answer quality. Otherwise, repeated passes can lead to collapsed representations, unstable gradients, or degraded outputs.
Stage 3: Apply Supervised Fine-Tuning and Reasoning Training
Continue training on long documents, mathematics, code, and complex question-answering tasks so the model can learn to carry out some reasoning in its hidden states. For tasks that require precise answers, training objectives can also cover answer verification, consistency across steps, and when to decline to answer.
Reported comparisons at the same parameter scale suggest that looping can improve performance in math reasoning, specialist question answering, and broad knowledge tests. In one set of public experiments, the math score rose from 19.17 to 30.42, the complex knowledge score from 47.58 to 56.26, and the general capability score from 71.65 to 75.05. Training compute increased by about 10%, while average output length fell by about 10% to 14% on some benchmarks.
Those results illustrate the distinction between doing more computation and generating more text. With suitable training objectives, the extra compute can go toward refining internal representations rather than extending the output.
5. How to Evaluate Looped Reasoning Models
Accuracy alone cannot show whether a looped model is an improvement. Evaluation should cover capability, output efficiency, serving costs, and stability.
Capability
Test mathematical reasoning, code generation, long-context understanding, specialist knowledge, and multi-turn tasks. Separate questions that primarily test recall from those that require multiple reasoning steps, where added computational depth is more likely to help.
Output Efficiency
Track average output tokens, time to first token, end-to-end latency, and tokens per correct answer. Shorter responses are not an improvement if they omit essential information. Measure token use alongside accuracy and answer completeness.
System Cost
Measure GPU memory use, KV cache size, throughput, batching capacity, and tail latency under high concurrency. A looped model may behave differently at low and high request volumes, so peak throughput alone does not tell you how it will perform in production.
Stability
Vary context length, task difficulty, generation length, and the number of passes. Check whether quality fluctuates as these conditions change. In production, error rates, timeout rates, and resource utilization often matter more than the best result from a single run.
6. What This Means for Developers and Enterprises
Looped reasoning is not simply running the same model twice. It changes how the model shares weights, updates hidden states, manages attention caches, and learns to use its computation. It is particularly relevant to:
- Complex code generation and editing.
- Long-document analysis and structured summarization.
- Multi-step data processing.
- Mathematics, logic, and planning.
- Applications sensitive to API costs and latency.
At the application level, the useful question is not whether a model can generate a longer chain of thought. It is whether it can solve the same task just as well with a shorter output. For enterprise evaluations, task accuracy, average token use, end-to-end latency, and cost per task form a more useful set of metrics than any one of them alone.
The central idea is to reallocate the compute budget. Instead of relying solely on more parameters or more generated tokens, the model reuses weights across multiple internal passes. Whether that pays off depends on stable hidden-state updates, effective cache optimization, and training objectives that turn extra computation into better reasoning.
A possible next step is to vary the number of passes with task difficulty: one pass for simple requests and more for complex ones. Combined with early stopping, sparse attention, and adaptive computation, this could let reasoning models add internal depth where it helps without paying for it on every request.
