Looped transformers allow models to do more compute in the forward pass for the same total parameter budget (e.g., required VRAM to store the model). This doesn't inherently optimize the memory bandwidth bottleneck. A simple way to see this is that if we reuse a layer during the forward pass, we still need to fetch its weights from HBM again, which incurs additional memory bandwidth usage.
The main advantage is more computation for a fixed parameter count and model-weight VRAM footprint, not more computation for a fixed HBM bandwidth budget.
Looping saves you memory capacity needs, not memory throughput needs.
However actually benefiting from this can be tricky! loop-sgland project has considerable effort put to finding out how much to loop any given input, it's own subproblem in making use of this: https://kschwethelm.github.io/continuous-depth-batching/ https://github.com/kschwethelm/loop-sglang
By taking those internal reasoning “circuits” and running them multiple times, it loops over the thinking part of the model without popping back in and out of words, in essence giving it more efficient chain of thought.
This technique (as far as I’m aware) was first done years before the big labs tried it. Someone on huggingface essentially made a frankenmerge of a model with itself and found that repeating 3 or 4 layers increased the model’s intelligence sharply.
But someone with actual industry knowledge should correct me if I’m wrong.
For a model with the same layer depth, I believe the gradients during training have to travel back to a lower depth but still are able to squeeze enough out of the weights to be useful where, compared to deep models, rank collapse is a real issue for deep models unless one is careful about their architecture (someone can correct me here - if the loss function does not have a built-in "loop index", then the backprop has no way of knowing whether it's going through 32 layers or 4 layers 8 times). And with looping, you obviously get the lower VRAM footprint advantage.
Prelude -> A -> A -> A -> B -> B -> B -> C -> C -> C -> Coda
The loop actually loops over a block of layers as a group:
Prelude -> A -> B -> C -> A -> B -> C -> A -> B -> C -> Coda
Generally on most AI accelerators the forward passes per second converge on MemorySize/MemoryBandwidth because you want to allocate all of the memory to model and kv caches, and you want to use maximum memory to get maximum batch size such that you also maximize compute utilization (which, in Decode is, you're still typically memory bound). That's why before drafters were popular you typically saw ~20tok/s on most providers, and why now that MTP/DSpark are mainstream you're seeing 50-100tok/s
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.