稳定性意味着冗余:Delta注意力选择性停止用于高效长上下文预填充
Stability Implies Redundancy: Delta Attention Selective Halting for Efficient Long-Context Prefilling
AI总结:
针对长上下文场景中预填充计算成本高的问题,提出一种无需训练的Delta注意力选择性停止策略(DASH),通过监控自注意力层更新动态来停止稳定令牌的处理,从而在不牺牲模型准确性和硬件效率的前提下实现预填充加速。
摘要:
预填充计算成本在长上下文设置中对大型语言模型(LLMs)和大型多模态模型(LMMs)构成了显著瓶颈。虽然令牌剪枝减少了序列长度,但先前的方法依赖于启发式规则,这些规则与FlashAttention等硬件高效内核不兼容。在这项工作中,我们观察到令牌会向 extit{语义固定点}演化,使得进一步处理变得冗余。为此,我们引入了Delta注意力选择性停止(DASH),这是一种无需训练的策略,通过监控自注意力机制的逐层更新动态来选择性停止已稳定的令牌。大量评估证实,DASH在语言和视觉基准测试中具有泛化能力,在保持模型准确性和硬件效率的同时,实现了显著的预填充加速。代码将在https://github.com/verach3n/DASH.git发布。
英文摘要:
Prefilling computational costs pose a significant bottleneck for Large Language Models (LLMs) and Large Multimodal Models (LMMs) in long-context settings. While token pruning reduces sequence length, prior methods rely on heuristics that break compatibility with hardware-efficient kernels like FlashAttention. In this work, we observe that tokens evolve toward \textit{semantic fixing points}, making further processing redundant. To this end, we introduce Delta Attention Selective Halting (DASH), a training-free policy that monitors the layer-wise update dynamics of the self-attention mechanism to selectively halt stabilized tokens. Extensive evaluation confirms that DASH generalizes across language and vision benchmarks, delivering significant prefill speedups while preserving model accuracy and hardware efficiency. Code will be released at https://github.com/verach3n/DASH.git.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。