← All writing

AI Engineering

Looped Transformers: Why AI Models Now Think Twice

Mani G 3 min read

A stack of glowing glass neural network layers with cyan and amber light ribbons looping out of the middle layers and back in, on a dark navy circuit background

Two AI labs shipped the same odd idea within a week. Thinking Machines released Inkling 2 Mini on November 20, and Z.ai followed with GLM-5.4 on November 23. Both are built on a looped transformer, a model that runs some of its own layers more than once for every token. The pitch is simple: more thinking, no extra weights. I think it is the most interesting design shift of the month, and also the one with the sneakiest catch.

What a looped transformer actually does

A normal transformer is a stack of layers. Each token goes through layer 1, then layer 2, and so on to the top, once. Smarter usually means more layers, which means more parameters and a bigger download.

A looped transformer cheats a little. It takes a block of layers and sends the token back through that same block two or three times. Each pass starts from what the last pass produced, so the model refines its answer before it writes anything. The weights stay the same size. Only the compute per token goes up.

Think of proofreading. You don't hire a second editor. You read your own draft three times, and each read catches something the last one missed.

The idea isn't new. Z.ai credits the 2018 Universal Transformer paper, and Sebastian Raschka's architecture notes call the same trick "recurrent depth" or "looped depth sharing." What is new is labs shipping it.

Two labs, two flavours

Inkling 2 Mini has 24 layers in four blocks of six. The first and last blocks run once. The two middle blocks run three times, so each token gets 48 layer applications from 24 stored layers. It is a mixture-of-experts model with 26.4B total parameters, 3.4B active, and about 5.4B effective active once you count the loops. The checkpoint is around 20GB, and the Hugging Face card says it runs on Apple silicon with 32GB or more. Thinking Machines reports 48.2% on DeepSWE v1.1 and 79.2% on SWE-bench Verified (bash only), which it says leads open-weights models under 100B parameters.

GLM-5.4 took a different route. Instead of training a looped model from scratch, Z.ai took its already trained GLM-5 base and looped 28 of its layers twice. Its reason is blunt: looped models trained from scratch still trail standard ones on the same training budget. Z.ai claims GLM-5.4 matches 2T to 3T parameter models. Hold that loosely. As The Next Web points out, Z.ai did not publish benchmark scores for GLM-5.4 itself, and its controlled tests ran on a 30B model, where looping cost about 10% more training compute and cut average output length by 10% to 14%.

The catch nobody puts on the slide

Looping makes a model better at reasoning, not at remembering. Thinking Machines says this plainly: knowledge is mostly a function of total parameter count, and Inkling 2 Mini's factuality score is in line with other models its size. A small looped model is a sharp thinker with a small library card. It needs search and tools to cover the gap.

The second catch bugs me more. Looping lets a model do more work without writing it down. Thinking Machines says so in its own post, and it matters because reading the chain of thought is one of the few ways we can check what a model is up to. They did test it: the chain of thought got shorter with more loops but stayed readable, and the model did not score higher on agentic sabotage tests. Still, "fewer visible tokens" is a cost saving and a blind spot at the same time.

And both labs admit their models can get stuck. Z.ai calls it "marathon thinking." Thinking Machines warns the model sometimes re-checks its own work without making progress and suggests capping output tokens and agent turns. Say you point one at a flaky test overnight. Set a turn limit first.

Here is the part I find wild: Thinking Machines' research variant kept improving on a serial reasoning benchmark out to ten loops, twice as many as it was trained with. So, would you rather run a big model once, or a small one that thinks three times?