Loopback Transformer: Towards a Unified View of Residual Looped Transformers
Xuan Ouyang, Zefan Cai, Chenlong Zhang, Cheng Luo, Ke Wan, Junjie Hu
Abstract
Looped Transformers reduce parameter count by repeatedly applying shared blocks, but parameter sharing alone does not determine how the results of repeated computation are reused. We take the depth-memory view of residual connections and analyze which representation is stored after each block application and how later reads weight it. A full block output contains both its input and its new update, so weighting that output also reweights the history already carried by the input. Reading individual updates instead, with the shared stack's input kept on a separate path, gives separate controls over input strength, total update weight, and allocation across updates. The Loopback Transformer implements these controls: geometric decay sets the total update weight and supplies a recency prior, and attention learns how to allocate that weight. On ClimbMix, Loopback reaches lower validation loss than standard Transformer baselines with 40-75% of their Transformer parameters (excluding token embeddings and the output head) at reference scales from 191M to 3B, with training tokens and executed depth matched. It also has higher mean accuracy over thirteen downstream tasks at 1.4B and 3B. At 191M, 374M, and 778M, it has the lowest validation loss and the highest thirteen-task mean among the standard Transformer and seven looped residual designs.
Create a lesson
Metadata
- Comments
- 31 pages, 9 figures. Code: https://github.com/yancyou/Loopback ; Project page: https://yancyou.github.io/Loopback_page/
Related papers
DuoMI: Dual Mutual Information Regularization for Expert Reuse in Looped Transformers
Shared title terminologycs.LGXinlai Kang, Zhenhe Wu, Haoyu Wang et al.
Towards interpreting any residual stream direction by scaling activation inversion
Shared title terminologycs.LGCeleste De Schamphelaere, Juan J. Vazquez, Ari Spiesberger et al.
Scaling Looped MoE Language Models under Matched Budgets: Information Flow and Parameter Allocation
Shared title terminologycs.LGShipeng Bai, Jiayu Qin, Hong Liu et al.
Quaternion-Tucker ZigZag Networks: Halving Transformer Backbone Parameters and Enabling Exact 2D Zero-Loss Continual Scaling
Shared title terminologycs.LGShubham Barmase
Correlation-Aware Evidential Fusion for Trusted Multi-View Classification
Shared title terminologycs.LGTianyang Wang, Mengchi Zuo, Cai Xu et al.
Looped Models are Fast Multi-Token Predictors
Shared title terminologycs.LGAyhan Suleymanzade, Sean McLeish, Sehoon Kim et al.