Picture two ways to make an essay sharper: hire more editors, or ask the editor you already have to read it twice. That second option, more passes instead of more people, is the whole idea behind the looped transformer.
A looped transformer is a language model that runs a group of its layers more than once, gaining depth without adding parameters (the learned numbers it stores). Z.ai's GLM-5.4, introduced on 23 November 2026, loops 28 of its layers twice, and the second pass refines what the first one built.
One editor, two passes
The easiest way to see a looped transformer is to watch one editor read the same draft twice. This scene is made up, but every part of it maps onto the real machine.

Picture a small newsroom with one editor, Priya, and a messy draft due before lunch. On her first read, she fixes almost nothing.
She pencils light marks in the margin: this paragraph repeats, that claim needs a source, the ending sags. Mostly, she is building a picture of the whole piece.
On her second read, she picks up a pen. Now she knows where the story is going, so each edit lands in the right place.
The draft comes out sharper, and nobody hired a second editor. Here is the mapping to carry through the rest of the post:
- Priya is a group of layers inside the model.
- Each read is one loop, also called a pass or an iteration.
- No new hire means the model adds no new parameters.
- Reading time is not free. In a model, the second read costs extra compute.
Hold on to Priya. She comes back when the bill arrives.
What a looped transformer is
A looped transformer sends its working data through the same layers more than once, where a normal transformer uses each layer exactly once.
Start with the normal kind. A transformer (the neural network design behind today's large language models) is a tall stack of layers. It splits your text into AI tokens, small chunks of text, and keeps a long list of numbers for each one.
Those lists are the hidden states: the model's working notes on what each token means so far. Every layer reads the notes, improves them and passes them up.
Z.ai's GLM-5.4 release post states the difference plainly. "In a standard Transformer, each layer runs once per forward pass." A forward pass is one trip up the stack to produce the next token.
In a looped model, "a group of weight-shared layers runs for multiple iterations, refining the hidden states from the previous pass." Weight-shared means every pass uses the very same layers, with the same learned numbers. Nothing gets copied.
In Z.ai's words, that gives "a deeper network without increasing the parameter count." That is Priya reading again instead of the newsroom hiring.
Sebastian Raschka, who keeps an LLM architecture gallery, describes the main idea as applying "the same layers (i.e., the transformer block) several times." He notes it also goes by recurrent depth or looped depth sharing. Z.ai calls its version a Loop Transformer, and the Ouro paper calls its models Looped Language Models, or LoopLM.
The practical upshot for you: a looped model's file size no longer tells you how much work it does per token.
How GLM-5.4 runs its layers twice
GLM-5.4 repeats only the middle of its layer stack, so the bottom and top layers run once and the middle runs twice.

In Raschka's reading of the architecture, GLM-5.4 has 78 distinct layers. It runs layers 1-26 once, layers 27-54 twice, and layers 55-78 once. That matches Z.ai's own line: GLM-5.4 "loops 28 layers of the GLM-5 base model for two iterations."
Follow one token through: it climbs layers 1-26 once. After layer 54, it goes back to layer 27 and climbs those 28 layers a second time. Then it finishes with layers 55-78, for 106 layer runs from 78 stored layers.
Why not train a looped model from scratch? Z.ai says looped models trained that way "still lag behind unshared models under the same pre-training compute budget." Unshared models are normal ones, where every layer has its own weights.
So Z.ai took its already trained GLM-5 base and adapted it into a Loop Transformer through continued training. It calls GLM-5.4 its first flagship model on this design, built at the 750B scale (about 750 billion parameters).
Z.ai also claims intelligence "comparable to 2T-3T parameter models," meaning 2 to 3 trillion parameters. That is the vendor's claim, not an outside test.
Converting a trained model brought one real problem. Simply overwriting the hidden states on each pass made the activation norms blow up across iterations. Activation norms are the overall size of the numbers in those states.
The fix is a set of gates, one set for each pass. Each gate is a per-token dial that decides how much of an update gets written back into the residual stream. The residual stream is the running set of notes that every layer reads from and adds to.
With the gates in place, the two passes split the work:
- First pass: builds global context and writes conservatively, with small gate values, to keep the numbers stable.
- Second pass: reuses that state to refine the output, and opens the gates to write full updates.
That is Priya exactly. Pencil first, pen second.
What looping buys, and what it costs
Looping swaps stored size for compute: in Raschka's phrase, looped depth "changes the trade-off between parameter count and computation."
Looping a whole model twice is "almost 2x as expensive in terms of compute," Raschka writes. Yet the model itself stays the same size, because the same parts are reused.
In newsroom terms, the second read costs time, not salary. GLM-5.4 loops only 28 of its 78 layers, so its extra bill is smaller than double.
Memory has a catch too. Raschka notes that, depending on the build, activation memory (space for the working numbers during a pass) and the KV cache (key-value cache) both grow with each pass. The KV cache is where a model saves its notes on earlier tokens, so it can look back without redoing the work.
A naive looped build keeps a full KV cache for every loop, which multiplies memory by the loop count. Z.ai says its hybrid design means an extra loop costs one sliding window of cache, covering only recent text, rather than a full-context cache.
| What you look at | What looping does | Gain or cost | Who reports it |
|---|---|---|---|
| Size on disk and in RAM | Stays the same, because the layers are reused | Gain | Raschka |
| Compute per token | Rises with every extra pass through the looped layers | Cost | Raschka |
| KV cache memory | Grows per pass in a naive build; one sliding window per extra loop in GLM-5.4 | Cost, trimmed | Raschka, Z.ai |
| Answer length | 10-14% shorter on most benchmarks, mostly from shorter chains of thought | Gain | Z.ai, own tests |
| Training | Trained from scratch, a looped model trails a normal one on the same compute budget | Cost | Z.ai |
The shorter answers are the surprise: Z.ai says "part of the reasoning shifts from explicit output tokens into the implicit depth of the loop." In plain words, some thinking moves from written text into the repeated layers. Each token costs more, but there can be fewer of them.
Z.ai's gains come from its own controlled test on a 30B model built exactly like its 750B base. With identical parameter counts and about 10% more total training compute, "the looped version showed clear gains." The biggest showed up in math, scientific reasoning and long-context tasks.
Treat Z.ai's headline promise, matching "the performance of much larger models," as a vendor claim until outside testers check it. Z.ai also lists a habit of GLM-5.4 itself: it can get caught in overly long "marathon thinking," though Z.ai says that extra reflection does improve accuracy.
Looping spends more compute per token, the opposite direction from speculative decoding in vLLM, which aims to cut the wait between tokens.
Where the idea came from
Looping is an old idea that GLM-5.4 now takes to a large model, and Z.ai itself traces weight-shared depth back to 2018.

- 2018, the Universal Transformer. Dehghani and colleagues proposed the Universal Transformer, which applies one shared block again and again. It even let each position decide when to stop, a halting mechanism the authors found improved accuracy on several tasks.
- Recurrent depth. Geiping and colleagues built a recurrent-depth model that iterates one block and can unroll to any depth at test time, meaning while it answers. They scaled a proof-of-concept to 3.5 billion parameters and 800 billion training tokens, and measured it up to a compute load equal to 50 billion parameters. They contrast this with mainstream reasoning models, which buy more thinking by writing more tokens.
- Ouro. The Ouro paper presents and open-sources a family of looped language models. Its authors report that their 1.4B and 2.6B models match the results of state-of-the-art models up to 12B. They say the edge comes from using knowledge better, not from storing more of it.
- Nanbeige. Raschka's gallery describes the Nanbeige model sending its hidden states through the same 22-layer stack twice.
- November 2026, GLM-5.4. Z.ai validated the loop on 1B, 4B, 30B and 750B base models before trusting its flagship to it. Earlier work "has shown gains at small scales," in Z.ai's words. GLM-5.4 takes the idea to 750B.
Is Claude, GPT-6 or Astra a looped transformer?
Nobody has confirmed it: in the sources behind this post, neither Anthropic nor OpenAI says Claude, GPT-6 or Astra loops its layers.
Astra, from OpenAI, has drawn open speculation. In a post on Astra and looped transformers, Raschka notes "a lot of hype" around it being a "recurrent depth or looped transformer." He treats it as unconfirmed.
A second worry is that looping lets a model reason in secret. Raschka's answer is direct: "Reusing layers does not by itself suppress visible chain of thought." Chain of thought is the step-by-step reasoning a model writes out before it answers.
In Z.ai's tests, looping made those written chains shorter. And the Ouro authors report that looped models produce reasoning traces more aligned with their final answers than written-out chain of thought.
Can you try GLM-5.4 today?
Yes, in Z.ai's chat and its GLM Coding Plan, but not yet through an API or as downloadable weights. Here is where things stand as of November 2026, from Z.ai's release post:
- Chat: offered at Z.ai.
- GLM Coding Plan: listed as another way to try it.
- API: marked "Coming Soon," so not callable from your code yet.
- Open weights: not released. Z.ai plans to open-source them "after completing necessary safety hardening."
- Speed: up to 200 tokens per second off-peak and 70-80 at peak load, by Z.ai's figures.
One feature is still missing, and here the editor analogy stops being true. Priya would skim an easy memo once and reread a hard contract three times. GLM-5.4 gives every token the same two passes, easy or hard.
Z.ai says it is exploring adaptive compute, so harder tokens get more iterations. Raschka describes router-based designs where "easy tokens can exit early while harder tokens receive additional computation." The 2018 Universal Transformer already had a version of this in its halting mechanism.
Treat looping as one more way to make a model think harder, next to writing longer chains of thought. So judge GLM-5.4 on your own hard prompts, not on its architecture.
Try a math-heavy or long-document task in chat, the kind where Z.ai's test showed the biggest gains. Compare the result with your current model.
Then watch for the API and open weights, which would let outside testers check Z.ai's numbers. And watch whether other labs publish looped designs of their own.




