Z.ai Teaches GLM-5.4 to Repeat Layers: On a 30B Test Model, Math Scores Rose from 19.2 to 30.4
Z.ai has released GLM-5.4, a 750-billion-parameter model that runs some of its layers twice, much as a person rereads a draft of a solution. On 30B test models, scores on the AIME25 olympiad math benchmark rose from 19.2 to 30.4, and answers got 2–15% shorter. Z.ai has not published scores for the 750B model itself, and there are no independent measurements, so the gain should be checked on your own tasks.
AI-processed from The Decoder; edited by Hamidun News
Normally, to make a neural network smarter, you make it bigger: more parameters (in essence, model size), more GPUs, a bigger training bill. Z.ai (Zhipu AI) is trying a different route. Its new flagship GLM-5.4, with 750 billion parameters, runs part of its layers twice, as if rereading its own draft solution with the same knowledge. To test the idea, the company compared two 30-billion-parameter (30B) test models: a standard one and one with repeated layers. On AIME25, a set of olympiad math problems, scores rose from 19.2 to 30.4. OpenAI used a similar scheme earlier, starting with GPT-6 Astra, and now a major Chinese lab is following suit.
How the "loop" works and what makes it hard
In a standard language model, each layer fires once per pass. In GLM-5.4, a block of 28 layers (from the 27th through the 54th) runs two times in a row. The second pass takes the result of the first and refines it. The parameter count does not grow, but the depth of computation does. The analogy is simple: you solve a problem, then go over the solution once more, this time with a finished draft in hand.
Z.ai did not train such a model from scratch. It reworked GLM-5, the base model released in February. According to the company, looped models trained from scratch still lose to conventional ones at the same compute budget.
The rework involved three challenges. First, if the second pass simply overwrites intermediate values, they grow with each cycle, and the following layers receive numbers outside their usual range. To address this, the team added separate gates for each token and each pass. These decide what share of the new result flows back into the stream. According to Z.ai, on the first pass the model cautiously gathers context, and on the second it writes its corrections in full.
Second, memory. Both passes share a single KV cache (the temporary memory of already processed tokens), and the second pass stores its additional values only in a small local window. As a result, the overhead relative to GLM-5.3 stays moderate even at a context of one million tokens. Third, computation. Sparse attention selects the most important past tokens in advance, and the second pass reuses that selection instead of making a new one. According to the company, speed reaches up to 200 tokens per second outside peak hours and 70–80 under load.
What the tests showed and what is missing
Before launching the flagship, Z.ai checked the scheme on models with 1, 4, 30 and 750 billion parameters. For a direct comparison, it used the 30B version: the standard and looped versions have the same parameter count, but the looped one received roughly 10% more compute during training. Results for the looped version:
- AIME25 (olympiad math): from 19.2 to 30.4 points;
- GPQA-Diamond (expert-level science questions): from 47.6 to 56.3;
- AA-LCR (long-context work): from 40.3 to 47.7;
- MMLU-Pro (knowledge) and IFBench (instruction following): a gain of just over three points.
At the same time, answers became shorter: by 14.9% on MMLU-Pro, by 11.7% on GPQA-Diamond, and by only 2% on AIME25. Z.ai explains this as follows: part of the reasoning shifts from output tokens into the extra depth of the loop. For practitioners, this means fewer tokens on the bill and less waiting.
There is an important caveat. All of these figures refer to the 30B test model, not to GLM-5.4. The company has not published a single score for the 750B flagship, and there are no independent evaluations such as Artificial Analysis. The claim that the model matches systems with 2–3 trillion parameters remains Z.ai's own statement. The company itself names a weak spot: excessively long reasoning phases in which the model gets stuck, although, according to the company, extended self-checking improves accuracy.
"Generalized Coding", access, and what to do
Z.ai presents GLM-5.4 as the start of "Generalized Coding": code becomes the foundation for tasks beyond ordinary software development. In the examples, a music video the model voiced itself, a six-axis robotic arm designed in FreeCAD, a finished game, and an interactive 3D scene built on mathematical geometry and custom shaders.
The model can be tried in GLM Coding Plan, the ZCode environment, and Z.ai Chat. An API is promised later, and token prices have not been announced. Z.ai will release the weights after additional safety reviews, and it has also announced a larger model coming soon. The company also held back its previous model, GLM-5.3, because of its ability to find vulnerabilities, and Anthropic later found that it can write exploits on its own at a level close to Claude Mythos Preview.
Z.ai is aiming at the class of Kimi K3.1 Pro (2.8 trillion parameters) and Qwen3.8-Max (2.4 trillion), both more than three times larger. A 750B model cannot run on a laptop, so for local deployment this is no news. But for those who pay for cloud inference, the idea matters: depth can be bought by repeating layers, not only by adding parameters. Developers would be wise to wait for the API and independent tests, then compare price and quality on their own tasks before switching to the new model.
- Nov 23, 2026DeepSeek Releases V4-Pro: Off-Peak API Pricing Is 50% Cheaper, with low/high/max Reasoning Modes
- Nov 23, 2026GPT-6.2 Astra Found Its Own Way to Prove a Theorem and Solved 49 of 56 Hard Problems
- Nov 23, 2026Perplexity Launches Monitor API: 63 Fresh Pages in 8 Hours vs. 20 for Firecrawl
- Nov 23, 2026Asus ProArt P16 for $7,000 Runs a 125-Billion-Parameter AI Model Without the Cloud
Key Questions Answered
How the "loop" works and what makes it hard?
In a standard language model, each layer fires once per pass. In GLM-5.4, a block of 28 layers (from the 27th through the 54th) runs two times in a row. The second pass takes the result of the first and refines it. The parameter count does not grow, but the depth of computation does. The analogy is simple: you solve a problem, then go over the solution once more, this time with a finished draft in hand. Z.ai did not train such a model from scratch. It reworked GLM-5, the base model released in February.
What the tests showed and what is missing?
Before launching the flagship, Z.ai checked the scheme on models with 1, 4, 30 and 750 billion parameters. For a direct comparison, it used the 30B version: the standard and looped versions have the same parameter count, but the looped one received roughly 10% more compute during training.
What are the key details on "Generalized Coding", access, and what to do?
Z.ai presents GLM-5.4 as the start of "Generalized Coding": code becomes the foundation for tasks beyond ordinary software development. In the examples, a music video the model voiced itself, a six-axis robotic arm designed in FreeCAD, a finished game, and an interactive 3D scene built on mathematical geometry and custom shaders. The model can be tried in GLM Coding Plan, the ZCode environment, and Z.ai Chat. An API is promised later, and token prices have not been announced.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
The AI world, distilled — once a week
Seven stories that actually mattered, hand-picked. No noise, no reposts, no press releases.
Done! Check your inbox for a confirmation.