arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.10650cs.CLcs.AI
收藏

动态线性注意力

Dynamic Linear Attention

The Ohio State University(俄亥俄州立大学);University of Michigan(密歇根大学);ByteDance Seed(字节跳动Seed)

Xin Wang, Hui Shen, Boyuan Zheng, Xueshen Liu, Minkyoung Cho, Zhongwei Wan, Zesen Zhao, Zhuoqing Mao, Shen Yan, Mi Zhang

AI总结:

提出DLA框架,通过信息感知动态状态合并和容量受限内存建模,解决多状态线性注意力中固定合并策略导致的错误累积问题,在16个数据集上超越现有方法。

摘要:

大型语言模型(LLMs)对长上下文的可扩展性从根本上受限于标准注意力的二次复杂度,这促使采用具有次二次成本(sub-quadratic cost)的线性注意力机制。为了在长上下文下提高表示能力,近期方法以多状态方式组织内存。然而,现有的多状态线性注意力方法依赖于固定的状态合并策略,无法适应动态变化的令牌重要性,不可逆地模糊了关键令牌,并在长序列上导致严重的错误累积。为了解决这一限制,我们提出了DLA,一种用于多状态线性注意力的动态内存建模框架。DLA引入了(i)信息感知动态状态合并,它基于令牌级别的信息变化自适应地确定状态边界,在语义转换周围保留高分辨率表示,同时积极总结稳定区域;以及(ii)容量受限内存建模,它通过选择性地合并相邻的低信息状态来维护一个固定大小、按时间顺序排列的状态缓存,以最小的信息损失控制内存增长。我们在两种不同的线性注意力模型上预训练DLA,并在三个类别的16个数据集上进行评估。实验结果表明DLA优于现有最先进方法。

英文摘要:

The scalability of Large Language Models (LLMs) to long contexts is fundamentally constrained by the quadratic complexity of standard attention, motivating the adoption of linear attention mechanisms with sub-quadratic cost. To improve representation capacity under long contexts, recent approaches organize memory in a multi-state manner. However, existing multi-state linear attention methods rely on fixed state merging policies that cannot adapt to dynamically varying token importance, irreversibly obscuring critical tokens and causing severe error accumulation over long sequences. To address this limitation, we propose DLA, a dynamic memory modeling framework for multi-state linear attention. DLA introduces (i) Information-Aware Dynamic State Merging, which adaptively determines state boundaries based on token-level information variation, preserving high-resolution representations around semantic transitions while aggressively summarizing stable regions, and (ii) Capacity-Bounded Memory Modeling, which maintains a fixed-size, chronologically ordered state cache by selectively merging adjacent low-information states to control memory growth with minimal information loss. We pre-train DLA on two different linear attention models and evaluate on 16 datasets across three categories. Experimental results demonstrate the superiority of DLA over state-of-the-art.

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

↑