GLM-5.4: Stacking Loops Instead of Parameters, Z.ai Wants a Different Way to Stack Intelligence
Z.ai releases GLM-5.4, the first flagship model based on the Loop Transformer architecture. It adds no parameters; it simply runs 28 layers twice in a loop, and the company claims its intelligence level is comparable to 2T–3T-parameter models. The boundaries of code are pushed into video, games, 3D, and CAD. The only question: where are the benchmarks?
Z.ai released GLM-5.4 today. Two keywords: Loop Transformer architecture, and "Generalized Coding".
The first keyword means it doesn't stack parameters. GLM-5.4 is based on the GLM-5 foundation model and runs the middle 28 layers twice in a loop. The parameter count is unchanged, while inference depth doubles. The company claims its intelligence level is comparable to 2T–3T-parameter models. It also adds visual capabilities to strengthen visual coding.
The second keyword means the meaning of coding has been expanded. Code is not only a tool for traditional software development; it can also generate video, build games, and do mechanical design. The company calls this direction "Generalized Coding".
Loop Transformer: Not a New Concept, but a New Approach
Loop Transformer is not new. In 2018, Universal Transformer already proposed weight-sharing depth. The problem is that, under the same pretraining compute budget, looped models trained from scratch have always failed to beat non-looped models.
Z.ai took a different approach: it converted an already pretrained GLM-5 foundation model into a Loop Transformer and achieved the transfer through continued training.

At the 750B scale, GLM-5.4 loops 28 layers and runs two iterations. To keep multiple loops from blowing up activation values and doubling KV cache overhead, Z.ai made three changes:
- Gated progressive updates: Each iteration has an independent per-token gate. The first pass uses a small step size to build global context, and the second pass opens the gate for a full update. The gate also dynamically adjusts according to token difficulty—the harder the token, the more aggressively it is written in the first pass.
- Hybrid KV cache: The second loop adds only a sliding-window KV cache, not the entire context. At a 1M context length, the increase in deployment cost is controllable.
- Sparse attention index reuse: The second pass directly reuses the attention indices from the first pass, with zero extra overhead. Experiments show the effect is almost identical to recomputation.
Data Speaks: 30B Controlled Experiment
Z.ai released a key set of data. On a 30B model (same architecture as 750B), it ran a controlled experiment with equal parameters:

With the same parameter count and only about 10% more training compute, the looped version's AIME25 rises from 19.17 to 30.42. On multiple benchmarks, output length is shortened by 10–14%. Part of reasoning has shifted from the "written-out thought process" into the implicit depth of the loop.
The company admits the model has a flaw: it can get stuck in overly long "marathon-style thinking" loops. The side effect is that longer self-correction keeps improving accuracy.
Generalized Coding: The Boundaries of Code Are Pushed Farther
The company believes coding has become the foundation for expanding model capabilities. After going all-in on coding in early 2025, it unlocked Agentic Engineering, long-horizon tasks, and cybersecurity. GLM-5.4 is the starting point of "Generalized Coding".
Several demo cases:
- Video: Generated a self-narrated music video, "Hello World".
- Engineering: Completed engineering-grade CAD modeling of a 6-axis robotic arm in FreeCAD.
- Games: Built a complete game from scratch, covering character movement, physics, maps, combat systems, and art assets.
- 3D: Used pure mathematical geometry and custom GLSL shaders to generate an interactive 3D birdwatching scene.
On inference speed, it reaches up to 200 tokens/s during off-peak hours and maintains 70–80 tokens/s during peak hours. Coding Plan users get a 50% higher weekly quota than with GLM-5.3.
Community Reaction: Where Are the Benchmarks?
The company did not release a benchmark comparison chart for GLM-5.4 itself. The top replies under the tweet almost all ask the same thing: where are the benchmarks?
Some netizens said, "There are no benchmarks because it's not good," while others joked, "They didn't release benchmarks so as not to scare Dario." Another netizen mentioned a larger context: within 3 days, Inkling 2 Mini and GLM-5.4 adopted the Loop Transformer route one after another, which may be the beginning of a new architecture wave.
The YouTube channel WEBdoze burned 162 million tokens with the GLM Coding Plan and conducted a real full-stack application stress test. Conclusion: stronger than GLM 5.3, stronger than Kimi 3.1, and currently the strongest open-source model available; but not as good as Opus 5.5.
A netizen commented: "They learned to make the model think deeper; now they need to teach it when to stop."
What's Next
The model weights will be open-sourced after security hardening, and the API will open soon. Some netizens asked: does "responsible release" mean it's different from previous open-source methods? Z.ai did not elaborate, only saying that the next generation of larger-scale models will continue to advance both the depth and scale routes.
发布时间: 2026-11-23 20:41