Metraipolis › archive › dc_91711b505f29

ATFlash: Per-RoPE-Wavelength Attention Windows for Compute/Memory-Efficient LLM Inference — arXiv:2608.02947

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.02947
License (as archived)
CC0-1.0
Archived
2026-10-31T12:31:19.052Z
SHA-256 of the archived text
c73bf3cb3a3cffc85d69b63a25f01953757692f7f89078b844a2db90885454a8
Stable URL of this page
https://metraipolis.com/documento/dc_91711b505f29

How to cite

ATFlash: Per-RoPE-Wavelength Attention Windows for Compute/Memory-Efficient LLM Inference — arXiv:2608.02947 — arXiv (en), https://arxiv.org/abs/2608.02947 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_91711b505f29 (Metraipolis archive dc_91711b505f29, sha256 c73bf3cb3a3cffc85d69b63a25f01953757692f7f89078b844a2db90885454a8)
BibTeX
@misc{dc91711b505f29,
  title = {ATFlash: Per-RoPE-Wavelength Attention Windows for Compute/Memory-Efficient LLM Inference — arXiv:2608.02947},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.02947},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_91711b505f29; sha256 c73bf3cb3a3cffc85d69b63a25f01953757692f7f89078b844a2db90885454a8},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.02947. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

The attention score with rotary position embeddings (RoPE) decomposes exactly into a sum over its 2D-rotation frequency pairs, and each pair's wavelength limits how far it can discriminate position. Aligned with this structure, we propose the per-RoPE-wavelength distance window: it prunes the query--key inner-product terms beyond a wavelength-proportional distance. Unlike a sliding window, every key remains reachable, at least through the low-frequency pairs. The reduction rate is input-independent, with a closed form logarithmic in the sequence length $N$, in contrast to dynamic-sparse methods like MInference. Such token-level selection is orthogonal to our frequency-level pruning. The window can therefore be applied on top of those methods. On Qwen2.5-0.5B and Llama-3.2-3B, the window prunes 37--48\% of the query--key inner-product terms within each model's native context length. Relative to full attention, the top-1 match rate stays at 96--98\% and the mean output-distribution KL at the $10^{-3}$-nat level on LongBench-v2 contexts. We examine absolute scores on long-context benchmarks such as RULER, OpenAI-MRCR, LongCodeQA, and $\infty$Bench: they are broadly preserved. We implement the window as a slice of the query--key contraction axis, leaving the online-softmax recurrences untouched, and port it with minimal diffs into the released FlashAttention-4 prefill and FlashInfer decode. On RTX PRO 6000 with Llama, both ports outpace stock with gains growing with context length, up to $1.29\times$ at 128K. End to end on Qwen2.5-7B-1M, with 57\% of the inner-product terms pruned, the speedup reaches $1.31\times$ at a 1M-token context.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-05 in cs.CL).
Categorie arXiv: Machine Learning (cs.LG) ; Computation and Language (cs.CL).
Pagina del lavoro: https://arxiv.org/abs/2608.02947 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-31T12:17:37.799Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-08-05?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).