Recurrent Transformer
A Transformer variant architecture that allows a model to iterate multiple times over the same weight-tied layers. Through a recurrent structure with shared weights, it increases the model's reasoning capability and effective computational depth without significantly increasing the number of parameters.
Core Facts
A recurrent Transformer refers to a Transformer variant that iteratively executes on the same set of weights, increasing effective depth by looping over the same block multiple times.
Each additional token generated by an autoregressive model provides one more opportunity for a Transformer forward pass computation, trading sequence length for computational depth.
The core innovation of the Transformer is replacing RNN's sequential processing with a self-attention mechanism, enabling highly parallelized training, while abandoning the RNN's hidden-state cross-timestep propagation mechanism.
Timeline (last 90 days)
Looped Transformers suffer from an "overthinking" problem: as the number of loop iterations increases, model performance first rises and then falls.
The second pass of the recurrent Transformer reuses the sparse-attention selection results from the first pass, no longer runs the indexer, and itself keeps only a sliding-window cache of the last 128 tokens.
Training a recurrent model from scratch falls behind an ordinary Transformer model under the same training budget.
The recurrent mechanism raised the 30-billion-parameter test model's score on the AIM math test from 19.2 to 30.4.
In the recurrent Transformer validation, the number of tokens in the model's output answers decreased by 10-14%.
GLM 5.4 uses a Loop Transformer architecture, with a core block of 28 layers that runs twice during inference.
Zhipu AI (Z.AI) released the GLM-5.4 model on November 23, calling it the 'first recurrent Transformer' model.
The difference between the inference-time compute approach (such as OpenAI's o series and DeepSeek-R1) and the recurrent Transformer is that the latter builds 'thinking more' into the architecture rather than relying on longer outputs.
Z.AI's released GLM-5.4 uses a looped Transformer architecture that passes each token through the middle layers (layers 27 to 54) twice, using exactly the same weights both times.
In the internal ablation experiment on the 3-billion-parameter test model, the looped architecture improved AIME 25 by 11.3 points and GPQA Diamond by 8.7 points.
40 more timeline events
All Facts (20)
A recurrent Transformer refers to a Transformer variant that iteratively executes on the same set of weights, increasing effective depth by looping over the same block multiple times.
90%VerifiedEach additional token generated by an autoregressive model provides one more opportunity for a Transformer forward pass computation, trading sequence length for computational depth.
85%VerifiedThe core innovation of the Transformer is replacing RNN's sequential processing with a self-attention mechanism, enabling highly parallelized training, while abandoning the RNN's hidden-state cross-timestep propagation mechanism.
80%VerifiedTypical implementations of deep recursive reasoning models include variants such as the Recurrent Transformer, the Universal Transformer, and the Neural Turing Machine.
75%VerifiedWeight sharing is the key mechanism by which looped Transformers avoid adding parameters, with multiple iteration steps reusing the same set of layer weights, but it requires introducing round encodings or state markers to distinguish iteration rounds.
70%VerifiedRecurrent structures are prone to vanishing or exploding gradients, making training stability the primary challenge in implementing Recurrent Transformers.
65%VerifiedBy reusing the same weight matrices, the Recurrent Transformer can achieve deeper levels of information processing without significantly increasing the number of parameters.
65%VerifiedThe Recurrent Transformer introduces the concept of Recurrent Depth, allowing the model to iteratively process information multiple times within the same layer structure.
65%VerifiedZ.ai released GLM-5.4, its first flagship model with the Loop Transformer as its architectural core.
80%Partially VerifiedGLM-5.4 adopts the Loop Transformer architecture, performing multiple rounds of looped computation at inference time to improve output quality without increasing the model's parameter count.
80%Partially VerifiedIn GLM-5.4's Loop Transformer, about 28 layers in the middle run two rounds, and the two rounds share parameters.
75%UnverifiedThe "loop count" of a recurrent Transformer and the "number of layers" of a standard Transformer are fundamentally different in the computation graph: each layer in a standard deep network has independent parameters, whereas in a recurrent architecture the same set of layers is called repeatedly, sharing parameters but yielding variable depth once the computation graph is unrolled.
70%UnverifiedIn a standard Transformer, each layer computes KV only once; whereas in a recurrent architecture the same set of layers is executed multiple times, so looping 4 times is equivalent to storing 4 copies of the KV cache.
70%Partially VerifiedIn the internal ablation experiment on the 3-billion-parameter test model, the looped architecture improved AIME 25 by 11.3 points and GPQA Diamond by 8.7 points.
65%UnverifiedGLM 5.4 uses a Loop Transformer architecture, with a core block of 28 layers that runs twice during inference.
60%UnverifiedZ.AI's released GLM-5.4 uses a looped Transformer architecture that passes each token through the middle layers (layers 27 to 54) twice, using exactly the same weights both times.
60%UnverifiedZhipu AI (Z.AI) released the GLM-5.4 model on November 23, calling it the 'first recurrent Transformer' model.
60%UnverifiedLooped Transformers suffer from an "overthinking" problem: as the number of loop iterations increases, model performance first rises and then falls.
50%UnverifiedThe second pass of the recurrent Transformer reuses the sparse-attention selection results from the first pass, no longer runs the indexer, and itself keeps only a sliding-window cache of the last 128 tokens.
50%UnverifiedTraining a recurrent model from scratch falls behind an ordinary Transformer model under the same training budget.
50%