
GLM-5.4's Loop Transformer: Deeper Without More Weights
- z-aiIN THIS ARTICLEZ.ai: GLM 5$1.00 / $3.20 per 1M tokens
- z-aiIN THIS ARTICLEZ.ai: GLM 5.3$1.26 / $3.96 per 1M tokens
- z-aiIN THIS ARTICLEZ.ai: GLM 5.3 Flash$0.15 / $0.50 per 1M tokens
- Newest
- OrcaNEWOrcaCyber: Inkling 2 Mini Abliterated / Uncensored2026-11-23$0.20 / $0.50 per 1M tokens · 218 tok/s
- thinkingmachinesNEWThinking Machines: Inkling 2 Mini2026-11-21$0.07 / $0.30 per 1M tokens · 232 tok/s
- OrcaNEWOrcaCyber: Hy4 Flash Abliterated / Uncensored2026-11-18$0.07 / $0.28 per 1M tokens · 195 tok/s
- openaiNEWOpenAI: GPT-6.2 Astra2026-11-17$8.00 / $40.00 per 1M tokens · 88 tok/s
- openaiNEWOpenAI: GPT-6.2 Sol2026-11-17$2.00 / $10.00 per 1M tokens · 149 tok/s
- tencentNEWTencent: Hy4 Flash2026-11-16$0.07 / $0.28 per 1M tokens · 174 tok/s
- AlibabaNEWQwen: Qwen4 Max2026-11-16$1.50 / $4.50 per 1M tokens · 92 tok/s
- OrcaNEWOrcaCyber: Ling 3.2 Flash Abliterated / Uncensored2026-11-14$0.60 / $1.80 per 1M tokens · 100 tok/s
- OrcaNEWOrcaCyber: Step 5 Preview Abliterated / Uncensored2026-11-14$2.00 / $5.40 per 1M tokens · 134 tok/s
- GoogleGoogle: Gemini 4 Carbon2026-11-10$2.00 / $10.00 per 1M tokens · 456 tok/s
- AnthropicAnthropic: Claude Fable 5.22026-11-09$8.00 / $40.00 per 1M tokens · 104 tok/s
- OrcaOrcaCyber: GLM 5.3 Abliterated / Uncensored2026-11-04$3.00 / $5.00 per 1M tokens · 110 tok/s
- OrcaOrcaCyber: Hy4 Abliterated / Uncensored2026-11-04$0.80 / $1.60 per 1M tokens · 123 tok/s
- OrcaOrcaCyber: Kimi K3.1 Pro Abliterated / Uncensored2026-11-04$2.00 / $5.00 per 1M tokens · 92 tok/s
- tencentTencent: Hy42026-11-04$0.83 / $2.50 per 1M tokens · 125 tok/s
- OrcaOrcaCyber: MiniMax M3.1 Flash Abliterated / Uncensored2026-10-29$0.80 / $1.60 per 1M tokens · 106 tok/s
- OrcaOrcaCyber: GLM 5.3 Flash Abliterated / Uncensored2026-10-27$0.80 / $1.60 per 1M tokens · 85 tok/s
GLM-5.4, published by Z.ai on 23 November 2026, makes one claim you can check without running a benchmark: it does more arithmetic per token than its parameter count implies. The model keeps a 26-layer prelude, loops 28 middle layers twice, and closes with a 24-layer coda. Follow the layer numbering in Z.ai's own architecture diagram and that is 78 distinct layers executing 106 passes — a 750B-parameter model paying about a third more compute per token than its size suggests, without a third more weights to keep resident.
That is the whole thesis, and it is worth separating from the surrounding marketing. Z.ai says GLM-5.4 reaches "intelligence levels comparable to 2T-3T parameter models". That is a vendor claim with no published flagship benchmark behind it — a problem this article comes back to. What is documented is the mechanism, and the mechanism is the more interesting object.
What the Loop Transformer Actually Does
A standard transformer runs every layer once per forward pass. A looped model takes a shared block of weights and runs it for several iterations, each pass refining the hidden states the previous pass produced. The idea is not new: the 2018 Universal Transformer proposed weight-shared depth, and recent work on recurrent depth has shown gains at small scale.
The catch is one Z.ai states rather than hides. Weight sharing buys parameter efficiency, but looped models trained from scratch still trail unshared models at equal pre-training compute. Training a loop into a model from zero costs you more than it returns. So Z.ai did not start from zero. It took the already-pretrained GLM-5 base — the 750B backbone behind GLM-5.3 — and converted 28 of its middle layers into a two-iteration loop through continued training. The prelude and coda stay ordinary. Only the middle is shared.
That choice explains the shape of the result. The first loop pass builds global context. The second pass reuses that state to refine the output. Because the weights are shared, the second pass is not a new layer with new knowledge — it is the same layer applied to a better-conditioned input. Z.ai's framing is that this converts compute into reasoning depth rather than into memory, which is exactly the trade a coding model wants.
Three Fixes That Make Looping Affordable
Looping a pretrained model naively does not work, and most of the research post is about the three engineering changes that make it viable at 750B.
Gated progressive updates
Overwriting hidden states directly across iterations makes activation norms blow up: downstream layers receive representations outside the scale they were trained on, and the model degrades. GLM-5.4 adds an independent per-token gate for each iteration, writing candidate updates back into the residual stream proportionally instead of wholesale. After training the gates settle into a division of labour. Pass one writes conservatively, keeping scales stable while it builds context. Pass two opens the gates and writes full updates. The gates also read token difficulty — on harder tokens, pass one writes more aggressively so the expensive predictions get more out of refinement.
A hybrid KV cache
A naive loop keeps a complete KV cache for every iteration, so memory grows with loop count. That is the cost that would have killed the idea at 1M context. GLM-5.4 keeps the sparse KV selected in pass one, then gives pass two only its own sliding window of newly generated KV. The two streams overlap at the same positions deliberately, so the model can attend to both the first-pass context representation and the freshly updated local one. An extra loop therefore costs one sliding window of cache rather than a full context cache — which is why Z.ai can say the deployment cost increase over GLM-5.3 at 1M context stays "well under control".
Sparse index reuse
The base model uses sparse attention, which means an indexer selects which positions to attend to. Pass two reuses the indices pass one generated instead of recomputing them, adding zero indexing overhead. Z.ai tested this against recomputing on every pass and reports nearly identical performance. It is a small item in the post and probably the largest single reason the loop is cheap to serve.
The Only Numbers Z.ai Published
The research post contains exactly one benchmark table, and it is not about GLM-5.4. It is a controlled iso-parameter comparison on a 30B model built with the same architecture as the 750B base, evaluated after 200K long-context SFT with thinking enabled, where the looped version used roughly 10% more total training compute. These are vendor-reported figures, unreproduced by anyone outside Z.ai:
• AIME25 — 19.17 baseline, 30.42 with the loop, a gain of 11.3 points
• GPQA-Diamond — 47.58 to 56.26, a gain of 8.7
• AA-LCR — 40.33 to 47.67, a gain of 7.3
• MMLU-Pro — 71.65 to 75.05, a gain of 3.4
• IFBench — 50.20 to 53.47, a gain of 3.3
Two things follow from that table. The first is placement: the largest gains land on math, scientific reasoning, and long context, which is the cluster Z.ai is arguing underpins "generalized coding". The second is less obvious and more commercially interesting. Output length falls almost everywhere. GPQA-Diamond responses shrink by 2,473 tokens on average, down 11.7%. MMLU-Pro shrinks by 863 tokens, down 14.9%. IFBench drops 13.0%. Z.ai's reading is that part of the reasoning moves out of explicit output tokens and into implicit loop depth. If that holds at 750B, it is the difference between a model that is smarter and a model that is cheaper to run for the same answer.

What the table is not is evidence about GLM-5.4. A 30B model with the same architecture validates the architecture; it does not tell you where the 750B flagship lands, and the gap between a 30B ablation and a 750B deployment is where most scaling claims go to die. As of 26 November, no benchmark table for the flagship exists. Independent coverage since the 23rd has been thin and mixed — enough to say the model is real, not enough to say it is a frontier model.
Generalized Coding, Demonstrated
Z.ai's case for the model beyond benchmarks is a set of four demos, and they are chosen to make a specific point: that code is now the intermediate representation for work that does not look like software.
• A self-narrated music video, generated by GLM-5.4 writing video-producing code
• A 6-axis robotic arm modelled in FreeCAD through engineering-grade CAD operations
• A complete game with character movement, physics, maps, combat, and art assets
• An interactive 3D bird-watching scene built from pure geometric math and custom GLSL shaders
These are demonstrations, not evaluations. There are no success rates, no attempt counts, and no statement about how many generations were discarded. A rendered video or a playable game is a weak signal — both can be cherry-picked from many tries. The CAD model is the stronger one, because a six-axis arm either has mechanically consistent geometry or it visibly does not, and there is much less room to hide a near-miss. Read the demo list as a direction of travel rather than a capability claim.
What It Costs, and What Is Missing
Availability is the constraint that matters more than any of the above. GLM-5.4 is not a model you can call with a token budget today.
• Access — GLM Coding Plan subscribers only, through ZCode, Z.ai Chat, Trae, WorkBuddy, and Qoder
• Plan price — $18 a month Lite, $80 Pro, $168 Max, with annual rates around $12.60, $56, and $117.60
• Quota — Coding Plan V2, V3, and team users get 1.5× quota while running GLM-5.4
• API — "coming soon", explicitly pending a safety evaluation, with no date
• Weights — planned, "responsibly", after safety hardening, with no date and no licence
• Speed — up to 200 tokens per second off-peak, 70–80 at peak
• Context — Z.ai discusses 1M context in its KV-cache section but publishes no formal spec card; output ceiling is unstated
There is no per-token price anywhere. There is also no independent score: check Artificial Analysis's live leaderboard and GLM-5.4 does not appear on it at all. That absence is not an insult to the model — it has no public API to test against — but it does mean the comparison every reader wants, GLM-5.4 against a measured frontier model, cannot be made on a shared axis yet.

Where This Leaves a Developer Today
If you want GLM-5.4 specifically, the only route is a Coding Plan seat, and the honest advice is to treat it as an evaluation rather than a production dependency. A subscription model with no published rate card, no API SLA, and no benchmark table is a thing you try on work you can afford to redo.
If what you want is a cheap, capable coding model on a per-token API right now, the GLM line is routable up to GLM-5.3 — $1.26 input and $3.96 output per million tokens on the OrcaRouter catalogue, one key across 200+ models, with 0% markup so the provider's list price is what you pay and any vendor price change is live the same day. Automatic failover means a model you are merely curious about can sit behind the one you trust. When Z.ai opens the GLM-5.4 API, it arrives on that same key at list price without a code change.

What Would Settle It
Three publications would move GLM-5.4 from a well-documented architecture to a judged model: a flagship benchmark table at 750B, an entry on an independent leaderboard once the API opens, and the API itself with a rate card. Until then, the defensible position is narrow but real. Z.ai shipped a genuine architectural change — not a parameter bump, not a data refresh — and documented the three engineering fixes that make it serveable at 1M context. That is more than most flagship releases offer. It is also less than a benchmark.
Compared in this article2
Detected from this article · Benchmarks: Artificial Analysis · updated daily
