跪拜 Guibai
← All articles
Interview · GitHub · Algorithm

GLM-5.4's Loop Transformer: 28 Layers Run Twice to Match 2-3T Models Without the Parameters

By 怕浪猫 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Loop-Transformer architecture offers a compute-efficient path to deeper reasoning without parameter growth, but the missing flagship benchmarks and delayed open weights mean enterprise adopters can't yet verify the claims or self-host GLM-5.4, forcing reliance on vendor and scattered third-party numbers.

Summary

Z.ai's November 23, 2026 release of GLM-5.4 swaps the usual parameter bump for a Loop Transformer architecture: 28 of the 78 layers in the GLM-5 base share weights and execute twice, scraping extra reasoning depth from roughly 10% more training compute. The vendor claims intelligence on par with 2–3T-parameter models, and backs this with a 30B same-architecture control experiment that shows gains of +11.25 on AIME25 and +8.68 on GPQA-Diamond while cutting average output length by 10–14%.

The flagship itself has no published benchmark scores, and Z.ai is withholding model weights while it completes safety work. Three engineering tricks make the loop practical at 750B scale: gated progressive updates, a mixed KV cache that reuses first-round sparse keys, and sparse attention index reuse. Four demo videos—a music video, a FreeCAD robotic arm, a playable 3D game, and a GLSL bird scene—show code acting as a general interface to video, engineering, games, and 3D. InfoQ's independent tests found real costs: a 5-hour physics animation and 55 million peak tokens.

Hacker News discourse split between skepticism over missing benchmarks, applause for avoiding leaderboard chasing, and debate about whether hidden-state reasoning reduces interpretability. The architecture isn't unique—Thinking Machines shipped a loop model a week earlier—but Z.ai is the first to push it to a 750B flagship with full engineering. Independent validation and the promised December model will tell whether the route holds.

Takeaways
— GLM-5.4 uses a Loop Transformer: 28 of 78 layers in the GLM-5 base share weights and execute twice, deepening computation without increasing parameter count.
— The 750B flagship model has no published benchmark scores; only a 30B same-architecture control experiment was released.
— The 30B loop model outperformed its standard baseline by +11.25 on AIME25, +8.68 on GPQA-Diamond, and +7.34 on AA-LCR while using about 10% more training compute.
— Looping reduced average output length by 10–14% on GPQA and MMLU-Pro, shifting reasoning from explicit tokens to hidden-state compute depth.
— Three engineering designs enable looping at 750B: gated progressive updates, a mixed KV cache with global sharing plus a sliding window, and sparse attention index reuse.
— The model supports a 1 million token context and adds vision/image input, which GLM-5.3's API lacked.
— GLM-5.4 is available to all GLM Coding Plan users, with weekly quotas raised to 1.5x GLM-5.3's levels; generation reaches 200 token/s off-peak and 70–80 token/s at peak.
— Model weights are delayed; Z.ai promises "responsible" open-sourcing without a date.
— Four official demos show code generating a music video, a FreeCAD six-axis robotic arm, a playable 3D game, and a GLSL-shader 3D bird scene.
— InfoQ's hands-on tests took 30 minutes for a 20-second data video, 5 hours for a 3D physics animation, and 1.5 hours for a small game; peak token usage hit 55,047,000.
— Z.ai claims a 55.8% coding improvement over GLM-5.3 in 200 internal scenarios and first place among open models on Terminal Bench, Agents' Last Exam, DeepSWE, and HLE—all self-reported.
— A private, unreproduced reviewer test scored GLM-5.4 at 33.2, near GPT-6.2 Astra's 33.6 and within 5% of Opus 5.5's 34.7.
— Z.ai's blog admits adaptive compute (varying loop counts per token) and how loop benefits scale remain open questions.
Conclusions

Keeping benchmark scores off the table for the 750B model is a deliberate credibility trade: the architecture claim rests on a 30B proxy that hasn't been independently reproduced, so buyers are asked to trust the vendor's word on the flagship's real strength.

Shifting reasoning from explicit chain-of-thought tokens into hidden-state loops reduces interpretability; the same neuralese debate that surfaced on Hacker News will likely resurface whenever a safety evaluation needs to audit why the model made a decision.

The loop architecture is a clever response to the compute ceiling China faces, but the 10% training-cost increase hides a much larger inference cost—the 55 million token bill for a small demo shows that deeper reasoning is paid for at generation time.

Holding back open weights, even for safety reasons, breaks the trust pattern that built Z.ai's open-source reputation; the timing lines up with public pressure from U.S. regulatory reports, and the next December model will test whether this is a one-off caution or a permanent shift.

Concepts & terms
Loop Transformer
A Transformer variant where a subset of layers share weights and execute multiple times per forward pass, effectively deepening the network without adding parameters. GLM-5.4 runs 28 of its 78 layers twice.
Gated Progressive Updates
A mechanism in GLM-5.4's loop layers that applies per-token gates to each round, controlling how much of the candidate changes are written back to the residual stream. The first round writes conservatively, the second round refines fully.
Mixed KV Cache
A caching strategy where the second loop round reuses the first round's sparse key-value cache and only keeps a sliding window of independent KV for newly generated tokens, cutting memory cost from the full context to one window.
Marathon Thinking
A behavior observed in GLM-5.4 where the model engages in excessively long chains of self-doubt and reflection, even on simple tasks. Z.ai frames this as desirable self-correction for long-horizon tasks, but it inflates completion time and token usage.
Generalized Coding
Z.ai's positioning of code as a universal interface, where writing code can generate videos, 3D scenes, games, or mechanical designs, rather than just software. The GLM-5.4 demos illustrate this concept.
From the discussion
Featured comments
Wanvideo

Making the middle 28 of the 78 layers shared weights and looping them twice trades deeper thinking without increasing memory or parameters. But with the official release withholding weights and lacking full benchmark scores, we'll have to wait for third parties to finish long-range tasks before concluding.

See top comments, translated →
Source: juejin.cn ↗ Google Translate ↗ Backup ↗