Token Sparse Attention: Efficient Long-Context Inference with Interleaved Token Selection
Abstract
Lay Summary
Modern AI assistants are increasingly asked to process very long documents, but the core computation inside these models grows dramatically with text length, creating a fundamental bottleneck. Existing methods address this by skipping text regions in fixed patterns or permanently discarding words deemed unimportant early on, but word importance shifts across layers and varies across different aspects of meaning the model tracks simultaneously. We propose Token Sparse Attention, which selects only the most relevant words at each step, processes that reduced set, and restores the full text before the next step. This reversible design lets the model continuously reconsider which words matter, rather than committing to early decisions it cannot undo. Our method plugs into existing acceleration techniques without modifying them, providing additional speed gains on top. Experiments on long document benchmarks show substantial speedups at very long contexts with less than 1\% accuracy loss.