MoTA: Moment-Tilted Attention for Looped Transformers
Long Qian, Bingke Zhu, Yu Li, Xiaomian Kang, Jiajun Zhang, Yingying Chen, Jinqiao Wang
Abstract
Looped Transformers increase the computational depth of language models by repeatedly applying shared layers. However, standard looped Transformers rely on hidden-state updates to guide subsequent attention reads, leaving the next retrieval goal implicit. In this paper, we introduce Moment-Tilted Attention (MoTA), which uses the same attention weights to retrieve content and write a compact target for the next loop. To guide the next read, MoTA uses soft moment matching to move the attention-weighted mean of learned source features toward the target while preserving proximity to the original attention distribution. The resulting update uses source covariance to determine the correction direction and the range of projected source scores to set a closed-form step size. We further establish a descent guarantee for the dual objective. Experiments across four model sizes demonstrate consistent improvements in aggregate pretraining performance over standard looped Transformers. The gains extend to mathematical knowledge after lightweight adaptation, with further improvements in mathematical problem solving, scientific question answering, and analytical reasoning at larger model scales after mathematical midtraining.
Create a lesson
Related papers
DLA: Decomposed Latent Attention for Looped Language Models
Shared title terminologycs.CLZhenhe Wu, Weihua He, Xinlai Kang et al.
Breaking the KV Cache Bottleneck in Looped Transformers with Shared Token Latents
Shared title terminologycs.CLDehong Zheng, Tong Zhu, Yunkai Chai et al.
Rectifying Latent Dynamics inside Looped Transformers
Shared title terminologycs.CLJizhihui Liu, Mingyue Guo, Jinpeng Wang et al.
A Hands-On Introduction to Modern Decoder-Only Transformers
Shared title terminologycs.CLYang He
Native Compressed Attention: Trainable Attention with Non-Uniform KV Compression
Shared title terminologycs.CLYaosheng Fu
What Survives a Loop? A Shared Decision Model for Encoders and Decoders
Shared title terminologycs.CLYixin Peng, Stefan Decker