ReTopK Accelerates Long-Context Sparse Attention via Query Similarity
July 31, 2026
ReTopK is a training-free method that accelerates Top-K sparse attention by reusing historical retrieval decisions. It uses a bounded cache of query-support pairs to identify overlapping attention supports, reducing selector cost from linear to sub-linear relative to context length.
HOW THIS AFFECTS YOU
●
builderYou can achieve more efficient long-context decoding without retraining models.
●
researcherYou can study the overlap of attention supports across similar queries to optimize sparse attention.