arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.03043cs.CLcs.AIcs.LG
收藏

Lil: 在长解码阶段应用后训练稀疏注意力算法时,少即是少

Lil: Less is Less When Applying Post-Training Sparse-Attention Algorithms in Long-Decode Stage

SCS, Peking University, Beijing, China(北京大学信息科学与技术学院,北京,中国);Key Lab of HCST (PKU), MOE, Beijing, China(高等教育出版社HCST重点实验室(PKU),北京,中国);State Key Laboratory for Novel Software Technology, Nanjing University, China(南京大学新型软件技术国家重点实验室,中国);Tencent, Shenzhen, China(腾讯,深圳,中国);Beijing Tongming Lake Information Technology Application Innovation Center, Beijing, China(北京 Tongming Lake 信息技术应用创新中心,北京,中国)

Junhao Hu, Fangze Li, Mingtao Xu, Feifan Meng, Shiju Zhao, Tiancheng Hu, Ting Peng, Anmin Liu, Wenrui Huang, Chenxu Liu, Ziyue Hua, Tao Xie

AI总结:

本文研究了在长解码阶段应用稀疏注意力算法时,信息丢失导致序列变长的问题,提出早停算法减少token消耗并降低精度损失。

摘要:

大型语言模型(LLMs)在广泛复杂任务中表现出强大的能力,并且正在大规模部署,这对推理效率提出了显著要求。先前的工作通常将推理分解为prefill和decode阶段,其中decode阶段主导总延迟。为了减少解码阶段的时间和内存复杂度,一系列工作引入了稀疏注意力算法。在本文中,我们通过实证和理论证明,稀疏注意力可能反常地增加端到端复杂度:信息丢失往往导致显著更长的序列,这种现象我们称为“Less is Less”(Lil)。为缓解Lil问题,我们提出了一种早停算法,该算法检测稀疏解码过程中信息损失超过信息增益的阈值。我们的早停算法在推理密集型基准上将token消耗减少了高达90%,同时精度损失低于2%。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑