Skip to content
Score 76 ptsModels6 min read
Markdown

Zhipu Releases GLM-5.4: First Loop Transformer Flagship Model Ushers in Generalized Coding

28 Shared-Weight Layers Looped Twice, Matching 2-3T-Class Intelligence Without Increasing Parameters

Zhipu Releases GLM-5.4: First Loop Transformer Flagship Model Ushers in Generalized Coding
Zhipu Releases GLM-5.4: First Loop Transformer Flagship Model Ushers in Generalized CodingEditorial Illustration
Share
Table of Contents (3)
  1. 01Loop Transformer: Trading Loop Depth for Reasoning Capability
  2. 02Generalized Coding: Code as the Foundation for Capability Extrapolation
  3. 03Availability and Deployment: Up to 200 Tokens/s During Off-Peak Hours
  4. Industry Impact & Strategic Takeaways
  5. Frequently Asked Questions

Key Takeaways (TL;DR)

  • 01GLM-5.4 is Zhipu's first flagship model built on the Loop Transformer architecture, looping the base model's 28 layers twice to reach 2-3T-class intelligence.
  • 02The model extrapolates from code as its foundational capability, unlocking generalized coding scenarios such as video generation, 3D modeling, and mechanical design.
  • 03In a 30B same-parameter comparison, the Loop version adds only about 10% more training compute, with the largest gains in mathematical reasoning, long context, and code.
  • 04Available immediately to all GLM Coding Plan users, and simultaneously launched on coding platforms including ZCode, Trae, WorkBuddy, and Qoder.

Zhipu has released its flagship model GLM-5.4, the first model to adopt the Loop Transformer architecture. It loops 28 shared-weight layers through two rounds, achieving deeper reasoning without increasing parameter count. Its intelligence level matches that of 2-3T-class models, and it unlocks generalized coding capabilities.

01

Loop Transformer: Trading Loop Depth for Reasoning Capability

As discussed in the GLM-5.3 technical blog, memory-oriented tasks benefit from more parameters, while reasoning-oriented tasks benefit from more effective compute. Large-scale software engineering, cybersecurity, 3D modeling, and physical control are all essentially extremely long-chain reasoning tasks, where the model must continuously reason along multi-step causal chains while maintaining global logical consistency. GLM-5.4 therefore introduces the Loop Transformer: whereas each layer of a standard Transformer executes only once per forward pass, the Loop Transformer loops a set of shared-weight layers through multiple rounds, with each round continuing to reason and refine results based on the previous round's hidden state—effectively yielding a deeper network without increasing parameter count.

The idea is not new. The Universal Transformer of 2018 already proposed a weight-shared deep structure, and recent research on looped depth and looped language models has validated the benefits at small scale. However, while weight sharing improves parameter efficiency, it still underperforms non-shared models at equivalent pre-training compute. Zhipu therefore did not pre-train from scratch; instead, it converted an already pre-trained base model into a Loop Transformer through further training, trading modest compute overhead for a higher intelligence ceiling. GLM-5.4 loops the 28 layers of the GLM-5 base model through two rounds.

In a 30B same-parameter comparison, overall training compute increases by only about 10%, while the Loop version shows clear gains over the baseline.
  • Gated progressive update: Each round has an independent per-token gate that writes candidate changes back into the residual stream proportionally, forming cross-round division of labor after training.
  • Global KV cache sharing plus independent sliding window: The second round reuses the first round's sparse KV and retains only one additional window of KV, controlling memory growth.
  • Sparse attention index reuse: The second round directly reuses the indices generated by the first round's indexer, adding no indexer overhead.

30B Comparison Experiment: The Longer the Reasoning Chain, the Greater the Loop Benefit

On a 30B model with an architecture identical to the 750B base, Zhipu conducted a same-parameter comparison: parameter counts were exactly the same, overall training compute increased by only about 10%, and the Loop version showed clear gains over the baseline. Two findings are particularly noteworthy: the longer the reasoning chain, the greater the Loop benefit, with the largest improvements in mathematical reasoning, long context, and code—precisely the capabilities generalized coding relies on most. Meanwhile, Loop thinks with fewer tokens, reducing average output length by 10%–14% on benchmarks such as GPQA and MMLU-Pro, with the reduction coming mainly from the chain of thought.

Zhipu states that Loop is also a rigorous test of Scaling Correctness: any architectural innovation must still hold after scaling up. Before betting its flagship on Loop, the team validated it progressively on 1B, 4B, 30B, and up to 750B base models. GLM-5.4 remains an initial exploration of Loop, and Zhipu notes that questions remain: how to achieve adaptive compute so that tokens of different difficulty receive different amounts of compute, and how Loop's benefits will change as the number of loop rounds and model scale continue to increase.

02

Generalized Coding: Code as the Foundation for Capability Extrapolation

Since going all-in on coding in early 2025, Zhipu has unlocked agentic engineering, long-horizon tasks, and even cybersecurity capabilities along its exploration path. This time, Zhipu is aiming first at "generalized coding," believing this path has a higher ceiling and brings more profound changes. To test the model's capabilities in real programming tasks, Zhipu conducted a programming combat evaluation across 200 real-world scenarios. The results show that GLM-5.4 remains the domestic model with the strongest coding feel, excelling in visual coding, visual replication, and long-horizon tasks.

Thanks to dual improvements in code and visual capabilities, GLM-5.4 unlocks many new scenarios beyond coding. For example, it can generate and process video with code, build a complete game, and complete 3D modeling and mechanical design. Zhipu summarizes this direction as Scaling Coding to Video, Scaling Coding to 3D, and Scaling Coding to Engineering, showing that code is becoming the foundation for accomplishing a broader range of tasks.

Zhipu notes that code is becoming the foundation for accomplishing a broader range of tasks, unlocking many new capabilities.
  • Scaling Coding to Video: Creator Mike Luan used GLM-5.4 to complete the entire process from scratch—concept, composition, motion, and rendering—with all visuals drawn in real time by front-end code and no image assets.
  • Scaling Coding to 3D: Creator Yeshen Bus Shuohua generated a 3D macro interactive birdwatching experience using pure mathematical geometry and custom GLSL shaders, with zero external 3D models and zero texture files.
  • Scaling Coding to Engineering: GLM-5.4 performed engineering modeling via FreeCAD to build a six-axis robotic arm model, then called Blender to design and visualize its motions.

"Thunderous Deep Thinking" and Long-Horizon Task Capabilities

Zhipu also disclosed some issues, such as the model easily entering a "thunderous deep thinking" mode. However, the team found that this extended thinking can continuously improve results—the model keeps reflecting and self-correcting during thinking, which is exactly the capability it has long sought for long-horizon tasks. This observation echoes the additional reasoning depth brought by the Loop architecture and explains why Zhipu regards long-horizon tasks as one of the key scenarios for generalized coding.

03

Availability and Deployment: Up to 200 Tokens/s During Off-Peak Hours

Starting today, GLM-5.4 is available to all GLM Coding Plan users and simultaneously launched on coding platforms including ZCode, Trae, WorkBuddy, and Qoder. The API will open after security evaluation is completed, and model weights are planned for responsible open-source release. Coding Plan V2/V3 and Team Edition users will see their GLM-5.4 quota increased to 1.5x. Zhipu says users can fully experience GLM-5.4's generalized coding capabilities in ZCode.

In terms of speed, GLM-5.4 can reach up to 200 tokens/s during off-peak hours and still delivers 70-80 tokens/s during peak hours. For the Loop architecture with multi-round looped computation, achieving this is especially challenging. Through deep co-design of model structure and inference infrastructure, Zhipu minimized the extra overhead brought by looping: structurally, distance-split KV cache means the second loop round adds almost no memory, and sparse attention index reuse means looping adds no retrieval overhead; at the operator level, core operators are fully fused to reduce back-and-forth reads and writes of intermediate results in memory.

Zhipu says it is not choosing between scaling depth and scaling model size, but pursuing both; the next model will be significantly larger.
  • Availability channels: All GLM Coding Plan users, simultaneously launched on coding platforms including ZCode, Trae, WorkBuddy, and Qoder.
  • API status: Will open after security evaluation is completed; model weights are planned for responsible open-source release.
  • Quota adjustment: Coding Plan V2/V3 and Team Edition users will see their GLM-5.4 quota increased to 1.5x.

Joint Partner Launches and Ecosystem Layout

In addition to its own products z.ai, Zhipu Qingyan, and AutoClaw, GLM-5.4 is also launching through joint partners including WorkBuddy, Doubao Work, Trae, Qianwen Office, Qoder, CatPaw, MaDao, Baidu Dazi Enterprise Edition, AiWork, TJ Codely, and OpenCode. This layout shows Zhipu is embedding model capabilities into multiple coding and office platforms to expand developer reach.

Impact

Industry Impact & Strategic Takeaways

By replacing pure parameter stacking with weight-shared loop depth, GLM-5.4 offers a path for flagship models to raise the reasoning ceiling with modest compute overhead, providing a reference for model design in compute-constrained environments across the Asia-Pacific AI industry. Its generalized coding positioning extrapolates code capabilities to video, 3D, and engineering modeling, potentially driving further integration of coding platforms and agent toolchains; the planned open-source release of model weights will also influence regional developers' choices of frontier models.

Frequently Asked Questions

What is GLM-5.4's Loop Transformer architecture?

+

The Loop Transformer loops a set of shared-weight layers through multiple rounds, with each round continuing to reason based on the previous round's hidden state. GLM-5.4 loops the 28 layers of the GLM-5 base model through two rounds, yielding a deeper network without increasing parameter count and thus stronger reasoning capability.

How is GLM-5.4 currently available?

+

GLM-5.4 is available starting today to all GLM Coding Plan users and simultaneously launched on coding platforms including ZCode, Trae, WorkBuddy, and Qoder. The API will open after security evaluation is completed, and model weights are planned for responsible open-source release.

What specific benefits did the Loop architecture bring in experiments?

+

In a 30B same-parameter comparison, overall training compute increased by only about 10%, while the Loop version showed clear gains over the baseline; the longer the reasoning chain, the greater the benefit, with the largest improvements in mathematical reasoning, long context, and code; and average output length decreased by 10%–14% on benchmarks such as GPQA and MMLU-Pro.

Primary Source & Attribution

公众号:智谱(GLM)

GLM-5.4:瞄向泛Coding,首个Loop Transformer带来的惊喜

Related Deep Dives