Skip to content

DLA: Decomposed Latent Attention for Looped Language Models

Zhenhe Wu, Weihua He, Xinlai Kang, Yaping Jin, Haoyu Wang, Hanlin Xu, Weizhe Lin, Yonghan Dong, Yihang Luo, Xianjie Wu, Yaoyuan Wang, Jie Hu, Hanting Chen

cs.CL

Abstract

Looped language models increase test-time computation by repeatedly applying shared Transformer layers, but storing key-value (KV) states from multiple loops introduces substantial inference memory overhead. We introduce Decomposed Latent Attention (DLA), which stores the full-dimensional mean across loops and compresses the remaining variation into low-dimensional contrast codes. Each loop reconstructs its historical KV states on demand. To address the discrepancy between parallel training and token-sequential inference, we further introduce DLA-SW, a sliding-window variant that retains exact KV states for recent tokens and completed compressed codes for distant history. When the training block fits within the window, block-parallel training preserves the cache dependencies of tokenwise decoding on the same prefix. DLA and DLA-SW are trained with the task loss only, without additional reconstruction supervision. We evaluate DLA and DLA-SW on Ouro-1.4B-Thinking and Huginn-3.5B across MATH-500, MBPP+, and QASPER using fixed cache hyperparameters. Averaged over these six settings, DLA reduces resident memory by 23.5% relative to LLA, while DLA-SW reduces by 15.2% relative to HLA. Across all twelve paired comparisons, the DLA variants improve task scores by 2.29 points on average.

Create a lesson