# GLM-5.4's Loop Transformer reasons deeper without adding parameters

Original title: GLM-5.4: Toward Generalized Coding with Our First Loop Transformer

> Hacker News story 50609685 · language: en · submitted 2026-11-23
> Web version: https://zeli.app/story/50609685
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 1025 · by [foohis](<https://news.ycombinator.com/user?id=foohis>) · 💬 334
[original](<https://z.ai/blog/glm-5.4>) · [HN discussion](<https://news.ycombinator.com/item?id=50609685>)

## Summary

Z.ai's GLM-5.4 is the first flagship model built on a Loop Transformer, which runs a shared block of 28 layers for two iterations to gain reasoning depth without growing parameter count. Trained by adapting an existing pre-trained base rather than starting from scratch, it matches models in the 2T–3T parameter range and pushes toward "Generalized Coding" — writing code to generate video, build games, and drive CAD modeling. Its weakness: marathon thinking loops.

## Key quote

> In effect, part of the reasoning shifts from explicit output tokens into the implicit depth of the loop.

## HN discussion (334 comments)

### [HarHarVeryFunny](<https://news.ycombinator.com/item?id=50611040>)

> I love the transparency, or at least given technical details, that Zhipu provide - a refreshing change from the locked-down approach of the western companies, and an interesting glimpse into the direction of SOTA LLMs.
>
> Looped Transformers are an obvious direction even if there are still problems to be worked out. The original Transformer is a bit like an unrolled for loop, and rather unnaturally pairs different sets of weights, both for attention and feed forward (knowledge) with different "layers" (aka loop iterations). Far more natural is to strive for something more like our brain's thalamo-cortical loop and association cortex, where "thought" is iterative and there are no restrictions as to what patterns/knowledge get applied when.
>
> A similar idea has been explored before ("Universal Transformer", 2019), seemingly going nowhere, but perhaps "necessity is the mother of invention" and compute-starved Chinese companies are finding a way to make it work.

### [simonw](<https://news.ycombinator.com/item?id=50616156>)

> Three pelicans - low, high, max: https://tools.simonwillison.net/markdown-svg-renderer?url=ht...
>
> Took me a while to get these because GLM-5.4 isn't available via OpenRouter or via the regular Z.ai API plan - I had to switch to their Coding Plan which it turns out gives you API keys that work exactly the same as their regular ones but have access to the new model.
>
> GLM-5.3 for comparison: https://tools.simonwillison.net/markdown-svg-renderer?url=ht... - those look pretty similar to GLM-5.4.
>
> GLM-5.2 had a VERY different pelican style, defaulting to gradients and animation: https://simonwillison.net/2026/Jun/17/glm-52/#excellent-peli...

### [aurareturn](<https://news.ycombinator.com/item?id=50610897>)

> For those wondering what loop transformers are:
>
> LLMs have layers of data, called weights. During inference, each layer gets computed once. Moving weights from HBM memory to the chip is a major bottleneck because to generate a token, you need to move an entire layer into the chip, compute once, move it out, move the next layer in. Hence, memory bandwidth has been the #1 bottleneck for inference.
>
> A loop transformer optimizes this bottleneck. Instead of one layer being computed once, it will compute the same layer multiple times, increasing the model intelligence without relying memory bandwidth as much. Bandwidth is still important, but not as much anymore.
>
> More intelligence is squeezed by using the GPU compute that is typically sitting idle during inference.

### [lnenad](<https://news.ycombinator.com/item?id=50610264>)

> It's becoming reaally hard using chinese models with their "marathon thinking" sessions. It's not a problem when dealing with more complex stuff but constantly second guessing themselves even when working with the simplest of things (conceptually) is very annoying and time to completion is dramatically higher compared to frontier unless you're dealing with ridiculus tps performance.
>
> I assume it's how they get close in benchmarks but the difference is staggering when compounding over several days/weeks/months.

### [ksec](<https://news.ycombinator.com/item?id=50611187>)

> I am wondering why the lack of benchmarks and launch blog post etc. But to me the biggest announcement isn't GLM 5.4 but what they said in the end.
>
> \> GLM-5.4 validates computational depth, and our next, significantly larger model will carry forward everything we learned here. It will be ready soon.
>
> GLM 5.4 feels more like a preview of GLM5.5 coming soon. I would assume with much higher parameters.

### [lewdwig](<https://news.ycombinator.com/item?id=50610328>)

> “Generalized coding” working effectively beyond domains that would not be traditionally attacked by code to me feels like models working around the limitations of harnesses and the context window. 
>
> If they externalise their reasoning as code, it will survive compaction and context decay by becoming a durable artifact.
>
> It’s cool that models can do this, but I think it also shows harnesses still have significant weaknesses around long term memory and context, necessitating models use what is essentially a code-as-long-term-memory hack.

### [lolokazaki123](<https://news.ycombinator.com/item?id=50611759>)

> One important thing glm-5.4 is a pretrained model converted to LOOPed, not trained looped from scratch. expect a flood of models getting the same conversion now, its the low hanging fruit for benchmarks
>
> Also if you want to understand what loop transformer is and how it works in detail I wrote small blog about them https://drhb.github.io/blog/posts/looped-transformers/

### [mikenew](<https://news.ycombinator.com/item?id=50615015>)

> From this post + the other rumors I've read, it sounds like their big target is a ~3T model next month, and this is really just a validation model they're releasing in the meantime.
>
> I think we'll find out soon if the chinese models are really able to keep up at the higher end. I've been a big fan of GLM since 4.6, but it's really started to fall behind and I hope that's because they've been cooking something great.

### [postalcoder](<https://news.ycombinator.com/item?id=50610210>)

> One thing that puzzles me is that if looping is considered so dangerous, or a slippery slope to non-interpretability, why did someone at OpenAI leak to The Information that they were doing it?
>
> I'm guessing it was probably a safety researcher who leaked it, to somehow warn the public about what OAI was doing in spite of management's deaf ear. But that doesn't make sense, assuming that's true, all it did was shift the Overton window and cause looped transformers to proliferate.
>
> What other reason would there be to leak it?
>
> edit: To be clear, I'm not the one asserting that it's "dangerous", but whoever leaked it probably did

### [ramon156](<https://news.ycombinator.com/item?id=50616130>)

> I want this topic to return when there's solid benchmarks that the article can ride on. There are no genuine numbers other than the output %
>
> They're comparing 2-3T against 750B. The demos are cherry picked, et cetera.
>
> I'm not saying GLM is special here, all the names are doing it, but I really want Loop Transformers to succeed, and saturating the topic won't help. Please let them become an industry trend.

---

## Cite

- Page: https://zeli.app/story/50609685
- Date: 2026-11-23
- Source: z.ai (https://z.ai/blog/glm-5.4)
- Hacker News: https://news.ycombinator.com/item?id=50609685

## Other languages

- zh: https://zeli.app/zh/story/50609685 · markdown: https://zeli.app/zh/story/50609685.md
- ja: https://zeli.app/ja/story/50609685 · markdown: https://zeli.app/ja/story/50609685.md
- ko: https://zeli.app/ko/story/50609685 · markdown: https://zeli.app/ko/story/50609685.md
- de: https://zeli.app/de/story/50609685 · markdown: https://zeli.app/de/story/50609685.md
- es: https://zeli.app/es/story/50609685 · markdown: https://zeli.app/es/story/50609685.md
- ru: https://zeli.app/ru/story/50609685 · markdown: https://zeli.app/ru/story/50609685.md
