Recurrent Transformers: Deeper Reasoning with Fewer Tokens
This article examines recurrent Transformers as an architectural approach to shifting part of the reasoning process from explicit text generation into hidden-state computation. It explains how shared layer weights can be reused across multiple internal passes, which modules participate in the loop, and how this changes the cost structure compared with explicit chain-of-thought prompting. It also covers training and evaluation considerations, practical boundaries, and how recurrent computation may be combined with other efficiency techniques.
1. Problem Background: The Cost Boundary of Explicit Chain-of-Thought
Large models often handle complex tasks by generating an explicit chain of thought: first writing out the reasoning process, then providing the final answer. This approach is readable and easy to audit, but it introduces direct costs. Every additional reasoning token requires another autoregressive decoding step. As the reasoning becomes longer, latency, throughput pressure, and cost increase. More importantly, textual reasoning does not automatically equal effective computation. A model may generate redundant, repetitive, or goal-deviating intermediate steps.
This leads to a natural engineering question: can some of the “thinking” be moved from text space into latent space? In other words, can a model perform more internal iterations during a single forward pass, trading fewer output tokens for a deeper computational path? Recurrent Transformers are an architectural exploration along this line. They do not make the model answer the question again, nor do they emit a chain of thought on every round. Instead, they reuse some layers inside the network and apply multiple transformations to hidden states.
2. Core Mechanism: The Same Layer Weights Process Updated States
A recurrent Transformer can be understood as a segmented loop inside one forward pass. Suppose the model has three consecutive computation blocks, A, B, and C. Each block may contain self-attention, a feed-forward network, normalization, and residual connections. A conventional forward pass is A → B → C once. A recurrent version is A → B → C → A → B → C, where the second pass through A, B, and C uses the same weights as the first pass.
The key point is not simply “running three times.” It is how state is passed. The second pass through A receives the hidden state output by C in the first pass, rather than receiving the original input again. The same set of rules repeatedly processes a progressively updated internal representation, forming a process similar to iterative solving. Simplified pseudocode:
def forward_with_loop(x, repeat=2):h = embed(x)for _ in range(repeat):h = block_a(h, shared_weights_a)h = block_b(h, shared_weights_b)h = block_c(h, shared_weights_c)h = final_norm(h)logits = output_head(h)return logits
This pseudocode illustrates three points. First, the loop occurs over hidden states and does not involve re-tokenization. Second, each round reuses the same block weights, which is relatively parameter-efficient. Third, intermediate rounds do not need to be written as text, so they do not directly increase output tokens. Compared with explicit chain-of-thought, the former appends tokens to a text sequence, while the latter appends computation steps in latent space.
3. Scope: Which Modules Participate in the Loop
When understanding recurrent Transformers, it is important to distinguish the “looped computation” from peripheral components outside the loop. The modules that usually participate in the loop are the hidden-state transformation chain, including the Query/Key/Value computations in self-attention, the feed-forward network, residual connections, and normalization. In each round, they receive the state produced by the previous round and generate a new state.
The tokenizer, initial vectorization, final normalization, and output head generally do not belong to the recurrent core. They are responsible for turning raw text into an initial hidden state, or for mapping the final state to logits and sampling after the loop ends. In other words, the core of the loop is the iteration of intermediate numerical states, not translating every round’s result back into text and feeding it in again.
This also explains why recurrence can reduce some textual reasoning: the model does not have to externalize every intermediate step as a token, but can compute continuously inside the model. However, this does not make reasoning free. Increasing the number of recurrent rounds raises the floating-point operations of a single forward pass, and training also requires more compute budget and stability design.
4. Why “Write Less, Think More”: Reallocating Quality and Cost
The cost of explicit chain-of-thought mainly falls in the decoding stage: the longer the output, the higher the latency. Recurrent architectures shift part of the cost into internal computation: each output token may go through more layer transformations, but the final generated text is shorter. What changes is the cost structure, not the elimination of cost.
A common observation in public technical discussions is that, at the same parameter scale, a recurrent version may bring evaluation improvements and a lower average output length after a small increase in training compute. The exact magnitude depends on the task, training strategy, and evaluation criteria, and cannot be simply extrapolated. In engineering, four metrics should be considered: answer quality, average number of output tokens, end-to-end latency, and total training and inference cost. Looking only at shorter output may lead to misjudgment, because internal recurrence increases computation per token. Looking only at quality improvement is also insufficient; one must also consider whether the compute budget is fair.
5. Training and Evaluation: Do Not Look Only at Output Length
When evaluating recurrent Transformers, a controlled-variable approach is recommended: fix parameter scale, training data, and total compute budget, then compare the non-recurrent version, the recurrent version, and different numbers of recurrent rounds. Ablation studies should at least cover: number of recurrent rounds, whether weights are shared, state-passing method, whether explicit chain-of-thought is retained, and different task difficulties. If the recurrent version uses more training compute, the compute difference should be clearly reported to avoid describing “compute traded for quality” as a “free architectural gain.”
Training stability also deserves attention. Reusing the same set of layers over multiple rounds may cause issues such as over-smoothed representations and longer gradient propagation paths. In engineering, general techniques such as residual scaling, normalization, gating, or step embeddings may be needed. More recurrent rounds are not always better; the balance between quality and cost should be found on a validation set.
6. Applicability Boundaries and Combined Paths
Recurrent Transformers are more suitable for scenarios that require multi-step internal reasoning but also need to control output length, such as complex question answering, code understanding, and structured analysis. For tasks that must retain complete textual reasoning for human audit, explicit chain-of-thought still has value. For tasks that strongly depend on external real-time information, recurrent computation cannot replace retrieval and tool calls.
From a technical roadmap perspective, recurrence improves effective computational depth and parameter efficiency. Sparse activation, attention compression, KV cache optimization, and speculative decoding address activation scale, memory bandwidth, and decoding efficiency respectively. They are not mutually exclusive. A reasonable combination may yield better end-to-end benefits. In practice, one should first establish a baseline, then verify the marginal returns among recurrent rounds, output length, and quality item by item, avoiding treating architectural innovation as a universal solution.
Conclusion: The core value of recurrent Transformers is to turn part of reasoning from “writing it out” into “computing it,” increasing effective computational depth through hidden-state iteration and expressing the result with fewer output tokens. It is not free reasoning, but a reallocation of cost structure. Whether it is worth adopting depends on the combined trade-off among task quality gains, internal computation overhead, and engineering maintainability.
