Running 28 layers twice allows the new 750-billion-parameter GLM-5.4 model to increase its computational depth without adding a single physical parameter to its structure. Following OpenAI, which has used a loop transformer architecture since GPT-6 Astra, Z.ai is moving its flagship system into loop territory. Standard language models pass through each layer once, but GLM-5.4 executes a shared block of layers multiple times, refining the intermediate calculations from the initial run. According to Z.ai, this architecture enables the 750-billion-parameter network to reach performance comparable to systems housing 2 to 3 trillion parameters.
Loop transformers allow development teams to circumvent the physical constraints of parameter expansion, curtailing infrastructure loads and inference costs for enterprise platforms. Rather than training an entirely new system, the team retrained the GLM-5 base model released in February into a loop setup. The development team took this path because loop models trained from scratch have so far performed worse than models without shared weights under an identical compute budget.
Managing Activations and Memory Overhead
Reusing transformer layers introduces structural stability problems during execution. If an engine simply overwrites intermediate calculations on each pass, activations grow sharply across successive cycles, confronting downstream layers with numerical values well outside their training distributions. To resolve this instability, GLM-5.4 introduces dedicated control gates for each token and pass to regulate how much fresh output flows back into the primary data stream.
Dedicated control gates, a shared token cache, and sparse attention keep memory and compute costs from rising sharply.
According to Z.ai, the system establishes context cautiously during the opening cycle and writes its adjustments back in full on the second. On complex tokens, the initial pass intervenes more aggressively. Because executing a second pass would normally double hardware memory demand, both passes share the key-value cache that temporarily stores previously processed tokens, while the second pass confines its own extra values to a small local window. As a result, Z.ai says the operational overhead relative to GLM-5.3 remains manageable even across a 1-million-token context window.
Computational Savings and Benchmark Realities
To curb computing consumption during runtime, the architecture applies sparse attention to locate the most relevant context tokens upfront instead of inspecting the complete document on every iteration. The second pass reuses the token selection established during the first pass rather than calculating a new one. According to Z.ai, this reuse achieves nearly identical output quality compared to evaluating tokens separately on every cycle. The company also reports that the system reaches up to 200 tokens per second off-peak and 70 to 80 tokens per second under load.
Before implementing this loop mechanism in its flagship model, Z.ai evaluated it across configurations sized at 1, 4, 30, and 750 billion parameters. To measure the impact directly, the team assessed a 30B model built on the identical architecture of the larger base model, providing the loop version with roughly 10 percent more training compute. On the AIME25 mathematics benchmark, scores jumped from 19.2 to 30.4 points, while results on expert science evaluations in GPQA-Diamond rose from 47.6 to 56.3 points, and the AA-LCR long-context test advanced from 40.3 to 47.7 points. Simultaneously, response lengths contracted by 14.9 percent on MMLU-Pro, 11.7 percent on GPQA-Diamond, and 2 percent on AIME25, as computational reasoning shifted from external token generation into internal loop depth.
Skeptics might argue that without independent benchmarks for the 750B model, these performance claims remain unverified marketing statements. It is currently impossible to confirm how well GLM-5.4 actually performs, because Z.ai published no benchmark figures for the 750B release, drawing every reported statistic exclusively from the 30B evaluation. On 2026-04-11 Zhipu AI claimed GLM-5.1 outperformed Claude Opus 4.6 and an unspecified version of GPT-4 on the SWE-Bench Pro benchmark, which simulates software engineering workflows (we covered this on 11.04).
At 750 billion parameters, GLM-5.4 cannot run on local hardware, positioning Z.ai directly against other models. Z.ai frames the release as the starting point for "Generalized Coding," where code generates videos, games, and CAD models alongside standard software development. The model is currently accessible on Z.ai platforms, with model weights scheduled for release following safety testing while the company prepares a larger model expected to arrive soon.
Why it matters
The physical parameter count inside the architecture did not grow by a single unit, yet the system matches the performance of models spanning two to three trillion parameters. Re-training February's GLM-5 proved necessary because training such cyclic designs from scratch at an identical compute budget historically trailed standard networks. Sharing the key-value cache saved accelerator memory, but it forced engineers to build delicate control gates just to stop intermediate passes from breaking internal stability. Raw parameter expansion has hit a hard economic wall, forcing providers to engineer runtime depth out of existing hardware instead of buying larger clusters.