arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.22312cs.DCcs.ARcs.PF
收藏

猜测-验证-细化:基于数据的Blackwell上的稀疏注意力解码Top-K

Guess-Verify-Refine: Data-Aware Top-K for Sparse-Attention Decoding on Blackwell via Temporal Correlation

NVIDIA(英伟达)

Long Cheng, Ritchie Zhao, Timmy Liu, Mindy Li, Xianjie Qiao, Kefeng Duan, Yu-Jung Chen, Xiaoming Chen, Bita Darvish Rouhani, June Yang

AI总结:

本文提出Guess-Verify-Refine算法,通过利用解码步骤间的时序相关性,优化稀疏注意力解码中的Top-K选择,提升性能并保持精确性。

摘要:

稀疏注意力解码器依赖精确的Top-K选择来为每个查询标记选择最重要的键值条目。在长上下文LLM服务中,这一Top-K阶段每解码查询运行一次,即使索引器和注意力内核已经高度优化,仍成为显著的延迟瓶颈。本文提出Guess-Verify-Refine (GVR),一种针对NVIDIA Blackwell的稀疏注意力解码的数据感知精确Top-K算法。GVR利用连续解码步骤间的时序相关性:它使用前一步的Top-K作为预测信号,计算预索引统计信息,通过1-2次全局遍历缩小到有效阈值,通过无选票收集器验证候选,并在共享内存中完成精确选择。本文将这种行为与DeepSeek稀疏注意力(DSA)索引器分数的Toeplitz/RoPE结构联系起来,并在真实DeepSeek-V3.2工作负载上进行了验证,集成了TensorRT-LLM。GVR在生产radix-select内核上实现了平均1.88倍的单操作加速,每层每步最高可达2.42倍,同时保持位精确的Top-K输出。在受控的TEP8最小延迟部署中,它在100K上下文中将端到端TPOT提升高达7.52%,在更长的上下文中收益更大,在投机解码中收益虽小但仍为正。虽然目前在Blackwell上的TensorRT-LLM DSA堆栈中实现并验证,但相同原理可能扩展到具有解码阶段Top-K时间稳定性特性的稀疏注意力解码器。

英文摘要:

Sparse-attention decoders rely on exact Top-K selection to choose the most important key-value entries for each query token. In long-context LLM serving, this Top-K stage runs once per decode query and becomes a meaningful latency bottleneck even when the indexer and attention kernels are already highly optimized. We present \textbf{Guess-Verify-Refine (GVR)}, a data-aware exact Top-K algorithm for sparse-attention decoding on NVIDIA Blackwell. GVR exploits temporal correlation across consecutive decode steps: it uses the previous step's Top-K as a prediction signal, computes pre-indexed statistics, narrows to a valid threshold by secant-style counting in 1-2 global passes, verifies candidates with a ballot-free collector, and finishes exact selection in shared memory. We connect this behavior to the Toeplitz / RoPE structure of DeepSeek Sparse Attention (DSA) indexer scores and validate the design on real DeepSeek-V3.2 workloads integrated into TensorRT-LLM. GVR achieves an average \textbf{1.88x} single-operator speedup over the production radix-select kernel, with up to \textbf{2.42x} per layer per step, while preserving bit-exact Top-K outputs. In controlled TEP8 min-latency deployment, it improves end-to-end TPOT by up to \textbf{7.52%} at 100K context, with larger gains at longer contexts and smaller but still positive gains under speculative decoding. While implemented and validated in the current TensorRT-LLM DSA stack on Blackwell, the same principle may extend to sparse-attention decoders whose decode-phase Top-K exhibits temporal stability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑