{"id":189036,"date":"2025-10-04T07:20:34","date_gmt":"2025-10-04T07:20:34","guid":{"rendered":"https:\/\/www.newsbeep.com\/ca\/189036\/"},"modified":"2025-10-04T07:20:34","modified_gmt":"2025-10-04T07:20:34","slug":"nvidia-details-efficiency-of-the-nvfp4-format-for-llm-training-new-paper-reveals-how-nvfp4-offers-benefits-over-fp8-and-bf16","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/ca\/189036\/","title":{"rendered":"Nvidia details efficiency of the NVFP4 format for LLM training \u2014 new paper reveals how NVFP4 offers benefits over FP8 and BF16"},"content":{"rendered":"<p id=\"6ea45069-7009-4b29-9607-d2314b67651a\">When Nvidia <a data-analytics-id=\"inline-link\" href=\"https:\/\/www.tomshardware.com\/pc-components\/gpus\/nvidia-shares-blackwell-ultras-secrets-nvfp4-boost-detailed-and-pcie-6-0-support\" data-before-rewrite-localise=\"https:\/\/www.tomshardware.com\/pc-components\/gpus\/nvidia-shares-blackwell-ultras-secrets-nvfp4-boost-detailed-and-pcie-6-0-support\" rel=\"nofollow noopener\" target=\"_blank\">began to disclose details about its new 4-bit floating point format<\/a> \u2014 NVFP4 \u2014 earlier this year, it stated that while it is mainly designed for inference, it could also be used for AI training without significant loss in accuracy. Recently, the company released <a data-analytics-id=\"inline-link\" href=\"https:\/\/arxiv.org\/pdf\/2509.25149\" target=\"_blank\" data-url=\"https:\/\/arxiv.org\/pdf\/2509.25149\" referrerpolicy=\"no-referrer-when-downgrade\" data-hl-processed=\"none\" rel=\"nofollow noopener\">a paper<\/a> describing how it managed to train a 12-billion-parameter model on a 10-trillion-token dataset using the NVFP4 format, with several supporting techniques, and achieved results that closely match those of an FP8 baseline.<\/p>\n<p class=\"vanilla-image-block\" style=\"padding-top:51.10%;\">\n<p><img decoding=\"async\" src=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/8UGELfkDj4GoAWjhMDpZWR.png\" alt=\"Nvidia\"   loading=\"lazy\" data-new-v2-image=\"true\" data-original-mos=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/8UGELfkDj4GoAWjhMDpZWR.png\" data-pin-media=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/8UGELfkDj4GoAWjhMDpZWR.png\"\/>\n<\/p>\n<p>(Image credit: Nvidia)<\/p>\n<p id=\"7ed3690e-15af-4354-b8d4-474615d706a7\" class=\"paywall\" aria-hidden=\"true\">Nvidia&#8217;s achievement marks the first known example of stable, large-scale training with FP4 precision and shows that NVFP4 can substantially reduce memory usage and computational cost without degrading model quality.<\/p>\n<p><a id=\"elk-97b6ebed-95fc-4dad-a404-7090948bd8b2\" class=\"paywall\" aria-hidden=\"true\" href=\"\" data-url=\"\" target=\"_blank\" referrerpolicy=\"no-referrer-when-downgrade\" data-hl-processed=\"none\"\/>Blackwell and NVFP4: A match made in heaven<\/p>\n<p id=\"1d42d858-6ad6-4974-a6b3-4fa337559c75\">Nvidia&#8217;s NVFP4 is a purpose-built 4-bit floating point format developed for the Blackwell GPU architecture that is aimed at improving efficiency of both training and inference tasks. It combines highly compact data representation with a multi-level scaling strategy, achieving accuracy close to BF16 while substantially lowering performance and memory requirements.<\/p>\n<p>You may like<\/p>\n<p class=\"vanilla-image-block\" style=\"padding-top:62.13%;\">\n<p><img decoding=\"async\" src=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/CFcoEtASQWr42RGDU3YeWR.png\" alt=\"Nvidia\"   loading=\"lazy\" data-new-v2-image=\"true\" data-original-mos=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/CFcoEtASQWr42RGDU3YeWR.png\" data-pin-media=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/CFcoEtASQWr42RGDU3YeWR.png\"\/>\n<\/p>\n<p>(Image credit: Nvidia)<\/p>\n<p id=\"eb40539e-4e78-41b5-a306-9766cdc42348\">Structurally, NVFP4 adheres to the same E2M1 layout used in standard FP4 formats \u2014consisting of 1 sign bit, 2 exponent bits, and 1 mantissa bit \u2014 giving it the ability to encode values approximately between \u22126 and +6. To overcome the inherently limited dynamic range of 4-bit formats, Nvidia introduces a hierarchical scaling mechanism: every 16-element block of FP4 values is assigned a dedicated scale factor stored in FP8 using the E4M3 layout, and in parallel, an FP32 scale factor is applied globally across the full tensor. Nvidia claims that this two-tier system keeps numerical noise low without losing performance efficiency that a 4-bit format has to offer.<\/p>\n<p><a id=\"elk-seasonal\" class=\"paywall\" aria-hidden=\"true\" href=\"\" data-url=\"\" target=\"_blank\" referrerpolicy=\"no-referrer-when-downgrade\" data-hl-processed=\"none\"\/><\/p>\n<p id=\"eb40539e-4e78-41b5-a306-9766cdc42348-1\">Nvidia&#8217;s latest Blackwell GPUs feature tensor cores capable of performing general matrix multiplication (GEMM) in narrow formats such as MXFP8, MXFP6, MXFP4, and NVFP4. Blackwell tensor cores process GEMMs by first applying a scale factor to each block of input values, carrying out the dot-product computations in high precision, then accumulating the results with FP32-level accuracy, just the way NVFP4 is meant to be used.<\/p>\n<p>These cores also support built-in rounding methods, including round-to-nearest-even and stochastic rounding, which are important for ensuring stable training when using low-precision formats like FP4. Nvidia says that NVFP4 operations achieve a 4X speed boost over BF16 on GB200 and up to 6X on GB300. Additionally, memory consumption is reduced by roughly half compared to FP8.<\/p>\n<p><a id=\"elk-0d86b71f-01d9-4f44-9f29-28d07f37782a\" class=\"paywall\" aria-hidden=\"true\" href=\"\" data-url=\"\" target=\"_blank\" referrerpolicy=\"no-referrer-when-downgrade\" data-hl-processed=\"none\"\/>But can it be used for training?<\/p>\n<p id=\"ed337c66-a2d6-4b16-bc26-2b047a1e7f23\">Model setup and training approach<\/p>\n<p>To evaluate NVFP4&#8217;s efficiency, Nvidia trained a 12-billion-parameter large language model based on a hybrid Mamba-Transformer architecture. This model architecture came from the Nemotron-H family and included a combination of Mamba-2 blocks, standard feed-forward layers, and self-attention modules. The training followed a warmup-stable-decay schedule: the learning rate remained constant through the first 80% of the run and was gradually reduced during the final 20%.<\/p>\n<p>Note that NVFP4 can be applied to models like LLaMA, OpenAI&#8217;s GPT, and other Transformer-based LLMs; it is certainly not specific to the Mamba-Transformer architecture used in the demonstration. However, adapting it may require tuning the number of BF16 layers, validating block scaling choices, and performing quantization-aware training, if the model wasn\u2019t originally designed for low-precision formats.<\/p>\n<p>Each training sequence contained 8192 tokens, and the batch size was set to 736. The dataset used for training was a diverse blend of content types, including general internet text, programming code, mathematical problems, multilingual corpora, academic papers, and synthetic instruction-tuned samples. The blending was carried out in three phases to ensure balanced exposure to various data types over the course of training.<\/p>\n<p>You may like<\/p>\n<p>Accuracy compared to FP8<\/p>\n<p>Throughout training, the model trained with NVFP4 tracked the FP8 baseline very closely in terms of validation loss. For most of the run, the gap in loss between NVFP4 and FP8 remained under 1%, rising just slightly above 1.5% near the end when the learning rate began to decay, according to Nvidia. This small increase in loss did not translate to a measurable drop in task accuracy, however.<\/p>\n<p class=\"vanilla-image-block\" style=\"padding-top:60.52%;\">\n<p><img decoding=\"async\" src=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/SPCCTbb2d58UPUPzuxoZWR.png\" alt=\"Nvidia\"   loading=\"lazy\" data-new-v2-image=\"true\" data-original-mos=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/SPCCTbb2d58UPUPzuxoZWR.png\" data-pin-media=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/SPCCTbb2d58UPUPzuxoZWR.png\"\/>\n<\/p>\n<p>(Image credit: Nvidia)<\/p>\n<p id=\"8b7af60f-1dd6-4ccc-919b-6f98c4e70309\">NVFP4 achieved comparable results to FP8 across a wide range of downstream tasks, including common-sense reasoning, mathematics, knowledge-heavy questions, and multilingual <a data-analytics-id=\"inline-link\" href=\"https:\/\/www.tomshardware.com\/tag\/benchmark\" data-auto-tag-linker=\"true\" data-before-rewrite-localise=\"https:\/\/www.tomshardware.com\/tag\/benchmark\" rel=\"nofollow noopener\" target=\"_blank\">benchmarks<\/a>. For instance, NVFP4 reached 62.58% on the MMLU-Pro 5-shot benchmark, nearly matching the FP8 result of 62.62%. The only notable accuracy drop occurred in code-related tasks such as MBPP+ and HumanEval+, where NVFP4 lagged behind by a few percentage points. However, this inconsistency was attributed to normal checkpoint variability rather than a systemic flaw in the format.<\/p>\n<p class=\"vanilla-image-block\" style=\"padding-top:36.23%;\">\n<p><img decoding=\"async\" src=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/av8r7q2jeKs7maNec68iWR.png\" alt=\"Nvidia\"   loading=\"lazy\" data-new-v2-image=\"true\" data-original-mos=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/av8r7q2jeKs7maNec68iWR.png\" data-pin-media=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/av8r7q2jeKs7maNec68iWR.png\"\/>\n<\/p>\n<p>(Image credit: Nvidia)<a id=\"elk-81622e40-d717-4c13-b46e-664f0ce27b56\" class=\"paywall\" aria-hidden=\"true\" href=\"\" data-url=\"\" target=\"_blank\" referrerpolicy=\"no-referrer-when-downgrade\" data-hl-processed=\"none\"\/>Techniques for stable 4-bit training <\/p>\n<p id=\"3895c64a-da50-46ce-a228-210760618878\">Training large models with FP4 precision requires several adjustments to ensure stability and accuracy. One of the key strategies is keeping about 15% of the linear layers in BF16, mainly in the final blocks of the model. Using NVFP4 across all layers led to divergence, but Nvidia found that even retaining just the last four blocks in BF16 was enough for stable training, which implies that the BF16 footprint could be reduced further.<\/p>\n<p>To maintain consistency between forward and backward passes (which use transposed weights), Nvidia used 2D block scaling for weights: weights were grouped into 16\u00d716 blocks with a shared scale factor applied in both directions. For activations and gradients, finer 1\u00d716 block scaling was used, which improved quantization accuracy without introducing instability.<\/p>\n<p>To deal with outliers in gradients, Nvidia applied Random Hadamard Transforms to weight gradient (Wgrad) inputs to transform redistributed large values more evenly and make them easier to represent in FP4. However, such transforms were not applied to other tensor types, and a 16\u00d716 matrix with a shared random sign vector was used across all layers.<\/p>\n<p>Lastly, hardware-accelerated stochastic rounding was used for gradient quantization. This helped avoid rounding bias that can build up during training. Also, Nvidia applied it only to gradients, as using it on forward activations increased noise and degraded training quality.<\/p>\n<p><a id=\"elk-5773a784-c542-4dbd-9b70-ae7da614001d\" class=\"paywall\" aria-hidden=\"true\" href=\"\" data-url=\"\" target=\"_blank\" referrerpolicy=\"no-referrer-when-downgrade\" data-hl-processed=\"none\"\/>Late-stage precision switching<\/p>\n<p id=\"646f342f-6104-4ab7-a50d-1a8edfe61968\">In scenarios where minimizing final loss is crucial, Nvidia tested switching from NVFP4 to BF16 late in training. A switch made at 8.2 trillion tokens significantly reduced the gap in final loss. Switching only the forward path to BF16 had nearly the same effect as switching both forward and backward passes. To contrast, switching at 10 trillion tokens\u2014near the end of training\u2014had minimal impact due to the already low learning rate. These results suggest that limited use of high precision near the end of training can improve accuracy while preserving most of the efficiency benefits of FP4.<\/p>\n<p><a id=\"elk-db89710c-d5ea-4298-a195-1eb317372cfe\" class=\"paywall\" aria-hidden=\"true\" href=\"\" data-url=\"\" target=\"_blank\" referrerpolicy=\"no-referrer-when-downgrade\" data-hl-processed=\"none\"\/>NVFP4 vs. MXFP4<\/p>\n<p id=\"32ea1dfc-da1e-4968-9b42-6809b489723b\">To compare NVFP4 against the more common MXFP4 format defined by the Open Compute Project (and supported by Huawei&#8217;s <a data-analytics-id=\"inline-link\" href=\"https:\/\/www.tomshardware.com\/tech-industry\/artificial-intelligence\/huawei-unveils-atlas-950-supercluster-touting-1-fp4-zettaflops-performance-for-ai-inference-and-524-fp8-exaflops-for-ai-training-features-hundreds-of-thousands-of-950dt-apus\" data-before-rewrite-localise=\"https:\/\/www.tomshardware.com\/tech-industry\/artificial-intelligence\/huawei-unveils-atlas-950-supercluster-touting-1-fp4-zettaflops-performance-for-ai-inference-and-524-fp8-exaflops-for-ai-training-features-hundreds-of-thousands-of-950dt-apus\" rel=\"nofollow noopener\" target=\"_blank\">upcoming Ascend 950-series processors<\/a> and onwards), Nvidia trained an 8-billion-parameter model using both formats on the same 1-trillion-token dataset. NVFP4 achieved a final loss approximately 1.5% above the BF16 reference, while MXFP4\u2019s final loss was around 2.5% above. To match NVFP4\u2019s final loss, the MXFP4 model needed 1.36 trillion tokens, or 36% more data.<\/p>\n<p class=\"vanilla-image-block\" style=\"padding-top:43.23%;\">\n<p><img decoding=\"async\" src=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/QCvqARXnCZNHXNvqh57dXR.png\" alt=\"Nvidia\"   loading=\"lazy\" data-new-v2-image=\"true\" data-original-mos=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/QCvqARXnCZNHXNvqh57dXR.png\" data-pin-media=\"https:\/\/www.newsbeep.com\/ca\/wp-content\/uploads\/2025\/10\/QCvqARXnCZNHXNvqh57dXR.png\"\/>\n<\/p>\n<p>(Image credit: Nvidia)<a id=\"elk-94961c87-cf22-42fc-8ad7-4dcc06274ab5\" class=\"paywall\" aria-hidden=\"true\" href=\"\" data-url=\"\" target=\"_blank\" referrerpolicy=\"no-referrer-when-downgrade\" data-hl-processed=\"none\"\/>AI training gets NVFP4 boon<\/p>\n<p id=\"ae79b6ab-605c-4d06-994b-4ab60c370f6d\">Nvidia&#8217;s NVFP4 format enables accurate, stable, and efficient training of large-scale LLMs using 4-bit precision, according to the company&#8217;s own testing. By combining a more precise quantization format with techniques like mixed precision, consistent scaling, stochastic rounding, and outlier handling, the company successfully trained a frontier-class 12B model on a 10T-token set.<\/p>\n<p>When compared to the MXFP4 format, NVFP4 outperforms it in both convergence and data efficiency.<\/p>\n<p>Nvidia&#8217;s future work will focus on further reducing the number of high-precision layers, extending NVFP4 to more model components, and evaluating its effectiveness in larger models and alternative architectures.<\/p>\n<p>Follow <a data-analytics-id=\"inline-link\" href=\"https:\/\/news.google.com\/publications\/CAAqLAgKIiZDQklTRmdnTWFoSUtFSFJ2YlhOb1lYSmtkMkZ5WlM1amIyMG9BQVAB\" target=\"_blank\" data-url=\"https:\/\/news.google.com\/publications\/CAAqLAgKIiZDQklTRmdnTWFoSUtFSFJ2YlhOb1lYSmtkMkZ5WlM1amIyMG9BQVAB\" referrerpolicy=\"no-referrer-when-downgrade\" data-hl-processed=\"none\" rel=\"nofollow noopener\">Tom&#8217;s Hardware on Google News<\/a>, or <a data-analytics-id=\"inline-link\" href=\"https:\/\/google.com\/preferences\/source?q=\" target=\"_blank\" data-url=\"https:\/\/google.com\/preferences\/source?q=\" referrerpolicy=\"no-referrer-when-downgrade\" data-hl-processed=\"none\" rel=\"nofollow noopener\">add us as a preferred source<\/a>, to get our up-to-date news, analysis, and reviews in your feeds. Make sure to click the Follow button.<\/p>\n","protected":false},"excerpt":{"rendered":"When Nvidia began to disclose details about its new 4-bit floating point format \u2014 NVFP4 \u2014 earlier this&hellip;\n","protected":false},"author":2,"featured_media":189037,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[62,276,277,49,48,61],"class_list":["post-189036","post","type-post","status-publish","format-standard","has-post-thumbnail","category-artificial-intelligence","tag-ai","tag-artificial-intelligence","tag-artificialintelligence","tag-ca","tag-canada","tag-technology"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/posts\/189036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/comments?post=189036"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/posts\/189036\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/media\/189037"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/media?parent=189036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/categories?post=189036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/ca\/wp-json\/wp\/v2\/tags?post=189036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}