NVIDIA published an NVFP4 attention optimization guide on November 25, 2026, explaining how to keep RTX Blackwell Tensor Cores busier without allocating a second full attention-score buffer. The optimization has been merged into FlashInfer’s main branch, so developers can move from the document to integration work now.
The target is SM120, the architecture identified in the guide for NVIDIA’s RTX PRO 6000 Blackwell. NVIDIA reports up to a 1.64× improvement in core-kernel latency and up to a 15.34% reduction in end-to-end latency in selected workloads from Reactor, a serving platform for video, robotics, and world models.
The useful part is the implementation detail. NVIDIA’s register-recycling guide explains how splitting attention-score storage into smaller reusable slots allows work from adjacent tiles to overlap. Adopting it still requires an architecture-specific integration and a latency-and-quality comparison with BF16.
Why NVFP4 Helps Attention on SM120
NVIDIA’s RTX Blackwell SM120 has a different Tensor Core architecture from NVIDIA’s Hopper and Blackwell data center GPUs, so their attention pipelines cannot transfer directly. The guide identifies BF16 attention in the video-generation workloads it discusses as primarily limited by matrix multiply-accumulate operations, or MMA.
That distinction matters because attention contains several stages with different hardware demands:
| Stage | Computation | Purpose |
|---|---|---|
| Query-key multiplication | QKᵀ | Calculates attention scores |
| Softmax and quantization | Converts scores into attention weights and packs them | Prepares weights for the next multiplication |
| Weight-value multiplication | PV | Combines value vectors using attention weights |
NVIDIA contrasts the RTX workload’s MMA bottleneck with the substantial softmax bottleneck on Blackwell data center GPUs. An optimization aimed at accelerating softmax cannot, by itself, solve a workload dominated by matrix multiplication.
NVFP4 provides hardware-accelerated 4-bit matrix multiplication with higher Tensor Core throughput than BF16. But faster multiplication alone leaves a scheduling problem: Tensor Cores can still sit idle while other instructions prepare their next inputs.
The SageAttention3 kernel described in the guide uses NVFP4 for both QK and PV. Its tiled computation accumulates unnormalized softmax weights, with final normalization applied after accumulation across tiles.
Scaling Is Part of the Accuracy Strategy
SageAttention3 uses two-level scaling for the attention weights before NVFP4 quantization. NVIDIA explains that softmax values occupy a narrow range between zero and one, which can underuse NVFP4’s dynamic range and degrade accuracy.
NVFP4 quantization produces both a 4-bit data tensor and an FP8 scaling tensor. Normalizing the weights before quantization helps use the available numeric range more effectively.
The practical implication is that developers should evaluate the complete attention path, including its scaling behavior. Replacing a BF16 multiplication with a low-precision operation is not an equivalent implementation of the documented method.
How Register Recycling Overlaps Attention Work
NVIDIA’s SM120 NVFP4 optimization splits each N128 attention-score tile into two N64 register slots, then reuses those registers after their contents have been consumed. Here, N128 and N64 describe tile widths along the attention kernel’s N dimension, not numeric precision.
The guide describes a SageAttention3 cooperative thread array with four producer warps and eight consumer warps. In the original sequence, consumers perform QK, softmax, probability quantization, and PV for each N128 tile. Tensor Core activity drops while consumers handle softmax, scaling, and quantization.
Register recycling changes when storage becomes available:
- Split score storage. Two N64 slots hold the work associated with an N128 score tile.
- Consume and pack scores. Softmax-derived weights are quantized into NVFP4.
- Reclaim released registers. Score registers whose contents are no longer needed become available for reuse.
- Start subsequent work earlier. The next tile’s
QKcomputation overlaps with remaining softmax andPVwork from the current tile.
The optimization therefore changes the lifetime of intermediate data and the schedule of dependent operations. It avoids requiring a second full score buffer to create that overlap.
That is the consequential engineering detail: the kernel gains scheduling freedom by releasing storage earlier. Faster NVFP4 arithmetic creates the opportunity; register recycling helps prevent surrounding work from wasting it. This explains why a low-precision kernel still needs architecture-specific scheduling to deliver its potential throughput.
How to Use the Merged FlashInfer Code
FlashInfer’s main branch contains the optimized kernel, according to NVIDIA’s November 25 guide. NVIDIA’s stated adoption path is to clone main with its submodules, follow the source-installation instructions, and integrate the SM120 NVFP4 attention API into supported layers.
The documented starting point is a source build. A main-branch merge should not be treated as confirmation that every packaged FlashInfer release includes the change.
A practical integration sequence is:
- Confirm the target GPU. The guide addresses RTX Blackwell SM120, with reported results on RTX PRO 6000 Blackwell.
- Clone FlashInfer main with submodules. Follow the repository links and installation guidance supplied by NVIDIA’s guide.
- Record the checked-out revision. Pinning the commit makes later comparisons easier to interpret as main changes.
- Build from source using FlashInfer’s instructions.
- Integrate the SM120 NVFP4 attention API into supported attention layers.
- Keep a selectable BF16 path for comparison and fallback during evaluation.
Recording the revision and retaining a switchable baseline are reproducibility recommendations, not additional NVIDIA API requirements. The available evidence does not establish an exact function signature, dependency-version matrix, or complete compatibility list, so those details should come from the linked implementation and installation documentation.
For teams already exploring world-model deployment, Zeniteq’s coverage of NVIDIA’s Cosmos workflow guide provides application context. This update concerns a lower-level question: how supported attention layers execute on RTX Blackwell.
What the NVIDIA and Reactor Benchmarks Show
NVIDIA reports improvements from the optimized NVFP4 kernel on RTX PRO 6000 Blackwell, while Reactor reports production-serving gains across selected world-model workloads. These are vendor- and partner-reported results, not independent measurements.
| Reported result | Maximum improvement | Scope |
|---|---|---|
| Core-kernel latency improvement | 1.64× | Optimized NVFP4 attention kernel |
| End-to-end inference latency reduction | 15.34% | Selected Reactor workloads |
| Workloads named in the guide | LongLive, Helios, OmniDreams, Cosmos 3 Nano | Workload-specific results |
Reactor integrated the kernel into its production serving stack, according to NVIDIA. The guide’s results vary by workload, so the maxima should not become an expectation for every model or input shape.
The two headline figures also measure different things. A 1.64× latency speedup corresponds mathematically to about 39% less time for the measured operation, calculated as 1 − 1/1.64. It does not mean a 64% reduction in complete request latency.
End-to-end inference includes work outside the optimized attention kernel. Even a substantial kernel improvement can produce a smaller overall reduction when other operations consume much of the request time. The published maxima should not be combined to infer attention’s share of execution, because the supplied evidence does not establish that they describe the same run.
The practical decision is therefore workload-dependent: profile how much time the supported attention path consumes, then measure whether replacing it improves the complete request. The 1.64× figure is not evidence that every NVFP4-versus-BF16 comparison will deliver that speedup.
How to Compare NVFP4 With BF16
NVIDIA’s SM120 NVFP4 guide explicitly recommends comparing end-to-end latency and output quality against BF16. A useful evaluation should keep the model workload stable while changing the supported attention implementation.
The following comparison plan is an engineering recommendation based on that requirement, not a reproduced NVIDIA benchmark harness:
| Test area | Keep consistent | Record |
|---|---|---|
| Workload | Model, inputs, sequence lengths, batch size, generation settings | Exact test cases and configuration |
| Environment | GPU, software stack, serving configuration | Hardware and dependency versions |
| Kernel timing | Attention shapes and timing boundaries | Attention-kernel latency |
| Request timing | Request boundaries and concurrency | End-to-end latency |
| Output quality | Inputs and task-specific evaluation criteria | Quality changes against BF16 |
Warm up both paths before collecting steady-state measurements. For generated outputs, preserve seeds where the model supports them, and evaluate quality using criteria appropriate to the actual task. A video-generation service and a robotics workload need different acceptance tests.
Measure kernel and end-to-end latency separately. If the kernel improves but request latency barely moves, profiling can show whether other work now dominates. If quality changes exceed the application’s tolerance, the speed improvement alone is insufficient grounds for switching.
Finally, test representative workload shapes instead of one favorable input. The documented variation across workloads makes this essential: the adoption decision should rest on the latency and quality of the service being deployed.
Frequently Asked Questions
3 questions
1What Is NVFP4, and Why Does It Help Attention?
NVFP4 enables hardware-accelerated 4-bit matrix multiplication on NVIDIA RTX Blackwell. NVIDIA’s guide uses it for both query-key and attention-weight-value multiplication. Its higher Tensor Core throughput can help MMA-bound attention, while scaling and register recycling address numeric-range use and scheduling overhead.
2Is the Optimized Kernel Already in FlashInfer?
Yes. NVIDIA says the optimization has been merged into FlashInfer main. The guide directs developers to clone main with submodules, follow the source-installation instructions, and integrate the SM120 NVFP4 attention API into supported layers. That confirms main-branch availability, not inclusion in every packaged release.
3How Much Faster Will It Be Than BF16?
NVIDIA recommends testing the SM120 NVFP4 path against BF16 on the target workload. The guide reports up to a 1.64× core-kernel latency improvement and up to 15.34% lower end-to-end latency in selected Reactor workloads, but those figures do not establish a universal NVFP4-over-BF16 speedup.