---
title: "Z.ai unveils GLM-5.4: The first public AI model using Loop Transformer architecture that 'thinks twice'"
description: "China's Z.ai has introduced GLM-5.4 with 750 billion parameters, featuring a Loop Transformer architecture that runs calculations twice to refine answers. The company claims it is comparable to models with 2–3 trillion parameters."
date: 2026-11-24T00:42:04.007Z
lang: en
url: https://xab.info/en/posts/z-ai-glm-5-4-loop-transformer
tags: [z-ai, glm-5-4, loop-transformer, ai-models, china-ai]
author: "Alexander Buran"
publisher: "XAB.info"
---

# Z.ai unveils GLM-5.4: The first public AI model using Loop Transformer architecture that 'thinks twice'

![Graphical representation of the Loop Transformer architecture with a mathematical spiral and the text GLM-5.4 LOOP.](https://xab.info/media/2026/11/24/z-ai-glm-5-4-loop-transformer/z-ai-glm-5-4-loop-transformer-1.webp)

## Key Points

- Z.ai released GLM-5.4 (750B parameters) with a new Loop Transformer architecture that runs part of the network twice to refine results.
- The architecture is built on a 28-layer block with shared weights, gate mechanisms, and a shared KV-cache with a sliding window.
- On 30B models, the loop version showed improvements on AIME25 (19.2→30.4), GPQA-Diamond (47.6→56.3), and AA-LCR (40.3→47.7) with ~10% more computational cost.
- The model is available via Z.ai Chat, GLM Coding Plan, and ZCode; API and open weights are promised later.
- Claims of parity with 2–3T parameter models and rumors of similar GPT-6 Astra architecture remain independently unverified.

Chinese company Z.ai has announced the release of GLM-5.4, a universal language model with 750 billion parameters, becoming, by its own account, the first developer to publicly admit to using an architecture that forces the model to repeatedly re-verify its own intermediate conclusions. The announcement followed the release of GLM-5.3 in mid-August 2026 and, according to the publication, represents a notable step in the race for so-called recursive self-improvement: while major American labs remain silent about such experiments, Z.ai has brought its architecture to a public demonstration. According to officially unconfirmed rumors, OpenAI has begun using a similar loop-transformer approach in its GPT-6 Astra model, although there is no independent confirmation of this information.

### The essence of the Loop Transformer architecture

The key difference between GLM-5.4 and classic transformers is the reuse of the same neural layers. Instead of simply increasing network depth, the developers forced a part of the model to perform calculations twice, refining intermediate results during the second pass. According to Z.ai, this approach allows for increased computational depth and better complex problem-solving without a proportional growth in the number of parameters. The company claims that in terms of intellectual capability, GLM-5.4 is comparable to models with 2–3 trillion parameters, although independent verification of this assessment is currently unavailable.

### How the loop pass works

GLM-5.4 is based on the pre-trained GLM-5 model, which was not recreated from scratch but transformed into a loop architecture through fine-tuning. A block of 28 layers was isolated and organized for two-pass processing with shared weights. The first pass forms the general context, and the second refines the results. To ensure that repeated processing does not lead to an uncontrolled increase in intermediate data volume, Z.ai introduced gate mechanisms that regulate the degree of change in each token's internal representation. Additionally, a shared KV-cache is used: the second pass reuses already stored data, writing its own results only to a small sliding window, which saves video memory and eliminates duplication.

### Testing results

The architecture's efficiency was tested on models with 1, 4, and 30 billion parameters. Two 30-billion models had the same number of parameters, yet the loop version consumed approximately 10% more computational resources during training. On the AIME25 math test, the score rose from 19.2 to 30.4 points; on the scientific GPQA-Diamond, from 47.6 to 56.3; and on the long-context AA-LCR test, from 40.3 to 47.7. Simultaneously, the length of responses on a range of tasks decreased by 2–14.9%, which the company views as additional token economy.

### Generalized coding and demonstrations

Z.ai positions GLM-5.4 as a tool for "Generalized Coding," where code becomes a means of solving problems far beyond traditional software development. As demonstrations, the company showcased a music video generated by the model, a 3D model of a six-axis robotic arm in FreeCAD, a computer game with physics, maps, and a combat system, as well as an interactive 3D scene featuring birds.

### Availability and limitations

The model is already available via Z.ai Chat, as well as the GLM Coding Plan and ZCode programming tools. The API is under preparation, and the publication of weights is promised after the completion of additional safety checks. The company itself acknowledges the issue of overly long reasoning cycles, which can increase task completion time. It is also worth noting the discrepancy in figures regarding the predecessor: in Z.ai and 3DNews materials, GLM-5.3 is described as a 700 billion parameter model, while according to Bloomberg data provided via zn.ua, the base GLM-5.3 model has 743 billion parameters.

## Accounts differ

### Parameter count of predecessor GLM-5.3

- **Z.ai / 3DNews:** GLM-5.3 is described as a 700 billion parameter model ([3dnews.ru](https://3dnews.ru/1151700))
- **Bloomberg (via zn.ua):** The base GLM-5.3 model has 743 billion parameters ([zn.ua](https://zn.ua/TECHNOLOGIES/vyzov-hihantam-iz-ssha-kitajskaja-kompanija-zai-vypustila-glm-53-kotoryj-dohonjaet-ii-ot-openai-i-anthropic.html))

*Where they agree:* Both sides confirm GLM-5.3 was announced in mid-August 2026 and is the predecessor to GLM-5.4.

## Fact-Check & Sources

- [Китайская Z.ai представила первую в мире ИИ-модель, которая дважды подумает, прежде чем ответить](https://3dnews.ru/1151700) - Source: Loop Transformer architecture description, GLM-5.4 parameter count (750B), test results, and demos. Claims of parity with 2–3T models and GPT-6 Astra rumors are not independently verified.
- [Китайская Z.ai представила первую в мире ИИ-модель, которая дважды подумает, прежде чем ответить](https://3dnews.ru/1151700/kitayskaya-zai-predstavila-pervuyu-v-mire-iimodel-kotoraya-dvagdi-podumaet-pregde-chem-otvetit) - Первоисточник: описание архитектуры Loop Transformer, числа параметров GLM-5.4 (750 млрд), тестовых результатов и демонстраций. Заявление о сопоставимости с 2–3 трлн параметров и слух об OpenAI GPT-6 Astra — не подтверждены независимо.
- [Вызов гигантам из США: китайская компания Z.ai выпустила GLM-5.3, который догоняет ИИ от OpenAI и Anthropic](https://zn.ua/TECHNOLOGIES/vyzov-hihantam-iz-ssha-kitajskaja-kompanija-zai-vypustila-glm-53-kotoryj-dohonjaet-ii-ot-openai-i-anthropic.html) - States 743B parameters for base GLM-5.3 (via Bloomberg), differing from the 700B figure in the source; confirms August 2026 announcement context for GLM-5.3.

## FAQ

### What is the Loop Transformer in GLM-5.4?

It is an architecture where a portion of the neural layers (a 28-layer block with shared weights) is executed twice: the first pass forms the context, and the second refines the results. Gate mechanisms regulate changes, and a shared KV-cache with a sliding window saves memory.

### How many parameters does GLM-5.4 have and how does it differ from GLM-5.3?

GLM-5.4 has 750 billion parameters. The main difference is the new Loop Transformer architecture, whereas GLM-5.3 (announced in mid-August 2026) is described in Z.ai materials as a 700 billion parameter model, and 743 billion according to Bloomberg.

### Where is GLM-5.4 available?

Through Z.ai Chat, and programming tools GLM Coding Plan and ZCode. The API is in preparation, and weights will be published after safety checks.