Z.ai’s GLM-5.4 Loops Its Own Layers to Rival 2-3 Trillion-Parameter Models, as Looped Transformers Jump From Research Curiosity to Flagship AI
For most of the past five years, the recipe for a smarter language model has been simple and expensive: add parameters, add data, add GPUs. On November 23, Chinese AI developer Z.ai published a flagship that bends that recipe. GLM-5.4, the company says, reaches intelligence levels comparable to models with 2 trillion to 3 trillion parameters, and it gets there not by growing bigger but by running part of its network twice for every token it produces.
The release, detailed in Z.ai’s technical blog and reported by DIGITIMES on November 24, makes GLM-5.4 the company’s first flagship built on a “loop transformer” architecture. Coming just days after Thinking Machines Lab shipped its own looped open-weights model, it is the clearest sign yet that recurrent depth is moving out of the research lab and into the products businesses actually buy.
What a Loop Transformer Actually Does
In a standard transformer, every layer runs exactly once per forward pass. A loop transformer takes a block of layers that share the same weights and runs it several times, with each pass refining the hidden state left by the one before. The network gets effectively deeper, and gets more compute per token, without adding a single parameter.
Z.ai is candid that the idea is old. Its blog points back to the 2018 Universal Transformer and notes that looped models trained from scratch have historically lagged conventional models given the same pre-training budget. Its workaround was to skip training from scratch: it took the already pre-trained GLM-5 base model and converted it into a looped model through continued training. In GLM-5.4, 28 layers of that roughly 750-billion-parameter base are looped for two iterations.
Three Engineering Fixes That Make It Work at 750B Scale
Looping a giant model is not just a matter of calling the same layers twice. According to Z.ai, three changes were needed to keep quality up and serving costs in check:
- Gated progressive updates. Simply overwriting hidden states on each pass caused activation values to blow up. GLM-5.4 adds per-token gates that control how much of each pass gets written back. Z.ai says the first pass learned to write cautiously to build context, while the second pass opens the gates to refine the answer, and harder tokens get more aggressive first-pass updates.
- A hybrid KV cache. Keeping a full memory cache for every loop would multiply memory use. Instead, the second pass reuses the first pass’s cache and keeps only a small sliding window of its own, so an extra loop costs one window of cache rather than a full copy, even at 1-million-token context lengths.
- Reused sparse-attention indices. The second loop borrows the attention indices the first loop already computed, adding no extra indexing work, which Z.ai says performs nearly identically to recomputing them.
Before committing the flagship, the company says it validated the design at 1B, 4B, 30B and 750B scales. In a controlled test on a 30B model with identical parameter counts and roughly 10% more training compute, the looped version showed its biggest gains on math, scientific reasoning and long-context work. It also wrote 10% to 14% fewer output tokens on benchmarks such as GPQA-Diamond and MMLU-Pro, mostly because its chains of thought got shorter. In Z.ai’s words, part of the reasoning moves from visible tokens into the hidden depth of the loop.
On speed, Z.ai reports up to 200 tokens per second off-peak and 70 to 80 tokens per second at peak load. The model is available through its chat app, its ZCode tool and its GLM Coding Plan, with an API listed as coming soon. Open weights are promised only after what the company calls necessary safety hardening, and it acknowledges one clear weakness: a tendency to fall into overly long “marathon thinking” loops.
A Trend, Not a One-Off
GLM-5.4 lands in a busy week for the idea. On November 20, Thinking Machines Lab released Inkling 2 Mini, a 26.4-billion-parameter mixture-of-experts model that runs its middle layers three times per token and, by the lab’s own measurements, leads open-weights models under 100 billion parameters on DeepSWE v1.1 (48.2%) and Vals Index v2.2 (46.5%). Thinking Machines also flagged a limit worth noting: looping improved reasoning but did not help the model store more facts, which still scale with total parameter count. That is why both companies lean on search and tool use to fill knowledge gaps.
Not everyone thinks looping is the endgame. Startup Prefrontal published research this month arguing that a compact energy-based model, built on Hopfield and Tank’s 1980s work, trains at least 1,000 times faster than looped models on constraint puzzles such as Sudoku and mazes and reasons with at least 282 times less compute. Those are narrow benchmarks, not general coding, but they show that the hunt for “more thinking per parameter” is wide open.
Why It Matters for Business Leaders
The economics are the story. If a model can match far larger systems by spending extra compute only where it is needed, the cost of running capable AI could fall faster than the cost of training it. Shorter reasoning traces mean fewer billable tokens, and a smaller memory footprint means cheaper hardware or more users per server. For companies paying per token for coding assistants, document processing or customer-facing agents, that translates directly into margin.
There are caveats. Z.ai’s capability claims are self-reported, its API is not yet live, and open weights have no date. Buyers in regulated industries will also weigh data-residency and export-control questions around Chinese-developed models. And because looped models do more of their thinking internally, the visible chain of thought that compliance and safety teams rely on may say less about how an answer was reached. Thinking Machines reported its looped model’s reasoning stayed legible in testing, but that question deserves scrutiny as these systems spread.
The practical takeaway: when evaluating AI vendors in 2027, parameter count is becoming a poor proxy for capability. Ask instead about cost per completed task, latency under load and how the model behaves on your own long, multi-step workflows.
The Bottom Line
GLM-5.4 shows that architectural cleverness can still buy a frontier-class jump without a frontier-sized model. Z.ai says a significantly larger successor is coming soon and will carry forward what it learned. If independent benchmarks confirm its claims, the next phase of the AI race may be fought less over who has the most parameters and more over who gets the most thinking out of each one.
Put efficient AI to work on your phones. The same push to get more done with less compute powers MAJ.COM Voice AI: 24/7 AI voice agents that answer every inbound call and handle outbound sales and customer support, so your business never misses a lead.
Edited by Coron @QUE.COM
Website: https://QUE.COM Intelligence
Sponsored by: https://MAJ.COM AI Autonomous
Discover more from QUE.com
Subscribe to get the latest posts sent to your email.
