GLM-5.4 Repeats 28 Layers Twice to Deepen Reasoning Without More Parameters
Key point
Z.ai says GLM-5.4 is its first flagship model built on the Loop Transformer architecture, repeating 28 layers twice to deepen reasoning without adding parameters.
Details
- Z.ai’s GLM-5.4 is its first flagship model built on the Loop Transformer architecture. It repeats 28 layers of the GLM-5 base model for two iterations to add reasoning depth without increasing parameter count; Z.ai says its intelligence is comparable to that of 2T–3T-parameter models.
- In a controlled 30B comparison, the looped model used the same number of parameters and about 10% more training compute; across most benchmarks, average output length fell by 10–14%, while the largest gains appeared in math, scientific reasoning, and long-context tasks.
- GLM-5.4 reaches up to 200 tokens/s off-peak and 70–80 tokens/s at peak load; at 1M context lengths, its extra loop costs one sliding window of KV cache rather than a full context cache.
- GLM-5.4 applies coding to tasks beyond software development, including video generation, game creation, 3D modeling, and mechanical design; it can also get caught in overly long “marathon thinking” loops.
Loop architecture and validation
- Weight-shared layers refine hidden states over multiple passes; Z.ai adapted a pre-trained base model through continued training rather than training a looped model from scratch.
- The architecture was validated across 1B, 4B, 30B, and 750B base models; the controlled 30B evaluation followed 200K long-context SFT with thinking mode enabled.
- Gated updates stabilize representations across passes, while shared sparse-attention indices avoid added indexing overhead; the hybrid KV cache limits memory costs at long context lengths.
Availability and plans
- GLM-5.4 is offered through Z.ai Chat, the GLM Coding Plan, and ZCode; API access is marked coming soon.
- Z.ai plans to open-source the weights after completing necessary safety hardening.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.