arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.06274cs.LGcs.AI
收藏

Stem: 重新思考稀疏注意力中的因果信息流

Stem: Rethinking Causal Information Flow in Sparse Attention

tencent(腾讯);ustc(中国科学技术大学)

Lin Niu, Xin Luo, Linchuan Xie, Yifu Sun, Guanghua Yu, Jianchen Zhu, S Kevin Zhou

AI总结:

Stem通过位置依赖的top-k和输出感知度量,优化稀疏注意力机制,提升LLMs在长上下文处理中的效率与准确性。

摘要:

自注意力机制的二次计算复杂性仍然是扩展大型语言模型(LLMs)以处理长上下文的根本瓶颈,尤其是在预填充阶段。在本文中,我们从信息流的角度重新思考因果注意力机制。由于因果限制,初始位置的标记参与后续每个标记的聚合。然而,现有稀疏方法通常在每一层内对所有标记位置应用统一的top-k选择,忽略了因果架构中固有的标记信息累积依赖性。为了解决这个问题,我们提出了Stem,一种新型的可插拔稀疏模块,与信息流对齐。首先,Stem采用令牌位置衰减策略,在每一层中应用位置依赖的top-k,以保留初始令牌以维持递归依赖性。其次,为了保留信息丰富的令牌,Stem利用输出感知度量。它根据近似输出大小优先选择高影响令牌。广泛的评估表明,Stem在减少计算和预填充延迟的同时实现了更高的准确性。

英文摘要:

The quadratic computational complexity of self-attention remains a fundamental bottleneck for scaling Large Language Models (LLMs) to long contexts, particularly during the pre-filling phase. In this paper, we rethink the causal attention mechanism from the perspective of information flow. Due to causal constraints, tokens at initial positions participate in the aggregation of every subsequent token. However, existing sparse methods typically apply a uniform top-k selection across all token positions within a layer, ignoring the cumulative dependency of token information inherent in causal architectures. To address this, we propose Stem, a novel, plug-and-play sparsity module aligned with information flow. First, Stem employs the Token Position-Decay strategy, applying position-dependent top-k within each layer to retain initial tokens for recursive dependencies. Second, to preserve information-rich tokens, Stem utilizes the Output-Aware Metric. It prioritizes high-impact tokens based on approximate output magnitude. Extensive evaluations demonstrate that Stem achieves superior accuracy with reduced computation and pre-filling latency.

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

↑