Recurrent LLMs: Achieving Complex Reasoning with Fewer Tokens
This article explores how recurrent large language models (LLMs) perform complex reasoning while generating fewer output tokens. By revisiting hidden states through multiple computation rounds, recurrent architectures increase computational depth without expanding parameter counts. We examine how these models modify existing base models, the engineering optimizations required for deployment (such as gated write-backs, shared KV caches, and reused sparse indices), and what current experimental results reveal about their performance. Finally, we provide a practical framework for evaluating the end-to-end cost and efficiency of recurrent LLMs in real-world applications.
1. How Fewer Output Tokens Can Still Complete Complex Reasoning
When tackling multi-step problems, standard LLMs generate intermediate steps via tokens, writing阶段性 conclusions into the context before decoding further. This incurs a clear cost: every new token typically requires a new forward pass. The longer the reasoning text, the more sequential decoding steps are needed.
Recurrent architectures offer an alternative approach: before predicting the next token, the same network processes the current hidden state for an additional round. The first round’s result is not fed back as-is; instead, it becomes the new input for the second round. Even if both rounds use identical weights, they process different states, enabling different transformations.
It is important to distinguish three quantities: parameter count measures how much storage is needed for weights, computation depth measures how many sequential layer transformations occur in a single forward pass, and output length measures how many tokens are generated. Weight sharing increases computation depth without requiring additional parameters for repeated layers, but it does not eliminate the computational overhead of the repeated execution. The core question for recurrent architectures is not whether they can reduce the number of written steps, but whether the extra computation per token can yield higher answer quality or save enough decoding steps to be worthwhile.
2. Modifying Existing Base Models with Recurrent Layers
One approach is to start with a pre-trained base model, select a contiguous block of network layers, and execute them twice instead of once while maintaining the original parameter shapes. In the described design, 28 layers are selected for the recurrent loop. For this block, the forward pass executes the layer transformations twice without duplicating the 28 sets of independent weights for the second pass. This does not mean the overall model depth doubles; modules outside the recurrent block still follow their original execution path.
The benefit of reusing an existing base model is avoiding pre-training from scratch, but the modification is not as simple as adding an extra loop in the inference code. The hidden state, originally processed once, now undergoes a second round of transformation, and the network following the recurrent block must receive a new output distribution. Further training is necessary so that the recurrent block and its upstream and downstream layers adapt to this computation path, learning to utilize the refined information from the second round rather than mechanically repeating the existing transformations.
More rounds are not inherently better. Extra recurrence increases forward computation and may lead to diminishing returns. Experimental results with a fixed two-round setup only demonstrate that this path is effective under specific training conditions; they neither prove that increasing rounds will continuously improve performance, nor that dynamically changing the number of rounds during inference remains reliable.
3. Making Recurrence Deployable: State Write-back, Cache, and Indexing
1. Per-Token Gated Write-back: Controlling Modifications per Round
The recurrent block must decide how to merge its results into the residual stream—the information pathway that continuously carries the hidden state throughout the network. Progressive write-back calculates a gate for each token, merging the candidate updates from the current round into the existing state at a specific ratio. Intuitively, this allows the network to decide “how much of this round’s modifications to adopt,” rather than unconditionally applying all changes.
In the discussed design, the first round forms a contextual state for subsequent processing, while the second round refines this state and writes back the results more thoroughly. This represents a division of labor between the two rounds, not an internal readable text draft. Gating does not skip computation: if the candidate update is already calculated, the forward pass still occurs even if the write-back ratio is low.
2. Cross-Round Shared KV Cache: Avoiding Full Replicas
Autoregressive inference typically caches the keys and values of historical tokens for attention calculations in subsequent steps. Long contexts and high concurrency amplify this VRAM overhead. If each recurrent round maintains an independent full cache, the cost of repeated execution impacts not only compute power but also VRAM usage per request and the number of concurrent requests a device can handle.
The proposed solution allows the second round to reuse the first round’s sparse KV cache, retaining extra keys only for a sliding window of recent states. This way, the second round can still leverage historical information provided by the first round while utilizing recent states from the second round, without maintaining a full historical cache. The trade-off is that the states of the two rounds are not identical, and the first round’s keys and values cannot be treated as exact equivalents of an independent second-round calculation. Evaluation should specifically check tasks involving long-range information referencing and cross-paragraph evidence integration to ensure sharing does not degrade results.
3. Cross-Round Reused Sparse Indices: Avoiding Re-selecting Historical Positions
Sparse attention does not allow every query to interact with all historical positions; it first selects a subset of candidate positions and then computes attention on them. Cross-round index reuse means the second round utilizes the candidate positions selected by the first round, saving a position retrieval pass. This solves a different problem than cache sharing: indices determine where to read, while caches hold what is read. Reusing indices does not mean the second round can skip the attention calculation.
This optimization assumes that the positions found in the first round remain useful for the second round. If the second round needs to find different evidence after updating its state, reusing the original indices might restrict accessible information. Therefore, when validating this optimization, besides measuring index computation time, one should observe whether tasks relying on dispersed evidence degrade, rather than just looking at average throughput.
4. What Experiments Show (and Don’t)
Public comparative experiments using a ~30 billion parameter model, after long-text supervised fine-tuning, were evaluated with inference output enabled. Introducing recurrence corresponded to a roughly 10% increase in training computation. Under the reported scoring metrics, math reasoning scores improved from 19.17 to 30.42, high-difficulty science QA from 47.58 to 56.26, and general knowledge and reasoning from 71.65 to 75.05. Additionally, average output length dropped by about 10% to 14% on some benchmarks, primarily due to shorter intermediate reasoning text.
These results support a limited but valuable conclusion: under these experimental conditions, increasing internal computation depth and shortening explicit reasoning can occur simultaneously; shorter outputs did not hinder score improvements on the tested tasks. However, this does not solely prove that the benefits come entirely from weight sharing, as the modification also utilized extra training computation. To isolate the impacts, a non-recurrent baseline with matched training compute should be added, and the contributions of gating, cache sharing, and index reuse should be tested individually.
Similarly, the results from the ~30 billion parameter control group are not direct empirical conclusions for larger models; the drop in output length does not equate to a proportional reduction in inference cost. What was observed experimentally is shorter text and higher scores. Explaining this as a shift of partial reasoning from external token sequences to hidden states is a reasonable mechanistic explanation, but it cannot be used to sequentially reconstruct what the model internally did.
5. Engineering Evaluation: Comparing Cost per Completed Task
End-to-end latency can be roughly divided into queueing/scheduling, input processing, and output decoding. For sequential decoding, the output phase duration depends roughly on the product of the number of output tokens and the average time per step. Assuming the output shrinks by 10%, but the average time per step increases by 20%, the duration of this phase becomes roughly 0.9 × 1.2 = 1.08 of the original, actually increasing by about 8%. This is merely an illustrative calculation, but it highlights why output length or a single token throughput metric cannot replace actual request latency.
A practical evaluation can be conducted in three steps:
- Fix quality standards first. Use identical task inputs, scoring rules, and decoding settings, grouping by short QA, long reasoning, and long-context tasks. Besides answer accuracy, check whether evidence citations are accurate and structured outputs are complete. Otherwise, shorter answers resulting from omitting necessary information might be falsely judged as efficiency gains.
- Break down system overhead next. Fix hardware and service configurations, and separately record Time To First Token (TTFT), average decode step time, end-to-end latency, VRAM per request, and throughput under varying concurrency. TTFT reflects the user’s wait time for a response to begin, while high-percentile end-to-end latency is more likely to expose bottlenecks under long requests and heavy loads.
- Calculate cost per successful task last. Track the proportion of tasks meeting quality requirements and factor in the costs of failed retries, format fixes, and necessary manual reviews. For code generation or data processing tasks, shorter outputs are only valuable if the results remain complete, executable, or verifiable. Conversely, if each request is slightly slower but significantly reduces rework, the overall workflow may still be more cost-effective.
The value of recurrent architectures lies in providing a design option different from scaling up parameters or extending output sequences: performing an extra round of computation on the same hidden state, and then determining if that computation is justified. The scenarios suited for this are not those where tokens are compressed the shortest, but those where it can deliver qualified results at a lower total cost within a given quality, latency, and memory budget.
