Kascade: A Practical Sparse Attention Method for Long-Context LLM Inference
Dhruv Deshmukh, Saurabh Goyal, Nipun Kwatra, Ramachandran Ramjee
TL;DR
Kascade tackles the latency bottleneck of attention in long-context LLM inference by introducing a training-free sparse attention method that computes exact Top-k indices on a small set of automatically chosen anchor layers and reuses them in subsequent layers. It leverages cross-layer similarity and head-aware remapping, along with tile-based pooling and efficient TileLang kernels, to accelerate both prefill and decode without retraining. The approach yields up to 4.1x decode and 2.2x prefill speedups on H100 while preserving near-dense accuracy on LongBench and AIME-24, outperforming other training-free sparse methods at similar sparsity. By automating anchor-layer selection and incorporating per-head Top-k reuse, Kascade offers a practical, deployable solution for accelerating long-context inference across diverse models.
Abstract
Attention is the dominant source of latency during long-context LLM inference, an increasingly popular workload with reasoning models and RAG. We propose Kascade, a training-free sparse attention method that leverages known observations such as 1) post-softmax attention is intrinsically sparse, and 2) the identity of high-weight keys is stable across nearby layers. Kascade computes exact Top-k indices in a small set of anchor layers, then reuses those indices in intermediate reuse layers. The anchor layers are selected algorithmically, via a dynamic-programming objective that maximizes cross-layer similarity over a development set, allowing easy deployment across models. The method incorporates efficient implementation constraints (e.g. tile-level operations), across both prefill and decode attention. The Top-k selection and reuse in Kascade is head-aware and we show in our experiments that this is critical for high accuracy. Kascade achieves up to 4.1x speedup in decode attention and 2.2x speedup in prefill attention over FlashAttention-3 baseline on H100 GPUs while closely matching dense attention accuracy on long-context benchmarks such as LongBench and AIME-24.
