Researchers at Nvidia have developed a novel strategy to coach giant language fashions (LLMs) in 4-bit quantized format whereas sustaining their stability and accuracy on the stage of high-precision fashions. Their method, NVFP4, makes it attainable to coach fashions that not solely outperform different main 4-bit codecs however match the efficiency of the bigger 8-bit FP8 format, all whereas utilizing half the reminiscence and a fraction of the compute.
The success of NVFP4 exhibits that enterprises can proceed to chop inference prices by working leaner fashions that match the efficiency of bigger ones. It additionally hints at a future the place the price of coaching LLMs will drop to some extent the place many extra organizations can prepare their very own bespoke fashions from scratch moderately than simply fine-tuning present ones.
The quantization problem
Mannequin quantization is a way used to cut back the computational and reminiscence prices of working and coaching AI fashions. It really works by changing the mannequin's parameters, or weights, from high-precision codecs like 16- and 32-bit floating level (BF16 and FP32) to lower-precision codecs. The important thing problem of quantization is to cut back the scale of the mannequin whereas preserving as a lot of its data and capabilities as attainable.
Lately, 8-bit floating level codecs (FP8) have grow to be a well-liked business commonplace, providing a very good steadiness between efficiency and effectivity. They considerably decrease the computational value and reminiscence demand for LLM coaching with out a main drop in accuracy.
The following logical step is 4-bit floating level (FP4), which guarantees to halve reminiscence utilization once more and additional increase efficiency on superior {hardware}. Nevertheless, this transition has been difficult. Present 4-bit codecs, corresponding to MXFP4, usually wrestle to keep up the identical stage of accuracy as their 8-bit counterparts, forcing a tough trade-off between value and efficiency.
How NVFP4 works
NVFP4 overcomes the steadiness and accuracy challenges of different FP4 strategies via a better design and a focused coaching methodology. A key problem with 4-bit precision is its extraordinarily restricted vary: It might probably solely characterize 16 distinct values. When changing from a high-precision format, outlier values can distort the complete dataset, harming the mannequin's accuracy. NVFP4 makes use of a extra refined, multi-level scaling strategy that higher handles these outliers, permitting for a "more precise and accurate representation of tensor values during training," in accordance with Nvidia.
Past the format, the researchers introduce a 4-bit coaching recipe that achieves accuracy corresponding to FP8. A central part is their “mixed-precision strategy.” As a substitute of changing the complete mannequin to NVFP4, the vast majority of layers are quantized whereas a small fraction of numerically delicate layers are saved in a higher-precision format like BF16. This preserves stability the place it issues most. The methodology additionally adjusts how gradients are calculated throughout backpropagation — or the mannequin's studying part — to cut back biases that may accumulate from low-precision arithmetic.
NVFP4 in observe
To check their strategy, the Nvidia crew educated a strong 12-billion-parameter hybrid Mamba-Transformer mannequin on a large 10 trillion tokens. They then in contrast its efficiency immediately towards a baseline mannequin educated within the extensively standard FP8 format. The outcomes confirmed that the NVFP4 mannequin's coaching loss and downstream process accuracy intently tracked the FP8 model all through the complete course of.
The efficiency held throughout a variety of domains, together with knowledge-intensive reasoning, arithmetic and commonsense duties, with solely a slight drop-off in coding benchmarks in late coaching.
"This marks, to our data, the primary profitable demonstration of coaching billion-parameter language fashions with 4-bit precision over a multi-trillion-token horizon, laying the muse for quicker and extra environment friendly coaching of future frontier fashions,” the researchers write.
In accordance with Nvidia's director of product for AI and knowledge heart GPUs NvidiaShar Narasimhan, in observe, NVFP4’s 4-bit precision format permits builders and companies to coach and deploy AI fashions with almost the identical accuracy as conventional 8-bit codecs.
“By training model weights directly in 4-bit format while preserving accuracy, it empowers developers to experiment with new architectures, iterate faster and uncover insights without being bottlenecked by resource constraints,” he instructed VentureBeat.
In distinction, FP8 (whereas already a leap ahead from FP16) nonetheless imposes limits on mannequin measurement and inference efficiency resulting from increased reminiscence and bandwidth calls for. “NVFP4 breaks that ceiling, offering equivalent quality with dramatically greater headroom for growth and experimentation,” Narasimhan stated.
When in comparison with the choice 4-bit format, MXFP4, the advantages of NVFP4 grow to be even clearer. In an experiment with an 8-billion-parameter mannequin, NVFP4 converged to a greater loss rating than MXFP4. To achieve the identical stage of efficiency because the NVFP4 mannequin, the MXFP4 mannequin needed to be educated on 36% extra knowledge, a substantial enhance in coaching time and value.
Along with making pretraining extra environment friendly, NVFP4 additionally redefines what’s attainable. “Showing that 4-bit precision can preserve model quality at scale opens the door to a future where highly specialized models can be trained from scratch by mid-sized enterprises or startups, not just hyperscalers,” Narasimhan stated, including that, over time, we will anticipate a shift from creating normal function LLMs fashions to “a diverse ecosystem of custom, high-performance models built by a broader range of innovators.”
Past pre-training
Though the paper focuses on some great benefits of NVFP4 throughout pretraining, its impression extends to inference, as properly.
“Models trained on NVFP4 can not only deliver faster inference and higher throughput but shorten the time required for AI factories to achieve ROI — accelerating the cycle from model development to real-world deployment,” Narasimhan stated.
As a result of these fashions are smaller and extra environment friendly, they unlock new potentialities for serving complicated, high-quality responses in actual time, even in token-intensive, agentic functions, with out elevating power and compute prices.
Narasimhan stated he appears towards a way forward for mannequin effectivity that isn’t solely about pushing precision decrease, however constructing smarter techniques.
“There are many opportunities to expand research into lower precisions as well as modifying architectures to address the components that increasingly dominate compute in large-scale models,” he stated. “These areas are rich with opportunity, especially as we move toward agentic systems that demand high throughput, low latency and adaptive reasoning. NVFP4 proves that precision can be optimized without compromising quality, and it sets the stage for a new era of intelligent, efficient AI design.”

