Z.ai Unveils GLM-5.4 With Loop Transformer: More Brains, Same Parameter Count
Z.ai (also known as Zhipu AI) published a detailed technical blog on November 23, 2026 introducing GLM-5.4, its first flagship model built on a Loop Transformer architecture. The model takes 28 layers from its GLM-5 base and runs each one twice with shared weights, producing a deeper computation graph without adding a single trainable parameter. Z.ai claims the result delivers intelligence on par with models containing 2 to 3 trillion parameters, while the actual parameter count sits at 750 billion.
The idea is not new in theory — the 2018 Universal Transformer already proposed weight-shared depth — but Z.ai highlights an empirical finding from recent work: looped models trained from scratch still trail unshared models on the same pretraining compute budget. The workaround was to adapt an already pre-trained base through continued training, raising the capability ceiling with relatively modest additional compute.
How the Loop Transformer works — and why it matters
In a conventional Transformer, each layer executes once per forward pass. GLM-5.4 takes a block of 28 GLM-5 layers and runs them twice, updating hidden states between iterations and producing an effectively deeper network. This enables more elaborate reasoning without increasing trainable parameter count.
To make this viable at the 750-billion scale, Z.ai implemented three architectural modifications:
1. Gated progressive updates. When intermediate layers are converted into a multi-pass loop, directly overwriting hidden states causes activation norms to explode across iterations. Downstream layers then receive representations outside their expected scale and distribution. GLM-5.4 adds independent per-token gates for each iteration, writing a controlled fraction of the candidate update back into the residual stream. Training revealed a clear division of labor: the first pass builds global context and writes conservatively; the second reuses that state, opens the gates, and applies full updates.
2. Hybrid KV cache. The attention cache holds information during generation. In GLM-5.4, the second pass reuses the sparse KV entries selected during the first pass. Newly generated entries stay in a separate local sliding window — meaning an extra loop costs only one sliding window of cache, not another full-context cache. At 1-million-token context lengths, this keeps the deployment-cost increase over GLM-5.3 under control.
3. Sparse attention index reuse. The base model uses sparse attention, and the second pass directly reuses the attention indices generated by the first pass, eliminating additional indexing overhead.
The combined effect is that additional deployment cost stays manageable despite the extra computational depth.
From software to the physical world: Generalized Coding
The release marks, for Z.ai, the beginning of Generalized Coding — using code as a foundation for solving tasks well beyond traditional software development. The model can write code to generate and edit videos, build complete games, perform 3D modeling, and execute mechanical design:
- Video: the "Hello World" example is a music video narrated by the model itself; - Engineering: a 6-axis robotic arm modeled in FreeCAD with motion simulation in Blender; - Games: a full game with physics, maps, combat systems, and art; - 3D: an interactive bird-watching experience built from pure mathematical geometry and custom GLSL shaders.
GLM-5.3 — the predecessor — was focused on code and cybersecurity. The 5.4 adds native visual capabilities to the flagship and broadens the scope to tasks requiring interface understanding and visual rendering.
Validations and limitations
Z.ai tested the loop progressively on 1B, 4B, 30B, and 750B base models. In a controlled test at the 30B parameter scale (with identical parameter counts for looped and unlooped versions, but ~10% more training compute for the looped version), the largest gains appeared in mathematics, scientific reasoning, and long-context tasks. Average output length on benchmarks dropped 10–14%, primarily from shorter reasoning chains — part of the logical processing migrated from explicit output tokens to the loop's implicit depth.
The main acknowledged limitation is that the model tends to enter excessively long marathon thinking loops. Z.ai says this prolonged self-correction consistently improves accuracy beyond what the parameter count alone would produce — but it's a clear signal that more computational depth does not solve all inference control problems.
GLM-5.4 is now available to all GLM Coding Plan subscribers. Z.ai reports throughput of up to 200 tokens/s off-peak and 70–80 tokens/s at peak. API access and open weights are promised following safety evaluations — a pattern common among the largest Chinese labs in 2026.
Z.ai has already announced that a significantly larger model is in development, carrying forward everything learned from the loop architecture. If iterative depth can effectively double a model's capability without adding parameters, the natural next question is whether three- or four-pass loops follow — or whether the law of diminishing returns imposes a practical ceiling before the community settles on which architecture defines the next generation of artificial intelligence models.
Sources: Z.ai, The Next Web, Unite.AI
✓ Independent sources cross-checked and verified before publishing