Rust in Everything
← Papers

Loopback Transformer: Towards a Unified View of Residual Looped Transformers

Xuan Ouyang, Zefan Cai, Chenlong Zhang, Cheng Luo, Ke Wan, Junjie Hu

2026-11-16▲ 21arXiv 2611.07226v1Hugging FaceCode

AI-generated from the full paper (deepseek-flash). It may contain mistakes; check the original.

TL;DR

The Loopback Transformer stores block updates separately, uses geometric decay to set a bounded total update weight, and uses attention to reallocate that weight by content, improving validation loss over matched-depth Transformers with fewer Transformer parameters.

Problem

Looped Transformers share blocks, but parameter sharing alone does not determine how repeated computation is stored, carried forward, and reused. The paper notes that a full block output contains both its input and its new update, so weighting that output also reweights history already in the input. Ordinary addition fixes the input coefficient but assigns every update weight one, so total update weight grows with block applications, while a joint softmax over input and updates makes them compete for a fixed total. The paper therefore argues for separate controls over input strength, total update weight, and allocation across updates.

Method

The paper views residual aggregation through a write–transport–read memory interface adapted from linear attention to network depth. It distinguishes full block outputs from block updates and expands the recurrence to expose input and update coefficients. The Loopback Transformer stores individual block updates, keeps the shared stack's input on a separate path with coefficient one, and adds a weighted sum of updates to the original loop input. Geometric decay supplies baseline weights and bounds total update weight as loop iterations increase. A softmax reader with a learned per-application query scores normalized updates, adds the log prior, and redistributes the decay-set total by content. Only residual aggregation changes; with zero queries Loopback recovers the decay-only trajectory.

Results

  • At 191M, 374M, and 778M, Loopback has the lowest validation loss and the highest thirteen-task mean among the nine designs; its losses are 0.005, 0.039, and 0.024 nats lower than Standard, with thirteen-task means of 38.64, 40.89, and 43.58. §5.1
  • At 1.4B and 3B, Loopback uses 68% and 75% of Standard's Transformer parameters and has lower validation loss and higher thirteen-task mean; it also has lower WikiText perplexity: 20.29 versus 21.09 at 1.4B and 16.74 versus 17.28 at 3B. §5.2.1
  • At 1.4B and 3B, Loopback has lower reference-solution loss on all four datasets; at 3B, word-problem accuracy rises from 2.6% to 6.4%. §5.2.2
  • Loopback's loss rises less than Plain Loop's across extra visits up to twice the trained count; at 3B, one extra iteration raises the thirteen-task mean from 49.45% to 50.17%. §5.2.3
  • The complete design gives the lowest loss at both scales; removing attention increases loss by 0.0033 and 0.0028 nats at 191M and 374M, while removing decay increases it by 0.0434 and 0.0337. §5.3
  • Loopback adds only 0.04–0.08% forward FLOPs over Standard at matched executed depth; with the fused implementation, 3B training throughput is 6% below Standard on the same eight H100 GPUs. §5.6

Limitations

  • The paper states that evidence is limited to ClimbMix pretraining at the tested scales and budgets, with single-run large-scale comparisons.
  • The input coefficient is fixed at one; the paper has not tried learned or layer-specific input injection.
  • Explicit history adds memory traffic and activations, so parameter savings need not reduce latency or peak memory.
  • Extra visits have not improved validation loss, according to the paper.

Key points

  • Residual connections can be analyzed as write, transport, and read memory operations along depth. §3.1
  • A full block output includes its input, so a read weight on that output also weights earlier history. §3.2
  • The coefficient expansion separates input strength, total update weight B, and allocation across updates. §3.3
  • Loopback stores block updates separately and keeps the original loop input on a separate path with coefficient one. §4
  • Geometric decay sets the prior and bounds total update weight as iterations increase. §4.1
  • Softmax attention reweights updates by content while preserving the total set by decay. §4.2
  • At five scales from 191M to 3B, Loopback has lower validation loss than Standard with 40–75% of Transformer parameters. §Abstract
  • Removing attention or decay increases validation loss, supporting both components. §5.3

Mind map

Loopback Transformer
Problem
Parameter sharing leaves reuse open
Full outputs reweight carried history
Joint softmax couples input and updates
Depth memory view
Write transport read along depth
Full outputs versus block updates
Input total and allocation split
Method
Store block updates separately
Input path coefficient one
Geometric decay sets prior and total
Softmax attention reallocates by content
Shared blocks unchanged
Experiments
ClimbMix pretraining
Scales 191M to 3B
Matched tokens and executed depth
Nine residual designs compared
Ablations depth sweep and readers
Findings
Lower validation loss at five scales
40–75% Transformer parameters
Higher 13-task mean at 1.4B and 3B
Less loss rise with extra visits
0.04–0.08% forward FLOPs overhead
Limitations
ClimbMix only at tested budgets
Single-run large-scale comparisons
Input coefficient fixed at one
History adds memory traffic
Extra visits did not improve loss