Skip to content
English

Switch theme

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

In latest · #334 Added on 2026-11-10

One-line takeaway

A structure-aware kernel enables efficient, exact relative-position attention with significant speed and memory gains in long-sequence settings.

通过结构感知的核方法,将相对位置注意力高效集成到融合计算中,显著提升长序列下的推理速度和内存效率。

Key points

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.

  • Introduces structure-aware kernels for exact relative-position attention with reduced memory and compute overhead.
  • Uses offset-aware tiling and selective computation to avoid redundant indexing and unnecessary operations.
  • Achieves 1.8–6.4× speedup in forward pass and up to 21× in backward pass on 8K-token sequences.
  • Reduces peak memory usage by up to 128×, enabling efficient long-context transcription tasks.

Written only from the official arXiv abstract by an open-source model, then checked automatically (every number and name must appear in the abstract). The paper is authoritative.

24HF upvotes
–GitHub stars
0Citations (Semantic Scholar)
33.8Buzz score

Read on arXiv PDF Hugging Face discussion

Related papers

About this data

Metadata from the arXiv API (verified); upvotes from Hugging Face Daily Papers; citations from Semantic Scholar. Last refreshed 2026-11-30.

The takeaway is written by AIMap from the abstract; the abstract itself is not reproduced — read the original.

Data updated: Latest AI papers(UTC+8)