Abstract
Kascade is a training-free sparse attention method designed to accelerate long-context Large Language Model (LLM) inference. By identifying critical "Top-k" tokens in select anchor layers and reusing these indices across subsequent layers, Kascade achieves up to 4.1x speedup in decode attention while maintaining high accuracy on complex reasoning tasks. Evaluation on benchmarks like AIME-24 demonstrates that Kascade significantly outperforms existing sparse attention heuristics by leveraging cross-layer attention stability and head-aware remapping.
Introduction
As Large Language Models (LLMs) are increasingly deployed for Retrieval-Augmented Generation (RAG) and complex reasoning, context windows have expanded significantly. However, this expansion introduces a heavy "attention tax." In the prefill phase, computation scales quadratically ($O(n^2)$) with context length, while in the decode phase, attention becomes a critical memory-bandwidth bottleneck.
Existing sparse attention solutions often suffer from two primary issues: accuracy loss due to simple heuristics (like sliding windows) missing "heavy hitter" tokens, and implementation overhead where dynamic sparsity patterns fail to map efficiently to modern GPU hardware like the Nvidia H100. Kascade addresses these challenges with a hardware-friendly "compute-and-reuse" strategy.
Methods
Kascade is built on the observation that attention is naturally sparse and that the identity of important tokens remains remarkably stable across adjacent layers.
Compute-and-Reuse Strategy
The algorithm designates a small subset of layers as Anchor Layers, which perform full, exact attention to identify the "Top-k" most important keys. Subsequent Reuse Layers skip the expensive Top-k search and simply inherit the indices found by the preceding anchor layer. To optimize this process, Kascade uses a dynamic programming approach to select anchor layers that maximize cross-layer similarity based on a small development set.
Head-Aware Remapping and Layer 0
Because different attention heads may focus on different tokens, Kascade employs Head-Aware Remapping. Instead of a 1:1 mapping, heads in reuse layers are mapped to the most similar heads in anchor layers. Additionally, the authors identified a "Layer 0 Exception": the first layer typically has a flatter attention distribution. Kascade always performs full dense attention on Layer 0 to preserve overall model accuracy.
Hardware Implementation
Kascade is implemented using TileLang, a tiled programming model optimized for H100 GPUs. It utilizes a multi-pass kernel for anchor layers that performs "Post-Softmax pooling." This ensures the sparsity pattern is determined by actual token importance after the softmax operation, which is significantly more robust than pre-softmax heuristics for GPU execution.
Results
Kascade was evaluated using Llama-3.1-8B, Qwen3-8B, and DeepSeek-R1-Distill-Llama-8B across benchmarks including LongBench and AIME-24.
Performance and Accuracy
Kascade achieves up to 4.1x speedup in decode attention and 2.2x speedup in prefill attention compared to FlashAttention-3. On the difficult AIME-24 math benchmark, Kascade (at 10% Top-k) achieved 47.92% accuracy, nearly matching the dense baseline of 50.42%. This significantly outperforms other training-free methods like Quest (7.5%) and LessIsMore (36.25%).
Ablation Insights
Ablation studies confirm that head remapping is essential for maintaining accuracy at high sparsity levels. Furthermore, the post-softmax pooling strategy allows for efficient tiling without sacrificing the quality of token selection, enabling real-world speedups on modern hardware.
Conclusion
Kascade provides a practical, training-free path to long-context LLM inference. While it requires a small calibration set for anchor selection and does not currently reduce the memory footprint of the KV cache, its ability to maintain reasoning accuracy while providing substantial hardware speedups makes it a compelling solution for modern LLM deployments. Future work may explore interactions with models explicitly trained for sparsity.
Summary updated