🧠 Models and how they work · ⏱️ 2 min Cappuccino ●●●○○
What is Loop Transformer?
📖 The slightly longer version
Most AI chatbots today are built on a design called a transformer. A transformer is a stack of layers. A layer is one processing step that takes the text, changes it a bit, and passes it to the next layer. In a normal model, the text goes through each layer once, from bottom to top.
A loop transformer reuses some layers. A group of shared layers runs several times in a row, and each pass refines the work of the pass before. The idea is to get a "deeper" network, with more thinking steps, without adding parameters. Parameters are the numbers that store what a model learned. More parameters usually means a bigger, more expensive model. Z.ai says its new coding model, GLM-5.4, is its first loop transformer.
How a loop transformer handles a question
- Text comes inYour question is turned into numbers the model can work with.
- First layersSome normal layers process the text once.
- Shared layers loopThe same group of layers runs several times, refining the work on each pass.
- Final layersThe refined result goes through the last steps.
- Answer comes outThe model writes its reply, for example a piece of code.
If a model can do more with the same size, strong coding models could get cheaper to run and easier to spread. That is good news for small teams and builders. And still, it means capability keeps moving faster than our ability to test it, and for GLM-5.4 our sources give no independent benchmark results yet.
⚠️ What to watch out for
Fewer parameters does not mean free: running the same layers several times still costs computing time for each answer. The claim that looping gives a deeper network without growing the model comes from Z.ai itself. How well GLM-5.4 really works has not been checked independently in our sources.
📰 Where it showed up
This notion came up in Claude can now approve code changes on its own. Who reviews the reviewer?. More lessons: Learn.
🎯 Keep learning
Sources
Written on 2026-11-24. This explanation was accurate on that day. AI changes fast, so check the sources and the date before you rely on it.
Get The AI Daily Grind by email, every morning, in simple words.