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
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
Related papers
Distilling Model-Inherent Reasoning Circuit for Large Language Models
Shared title terminologycs.CLWenshui Luo, Jialiang Tang, Jie Yang et al.
Distilling Language Knowledge Across Generative Processes
Shared title terminologycs.CLYangtian Zhang, Yizhe Zhang, Hanqing Zeng et al.
UnCommit: Unlearning Overcommitment to Reduce Hallucinations in Large Language Models
Shared title terminologycs.CLVy Nguyen, Ziqi Xu, Jeffrey Chan et al.
PreLat: Prefill States as Latent Messages Between Model Families
Shared title terminologycs.CLZhen Lei, Jingyang He, Xin Shu et al.
Cognitive-Biometric Recognition from Language Usage: A Feasibility Study
Shared title terminologycs.CLNeeti Pokhriyal, Kshitij Tayal, Ifeoma Nwogu et al.
Not All Evidence Is Equal: Source-Sensitive Calibration in Large Language Models
Shared title terminologycs.CLSercan Karakaş, Yusuf Şimşek