跳到正文
HuggingFace Daily Papers(社區熱門論文)·· 19 天前AI 評分43

Loopback Transformer:邁向殘差循環 Transformer 的統一視角

Loopback Transformer: Towards a Unified View of Residual Looped Transformers

AI 導讀

Loopback Transformer 將殘差連接視為沿網絡深度運作的記憶,透過儲存區塊更新、幾何遺忘及內容相關注意力,重用先前計算。

正文

In this paper, we study how residual connections should retain and reuse information when the same Transformer blocks run repeatedly. Inspired by recurrent memory, we develop a unified view of residual connections as memory operating along network depth. The write–transport–read formulation lets us compare different residual designs through what they store, how they carry information forward, and how they retrieve it for subsequent computation.

Guided by this view, we introduce Loopback Transformer. Loopback stores individual block updates, uses geometric forgetting to progressively discount earlier passes, and learns content-dependent attention over the stored updates. This allows the model to retrieve useful information from earlier computation.

13e96ba0103625b69219978d829be3fd

At matched training tokens and executed depth, Loopback achieves lower validation loss and higher mean accuracy across 13 zero-shot tasks than Standard Transformers at both 1.4B and 3B, retaining only 68% and 75% of their Transformer parameters, respectively. At 3B, validation loss improves from 2.0005 to 1.9849, mean accuracy rises from 48.56% to 49.45%, and Loopback scores higher on 11 of 13 tasks. In our main comparisons at 191M, 374M, and 778M, it also achieves the lowest validation loss and highest thirteen-task mean among Standard and seven looped residual baselines. Parameter counts exclude token embeddings and the output head.

Our results highlight residual design as an important part of parameter-efficient modeling: sharing computation works better when the model also learns how to retain and reuse its outputs. We welcome feedback and discussion!

來源:HuggingFace Daily Papers(社區熱門論文) · huggingface.co