paper-with-me

Papers

Stabilizing Extrapolation in Looped Transformers via Learned Stochastic Stopping

2026-06-29 · Hsun-Yu Kuo, El Mahdi Chayti, Patrik Reizinger, Wieland Brendel, Martin Jaggi arxiv

Looped Transformers, which repeatedly apply a shared transformer block, are an architecturally natural fit for variable-length algorithmic tasks. Although they can exhibit strong length generalization beyond the length of training sequences, this behavior is brittle, yielding high out-of-distribution (OOD) variance, even across well-performing in-distribution solutions. We trace this variance to the spurious correlation in simple algorithmic tasks between sequence length and number of loops. Introducing stochasticity into the number of loops during training sharply reduces OOD variance and stabilizes predictions across inference-time loop counts. To improve upon heuristic randomization schemes, we further analyze RL-Halting as a learned stochastic schedule and find that it generally improves the accuracy-stability trade-off. Across binary addition, Dyck-1, Unique Set, and Copy, learned stochastic stopping often improves this trade-off but can also stabilize a suboptimal computation. Our work suggests that "when to stop" should be treated as a training-time design choice, not merely an inference-time computation-allocation rule.

📄 PDF Abstract BibTeX arXiv:2606.29983

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

To CoT or To Loop? A Formal Comparison Between Chain-of-Thought and Looped Transformers

2025-05-25 · Kevin Xu, Issei Sato

Chain-of-Thought (CoT) and Looped Transformers have been shown to empirically improve performance on reasoning tasks and to theoretically enhance expressivity by recursively increasing the number of computational steps. …

Sparse Layers are Critical to Scaling Looped Language Models

2026-05-09 · Ryan Lee, Jacob Biloki, Edward J. Hu, Jonathan May arxiv

Looped language models repeat a set of transformer layers through depth, reducing memory costs and providing natural early-exit points at loop boundaries. However, looped models do not scale as favorably as standard tran…

On Expressive Power of Looped Transformers: Theoretical Analysis and Enhancement via Timestep Encoding

2024-10-02 · Kevin Xu, Issei Sato

Looped Transformers provide advantages in parameter efficiency, computational capabilities, and generalization for reasoning tasks. However, their expressive power regarding function approximation remains underexplored. …

Simply Stabilizing the Loop via Fully Looped Transformer

2026-05-11 · Rao Fu, Zixuan Yang, Jiankun Zhang, Jing Ma 외 arxiv

Scaling model performance typically requires increasing model size. Looped Transformer offers a compelling alternative by iteratively reusing the same Transformer blocks, trading additional computation for improved perfo…

SpiralFormer: Looped Transformers Can Learn Hierarchical Dependencies via Multi-Resolution Recursion

2026-02-12 · Chengting Yu, Xiaobo Shu, Yadao Wang, Yizhen Zhang 외 arxiv

Recursive (looped) Transformers decouple computational depth from parameter depth by repeatedly applying shared layers, providing an explicit architectural primitive for iterative refinement and latent reasoning. However…