Reproduce “Learning to Extrapolate in Depth with Looped Transformers” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Huitao Yang, Jianhao Huang, Zixuan Wang, Baharan Mirzasoleiman

The authors analyze a shared linear-attention block reused beyond its training depth for graph connectivity. Extra loops propagate connectivity farther, but the learned update can also create false connections. Trained for three loops on four-vertex paths, the block exactly labels connectivity on two disjoint 16-vertex paths at six loops. This finite useful window applies only to the paper’s simplified model.

Key insights

  • Training balances preserving component-separation information against reducing residual propagation error; deeper training moves the learned update closer to preserving graph-specific information.
  • Successful extrapolation can occupy a finite window: too few loops leave information unpropagated, while too many can spuriously join distinct components.
  • Theoretical benefits of greater training depth may be difficult to realize in practice, since deeper models can be harder to optimize under a fixed compute budget.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.