# Z.ai's GLM-5.4 Reruns 28 Layers Twice Instead of Adding More Layers

URL: https://edufabtech.com/news/zai-glm-5-4-loop-transformer-architecture  
Section: News · Artificial Intelligence  
Published: 2026-11-30  
Publisher: EduFabTech (https://edufabtech.com)

> Z.ai released GLM-5.4 on 23 November 2026, converting its GLM-5 base into a "Loop Transformer" that reruns 28 layers twice per token instead of adding more parameters.

On 23 November 2026, the Chinese AI company Z.ai released GLM-5.4, a model at the 750-billion-parameter scale it describes as its first "Loop Transformer": instead of stacking new layers to add reasoning depth, GLM-5.4 reruns a block of 28 layers a second time on every token, using the same weights both times, according to Z.ai's developer documentation for the model.

GLM-5.4 was not trained from scratch. Z.ai adapted the pretrained GLM-5 base model into the looped structure through continued training, according to Z.ai's documentation and VentureBeat's (2026) reporting on it. The model is currently available only to subscribers of Z.ai's GLM Coding Plan, through its ZCode and Z.ai Chat products. Z.ai's documentation states that the model API "will be made available upon completion of the security assessment," and VentureBeat (2026) quotes the company saying it plans to open-source the weights "responsibly after completing necessary safety hardening," with no date given for either.

## A Transformer That Loops Instead of Stacking

The idea behind a Loop Transformer is to let a fixed set of layers process a token more than once, refining its internal representation on each pass rather than handing it off to a new, separately weighted layer. Z.ai's documentation for GLM-5.4 describes the model as reaching intelligence "comparable to" models in the 2-trillion-to-3-trillion-parameter range, a comparison made by the company itself rather than by an independent benchmark.

![A three-stage diagram shows how GLM-5.4 reuses its KV cache, attention indices, and per-token gates to run a second loop pass without doubling memory.](https://edufabtech.com/uploads/2026/11/zai-glm-5-4-loop-transformer-architecture-2.png)
*A three-stage diagram shows how GLM-5.4 reuses its KV cache, attention indices, and per-token gates to run a second loop pass without doubling memory. — EduFabTech · Own work*

Structurally, GLM-5.4 loops a block of 28 layers from the GLM-5 base model through two iterations per token — 56 layer passes instead of 28 — rather than adding new, separately weighted layers, according to Z.ai's documentation and VentureBeat's (2026) reporting on it. The result is a model that does more computation per token without carrying more parameters in memory than its 750-billion-parameter base.

## What the Loop Actually Does

Running the same layers twice naively would double the memory needed to cache attention keys and values. VentureBeat (2026) reports that Z.ai addressed this with three changes: per-token gates that control how much each loop iteration is allowed to rewrite the token's representation, a hybrid key-value cache that reuses the first pass's cache and adds only a sliding window for the second pass, and reuse of the first loop's sparse attention indices rather than recomputing them. Z.ai's documentation states that an additional loop pass costs roughly a sliding window of cache rather than a full second context cache.

## The Evidence So Far — and Its Limits

The clearest quantitative evidence Z.ai has published is not from GLM-5.4 itself but from a smaller, controlled test: a 30-billion-parameter model built with the same looped structure, compared against a non-looped baseline of identical size. VentureBeat (2026), citing that test, reports gains on math, scientific reasoning and long-context tasks, with the looped version producing roughly 15% shorter outputs on MMLU-Pro and roughly 12% shorter outputs on GPQA-Diamond, at a training-compute cost about 10% higher than the non-looped baseline of the same size.

For the full 750-billion-parameter GLM-5.4, independent testing is thinner. VentureBeat (2026) reports that an outside reviewer's coding benchmark, AICodeKing's KingBench 4, placed GLM-5.4 seventh, with the run taking 431 minutes and 1,128 steps at maximum reasoning effort, against 109 minutes and 244 steps for Google's Gemini 4 Neon on the same suite. GLM-5.4 does not currently appear on Artificial Analysis's page tracking the GLM-5 model family, which as of this writing lists GLM-5, GLM-5.1, GLM-5.3 and GLM-5.3-Flash but not the new release.

![A bar chart compares GLM-5.4 and Gemini 4 Neon on the KingBench 4 coding benchmark, showing GLM-5.4 took about four times longer for a similar rank.](https://edufabtech.com/uploads/2026/11/zai-glm-5-4-loop-transformer-architecture-3.png)
*A bar chart compares GLM-5.4 and Gemini 4 Neon on the KingBench 4 coding benchmark, showing GLM-5.4 took about four times longer for a similar rank. — EduFabTech · Own work*

## What's Open, What Isn't

Unlike some other recent releases from Chinese AI labs, GLM-5.4 is not yet open-weight. Z.ai has said, as quoted by VentureBeat (2026), that weights will come "after completing necessary safety hardening," without a date, and its own documentation lists the general-purpose API as pending completion of a security assessment. Access for now runs through the paid GLM Coding Plan and Z.ai's own coding tools, which support a one-million-token context setting and a maximum output of 128,000 tokens, per Z.ai's documentation.

## Why It Matters for Students and Developers

For researchers studying model architecture and scaling, GLM-5.4 is a public test of whether reusing a block of layers can substitute for adding new ones — a question with direct implications for inference memory and training cost, since a looped model can, in principle, deepen computation without growing its stored parameter count. For developers evaluating coding tools, the practical trade-off so far is speed: on the one independent coding benchmark cited above, GLM-5.4's thoroughness came with roughly four times the run time of a comparably ranked competitor. Readers judging the architecture on its merits should keep the two kinds of evidence separate: the detailed accuracy gains come from a 30-billion-parameter ablation study, not from GLM-5.4 itself, for which independent, apples-to-apples benchmark scores are not yet publicly available.

## Sources

1. Z.ai. (2026). GLM-5.4 — Overview. Z.ai Developer Documentation https://docs.z.ai/guides/llm/glm-5.4
2. Sean Michael Kerner. (2026). Z.ai's GLM-5.4 aims to match models up to four times its size by running 28 layers twice. VentureBeat https://venturebeat.com/technology/z-ais-glm-5-4-aims-to-match-models-up-to-four-times-its-size-by-running-28-layers-twice
3. Artificial Analysis. (2026). GLM-5 Models — Intelligence, Performance & Price Comparison. Artificial Analysis https://artificialanalysis.ai/models/releases/glm-5

---
Source page: https://edufabtech.com/news/zai-glm-5-4-loop-transformer-architecture  
Quote with a link to the source page. © EduFabTech.
