Your privacy choices

Allow optional cookies for referral attribution, visit analytics, and Google Ads purchase measurement.

Back to blog

What Is a Loop Transformer? How It Differs from a Standard Transformer

Loop TransformerTransformerGLM-5.4model architectureweight sharing

On November 23, 2026, Zhipu AI released GLM-5.4 and described it as its first flagship built on a Loop Transformer. Many readers did not want a feature list first. They wanted the basic answer: what is a Loop Transformer, and how is it different from the standard Transformer everyone already knows?

This article draws only on Zhipu's official Chinese post, the Z.ai English technical blog, and the published paper literature. It is an architecture explainer. It is not a benchmark review, and it says nothing about availability or pricing.

Standard Transformer: each layer runs once per forward pass

A standard Transformer is a stack of layers. Each layer normally has its own parameters. In one forward pass the hidden state moves through the layers in order, and every layer runs exactly once.

Think of a fixed-depth pipeline: layer 1 hands off to layer 2, then layer 3, and so on to the last layer. Depth is set by how many layers there are and whether each has independent weights. If you want more computation, the usual move is to add layers or make the model bigger.

Loop Transformer: shared-weight layers run for several rounds

Zhipu's definition is direct. In a standard Transformer each layer executes once per forward pass. In a Loop Transformer, a group of weight-shared layers executes for multiple rounds, and each round continues from the hidden state of the previous one to refine the result. In the official wording, this yields a deeper network without adding parameters.

Three points are easy to blur together and should be kept apart:

  1. What loops is computation, not a second copy of the parameters. The same layers reuse the same weights. The second round is not an extra half of the model.
  2. Each round starts from the previous round's hidden state. The point is to apply the same transformation again to a refined state, not to push the raw input through unrelated new layers.
  3. Deeper does not mean more parameters. The parameter count can stay fixed while the looped layers run several times, so the effective compute depth goes up.

What GLM-5.4 actually loops

The official implementation is not "loop the whole model indefinitely". It is a specific design:

  • The looped part is 28 layers of the GLM-5 base model.
  • The number of rounds is two.
  • The official material describes the base at 750B scale and says the engineering changes were made for a model of that size.

So GLM-5.4 does not claim that all layers loop an arbitrary number of times. It applies a fixed two-round loop to 28 layers of an existing base. The technical blog does not publish exactly where those 28 layers sit in the network or a full split of total and active parameters. This article does not fill in details that the first-party sources leave out.

Reading "28 layers, two rounds" as "a new model with 56 layers of independent parameters" is wrong. The execution count doubles, but the second round reuses the same weights. For the difference between looping depth and parameter count, see Depth or Parameters: How to Read GLM-5.4's 750B and 2–3T Figures.

Why loop for reasoning tasks

Zhipu's GLM-5.3 technical discussion made a division of labor: memorization-type tasks benefit more from extra parameters, while reasoning-type tasks benefit more from extra effective compute. For GLM-5.4 the official post groups large-scale software engineering, cybersecurity, 3D modeling and physical control as "very long-chain reasoning tasks". The model has to follow a multi-step causal chain and keep its global logic consistent. Zhipu's judgment is that this is hard to get just by stacking parameters and memorizing.

The Loop Transformer is placed in that context. The idea is not to store more vocabulary or world knowledge. It is to let the model take one more pass of computation inside a single forward pass.

The official post also reports a same-parameter comparison on a 30B model with the same architecture as the 750B base. Gains were largest in mathematical reasoning, long context and code. On benchmarks such as GPQA and MMLU-Pro, average output length fell by 10%–14%, mostly from shorter chains of thought. Zhipu reads this as part of the reasoning moving out of the explicit token stream and into the extra loop depth.

That is the official reading of a 30B experiment. It is not a full public benchmark table for the GLM-5.4 flagship. Keep "architecture mechanism" and "flagship results" separate when you read it.

Two common misreadings

On release day, X already had threads describing the Loop Transformer as "the same shared layers run twice in a row". That matches the official definition. Two readings drift away from it, though.

The first treats "scaling loops" as a model training itself, or as recursive self-improvement. The user @GodanLeeX specifically corrected this: it is not AI training AI. By the official description, looping means repeated computation over shared layers at inference time (and in converting an existing base into a looped structure). It is not a separate self-iterating training loop.

The second is a diagram that draws a shared block repeated three times, or that shows 24 layers. Such sketches help intuition, but they do not match Zhipu's numbers, which are 28 layers, two rounds. When a picture and the first-party figures disagree, go with the first-party figures.

Open-source projects in 2026 have also explored looped or recurrent Transformers. Each has its own layer count, loop count and training recipe, and none of that can be carried over to GLM-5.4. For GLM-5.4's implementation, Zhipu's own statements are the reference.

What the official design does not include yet

Zhipu calls GLM-5.4 a first exploration of looping and lists open questions: how to make computation adaptive so that tokens of different difficulty get different amounts of compute, and how the benefit changes as loop count and model size keep growing. In other words, the published design uses a fixed two rounds. It does not yet choose the number of loops by token difficulty.

To see where the idea comes from and how it differs from the 2018 Universal Transformer, read How Loop Transformer Differs from Universal Transformer. For why Zhipu did not train a looped model from scratch, read Why Convert a Pretrained 750B Base Instead of Training from Scratch. The three engineering changes are covered in Three Engineering Changes That Make an Extra Loop Cheaper.

Sources and verification notes

Sources were checked on November 23, 2026 (Singapore time, UTC+8). If Zhipu later publishes a technical report or model card, treat that as the authority. A release by the vendor does not mean any other platform supplies the model, and this article does not discuss pricing.