Recurrent Reasoning: Deeper Thinking with Fewer Tokens
Recurrent reasoning does not solve the problem by adding more parameters; it reuses a pretrained layer block across multiple passes and moves part of the reasoning from token output into hidden-state computation. This article explains the two-pass design, per-token gating, KV and sparse-index reuse, evaluation metrics, training and deployment risks, code-generation implications, and when recurrence is worth the trade-off.
The problem that recurrent reasoning addresses is not “stack another layer of parameters,” but “run the same parameters for one more round and emit fewer words.” On complex tasks, large models tend to write intermediate states into the chain of thought: self-checks, step-by-step derivations, and repeated corrections. These tokens consume latency and cost, and they expose computation that could have stayed in hidden states as text. The recurrent architecture idea is to select an already pretrained layer segment, share its weights, execute it repeatedly by round, trade extra compute depth for a higher reasoning ceiling, and pull part of the thinking back out of the token stream.
Why “deeper” does not have to mean “larger”
Conventional deepening stacks layers with different parameters. Recurrent deepening runs the same set of weights twice or more. The first pass is responsible for building global context: identifying task boundaries, relevant snippets, and an initial plan. The second pass continues reasoning on the state that the first pass has already written into the residual stream, effectively producing a deeper computation graph without adding new main parameters.
This is not the same as feeding the same prompt again. Prompt repetition still goes through full vocabulary decoding, and each round pays token cost. Recurrence happens inside layers: the second pass reads residuals and caches directly and does not need to first decode intermediate conclusions into natural language and then encode them again. It is therefore better suited to base-model modification rather than relying only on post-training to compress chain-of-thought length. Post-training can change whether a model is willing to write long reasoning; recurrence changes whether there is a block of computation depth that does not consume the output budget.
Weight-shared depth structures have been discussed for some time: applying the same transform repeatedly in exchange for expressive power. In engineering practice, a more realistic path is often not to pretrain a recurrent model from scratch, but to continue training an already pretrained dense base into a recurrent network under relatively controlled conditions. Compute is mainly spent on adapting to weight sharing and multi-round writeback, not on making another copy of a 750B-scale parameter set. Parameter scale is still determined by the base; what changes is the effective depth per sample.
What each pass does
A forward pass can be viewed as two traversals with different responsibilities.
First pass: sparsely aggregate long context and write into the residual what the question is asking, where the constraints are, and which snippets are relevant. Writeback in this pass should be restrained to avoid fixing candidate conclusions too early; otherwise the second pass has no room for correction.
Second pass: refine under the same weights. It does not see a simple repetition of the original embeddings, but residuals carrying the first pass’s global state. The equivalent depth comes from this conditionally different recomputation, not from simply adding layer counts.
If writeback between the two rounds is too strong, the residual will be overwhelmed by coarse first-pass judgments. If it is too weak, the second pass idles, deployment cost rises, and no quality gain appears. What is needed is per-token, proportional gating, not hard whole-layer overwrite.
Three cost controls that must be done together
The main cost of recurrence is memory and latency: the same layer segment runs twice, and if attention state is stored separately for each pass, the cache nearly doubles. For very large parameter bases, at least three things must be handled together.
Per-token gated progressive writeback. Each round produces a candidate delta and writes it back to the residual according to a gating ratio, rather than replacing the entire hidden state. The first-round gate should be conservative, laying down global context first; the second-round gate can be fuller, writing back the refined result. Gating can depend on the current token’s uncertainty or the task type: simple continuation uses fewer loops, while math and code planning use more writeback. In this way, “thinking more” becomes schedulable instead of applying uniformly to every token.
Share KV across rounds and keep only a short window for the second pass. The second pass reuses sparse keys and values already computed in the first pass and does not store another full cache for the entire context. It maintains only a sliding-window of new KV for recent tokens to capture local residual changes after the first pass. Deployment cost should remain controlled relative to running another same-scale non-recurrent model: the increase mainly comes from second-pass compute and the short window, not from a linear doubling of cache capacity. Capacity planning should estimate “shared main cache + short-window delta + activation peak,” not rounds multiplied by full KV.
Reuse the first pass’s sparse attention index in the second pass. Long-context models commonly use an indexer to decide which blocks each token should see. If the index is recomputed in every round and every layer, retrieval overhead will consume the quality gains from recurrence. A more robust approach is to generate the index in the first pass and reuse it directly in the second. If the base model already reuses the index across several layers, recurrent rounds should inherit that reuse boundary rather than break it. The risk of a stale index exists for tokens whose second-pass semantics clearly deviate from the first-pass focus. A small number of validation bits or re-indexing only high-gate tokens can serve as a fallback, rather than full recomputation by default.
These three controls form one set: without progressive writeback, shared KV cannot match residual changes; without index reuse, second-pass attention cost offsets the savings from less decoding.
Looking at quality, length, and speed together
In controlled comparisons with the same parameter count and architecture, a common practice is to enable thinking mode for evaluation after long-text supervised fine-tuning and let the recurrent side spend only roughly a tenth more training compute. Public discussions report a fairly consistent pattern: benchmarks such as competition math, difficult science Q&A, and general knowledge reasoning rise, while average output becomes shorter. The shortening mainly comes from the chain of thought, not the final answer. This means the model is not “thinking less”; it is moving part of the search from autoregressive text into recurrent depth.
Do not evaluate only accuracy. Record at least:
- final answer correctness and process verifiability
- chain-of-thought token count and total output token count
- time to first token and steady-state generation speed
- peak memory, KV usage, and second-pass compute share
Speed differs between off-peak and peak periods: generation rate can be high when idle, while peak periods are dragged down by batching, cache hits, and queues. For recurrent models, it is especially important to distinguish “decode throughput” from “effective FLOPs per request.” The second pass produces no tokens but consumes compute. If the scheduler bills or rate-limits only by output tokens, compute can be silently filled by depth at peak while apparent QPS still looks good. Meter by “rounds x active tokens” and expose the recurrence switch as an observable metric.
Common pitfalls in training and deployment
Adapt from a pretrained base, not only through prompting. Recurrent writeback and cross-round caching are structural constraints. Weights need to adapt during continued training to the fact that “the second pass sees stateful residuals.” Forcing two passes only at inference while training never saw this distribution can cause oscillation or repetition in the second pass.
Do not stack thinking mode and recurrent depth unchecked. If the model both forces very long chain-of-thought and defaults to full two-round refinement, latency and cost rise together, and the model may write the same derivation twice. A more reasonable strategy is for recurrence to handle search and self-consistency, while text chain-of-thought keeps only auditable key steps. For verifiable tasks such as unit tests, formal constraints, and numerical checks, leaving checkpoints in the text is enough.
Safety evaluation must cover the second pass. A first-round refusal followed by a second round that “refines” the boundaries loose in the residual is a recurrence-specific risk. Before launch, run two-round alignment checks on refusal consistency, tool-call parameters, and instruction conflicts in long context. If weights are planned for release, document recurrence rounds, gating defaults, and cache sharing; otherwise downstream reproduction will deviate from the training distribution.
Numerical stability. With shared weights applied repeatedly, residual scaling and normalization should be checked per round to avoid activation norm drift in the second pass. Progressive writeback is itself a form of damping; gating should be initialized small and then opened up during training.
Relationship to general-purpose code
When recurrence keeps planning in hidden states and decodes shorter structured results, code becomes a better general action language: front-end drawing, numerics and geometry, shading computation, and parametric modeling can all become short programs instead of long natural-language reasoning. In practice, code execution results should be fed back as the condition for the next round, rather than letting the model imagine runtime effects in plain text. Common cloud capabilities can use generic categories: object storage for assets and project files, container platforms for controlled execution environments, message queues to connect generation and rendering, and logging and monitoring/alerting to track round latency, cache hits, and abnormal writeback. There is no need to bind one model or one desktop software suite as the only path.
As an illustration, the scheduling logic can be abstracted as:
state = embed(prompt)index = build_sparse_index(state) # generated in first pass, reused laterkv = sparse_attention(state, index) # main cachestate = gated_write(state, delta1, g1) # restrained first-pass writebackdelta2 = loop_block(state, kv, index, local_window_kv)state = gated_write(state, delta2, g2) # fuller second-pass writebackanswer = decode_short(state) # short CoT + executable results
Trade-offs in adoption
Recurrence is suitable for tasks with long reasoning steps, checkable answers, and a high proportion of filler in the output: competition-style derivations, multi-constraint coding, and multi-hop QA over long documents. It is not suitable for extremely short classification, strong style rewriting, or teaching scenarios that must show the full derivation word by word; in those cases, the tokens themselves are the point.
Unchanged parameters do not mean unchanged cost. The bill should look at both output token reduction and second-pass FLOP increase. If gating makes the second pass close to a no-op for most tokens, net cost falls. If every request runs the full two rounds and the chain of thought does not shorten, recurrence is just more expensive depth. A launch strategy should default to shallow recurrence, add a round for low confidence or tool failure, and regress output length, pass rate, and compute per request together, rather than celebrating a single benchmark.
The value of recurrent reasoning can be summarized in one actionable sentence: put thinking depth into a second pass over shared weights, and leave thinking traces as shorter, checkable tokens. With gated writeback, KV sharing, and index reuse done well, that sentence holds in engineering.
