Z.ai’s GLM-5.4 Thinks in Loops: Can Reusing Layers Beat Bigger Models?
Z.ai’s GLM-5.4 runs 28 layers twice and claims the power of a 2T–3T model from 750B parameters. Here is how loop transformers work and the caveats.
Published
Updated

The usual way to make an AI model smarter is to make it bigger. This week, Chinese lab Z.ai released a flagship model that tries a different trick: make it think twice. GLM-5.4, launched on 23 November, is the company’s first model built on what it calls a Loop Transformer, and Z.ai claims it reaches the intelligence level of models with two to three trillion parameters while having about 750 billion.
What is a loop transformer?
In a standard transformer, every layer runs once as data passes through the model. In a loop transformer, a group of layers that share the same weights runs several times, and each pass refines the hidden state left by the previous one. Think of rereading a hard paragraph instead of reading a longer book.
GLM-5.4 starts from Z.ai’s existing 750-billion-parameter GLM-5 model. Its 28 layers are run twice, with the second pass refining the first. The idea is not new, since the Universal Transformer paper explored reusing layers back in 2018, but it has stayed mostly experimental.
How Z.ai built it
Z.ai says models trained from scratch with looping still lag standard transformers when given the same compute budget. So instead of starting over, it took the pretrained GLM-5 and adapted it to loop through continued training. In a controlled 30-billion-parameter comparison, Z.ai reports that this approach gave gains concentrated in maths, science and long-context tasks, using roughly 10% more compute and producing outputs 10–14% shorter.
Z.ai also describes GLM-5.4 as a step toward “generalized coding”, meaning that code is used to build videos, games, 3D scenes and engineering models, not just software. The model gains image-handling abilities as well.
It is not alone
Developer Simon Willison noted that this was the second looped transformer he had seen in a week. Thinking Machines Lab released Inkling 2 Mini on 20 November, which runs its middle layers three times for every token. Two labs shipping the idea in the same week suggests looping has become a serious direction for getting more reasoning out of a fixed set of weights.
Availability and price
As of 23 November, GLM-5.4 is available through Z.ai’s GLM Coding Plan, its ZCode development environment and Z.ai Chat. Decrypt lists the Coding Plan at $18 a month for Lite, $80 for Pro and $168 for Max, with subscribers getting about 50% more usage than they had with GLM-5.3. API access is promised later, and Z.ai says open weights will follow after additional safety work. Willison had to sign up for the Coding Plan to try it, because the regular API did not offer the model.
What is still unproven
- The headline claim is self-reported. Comparability with two- to three-trillion-parameter models rests on Z.ai’s own statements. Z.ai has not published a full benchmark table for the flagship, and a team member said results would come later. Wccftech notes that Z.ai chose to compare directly with competitors instead of using the usual benchmarks.
- Long thinking. Z.ai itself admits that the model can get stuck in overly long “marathon thinking” loops. Extra reflection may improve accuracy, but it costs time and compute.
- Training from scratch still loses. Z.ai acknowledges that looped models trained from scratch trail conventional ones at the same compute.
- Hardware story. Z.ai says the GLM-5 base model was trained without Nvidia hardware, using only Huawei chips, but does not say what was used for GLM-5.4.
Why it matters
If looping works as claimed, it offers a way to improve reasoning without storing a far larger set of distinct weights, which matters for deployment costs and for labs with limited access to the newest chips. The trade-off is that each token needs more computation, so speed and cost per answer depend on how many loops the model runs and how long it thinks. For developers, the practical lesson is to wait for independent evaluations, then test the model on your own tasks, looking at quality, latency and cost together rather than parameter counts.
Was this article helpful?
Comments
Comments are reviewed before they appear. Links are displayed as plain text and are not clickable.





