Get the daily emailDaily email
  1. Home
  2. Research
  3. This story

Fast, exact relative-position attention kernels in the FlashAttention style

The paper presents an exact algorithm that folds additive relative-position terms into FlashAttention-style tiled computation using offset-aware tiling, shared relation products and sharded gradients. Its unified Triton implementation speeds up 8K-token…

Published Read the original

Ranked #10 of 28 on Monday, November 9

Fast, exact relative-position attention kernels in the FlashAttention style

Why it matters

Audio and other models that prefer relative-position attention over RoPE can now scale to long sequences efficiently.

What happened

1 min read

The paper presents an exact algorithm that folds additive relative-position terms into FlashAttention-style tiled computation using offset-aware tiling, shared relation products and sharded gradients. Its unified Triton implementation speeds up 8K-token forward passes 1.8-6.4x and backward passes up to 21x, cutting peak memory by up to 128x, and makes long-context transcription 1.8x faster.

inscraper analysis

Our analysis

This removes a real practical bottleneck and ships as a drop-in Triton kernel. Its main value is for speech and audio teams; RoPE-based LLMs are unaffected.

More in Research