NVIDIA engineers mapped how sparse-attention indexers behave on GPUs using a production FP8 kernel. Sparse attention limits each query to selected prior tokens, but its indexer still scans the full context, so the work shifts rather than disappears. At a 128,000-token context, the post reports the indexer and Top-k selection consuming 47% of a DeepSeek V3.2 prefill layer.
The measurements show several concrete optimizations. Fusing Top-k selection into the indexer avoids writing and rereading a full logits matrix, while reusing the previous decoding step’s selection as an initial guess accelerated Top-k by 2.1 to 2.4 times. A reduced-precision epilogue and accumulation produced up to a 1.45-times indexer speedup in a tested configuration.
The results are NVIDIA-authored microbenchmarks and design measurements, not an independent end-to-end application comparison. Benefits depend on model architecture, kernel implementation and hardware, but the post links open implementations in TensorRT-LLM and FlashInfer that make the techniques inspectable and reusable.
Source record: Brightwire summarized and evaluated this development from the linked primary material. Read the original for complete context.
Read at NVIDIA Technical Blog