Chiosa
Machine Learning

Loopback improves language modeling with shared Transformer blocks

Loopback Transformer: Towards a Unified View of Residual Looped Transformers · arXiv:2611.07226

2 min
Updated
Loopback versus the standard Transformer from 191M to 3B. Each pair uses the same token budget and executed depth at the 20-TPP setting (tokens per reference-model parameter). (a) Validation loss…
Loopback versus the standard Transformer from 191M to 3B. Each pair uses the same token budget and executed depth at the 20-TPP setting (tokens per reference-model parameter). (a) Validation loss and (c) thirteen-task mean accuracy against the standard Transformer’s estimated…Figure 1 · Loopback Transformer: Towards a Unified View of Residual Looped Transformers · Xuan Ouyang et al. · CC BY 4.0

In plain words

Loopback is a way to build a Transformer that reuses the same blocks several times. It keeps each block’s new work separate, carries the original input along its own path, and decides how much weight to give each past update when forming the next state.

In a matched 374-million-parameter comparison, Loopback used 56.3% of Standard’s Transformer parameters and had lower prediction loss and a higher average across thirteen answer tests. That average does not mean it scored higher on every test.

The research

Sharing Transformer blocks can reduce the number of distinct parameters, but it leaves open how a model carries forward useful computation from each reuse.

Loopback makes that memory choice explicit, so the practical question becomes whether a looped model can retain language and solution modeling quality with fewer Transformer parameters.

Loopback gives a looped Transformer separate control over its original input, the total weight on past block updates, and how that weight is divided.

The comparison trained 374-million-parameter Standard and Loopback models on the same 7.47 billion ClimbMix tokens, with 32 executed layers and the same peak learning rate. Loopback used 56.3% of Standard’s Transformer parameters.

On held-out text, Loopback had lower next-token prediction loss; its mean accuracy across thirteen zero-shot tasks was also higher. This supports the design under matched training conditions, though individual task scores were mixed.

The evidence comes from ClimbMix pretraining at the tested scales and budgets, with single runs for the large-scale comparisons. The input’s contribution stays fixed at one, and learned or layer-specific input weighting was not tested.

What the evidence shows

  • The open question in reuse

    Loopback is a residual design for looped Transformers. These models apply shared blocks repeatedly, but sharing alone does not specify how each pass’s new computation contributes to later states.

    Loopback stores each block’s update separately and combines those updates with the original input through a separate path. This makes the residual rule, rather than the shared blocks themselves, the design being tested.

  • Three choices become separate

    The paper’s depth-memory analysis separates three choices that residual designs can otherwise tie together: the original input’s weight, the total weight given to block updates, and how that total is divided across updates.

    Loopback fixes the input weight at one, uses geometric decay to set the updates’ total weight, and uses attention to distribute it by update content. That separation clarifies what the new residual rule changes.

  • A matched language-model test

    With training tokens and executed depth matched, Loopback’s lower held-out next-token prediction loss shows better text prediction in this comparison, despite using fewer Transformer parameters than Standard.

  • The aggregate is not universal

    Across thirteen zero-shot tasks, Loopback’s unweighted mean accuracy was higher than Standard’s, with each task counting equally and MMLU’s 57 subjects treated as one task. Individual task scores were mixed, so the higher aggregate does not mean Loopback scored higher on every task.

  • Solution modeling extends the test

    At 1.4 billion and 3 billion parameters, Loopback also had lower average loss when predicting supplied mathematical and code solutions than Standard. This test measures how well a model assigns likelihood to worked solutions given a problem, not whether its own generated answer is correct or its code executes. It extends the comparison to solution modeling while keeping the conclusion tied to that measure.

Deep

Next paperTiled attention cuts costs of relative-position terms