Skip to content
LiveNext 18:45:55

Definition

What is Looped transformer?

Looped transformer is a looped transformer reuses the same block of layers several times in one pass, adding effective depth and computation without adding new parameters.

A looped transformer is a transformer that runs some of its layers more than once. Instead of stacking many different layers, it sends the data through the same block of weights repeatedly. The model gets more computation per token without getting any bigger on disk.

How it works

In an ordinary transformer, each layer has its own weights, and the data passes through each layer once. A model with 24 layers stores 24 layers' worth of parameters.

In a looped design, a block of layers shares its weights across repeated passes. Run a block three times and the data gets three rounds of processing, yet only one copy of that block's weights is stored. Researchers describe this as weight sharing across depth, an idea that goes back to the Universal Transformer. Some designs loop only a middle section, running the first and last layers once.

Why people build them

The appeal is a trade. Memory is often the limit when you run a model on a laptop or a single GPU, because every parameter has to be held in memory. Compute is often easier to spend. Looping spends extra compute to get more out of a fixed set of weights, so a smaller model can behave like a deeper one.

Some research goes further and lets the model decide how many times to loop, spending more passes on hard tokens and fewer on easy ones. This links to the broader idea of test-time compute: giving a model more computation at the moment it answers.

The costs

Sharing weights has a price. A block looped several times usually does not match the quality of the same number of distinct layers, because each distinct layer can learn something different. Looping also makes each token slower to process, since the work happens in sequence, which affects latency and tokens per second. And training can be harder to keep stable.

Looped models can be combined with other techniques. A mixture of experts layer inside a looped block, for example, activates only some of its weights each time, so the idea of "active" parameters gets more complicated: the count depends on whether repeated passes are counted. See active parameters.

Not the same as a reasoning loop

Do not confuse this with a reasoning model that writes out a long chain of thought. A looped transformer repeats computation inside the network, invisibly, within a single forward pass. A reasoning model produces visible tokens one after another.

The short version

Looped transformers swap storage for compute: fewer weights, reused more. Whether that trade is worth it depends on whether memory or speed is your bottleneck.

Looped transformer in the news