DTS: Delta-Based Tile Scoring for Efficient Long-Context Sparse Attention
Emre Uğur, Jiawen Qi, Qinyu Chen
Abstract
Large language models (LLMs) increasingly need to process long documents and codebases, making long-context attention a major prefill bottleneck. Block sparse attention reduces computation by skipping unimportant blocks of the attention matrix, but scoring blocks accurately can itself be expensive. We propose Delta-Based Tile Scoring (DTS), a training-free, content-adaptive tile scoring method for sparse block attention. DTS selects query and key anchors according to local vector changes, using fewer representatives in redundant regions while retaining more detail in heterogeneous regions. To accelerate anchor selection, parallel delta packing partitions the query and key sequences into tile-aligned chunks and performs bounded local scans over these chunks concurrently. The selected tiles are then computed using the original query, key, and value vectors. On LLaMA-3.1-8B-Instruct, DTS keeps average RULER and LongBench scores within 0.10 percentage points of full attention, with RULER evaluated up to 128K tokens. At 128K tokens, DTS reduces measured scoring-pipeline latency by 38% compared with XAttention. On four NVIDIA H100 GPUs, it achieves a 3.3× prefill speedup over a PyTorch full-attention baseline using FlashAttention-2 at 512K tokens.
Create a lesson
Related papers
Auditing and Adapting kNNGuard for Long-Context Prompts
Shared title terminology · Niccolò Ronchetti
Turnout: Adaptive Attention Switching for Efficient Reasoning
Shared title terminology · Anna Kuzina, Mart van Baalen, Paul N. Whatmough et al.
Efficient VLA Reinforcement Learning via Subchunk Rollouts in Latent World Models
Shared title terminology · Nan Tang, Han-Tao Zhang, Jing-Cheng Pang et al.
BusemannFormer: Horospherical Self-Attention for Hyperbolic Graph Transformers
Shared title terminology · Youheng Yao, Ziyao Zeng, Wenbo Liao et al.
Dynamic Memory-enhanced Pattern Relevance Prediction for Long-tailed Graph Classification
Shared title terminology · Jiawei Chen, Wenjun Wang, Wei Yu et al.
Distillation with Errors: Sparse Unbiased Backpropagation for Knowledge Distillation
Shared title terminology · Yuyang Zhang, Yuxin Li