Vibeleaderboard
← All Intel
Intel / article

How to Optimize NVFP4 Attention on NVIDIA RTX Blackwell Through Register Recycling

Source
developer.nvidia.com
Publisher
NVIDIA
Author
Atharva Joshi
Date
Why it matters

Splitting score tiles to reuse registers reduces Tensor Core idle time in NVFP4 attention, and the change is in FlashInfer main so you can adopt it for Blackwell inference.

Key takeaways · AI-distilled
  • NVIDIA says BF16 on RTX Blackwell (SM120) is bound by matrix multiplication rather than softmax, unlike data center Blackwell, so NVFP4's higher Tensor Core is the lever, while FlashAttention3 and 4 pipelines do not apply directly to SM120.
  • SageAttention3's kernel runs QK, softmax and , then PV serially for each N128 tile, leaving Tensor Cores idle during softmax, and its warps already occupy about 95.3% of the SM's registers, leaving little room for a second score tile.
  • The optimization splits each N128 score tile into two N64 register slots and reuses a slot's registers for the next tile's QK as soon as that half is quantized, overlapping adjacent tiles without allocating a second full score buffer.
  • Isolated kernel speedups on an RTX PRO 6000 Blackwell ranged from 1.17x to 1.64x; in Reactor's production serving, end-to-end fell about 15% on OmniDreams and 6.5 to 6.7% on LongLive, but only 1.1 to 1.8% on Helios and Cosmos 3 Nano.
  • The core optimization is merged into FlashInfer's main branch, and NVIDIA advises comparing end-to-end latency and output quality against a BF16 baseline when integrating the SM120 NVFP4 attention API.
Terms in this piece · Glossary
  • attention — The mechanism that lets a model weigh which earlier words matter for the word it's currently processing — the core operation of a transformer.
  • Latency — The time between asking for a result and having it, including the model's generation time, tool calls, retries and any queueing.
  • throughput — How much model output a provider can generate over time, commonly measured in output tokens per second.
  • quantization — Shrinking a model by storing its numbers less precisely — like rounding — so it runs faster and fits on smaller hardware, at a small quality cost.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source developer.nvidia.com
More from Atharva Joshi
Recommended reads