On November 23, 2026, Z.ai announced GLM-5.4, a flagship AI model with 750 billion parameters. Its new "Loop Transformer" design passes the middle 28 layers through twice, deepening computation at inference time without significantly increasing the weights the model holds. Z.ai says the model performs on par with models in the 2–3 trillion-parameter class, but the controlled experiment showing concrete performance gains was run on a smaller 30-billion-parameter model.

According to Z.ai's official announcement, the experiment showed the largest improvement on a math benchmark, while that same benchmark saw the smallest reduction in output tokens. The results suggest that deepening the model's internal computation may improve problem-solving while keeping the number of generated tokens down.

AD

The Loop Transformer: reusing 28 middle layers twice

The parameter count is the total number of weights a model acquires through training. In a standard Transformer, the input passes through each layer once in sequence. If the same layers are passed through again, however, the existing weights can process the intermediate state further. Instead of greatly increasing the parameter count, GLM-5.4 uses this mechanism to add computational depth.

According to the architecture diagram Z.ai published, GLM-5.4 first passes through layers 1–26, then runs the 28 layers from 27 to 54 twice, and finally proceeds through layers 55–78. The model has 78 unique layers, but the total number of layer passes is 26 + 28×2 + 24 = 106. Because the same weights are reused, the model does not need to store 106 layers' worth of distinct weights. Note that this figure counts layer passes and is not the same as the increase in the model's total computation (FLOPs).

Between the first and second passes, a gate provided for each loop and each token adjusts how much information is reflected in the intermediate state. Z.ai says the first pass builds up the overall context while making larger updates to tokens that are harder to process, and the second pass reflects corrections more strongly. The number of iterations is fixed at two, but the size of the information update varies dynamically.

The design also limits memory use when processing long contexts. In sparse attention, which narrows down the token positions the model refers to, the second pass reuses the positions selected in the first. The KV cache, which stores the keys and values used to refer to past tokens, is also shared across both passes for long histories, and the new cache generated in the second pass is limited to the most recent context.

As a result, even with a context of around one million tokens, the model does not need to hold two copies of the KV cache for the entire history, and the additional cache capacity can be kept in line with the size of the recent window. However, the computation for each pass is still required, so implementation-level optimizations for handling the extra computation efficiently are also important.

30B-parameter experiment: math score up 11.3 points

Z.ai compared standard and looped models matched at 30 billion (30B) parameters. Both were evaluated after supervised fine-tuning (SFT) supporting a 200,000-token context, with reasoning mode (Thinking) enabled. However, the looped model's total training compute was about 10% higher than the standard model's, so the comparison does not equalize training compute.

  • Standard
  • Looped
Standard vs. looped model performance at 30B parameters横棒グラフ。カテゴリ 5 件、系列: Standard, Looped(単位: Score)MMLU-ProMMLU-ProMMLU-Pro — Standard: 71.14Score71.14MMLU-Pro — Looped: 74.47Score74.47IFBenchIFBenchIFBench — Standard: 22.31Score22.31IFBench — Looped: 25.81Score25.81AA-LCRAA-LCRAA-LCR — Standard: 40.25Score40.25AA-LCR — Looped: 47.73Score47.73GPQA-DiamondGPQA-DiamondGPQA-Diamond — Standard: 47.62Score47.62GPQA-Diamond — Looped: 56.31Score56.31AIME25AIME25AIME25 — Standard: 19.17Score19.17AIME25 — Looped: 30.42Score30.42単位: Score
データを表で見る
Standard (Score)Looped (Score)
MMLU-Pro71.1474.47
IFBench22.3125.81
AA-LCR40.2547.73
GPQA-Diamond47.6256.31
AIME2519.1730.42
Standard vs. looped model performance at 30B parametersSame parameter count, after supervised fine-tuning supporting a 200,000-token context, Thinking enabled. The looped model's total training compute is about 10% higher.出典: Z.ai GLM-5.4 official announcement (November 23, 2026)

The looped model beat the standard model on all five benchmarks. On AIME25, a math benchmark, the score rose sharply from 19.17 to 30.42, and on GPQA-Diamond, which covers difficult science questions, it improved from 47.62 to 56.31. Because the scoring metrics of the benchmarks are not necessarily identical, it is better to focus on each benchmark's improvement over the standard model rather than comparing scores across benchmarks.

Alongside the performance gains, average output token counts also fell. Based on the results Z.ai published, the figures are as follows.

Benchmark Standard score Looped score Score gain Avg. output reduction Avg. output reduction rate
MMLU-Pro 71.14 74.47 3.3 points 918 tokens 14.9%
IFBench 22.31 25.81 3.5 points 446 tokens 8.3%
AA-LCR 40.25 47.73 7.5 points 435 tokens 4.7%
GPQA-Diamond 47.62 56.31 8.7 points 1,259 tokens 11.7%
AIME25 19.17 30.42 11.3 points 635 tokens 2.0%

Source: Z.ai official announcement. Score gains are rounded values from the official chart.

On MMLU-Pro, average output tokens fell 14.9% and the score rose 3.3 points. On AIME25, by contrast, the output reduction was only 2.0%, yet the score rose the most, by 11.3 points. The reduction in output tokens and the size of the performance gain are not necessarily proportional.

By reusing the same weights to deepen internal computation, it may be possible to improve problem-solving without increasing the number of generated tokens. Whereas conventional reasoning models have handled complex problems by producing more output tokens, the Loop Transformer takes a different approach: increasing the model's internal computation. Because the experiment also differed in training compute, however, the full performance gain cannot be attributed to the looped structure alone.

AD

Comparing GLM-5.4 with competing models by size

GLM-5.4's total parameter count has barely grown from the previous generation. According to the official GLM-5 model card, GLM-5 has 744 billion (744B) total parameters and 40 billion (40B) active parameters per token. GLM-5.4's 750 billion (750B) is roughly the same scale as its predecessor.

Competitors, meanwhile, include far larger models. According to the official Qwen3.8-2.4T-A95B model card, it has 2.4 trillion total parameters and 95 billion active parameters. And according to Moonshot AI's official website, Kimi K3 has 2.8 trillion total parameters. In total parameters, Qwen3.8-2.4T-A95B is about 3.2 times the size of GLM-5.4, and Kimi K3 is about 3.7 times.

chart
{
  "type": "bar",
  "title": "Total parameters: GLM-5.4 vs. its predecessor and competing models",
  "unit": "Billions of parameters",
  "categories": [
    "GLM-5",
    "GLM-5.4",
    "Qwen3.8-2.4T-A95B",
    "Kimi K3"
  ],
  "series": [
    {
      "name": "Total parameters",
      "values": [
        744,
        750,
        2400,
        2800
      ]
    }
  ],
  "caption": "Total model parameter counts as published by each company. This is not a comparison of active parameters at inference time or of actual performance.",
  "source": "Z.ai announcement, GLM-5 model card, Qwen model card, Moonshot AI website"
}

GLM-5.4 keeps a smaller parameter scale than its competitors and adopts a design that deepens computation through repeated processing. However, a gap in total parameters does not translate directly into differences in inference compute, processing speed, or performance.

Context length also requires distinguishing between a model's own specifications and the conditions under which a service is offered. The publicly released Qwen3.8 model natively supports 262,144 tokens and can be extended to a maximum of 1.01 million tokens. The managed service Qwen3.8-Max, by contrast, offers 1 million tokens as standard. GLM-5.4's 1 million tokens is a condition of its availability in ZCode.

Model Total parameters Active parameters Context length Availability
GLM-5 744B 40B — Weights released on Hugging Face
GLM-5.4 750B Not disclosed 1M tokens (ZCode) Coding Plan, ZCode, Z.ai Chat
Qwen3.8-2.4T-A95B 2.4T 95B Public model: 262,144 tokens, extendable to 1.01M. Qwen3.8-Max: 1M tokens Public model, managed service
Kimi K3 2.8T Unconfirmed 1M tokens Specs listed on Moonshot AI website

Sources: GLM-5.4, GLM-5, Qwen3.8, Moonshot AI, ZCode.

Note that Kimi K3's 2.8-trillion-parameter specification and the description of Kimi K3.1 Pro as being in the "3-trillion-parameter class" refer to models from different generations.

Z.ai argues that iterative computation makes up for the gap in parameter scale and that GLM-5.4 performs on par with models in the 2–3 trillion-parameter class. At the time of the announcement, however, no concrete benchmark scores for GLM-5.4 itself, and no results of same-condition comparisons with competing models, had been published. API pricing has not been announced either, so it is impossible to judge at this stage how much cost reduction the smaller parameter scale will bring.

One-million-token context and a larger Coding Plan allowance

GLM-5.4 is available through the GLM Coding Plan, ZCode, and Z.ai Chat. The API will be offered soon, and the model weights will be released after safety measures are put in place.

According to the official ZCode documentation, GLM-5.4 is available on all four subscription tiers. Reasoning intensity can be selected from three levels—Low, High, and Max—with Max as the default. The context length is 1 million tokens, and automatic compression kicks in when it reaches about 966,000 tokens. In long-running development work, whether the necessary instructions and past design decisions are preserved after compression will be important.

Usage allowances have also improved: except for legacy V1 plans, the same allowance reportedly lets users consume 1.5 times as many tokens as with GLM-5.3. This compares the token volume available within a subscription plan and is a different metric from the output reduction rates in the 30B-parameter experiment described above.

On generation speed, Z.ai says it reaches 70–80 tokens per second during busy periods and up to 200 tokens per second during quiet periods. To cope with the added computational load of iterative processing, it also says it applied optimizations such as kernel fusion and reduced reads and writes of intermediate data to memory.

The official announcement also included demos of artifacts created through code generation, including video, games, a six-axis robot arm designed with FreeCAD, and 3D graphics written in GLSL. In multistep development work like this, important evaluation criteria go beyond how the output looks: whether it runs correctly, whether it passes tests, and how many attempts are needed to fix it.

To assess GLM-5.4's practicality, it will be necessary to compare not only token generation speed but also total time to complete a task, allowance consumption, and success rate. How many errors and rounds of rework the Loop Transformer, which deepens the model's internal computation, can actually eliminate in real development work will be a key measure of how it differs from conventional models.