alphaFeedback
PDF

WorksComputer Science

INTRA: Interleaved Non-contiguous Token spaRse Attention

Publication details
License
CC BY 4.0
Status
Published
AI contributions
  • Generative AI assistants
View details
Ancillary data
1 code link
View
Abstract · v1

Transformers achieve strong performance across modalities but are bottlenecked by the quadratic cost of attention. Sparse attention can reduce this cost, but effective sparsity must preserve useful long-range communication and map well to GPU hardware. We introduce INTRA–Interleaved Non-contiguous Token spaRse Attention–a hardware-aware static sparse attention design based on a relay-communication view under Computational Query Set (CQS) constraints. Rather than directly covering all token-to-token interactions within each sparse layer, INTRA uses complementary sparse groups to provide short mediated communication paths across layers. Scatter forms relay groups that sample broadly across local neighborhoods, while Gather reconnects these groups in subsequent layers. Under a partition model, this structure guides CQS-compatible sparse patterns with global reachability. Our CQS-aware FlashAttention-style kernel computes structured indices at runtime, loads selected non-contiguous tokens, and packs them densely for computation. On an A100, INTRA achieves a 1.53×1.53\times speedup in 2K2K FLUX.1-dev generation, with better measured image quality than evaluated CLEAR configurations after LoRA self-distillation. On LLaMA-3.1-8B, it improves long-context prefill efficiency with strong teacher-forced retrieval performance under matched LoRA adaptation. Attention-only benchmarks further show up to 8.4×8.4\times and 10.4×10.4\times speedups over MoBA and density-constrained NSA, respectively. Code is available at https://github.com/NovTi/INTRA.

Review conversation

Reviews are not available for this work yet.