Reducing Memory Traffic in FP4 LLM Training

Chandra Sekhar Mummidi, Sandip KunduarXiv 2026

TL;DR

Training Large Language Models (LLMs) in ultra-low 4-bit precision (FP4) promises massive speedups, yet much of that potential is quietly wasted shuttling higher-precision intermediate numbers back and forth to GPU memory. This paper shows that these expensive memory detours aren't demanded by the math of FP4, just by how GPU kernels are traditionally sliced up. By re-architecting the backward pass to quantize gradients on the fly and keep running totals directly in fast GPU registers, the authors boost native FP4 training throughput by nearly 10% on NVIDIA Blackwell GPUs without changing a single bit of the accumulated math.

What Problem Does This Paper Address?

Modern GPUs like NVIDIA’s Blackwell natively crunch 4-bit floating-point numbers (FP4), drastically cutting the cost of the matrix multiplications (GEMMs) that dominate LLM training. However, during the backward pass—where the network learns from its mistakes—FP4’s tiny numerical range requires careful handling, forcing surrounding operations to stay in higher 16-bit (BF16) or 32-bit (FP32) precision.

Profiling NVIDIA’s standard Transformer Engine, the authors uncovered two major bottlenecks driving up slow global-memory (HBM) traffic:

  1. The Numerical Boundary: To squeeze gradients into NVFP4 without clipping or zeroing them out, Blackwell uses both local 16-element block scales and a global tensor-wide scale. Because no thread block knows the whole tensor's maximum value until every block finishes computing, the GPU writes the entire gradient out to global memory in BF16, scans it to find the maximum, and reads it back again to quantize it into FP4.
  2. The Kernel Boundary: During gradient accumulation across microbatches, weight gradients must be summed in FP32 to preserve precision. Because each microbatch runs as a separate GPU kernel, the massive FP32 running total is repeatedly evicted to global memory and reloaded for the next microbatch.

Methods

The authors eliminate these unnecessary round-trips to global memory by attacking both boundaries directly:

  • Producer-Local FP4 Quantization (Causal Scaling): Instead of waiting for the current tensor to finish so its global maximum can be found, the authors predict the global FP32 scale using historical running statistics from previous training steps. Because NVFP4 also computes fine-grained E4M3 scales for every 16-element block locally, those local scales naturally adapt and compensate if the historical global scale is slightly off. With the global scale known upfront, the gradient-producing kernel converts values directly to FP4 in registers—skipping the intermediate BF16 write and tensor-wide reduction entirely.
Comparison of baseline multi-pass gradient quantization versus single-pass producer-local FP4 preparation.
  • Register-Resident FP32 Accumulation: Rather than updating weight gradients after every microbatch, the system holds onto the compact FP4 inputs in memory for a group of microbatches—an accumulation window. A single persistent kernel then processes those microbatches sequentially while keeping the FP32 accumulator tile pinned inside ultra-fast on-chip registers, preserving the exact addition and rounding order of standard training.
Fig. 2. Kernel boundary Register-resident FP32 accumulation across microbatch GEMMs.

Datasets

For continued pretraining and validation evaluations on a pretrained Llama 3.2 3B model, the authors used the FineWeb-Edu dataset. No new benchmarks or datasets were introduced.

Key Insights and Ideas

  • Arithmetic boundaries don't have to be memory boundaries: Just because FP4 math requires global scaling and ordered FP32 summation doesn't mean intermediate values must touch global DRAM.
  • Local block scales forgive stale global scales: Even when the historical ("causal") outer FP32 scale differs substantially from the current tensor's true scale, NVFP4's local 16-element E4M3 block scales adjust on the fly, adding virtually zero extra GEMM error.
  • Breadth beats depth under memory limits: Deferring GEMMs requires extra GPU memory to hold waiting FP4 inputs. Under a fixed memory budget (~841 MiB), applying a shorter 2-microbatch window across all attention and MLP projections beats applying a longer 4-microbatch window to just the MLP projections—recovering 69% of the maximum possible step-time savings at roughly one-third the memory cost.
Training throughput gains across different accumulation-window configurations on Blackwell.

Key Results

  • Blackwell Speedups: On an NVIDIA RTX PRO 6000 Blackwell partition training Llama 3.2 3B, the approach cuts GPU kernel time by 9.28%, boosts CUDA Graph step throughput by 9.63%, and sustains a 9.7% throughput gain over 20 million tokens. Logical intermediate backward memory traffic drops from 128,333 MB per step down to 32,648 MB.
  • Bit-for-Bit Exactness & Perplexity: Register-resident FP32 accumulation matches the sequential baseline bit for bit across over 1.2 billion elements. Over 20M tokens, validation perplexity reaches 11.053, closely tracking the Transformer Engine NVFP4 reference (11.117).
  • AMD MI210 Emulation: Testing software-emulated MXFP4 (using BF16 GEMMs) on an AMD MI210, fused operand preparation yields a 30.9% end-to-end throughput improvement by eliminating extra quantization passes, though custom register-resident accumulation didn't beat AMD's highly tuned library BF16 GEMMs at the whole-step level.

Limitations and Future Work

  • FP4 vs. BF16 Gap: This work optimizes how fast FP4 runs, not the inherent numerical gap between FP4 and BF16 training—both optimized and reference NVFP4 runs still trail full BF16 validation perplexity, driven largely by forward-pass quantization.
  • Outlier Vulnerability in Causal Scaling: Relying on past steps to set the global FP32 scale works smoothly in stable runs, but a sudden gradient spike could clip values, while overly cautious margins could push E4M3 block scales into subnormal territory. Guaranteeing unconditional safety will require adaptive scaling or fallback mechanisms.

Summary updated

BibTeX
@misc{mummidi2026reducing,
  author = {Chandra Sekhar Mummidi and Sandip Kundu},
  title = {{Reducing Memory Traffic in FP4 LLM Training}},
  year = {2026},
  eprint = {2611.39032},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39032},
}
Figure