The Layers That Run Twice
On 23 November 2026 Z.ai released GLM-5.4, a 750-billion-parameter flagship that runs 28 layers of a pretrained GLM-5 base for two iterations. The lab says this reaches intelligence comparable to models of 2 to 3 trillion parameters, and it does not explain the comparison. The controlled result it does describe is a 30-billion-parameter loop, given about 10 percent more training compute than a same-size baseline, with gains on math, science, and long context and shorter outputs. VentureBeat reads those shorter outputs as about 15 percent on MMLU-Pro and 12 percent on GPQA-Diamond, measured on the small model. API access and open weights are still waiting on safety work.
The Layers That Run Twice
On 23 November 2026 Z.ai, the lab also known as Zhipu, released GLM-5.4. It is the company's first flagship built as a Loop Transformer. Twenty-eight layers of a pretrained GLM-5 base, at a scale of 750 billion parameters, run as one shared block for two iterations. The launch claim is that this reaches intelligence comparable to models of 2 to 3 trillion parameters. The blog states the comparison and does not say how it was measured. VentureBeat's headline turns the top of that range into "up to four times its size." Three trillion is four times 750 billion. The same piece reports a win-rate chart with no stated methodology. What a reader can follow without the chart is the architecture: the same weights run twice, and the parameter count does not grow on the second pass [Source 1][Source 2].
A standard Transformer applies each layer once per forward pass. A Loop Transformer sends the hidden state back through a weight-shared block, so the second iteration refines what the first one wrote. Z.ai traces the idea to the 2018 Universal Transformer and to later recurrent-depth work that reported gains at small scale. The result that sets the training plan is less comfortable. Under a matched pretraining budget, looped models trained from scratch still lag models whose layers are not shared. GLM-5.4 is continued training of an already pretrained GLM-5 base, meant to buy depth with less compute than a new pretraining run [Source 1].
Z.ai's name for the target work is ultra-long-chain reasoning: large software, cybersecurity, 3D modeling, and physical control. Memory-heavy jobs, it says, want parameters. Jobs that must keep a long causal chain consistent want effective compute. "Stacking parameters and memorizing data cannot solve this," the post says. The loop stands in for another jump in width [Source 1].
Gates, a shared cache, and an index used twice
Three changes are there to keep a second pass affordable at this scale.
The first is gated progressive updates. If a middle block of a finished model overwrites its hidden state on every iteration, activation norms blow up, and later layers see values outside the scale they were trained for. GLM-5.4 adds an independent per-token gate for each iteration and writes the candidate update back into the residual stream only in proportion to that gate. After training, Z.ai says, the gates split the work. The first pass builds a global context and writes conservatively, with small gate values, so the scale stays put. The second pass reuses that state and opens the gates for a full write. On harder tokens the first pass writes more aggressively [Source 1].
The second is a hybrid key-value cache. A naive loop would keep a full cache for every iteration and multiply memory by the loop count. GLM-5.4 reuses the sparse cache selected on the first pass and gives the second pass only a sliding window of newly written keys and values. The two streams may occupy the same positions, so attention can see both the first-pass context and the updated local state. An extra loop then costs one window, rather than a second copy of the full context. At a million-token context, the blog says this holds the deployment-cost increase over GLM-5.3 in check. The documentation repeats the same design, and lists a one-million-token context as the served window [Source 1][Source 3].
The third is reuse of the sparse-attention index. The base model already attends sparsely. The second loop takes the indices from the first loop's indexer and does not build a new index. Z.ai says its experiments find this nearly identical to recomputing the indices on every pass [Source 1].
Serving was co-designed with the loop. Fused kernels cut intermediate reads and writes a second pass would otherwise repeat. The throughput attached to that stack is up to 200 tokens per second off peak, and 70 to 80 at peak load. Those figures describe the hosted service [Source 1][Source 3].
The measured model has 30 billion parameters
Z.ai says it tried the loop on bases of 1, 4, 30, and 750 billion parameters before committing the flagship. The controlled comparison it actually describes is the 30 billion parameter model, with the same architecture as the 750 billion base. Parameter count is matched. The looped run receives about 10 percent more total training compute. The parenthetical says the numbers come after 200K of long-context supervised fine-tuning, with thinking mode on. The post does not define what the 200K counts [Source 1].
Two findings are stated in prose. Longer chains gain more, especially in math, scientific reasoning, and long context, which Z.ai treats as the core of Generalized Coding. Average output length falls by 10 to 14 percent on benchmarks such as GPQA-Diamond and MMLU-Pro, mostly because the written chain of thought is shorter. Part of the reasoning, on this account, has moved out of explicit tokens and into the depth of the loop [Source 1][Source 5].
VentureBeat puts round numbers on those shorter outputs: about 15 percent on MMLU-Pro and about 12 percent on GPQA-Diamond. It also states the limit the headline leaves out. The gains were measured on the 30 billion parameter test model, not on GLM-5.4. The comparison with 2-to-3-trillion-parameter models is asserted, and the route to it is not shown [Source 2].
The Decoder transcribes a chart the blog does not print as a table. On that reading of the 30 billion parameter model, AIME25 moves from 19.2 to 30.4, GPQA-Diamond from 47.6 to 56.3, and a long-context test, AA-LCR, from 40.3 to 47.7. MMLU-Pro and IFBench each move by a little more than three points. Output length shrinks 14.9 percent on MMLU-Pro, 11.7 percent on GPQA-Diamond, and 2 percent on AIME25. That transcription lines up with VentureBeat's rounded 15 and 12 percent and with the blog's 10-to-14 percent band. It is not a scoreboard for the 750 billion parameter model. The Decoder and VentureBeat agree on the larger gap: GLM-5.4 itself has no public benchmark table, and no independent evaluation [Source 2][Source 4].
Code as a general tool, and a loop that keeps going
Z.ai calls the release the start of Generalized Coding. Code is the substrate for work past ordinary software: video, games, 3D shading, mechanical design. The demonstrations are a self-narrated music video, a six-axis arm modeled in FreeCAD, a complete game, and an interactive 3D scene built from geometry and custom shaders. They are showcases. The launch post does not attach a coding-benchmark score to GLM-5.4. VentureBeat's roundup of first-day posts praises bug-finding and security review, complains about speed, and records that a reader could not find coding scores in the blog. Those posts are not a protocol [Source 1][Source 2][Source 5].
The limitation in the lab's own voice is "marathon thinking." The model gets caught in overly long loops of reflection. Z.ai says that extra self-correction still lifts accuracy past what the parameter count alone would suggest. A loop meant to spare written tokens can also refuse to finish [Source 1].
Distribution is partial. GLM-5.4 is open to GLM Coding Plan subscribers, in ZCode, and in Z.ai Chat. On weekly quota plans the docs set the GLM-5.4 quota at 1.5 times the GLM-5.3 quota. The documented interface takes video, image, text, and files, and returns text, with a context of one million tokens and a maximum output of 128,000. Thinking mode, streaming, function calls, context caching, and structured output are listed. The model API waits on a security assessment. Open weights are promised after safety hardening, with no date and no license in the launch post. A price for the general API is not on the model page. A larger model, the blog says, will carry the same lessons and be ready soon [Source 1][Source 3][Source 5].
What the post specifies, and a reader can follow without a chart, is a continued-training loop: 28 shared layers, two iterations, gates against a blow-up in activation scale, a second pass that adds a sliding window rather than a second full cache, and an attention index computed once. What it does not specify is a public score for that 750 billion parameter system. Until that table exists, the trillion-parameter comparison and the math and science gains remain results about a 30 billion parameter cousin, run with about a tenth more training compute and a shorter written chain of thought.
Sources
- GLM-5.4: Toward Generalized Coding with Our First Loop Transformer
- Z.ai's GLM-5.4 aims to match models up to four times its size by running 28 layers twice
- GLM-5.4
- Z.ai follows OpenAI into loop transformer territory with its new 750B flagship model
- Z.ai’s GLM-5.4 runs its layers twice to rival 2T-parameter models