arXiv 2611.01182 · cs.LG · 2026-10-31
Fast and Exact Relative-Position Attention via Structure-Aware Kernels
Delyan Boychev, Ivo Petrov, Dimitar I. Dimitrov
Institute for Computer Science, Artificial intelligence and Technology
在最新榜 #334 本站收录于 2026-11-10
一句话要点
通过结构感知的核方法,将相对位置注意力高效集成到融合计算中,显著提升长序列下的推理速度和内存效率。
A structure-aware kernel enables efficient, exact relative-position attention with significant speed and memory gains in long-sequence settings.
要点
- 相对位置注意力因需成对偏移计算导致计算与内存开销大,难以在长序列中高效部署;
- 提出基于偏移感知分块的结构化核方法,避免冗余索引和内存访问,实现精确且高效的计算;
- 在8K-token序列上,前向和反向传播分别提速1.8-6.4倍(2.0-21倍)并降低峰值内存使用2.9-128倍(1.4-54倍);
- 方法兼容多种相对位置机制,提供可直接替换的硬件高效实现,支持端到端长上下文语音转录。
English overview
The paper presents an exact, efficient implementation of relative-position attention that integrates additive offset terms into FlashAttention-style tiled computation. It uses offset-aware tiling, selective key-query product computation, and gradient sharding to reduce memory and compute overhead. Evaluated across multiple mechanisms, it achieves significant speedups and memory reductions on long sequences, enabling practical deployment in long-context transformer models.
只根据 arXiv 官方摘要,由开源模型整理,经数字/专名自动核对(必须在摘要中出现),以论文原文为准。
阅读 arXiv 原文 PDF Hugging Face 讨论
相关论文
数据说明
元数据来自 arXiv API(已核实);点赞来自 Hugging Face 每日论文;引用来自 Semantic Scholar。最近刷新 2026-11-30。
要点由本站根据摘要自写,不转载摘要原文,请阅读原文。