Lil: Less is Less When Applying Post-Training Sparse-Attention Algorithms in Long-Decode Stage
Junhao Hu, Fangze Li, Mingtao Xu, Feifan Meng, Shiju Zhao, Tiancheng Hu, Ting Peng, Anmin Liu, Wenrui Huang, Chenxu Liu, Ziyue Hua, Tao Xie
TL;DR
This work identifies a paradox in post-training sparse-attention for long-decode inference: while sparse attention speeds per-step computation, it often leads to longer, information-poor generations, a phenomenon termed Lil. It establishes an information-theoretic lens using LZ77 compression to quantify information content and demonstrates that information loss in sparse decoding causes redundant reconstruction. To address this, the authors propose Guardian, an early-stopping algorithm that halts decoding when information gain stagnates, achieving up to 90% token savings with minimal accuracy loss on reasoning benchmarks. The results suggest Guardian not only improves efficiency for sparse decoding but also generalizes to prolong CoT generation, offering practical benefits for scalable, long-context LLM applications.
Abstract
Large language models (LLMs) demonstrate strong capabilities across a wide range of complex tasks and are increasingly deployed at scale, placing significant demands on inference efficiency. Prior work typically decomposes inference into prefill and decode stages, with the decode stage dominating total latency. To reduce time and memory complexity in the decode stage, a line of work introduces sparse-attention algorithms. In this paper, we show, both empirically and theoretically, that sparse attention can paradoxically increase end-to-end complexity: information loss often induces significantly longer sequences, a phenomenon we term ``Less is Less'' (Lil). To mitigate the Lil problem, we propose an early-stopping algorithm that detects the threshold where information loss exceeds information gain during sparse decoding. Our early-stopping algorithm reduces token consumption by up to 90% with a marginal accuracy degradation of less than 2% across reasoning-intensive benchmarks.
