arXiv Machine Learning

Decoding Looped Transformers Better for (Almost) Free

The paper introduces LoopCD, a training‑free contrastive decoding framework that improves token selection in Loop‑Transformer models by comparing the final prediction with earlier recurrent passes. LoopCD operates either in logit space (LoopCD‑Logits) with a single extra output pass or in hidden‑state space (LoopCD‑Hidden) with no output overhead. Across multiple looped Transformer families, LoopCD yields significant performance gains—raising pass@1 scores on tasks such as AIME 2024 and HumanEval—while enabling a reduction in the number of recurrent loops and a corresponding decrease in inference FLOPs.

arXiv Computation and Language
Oct 27

LoopFold: Parallelizing Recurrent Depth in Looped Transformers

arXiv:2610.35556v1 Announce Type: new Abstract: Looped Transformers increase computation per token by repeatedly applying a shared backbone, offering a way to improve language modeling and downstream...

By Feichen Song, Boyi Zeng, Yiqin Hao, Shixiang Song, He Li, Yizhou Yang, Zitong Wang, Yifan Liu, Ziwei He, Zhouhan Lin
arXiv AI
Oct 7

Recurrent Looped Transformer

The Recurrent Looped Transformer (RLT) divides its layers into a parallel causal encoder and a recurrent decoder, allowing the computation path to grow with sequence length while keeping a fixed per-token cost. Experiments on six algorithmic tasks show that RLT outperforms a standard eight‑layer Transformer, achieving perfect generalization on parity up to 256 bits and high accuracy on swap‑based permutation tracking and modular arithmetic beyond training lengths. Ablation studies confirm that the recurrent feedback is essential for these gains, with chunked updates preserving performance on parity but reducing accuracy on permutation tracking.

By Yifan Zhang, Jichen Feng, Shihan Qin
arXiv AI
Nov 14

Rectified Looped Transformer

Rectified Looped Transformer (RLT) improves looped Transformers by redesigning feedback between loops with a linear interpolation schedule inspired by flow-based modeling. Each loop’s input is a blend of the current state and its prediction, which distributes state changes and keeps hidden-state norms bounded. Experiments show RLT achieves lower perplexity, greater robustness to perturbations, and more stable hidden-state trajectories without adding parameters or extra block evaluations.

By Musheng Li, Jiawei Zhang, Ziyuan Liu, Yuantao Gu
arXiv Machine Learning
6d ago

InfuseLoop: Cross-Trajectory Latent Injection for Scalable Parallel Looped Transformers

InfuseLoop introduces a cross‑trajectory latent injection mechanism for Parallel Looped Transformers (PLTs), allowing later prediction trajectories to inform earlier loops via lightweight attention residuals. This design keeps token‑parallel training and concurrent loop execution while adding only $O(Rd)$ hidden‑state storage. Experiments demonstrate that InfuseLoop removes training‑loss spikes, improves validation‑loss scaling up to eight loops, and yields significant perplexity and downstream accuracy gains with minimal decoding overhead.

By Zhaofeng Sun, Lanxiang Hu, Yu-Yang Qian, Jiaqi Leng, Yuanbo Yang, Chi Zhang, Youyou Lu, Peng Zhao, Hao Zhang
arXiv AI
Oct 16

LoopAhead: Speculating Ahead for Faster Decoding in Looped Language Models

LoopAhead is a speculative decoding framework designed for looped Transformers, which repeatedly apply the same Transformer layers to improve parameter efficiency. It introduces a lightweight lookahead drafter (LAD) that predicts multiple future tokens using early-loop states, while deeper-loop feedback determines which draft branches to continue or pause, and the full-depth model finalizes token decisions. This approach achieves up to 7.82× faster decoding than traditional autoregressive methods while maintaining the target model’s output distribution.

By Zixuan Liu, Nan Xue, Rui Bao, Yuhang Xu, Xiaofeng Cao, Jiangchao Yao, Zhiyong Chen
arXiv AI
Oct 31

How to Loop Your Transformer: Loop Scaling, Specialization, and Parallel Inference

The paper investigates how looping—reusing transformer weights to deepen models without adding parameters—affects performance under different constraints. Experiments on dense decoder‑only transformers up to 1 B parameters show that looping the full transformer yields best quality for a fixed parameter budget, while looping a middle block is preferable when training FLOPs are limited. Adding loop‑specific low‑rank adapters improves quality, but decoding slows linearly with loops; a parallel loop design that passes hidden states across token positions can mitigate this slowdown, though careful handling of token embeddings is needed to retain gains.

By Chanakya Ekbote, Artidoro Pagnoni, Devendra Singh Sachan, Shruti Bhosale, Mike Lewis, Maryam Fazel-Zarandi, Shashank Rajput, Sujan Kumar Gonugondla
arXiv Machine Learning
5d ago

LoopCache: Accelerating Long-Context Self-Speculative Decoding for Looped Transformers

LoopCache is a self‑speculative decoding framework designed for long‑context looped transformers. It introduces confidence‑guided dynamic draft updates that refine drafts across all intermediate loops, and a cyclic loop KV cache strategy that limits per‑step KV traffic to a single loop while still allowing lossless verification. Experiments demonstrate that LoopCache achieves average speedups of 10.25× over WaveFront Decoding and 14.56× over LoopSpec.

By Zizhuo Fu, Haochen Huang, Shengxuan Qiu, Linye Wei, Ziyu Tang, Runsheng Wang, Meng Li
arXiv Machine Learning
Aug 27

Gated Recurrent Transformers: Expressive Depth through Recurrent Modulation

The paper introduces Gated Recurrent Transformers, a depth‑sharing architecture that brackets a single shared core with fixed prelude and coda blocks and uses a lightweight projection and element‑wise update gate to modulate recurrent updates. This design allows functional specialization across recurrences while reducing memory footprint. Experiments show that, under equal FLOPs or parameter budgets, the recurrent model matches or surpasses deeper GPT‑2 Small baselines, achieving similar or better accuracy with fewer parameters and lower peak decoding memory.

By Amr Hegazy, Amr Alanwar, Mostafa Elhoushi