面向格式感知的融合:加速 FP4 预训练

arXiv cs.LG 论文

摘要

提出 format-aware fusion 方法,将 FP4 量化中的 scale 计算、操作数打包以及反向状态保存与 GEMM 融合。在 Llama-3 8B 预训练中,最高可达 37.9K tokens/s/GPU;MXFP4 路线在训练损失终点略高于 bfloat16 的情况下,实现 37.2K tokens/s/GPU(86.3% MFU),显著超过 Transformer Engine 的 27.6K。

arXiv:2610.00053v1 Announce Type: new Abstract: Four-bit floating-point (FP4) Tensor Cores accelerate matrix multiplication, but scale computation, operand packing, layout construction, and saved backward state can erase the gain. We present \emph{format-aware fusion}, which co-designs each quantization producer with its scale domain and consumer layout for native \mxfp{}, global \nvfp{}, and cooperative-thread-array-local \nvfp{}. We evaluate Llama-3-family 8B pretraining through 160 billion tokens using bfloat16 output projections and compiled cross entropy. In matched same-accelerator probes, bfloat16 and Transformer Engine \nvfp{} reach 18.8K and 27.6K tokens/s/GPU, while our fastest custom route reaches 37.9K. \mxfp{} with row-gradient stochastic rounding and fixed-sign 32-value Hadamard weight-gradient preconditioning reaches 37.2K tokens/s/GPU (86.3\% bfloat16 model FLOP utilization) and ends 2.11\% above the raw bfloat16 training-loss endpoint. A Transformer Engine recipe with four final bfloat16 blocks ends 0.87\% above bfloat16 at 27.1K tokens/s/GPU. Downstream rankings differ from training-loss rankings, showing that FP4 outcomes depend jointly on scale contract, operand, and execution path.
查看原文
查看缓存全文

缓存时间: 2026/10/03 09:50

# Format-Aware Fusion for Fast FP4 Pretraining
Source: [https://arxiv.org/html/2610.00053](https://arxiv.org/html/2610.00053)
September 2026 © 2026 Robert Hu\. Original manuscript and figures licensed under[CC BY 4\.0](https://creativecommons.org/licenses/by/4.0/)\.

###### Abstract

Four\-bit floating\-point \(FP4\) Tensor Cores accelerate matrix multiplication, but scale computation, operand packing, layout construction, and saved backward state can erase the gain\. We present*format\-aware fusion*, which co\-designs each quantization producer with its scale domain and consumer layout for native MXFP4, global NVFP4, and cooperative\-thread\-array\-local NVFP4\. We evaluate Llama\-3\-family 8B pretraining through 160 billion tokens using bfloat16 output projections and compiled cross entropy\. In matched same\-accelerator probes, bfloat16 and Transformer Engine NVFP4 reach 18\.8K and 27\.6K tokens/s/GPU, while our fastest custom route reaches 37\.9K\. MXFP4 with row\-gradient stochastic rounding and fixed\-sign 32\-value Hadamard weight\-gradient preconditioning reaches 37\.2K tokens/s/GPU \(86\.3% bfloat16 model FLOP utilization\) and ends 2\.11% above the raw bfloat16 training\-loss endpoint\. A Transformer Engine recipe with four final bfloat16 blocks ends 0\.87% above bfloat16 at 27\.1K tokens/s/GPU\. Downstream rankings differ from training\-loss rankings, showing that FP4 outcomes depend jointly on scale contract, operand, and execution path\.

## 1Introduction

Four\-bit floating\-point \(FP4\) Tensor Cores accelerate general matrix multiplication \(GEMM\), but each training layer must also produce scales, pack values, build forward and backward layouts, and retain autograd state\. When separate kernels move bfloat16 \(BF16\) intermediates through high\-bandwidth memory \(HBM\), this surrounding work can erase the GEMM speedup\[[29](https://arxiv.org/html/2610.00053#bib.bib10)\]\.

We address this gap with*format\-aware fusion*: each producer completes the scale shared by its output values while emitting the packed layouts and saved state needed by the following matrix multiplications\. We use*route*to mean a complete numerical recipe and execution path, not only an FP4 datatype\. MXFP4 completes a local 32\-value scale, global NVFP4 waits for a tensor\-wide maximum, and cooperative\-thread\-array\-local \(CTA\-local\) NVFP4 completes two outer scales inside the tile that owns the matrix multiplication\. The profitable fusion boundary therefore differs by format\.

We evaluate the resulting paths in Llama\-3\-family 8B pretraining at sequence length 8,192 and global batch 512\. Same\-accelerator probes measure every route with a BF16 output projection and compiled cross entropy \(CE\), while long trajectories cover up to 160B tokens\. The fastest custom route reaches 37\.9K tokens/s/GPU\. The MXFP4 route with row\-gradient stochastic rounding \(SR\) and fixed\-sign 32\-value Hadamard \(H32\) weight\-gradient \(Wgrad\) preconditioning reaches 37\.2K tokens/s/GPU and ends 2\.11% above the raw BF16 endpoint\. The TE\-native and four\-final\-BF16\-block trajectories end 1\.34% and 0\.87% above raw BF16, respectively, at measured throughputs of 27\.6K and 27\.1K tokens/s/GPU\.

Table[1](https://arxiv.org/html/2610.00053#S2.T1)situates the implementation relative to established FP4 practice\. We contribute:

- •*Numerical parameterization\.*We specify the FP4 contract per operand: upward\-rounded MXFP4 scales for activations and gradients; an adaptive finer scale for32×3232\\times 32weight tiles; separate FP32 row\- and column\-tile scale factors for CTA\-local NVFP4; stochastic rounding only for the data\-gradient multiplication; and paired fixed\-sign 16\- or 32\-value Hadamard preconditioning only for the weight\-gradient multiplication\.
- •*Format\-aware fusion and native implementation\.*We implement custom MXFP4, custom global NVFP4, and CTA\-local NVFP4 producers that finish the scale calculation over the required group of values and emit the layouts and saved state required by forward and backward\. The MXFP4 and CTA\-local weight producers quantize once and emit both packed weight layouts in the same fused operation\. Custom global NVFP4 likewise integrates its shared16×1616\\times 16weight encoding and both packed layouts directly into the fused path\. Backward stages fuse optional Hadamard preconditioning with column quantization\. The same framework supports depth\- and operand\-wise hybrids\.
- •*End\-to\-end empirical evaluation\.*We implement and evaluate the custom pure and hybrid routes alongside BF16 and TE comparators\. The hybrid designs include depth\-wise format assignment and an operand\-wise assignment motivated by a data\-gradient error analysis using identical saved tensors\. The evidence comprises matched throughput probes, trajectories through 160B training tokens, checkpoint\-matched validation loss on a fixed external data stream, and downstream evaluation of the complete recipes\. We release the training and evaluation code, pinned kernel sources, complete recipe ledger, publication data, and figure builders at[https://github\.com/MrHuff/mfu\-fp4\-training](https://github.com/MrHuff/mfu-fp4-training); Appendix[C\.6](https://arxiv.org/html/2610.00053#A3.SS6)describes its reproducibility contract\.

## 2FP4 Contracts and Numerical Method

### 2\.1Related work

Low\-precision training builds on mixed\-precision accumulation and stochastic rounding\[[21](https://arxiv.org/html/2610.00053#bib.bib33),[27](https://arxiv.org/html/2610.00053#bib.bib1)\]\. Early 4\-bit systems combined integer weights and activations with specialized gradient formats\[[40](https://arxiv.org/html/2610.00053#bib.bib38)\]\. Chmiel et al\.’s logarithmic unbiased quantization \(LUQ\) targets unbiased neural\-gradient quantization over the full range: it combines stochastic underflow below the smallest nonzero value, range selection that avoids upper clipping, and stochastic rounding within a logarithmic FP4 grid\[[7](https://arxiv.org/html/2610.00053#bib.bib37)\]\. This is a stronger construction than applying ordinary adjacent\-bin SR only inside the representable range\. FP8 and microscaling then established floating\-point formats with shared block exponents\[[28](https://arxiv.org/html/2610.00053#bib.bib34),[38](https://arxiv.org/html/2610.00053#bib.bib35),[37](https://arxiv.org/html/2610.00053#bib.bib36),[33](https://arxiv.org/html/2610.00053#bib.bib2)\]\. Their behavior depends on more than bit width: scale format, block geometry, tensor statistics, and the contraction being quantized all matter\[[47](https://arxiv.org/html/2610.00053#bib.bib7),[24](https://arxiv.org/html/2610.00053#bib.bib39),[41](https://arxiv.org/html/2610.00053#bib.bib41),[17](https://arxiv.org/html/2610.00053#bib.bib45)\]\.

Recent FP4 pretraining systems make different choices along those axes\. Tseng et al\. apply MXFP4 to the two backward matrix multiplications and combine stochastic rounding with randomized Hadamard transform \(RHT\) preconditioning\[[44](https://arxiv.org/html/2610.00053#bib.bib5)\]\. FP4 All the Way uses round\-to\-nearest in Fprop and SR in the backward and update contractions; in Wgrad, it stochastically rounds both the neural\-gradient and activation operands\[[8](https://arxiv.org/html/2610.00053#bib.bib9)\]\. NVIDIA’s NVFP4 recipe combines two\-dimensional weights, gradient stochastic rounding, paired Wgrad preconditioning, and selected higher\-precision linears\[[29](https://arxiv.org/html/2610.00053#bib.bib10)\]\. Quartet and FP4 All the Way study fully low\-precision paths, while subsequent work develops native full\-pipeline MXFP4 and unbiased NVFP4 gradient estimation\[[4](https://arxiv.org/html/2610.00053#bib.bib8),[8](https://arxiv.org/html/2610.00053#bib.bib9),[9](https://arxiv.org/html/2610.00053#bib.bib16),[35](https://arxiv.org/html/2610.00053#bib.bib13)\]\. Other FP4 studies examine optimizer and oscillation effects, adaptive block scales, outlier dynamics, shrinkage bias, and quantization beyond the linear operators\[[45](https://arxiv.org/html/2610.00053#bib.bib3),[50](https://arxiv.org/html/2610.00053#bib.bib4),[6](https://arxiv.org/html/2610.00053#bib.bib6),[5](https://arxiv.org/html/2610.00053#bib.bib11),[10](https://arxiv.org/html/2610.00053#bib.bib12),[14](https://arxiv.org/html/2610.00053#bib.bib14),[49](https://arxiv.org/html/2610.00053#bib.bib18),[13](https://arxiv.org/html/2610.00053#bib.bib19),[1](https://arxiv.org/html/2610.00053#bib.bib20)\]\. Complementary systems explore spectral\-domain FP4, alternative four\-bit formats, and native FP4 training for mixture\-of\-experts models\[[3](https://arxiv.org/html/2610.00053#bib.bib46),[42](https://arxiv.org/html/2610.00053#bib.bib48),[15](https://arxiv.org/html/2610.00053#bib.bib17),[48](https://arxiv.org/html/2610.00053#bib.bib15)\]\. UE5M3 FP4 reallocates the unused sign bit of an E4M3 block scale to a fifth exponent bit\. Hu et al\. combine this wider unsigned scale with periodic sample\-and\-hold tensor scaling and selective backward SR, while omitting RHT and using FP4 in every eligible internal linear\[[25](https://arxiv.org/html/2610.00053#bib.bib40)\]\.

We abbreviate the forward, input\-gradient, and weight\-gradient matrix multiplications as Fprop, Dgrad, and Wgrad, respectively\.

Three mechanisms directly shape this work\. A weight encoding can remain numerically consistent under transposition\[[29](https://arxiv.org/html/2610.00053#bib.bib10),[36](https://arxiv.org/html/2610.00053#bib.bib47),[9](https://arxiv.org/html/2610.00053#bib.bib16)\]\. Stochastic rounding \(SR\) can remove within\-bin rounding bias, while its placement and treatment of underflow and saturation—clipping to the largest representable magnitude—remain part of the quantizer contract\[[21](https://arxiv.org/html/2610.00053#bib.bib33),[7](https://arxiv.org/html/2610.00053#bib.bib37),[34](https://arxiv.org/html/2610.00053#bib.bib42)\]\. Paired Hadamard preconditioning spreads outliers while preserving the unquantized dot product\[[2](https://arxiv.org/html/2610.00053#bib.bib44),[44](https://arxiv.org/html/2610.00053#bib.bib5),[29](https://arxiv.org/html/2610.00053#bib.bib10),[9](https://arxiv.org/html/2610.00053#bib.bib16)\]\. We specialize where these mechanisms act in each contraction and realize the complete operand contract inside fused training kernels\.

The systems contribution is to optimize the quantizer, its physical layouts, the consuming matrix multiplication, and retained backward state as one execution boundary\. This follows the broader principle that data movement and producer–consumer structure determine realized model speed\[[11](https://arxiv.org/html/2610.00053#bib.bib24),[12](https://arxiv.org/html/2610.00053#bib.bib25),[23](https://arxiv.org/html/2610.00053#bib.bib26),[46](https://arxiv.org/html/2610.00053#bib.bib27),[39](https://arxiv.org/html/2610.00053#bib.bib28),[20](https://arxiv.org/html/2610.00053#bib.bib29)\]\.

E2M1 denotes the four\-bit value format with one sign bit, two exponent bits, and one fraction bit\. E8M0 is a power\-of\-two scale format, E4M3 is an eight\-bit floating\-point scale format, and*amax*denotes the maximum absolute value\. A 2D16 or 2D32 weight encoding shares one numerical scale over a16×1616\\times 16or32×3232\\times 32tile and reuses it when the weight is viewed in either orientation\. H16 and H32 denote Hadamard transforms that mix 16 or 32 values\. Table[1](https://arxiv.org/html/2610.00053#S2.T1)pairs each existing method with its implementation in this work; the following subsections explain these choices in detail\.

Table 1:Existing numerical and systems methods and their parameterization, composition, or implementation in this work\.
### 2\.2The same four\-bit values, three different scale contracts

All three custom routes ultimately present E2M1 operands—one sign bit, two exponent bits, and one fraction bit—to a Blackwell Tensor Core\. Their numerical and scheduling behavior nevertheless differs because they assign scales to different domains\. A useful common notation for one scalar is

z^i=S​δb⁡\(i\)​QE2M1​\(ziS​δb⁡\(i\)\),\\widehat\{z\}\_\{i\}=S\\,\\delta\_\{b\(i\)\}Q\_\{\\mathrm\{E2M1\}\}\\\!\\left\(\\frac\{z\_\{i\}\}\{S\\,\\delta\_\{b\(i\)\}\}\\right\),\(1\)whereδb⁡\(i\)\\delta\_\{b\(i\)\}is the effective block dequantization multiplier,SSis an optional outer scale, andQE2M1Q\_\{\\mathrm\{E2M1\}\}rounds and saturates to E2M1\. The scale choice determines both quantization error and when the producer may safely release its output\.

Table 2:The FP4 execution contracts used in this report\. CTA\-local NVFP4 changes the outer\-scale domain while retaining E2M1 values and E4M3 block scales\.#### 2\.2\.1MXFP4 encode\- and decode\-centric scale selection

E8M0 represents a power\-of\-two scale with eight exponent bits and no fraction; E4M3 is an FP8 scale with four exponent and three fraction bits\. In MXFP4,S=1S=1,sbs\_\{b\}is an E8M0 power of two shared by 32 values, and the effective multiplier in Equation[1](https://arxiv.org/html/2610.00053#S2.E1)isδb=sb/6\\delta\_\{b\}=s\_\{b\}/6\. The block maximum therefore produces a scale locally, but adjacent scale levels differ by exactly two\. This leaves a consequential choice about which neighboring power of two to store\.

We call upward exponent rounding*encode\-centric*scaling because it first encloses every source value in a scale that E2M1 can encode without upper\-tail clipping\. For a positive, finite block maximumab=maxi⁡\|zi\|a\_\{b\}=\\max\_\{i\}\|z\_\{i\}\|within the supported E8M0 exponent range, it computes

sb=2⌈log2⁡ab⌉,qi=QE2M1​\(6​zisb\),z^i=sb6​qi\.s\_\{b\}=2^\{\\lceil\\log\_\{2\}a\_\{b\}\\rceil\},\\qquad q\_\{i\}=Q\_\{\\mathrm\{E2M1\}\}\\\!\\left\(\\frac\{6z\_\{i\}\}\{s\_\{b\}\}\\right\),\\qquad\\widehat\{z\}\_\{i\}=\\frac\{s\_\{b\}\}\{6\}q\_\{i\}\.\(2\)The largest magnitude then maps to at most the finite E2M1 endpoint, 6\. We call downward exponent rounding*decode\-centric*scaling: it choosessb=2⌊log2⁡ab⌋s\_\{b\}=2^\{\\lfloor\\log\_\{2\}a\_\{b\}\\rfloor\}so the decoded multipliersb/6s\_\{b\}/6is half as large wheneveraba\_\{b\}is not already a power of two\. That halves the grid spacing for values that remain in range, but values above the endpoint saturate to 6 and lose their excess magnitude\. In plain terms, encode\-centric scaling protects the largest value; decode\-centric scaling represents smaller values more finely by accepting clipping at the top of the block\. For example, ifab=10a\_\{b\}=10, encode\-centric scaling storessb=16s\_\{b\}=16and does not clip; decode\-centric scaling storessb=8s\_\{b\}=8, halves the spacing, and clips values whose magnitude exceeds 8\.

We expose this direction as part of the MXFP4 route rather than treating it as an incidental implementation detail\. Development\-only MXFP4 pretraining screens favored encode\-centric over decode\-centric scaling for both activation and gradient operands\. These screens selected the recipe; they are not a reported quantitative comparison\. Accordingly, every reported MXFP4 experiment rounds activation and gradient block scales upward, as shown in Equation[2](https://arxiv.org/html/2610.00053#S2.E2)\. This choice protects the largest value in each block from clipping\. The weight rule described next is the only place where our MXFP4 recipe sometimes selects the finer downward scale\.

Weights use a different trade\-off\. The orientation\-consistent 2D32 producer starts from the safe upward\-rounded scalesTs\_\{T\}for the maximumaTa\_\{T\}over a×3232\\\!\\times\\\!32tile\. For a nonzero tile with a representable safe exponent, it selectssT/2s\_\{T\}/2only whenaT/sT<0\.87a\_\{T\}/s\_\{T\}<0\.87\. The smaller scale halves the quantization spacing and accepts a fixed, bounded amount of upper\-tail clipping\. The same fused producer makes that decision once and emits both physical consumer layouts\. Our MXFP4 implementation makes the operand\-dependent scale policy explicit and performs the scale decision and dual\-layout production inside the same producer\. Figure[1](https://arxiv.org/html/2610.00053#S2.F1)summarizes the resulting operand\-dependent range–resolution trade\-off\.

![Refer to caption](https://arxiv.org/html/2610.00053v1/figures/fp4_mxfp4_scale_rounding.png)Figure 1:Operand\-specific E8M0 scale selection\. Encode\-centric scaling rounds the block maximum upward and keeps every input within the E2M1 endpoint\. For a non\-power\-of\-two maximum, decode\-centric scaling rounds downward, halves the decoded grid spacing, and clips the block tail\. Our route applies this range–resolution choice per operand: activations and gradients use the encode\-centric rule, while 2D32 weights select the finer scale only under the fixedaT/sT<0\.87a\_\{T\}/s\_\{T\}<0\.87condition\.
#### 2\.2\.2Global and CTA\-local NVFP4 outer scales

Global NVFP4 instead uses an E4M3 scale for each 16 values and an FP32 tensor scaleSS\[[33](https://arxiv.org/html/2610.00053#bib.bib2),[29](https://arxiv.org/html/2610.00053#bib.bib10)\]\. Its local grid is finer, but every block depends on the completed tensor amax, the maximum absolute value\. Our*custom global NVFP4*path preserves the tensor\-global numerical contract used by TE\-native NVFP4 while replacing generic quantize–layout–GEMM boundaries with custom producers and consumers\.

This tensor\-wide maximum also creates a scheduling dependency\. A GPU divides the tensor among many cooperative thread arrays \(CTAs\), which are thread blocks that may run at different times\. Each CTA can find a partial maximum, but the final tensor maximum is unavailable until all partial results have been combined\. Packing the quantized tensor and starting the dependent matrix multiplication must wait for that result\. The wait forms a tensor\-wide synchronization boundary within the GPU and can leave a latency bubble even when individual tiles are otherwise ready\.

The CTA\-local route removes that cross\-CTA dependency by changing only the outer\-scale domain\. Each CTA computes maxima for the row and column tiles it already owns, derives their outer factors using synchronization within that CTA, and can then proceed to its matrix\-multiplication tile without waiting for unrelated CTAs\. It does not remove synchronization altogether; it confines scale completion to one CTA\. For one matrix\-multiplication output tile, an A\-row tile owns factorαi\\alpha\_\{i\}and a B\-column tile owns factorβj\\beta\_\{j\}\. Both remain fixed over the complete K reduction\. IfA~\\widetilde\{A\}andB~\\widetilde\{B\}denote E2M1 values decoded with their E4M3 per\-block scales, often called microscales, then

Ci​j=αi​βj​∑kA~i​k​B~k​j\.C\_\{ij\}=\\alpha\_\{i\}\\beta\_\{j\}\\sum\_\{k\}\\widetilde\{A\}\_\{ik\}\\widetilde\{B\}\_\{kj\}\.\(3\)The Tensor Core accumulates the inner sum and the epilogue appliesαi​βj\\alpha\_\{i\}\\beta\_\{j\}once\. This factorization is valid only because the two outer scales are invariant inKK, the contraction dimension\. Keeping both corrections in FP32 metadata also avoids quantizing those corrections onto the coarser FP8 scale grid\. Figures[2](https://arxiv.org/html/2610.00053#S2.F2)and[3](https://arxiv.org/html/2610.00053#S2.F3)show, respectively, where each format completes its scale state and how the CTA\-local factors replace the tensor\-wide outer\-scale dependency\.

![Refer to caption](https://arxiv.org/html/2610.00053v1/figures/fp4_format_execution_routes.png)Figure 2:Scale\-completion boundaries for the three custom routes\. MXFP4 finalizes a local 32\-value scale; global NVFP4 waits for tensor amax; CTA\-local NVFP4 computes tile\-owned row and column outer factors without waiting for a tensor\-wide reduction\. The completion point determines which preparation work can be fused with its matrix multiplication\.![Refer to caption](https://arxiv.org/html/2610.00053v1/figures/fp4_localcta_scaling.png)Figure 3:Tensor\-global and CTA\-local NVFP4 outer\-scale domains\. Global NVFP4 gates block packing on tensor amax\. Our CTA\-local route carries tile\-owned row and column outer factors through the full K accumulation and appliesαi​βj\\alpha\_\{i\}\\beta\_\{j\}once in the epilogue\.

### 2\.3Why forward, data gradient, and weight gradient need different views

For a linear layerY=X​W𝖳Y=XW^\{\\mathsf\{T\}\}, forward propagation \(Fprop\), the input or data gradient \(Dgrad\), and the weight gradient \(Wgrad\) consume different views of the same tensors\. LetQrQ\_\{r\}denote a row\-facing representation andQcQ\_\{c\}a column\-facing representation\. Both preserve the logical tensor shape; the subscript identifies the physical layout and scale orientation used by the consumer\. Suppressing decode and scale metadata, training evaluates three contractions:

Y^\\displaystyle\\widehat\{Y\}=Qr​\(X\)​Qr​\(W\)𝖳,\\displaystyle=Q\_\{r\}\(X\)Q\_\{r\}\(W\)^\{\\mathsf\{T\}\},Fprop,\\displaystyle\\text\{Fprop\},\(4\)d​X^\\displaystyle\\widehat\{dX\}=Qr​\(d​Y\)​Qc​\(W\),\\displaystyle=Q\_\{r\}\(dY\)Q\_\{c\}\(W\),Dgrad,\\displaystyle\\text\{Dgrad\},\(5\)d​W^\\displaystyle\\widehat\{dW\}=Qc​\(d​Y\)𝖳​Qc​\(X\),\\displaystyle=Q\_\{c\}\(dY\)^\{\\mathsf\{T\}\}Q\_\{c\}\(X\),Wgrad\.\\displaystyle\\text\{Wgrad\}\.\(6\)Thus one saved gradient needs a row\-oriented representation for Dgrad and a column\-oriented representation for Wgrad; weights likewise participate in two orientations\. “Quantize the tensor to FP4” is incomplete unless it also states which contraction consumes it\. The upper panel of Figure[4](https://arxiv.org/html/2610.00053#S2.F4)maps these row\- and column\-facing representations to the three contractions\.

![Refer to caption](https://arxiv.org/html/2610.00053v1/figures/fp4_linear_operand_hybrid.png)Figure 4:Formats and packed views for the plain\-H16 operand hybrid\. Hererrandccdenote the consumer\-facing row\- and column\-packed scale/layout representations; they do not change a tensor’s logical shape\. Top: Fprop consumes row\-facingXXandWW, Dgrad consumes row\-facingd​YdYand column\-facingWW, and Wgrad consumes column\-facingd​YdYandXX\. Bottom: Fprop uses MXFP4XrX\_\{r\}and 2D32WrW\_\{r\}; Dgrad uses CTA\-local NVFP4d​YrdY\_\{r\}with row stochastic rounding \(SR\) and 2D16WcW\_\{c\}; Wgrad uses MXFP4d​YcdY\_\{c\}andXcX\_\{c\}with paired plain\-H16 preconditioning\. One fused backward producer emits bothd​YdYrepresentations from the BF16 tile\. Wgrad does not readWWbecause it producesd​WdW\. Plain H16 has no sign flips; fixed H32 changes only the paired Wgrad preconditioner\.
### 2\.4Two\-dimensional weights: numerical consistency versus implementation

Independent one\-dimensional weight quantizers can produceWfwd=QK​\(W\)W\_\{\\mathrm\{fwd\}\}=Q\_\{K\}\(W\)for Equation[4](https://arxiv.org/html/2610.00053#S2.E4)and a differentWbwd=QN​\(W\)W\_\{\\mathrm\{bwd\}\}=Q\_\{N\}\(W\)for Equation[5](https://arxiv.org/html/2610.00053#S2.E5)\. Forward and backward then consume different numerical approximations of the same BF16 weight\. Two\-dimensional weight quantization instead assigns one scale to eachb×bb\\times bweight tile\. Letqmaxq\_\{\\max\}be the largest finite E2M1 magnitude and letscale𝒮\\operatorname\{scale\}\_\{\\cal S\}denote the route’s scale\-selection rule on its representable scale set𝒮\\cal S\. Then

ap​q=maxi∈p,j∈q⁡\|Wi​j\|,sp​q=scale𝒮⁡\(ap​qS​qmax\),W^i​j=S​sp​q​QE2M1​\(Wi​jS​sp​q\),a\_\{pq\}=\\max\_\{i\\in p,j\\in q\}\|W\_\{ij\}\|,\\qquad s\_\{pq\}=\\operatorname\{scale\}\_\{\\cal S\}\\\!\\left\(\\frac\{a\_\{pq\}\}\{Sq\_\{\\max\}\}\\right\),\\qquad\\widehat\{W\}\_\{ij\}=S\\,s\_\{pq\}Q\_\{\\mathrm\{E2M1\}\}\\\!\\left\(\\frac\{W\_\{ij\}\}\{S\\,s\_\{pq\}\}\\right\),\(7\)and reuses that numerical encoding in both orientations\. The row and column layouts can differ in memory, but their decoded weight values agree\. This is the consistency motivation identified by NVIDIA and by work on transposition\-invariant block quantization\[[29](https://arxiv.org/html/2610.00053#bib.bib10),[36](https://arxiv.org/html/2610.00053#bib.bib47)\]\. Equivalently, the numerical invariant is

Qr2​D​\(W\)≡Qc2​D​\(W\)≡W~,Q\_\{r\}^\{\\mathrm\{2D\}\}\(W\)\\equiv Q\_\{c\}^\{\\mathrm\{2D\}\}\(W\)\\equiv\\widetilde\{W\},\(8\)even though the two memory layouts contain differently ordered bytes\. Figure[5](https://arxiv.org/html/2610.00053#S2.F5)contrasts independent one\-dimensional quantization with this shared numerical encoding\.

![Refer to caption](https://arxiv.org/html/2610.00053v1/figures/fp4_2d_weight_contract.png)Figure 5:Independent one\-dimensional scales can make Fprop and Dgrad consume different numerical weights\. Orientation\-consistent 2D quantization computes one tile encoding and exposes it through row\- and column\-oriented memory layouts\. Our implementation optimization fuses production of those layouts into the custom MXFP4 and CTA\-local producers under their respective scale policies\.Transformer Engine \(TE\), custom global NVFP4, and the CTA\-local path all preserve one numerical weight encoding across the two16×1616\\times 16consumer orientations\. In TE’s 2D16 contract, one scale belongs to each16×1616\\times 16weight tile and is replicated into the1×161\\times 16scale layouts required by the Tensor Core consumers\[[29](https://arxiv.org/html/2610.00053#bib.bib10),[31](https://arxiv.org/html/2610.00053#bib.bib21)\]\. “2D” therefore describes shared numerical scale ownership across orientations; the matrix\-multiplication shape is unchanged\. TE and custom global NVFP4 use the tensor\-level NVFP4 outer scale; the custom route emits the packed values, block scales, and both physical weight layouts directly\. CTA\-local NVFP4 retains the 2D16 consistency invariant\. Its weight producer finds the local weight maxima and E4M3 block scales, folds the relative corrections into those scales, and publishes one common FP32 weight outer factor for both orientations\. Activations and gradients continue to use the tile\-owned row and column factors in Equation[3](https://arxiv.org/html/2610.00053#S2.E3)\. Our MXFP4 path applies the same orientation\-consistency objective to32×3232\\times 32MX tiles\. Tseng et al\.’s backward\-only MXFP4 method instead quantizes each operand along the reduction axis of the current contraction\[[44](https://arxiv.org/html/2610.00053#bib.bib5)\]\. Transpose\-consistent 2D32 MXFP4 is also described in existing systems\[[36](https://arxiv.org/html/2610.00053#bib.bib47),[9](https://arxiv.org/html/2610.00053#bib.bib16)\]\.

The numerical 2D contract follows the cited 2D16 and 2D32 methods\. Our implementation optimization is producer fusion: the MXFP4 and CTA\-local producers each load the BF16 weight tile once, complete the route’s scale reduction, quantize one numerical encoding, and emit the row\- and column\-oriented physical layouts within the same producer boundary\. The MXFP4 producer incorporates the adaptive 2D32 scale rule in Section[2\.2\.1](https://arxiv.org/html/2610.00053#S2.SS2.SSS1); the CTA\-local producer combines its 2D16 encoding with local maximum and scale calculation, then normalizes both layouts to a common weight outer factor\. This construction removes a second independent scale decision and guarantees that Fprop and Dgrad decode the same numerical weight even though their physical layouts differ\.

Equation[8](https://arxiv.org/html/2610.00053#S2.E8)applies to the pure routes and the depth\-wise hybrid\. The operand\-wise hybrid is an explicit exception: it reads the BF16 weight once, then emits a 2D32 MX weight encoding for Fprop and a 2D16 CTA\-local weight encoding for Dgrad\. Wgrad does not consumeWW; it separately quantizesXXandd​YdYwith MXFP4\. This gives each contraction a different error profile, so end\-to\-end training must evaluate the tradeoff\.

### 2\.5Stochastic rounding and signed Hadamard preconditioning

For adjacent representable valuesq−q\_\{\-\}andq\+q\_\{\+\}, data stochastic rounding \(SR\) uses

Pr\[QSR\(z\)=q\+\]=z−q−q\+−q−,Pr\[QSR\(z\)=q−\]=1−Pr\[QSR\(z\)=q\+\],\\Pr\[Q\_\{\\mathrm\{SR\}\}\(z\)=q\_\{\+\}\]=\\frac\{z\-q\_\{\-\}\}\{q\_\{\+\}\-q\_\{\-\}\},\\qquad\\Pr\[Q\_\{\\mathrm\{SR\}\}\(z\)=q\_\{\-\}\]=1\-\\Pr\[Q\_\{\\mathrm\{SR\}\}\(z\)=q\_\{\+\}\],\(9\)which is unbiased between the two grid points before saturation\[[21](https://arxiv.org/html/2610.00053#bib.bib33),[34](https://arxiv.org/html/2610.00053#bib.bib42)\]\. This is the ideal probability rule; implementations that use too few random bits can introduce bias\[[18](https://arxiv.org/html/2610.00053#bib.bib43)\]\. Equation[9](https://arxiv.org/html/2610.00053#S2.E9)is ordinary adjacent\-bin SR, not LUQ\. LUQ also stochastically handles values below the logarithmic FP minimum and selects the range to avoid clipping\[[7](https://arxiv.org/html/2610.00053#bib.bib37)\]\. Our microscaled E2M1 paths can saturate, so we claim removal of deterministic bias between adjacent finite values, not unbiasedness of the complete saturated quantizer\.

The placement also differs\. FP4 All the Way applies SR to the neural gradient entering Dgrad and to both the neural\-gradient and activation operands entering Wgrad\[[8](https://arxiv.org/html/2610.00053#bib.bib9)\]\. NVIDIA recommends round\-to\-nearest for weights and activations and SR for the gradient input to both Dgrad and Wgrad\[[29](https://arxiv.org/html/2610.00053#bib.bib10)\]\. Our custom long routes are narrower: data SR is enabled only on the row\-orientedd​YdYrepresentation consumed by Dgrad\. The Wgrad column representation ofd​YdY, weights, activations, and all scale values remain deterministic\. This axis\-selective placement defines the custom backward operand contract\. The row/column separation is visible in Figure[4](https://arxiv.org/html/2610.00053#S2.F4); Figure[6](https://arxiv.org/html/2610.00053#S3.F6)locates the stochastically rounded Dgrad input and paired transformed Wgrad inputs in the fused backward schedule\.

Hadamard preconditioning addresses a different failure mode\. One outlier can set the scale for a whole block, leaving fewer useful E2M1 values for the other entries\. A Hadamard transform mixes the block with additions and subtractions before quantization, spreading a large coordinate over the block\. In Wgrad, this can keep smaller contributions from underflowing to zero\. The transform must be applied to both inputs of the weight\-gradient dot product so that it cancels in exact arithmetic\[[2](https://arxiv.org/html/2610.00053#bib.bib44),[44](https://arxiv.org/html/2610.00053#bib.bib5),[29](https://arxiv.org/html/2610.00053#bib.bib10)\]\. IfHHis the normalized block Hadamard matrix andR=H​DR=HDuses a sign diagonalDD, then

d​W=d​Y𝖳​X=\(R​d​Y\)𝖳​\(R​X\),R𝖳​R=I\.dW=dY^\{\\mathsf\{T\}\}X=\(RdY\)^\{\\mathsf\{T\}\}\(RX\),\\qquad R^\{\\mathsf\{T\}\}R=I\.\(10\)Both Wgrad operands must therefore be transformed as a pair\. Transforming onlyd​YdYchanges the gradient rather than only changing its quantization basis\.

The Hadamard matrix itself is deterministic\. In an RHT, randomness comes from the diagonal sign vectorDD, and that vector need not be resampled at every step\. Tseng et al\. sample signs and transform both MXFP4 backward contractions,\(d​Y,W\)\(dY,W\)for Dgrad and\(d​Y,X\)\(dY,X\)for Wgrad, using a 64\-value transform in their main experiments\[[44](https://arxiv.org/html/2610.00053#bib.bib5)\]\. NVIDIA instead transforms Wgrad only, using H16 for NVFP4 and H32 in its MXFP4 comparison\. Its recipe specifies one sign vector shared across linear layers throughout training; the TE implementation used in our experiments stores a fixed 16\-entry vector and caches the resulting transform\[[29](https://arxiv.org/html/2610.00053#bib.bib10),[31](https://arxiv.org/html/2610.00053#bib.bib21)\]\. H16 and H32 name the number of values mixed by the transform\.

Our kernels reuse that TE 16\-entry sign vector as an explicit route constant\. H16 applies the sign pattern once; H32 repeats it across two 16\-value halves before the cross\-half butterfly\. No signs are drawn at setup or during training\. We therefore call these paths*fixed\-sign H16/H32 preconditioning*, rather than randomized Hadamard preconditioning\. The additions and subtractions mix the values; the fixed signs choose which values are negated first\. Applying the same transform toXXandd​YdYpreserves the unquantized Wgrad dot product, and the stored weight is never transformed\. A fixedDDremains orthogonal and repeatable across layers, steps, and resumes\. It does not inherit a probabilistic concentration guarantee that assumesDDis sampled independently of its input\. We neither claim that guarantee nor compare alternative sign vectors\.

As in NVIDIA’s recipe, Hadamard preconditioning remains Wgrad\-only\. Our backward producer creates the two consumer\-specific representations in one boundary: row\-facingd​YdYuses SR for Dgrad, while deterministic column\-facingd​YdYis paired with transformedXXfor Wgrad\. In the signed routes, the fixed\-sign transform is performed in registers as part of column quantization rather than as a separate transform and repack pass\. Dgrad and the stored weight are not transformed\. H16 matches the 16\-value NVFP4 scale block, while H32 matches the 32\-value MXFP4 scale block\[[9](https://arxiv.org/html/2610.00053#bib.bib16)\]\. The literal sign pattern and its half\-block construction are recorded in Appendix[A](https://arxiv.org/html/2610.00053#A1)\. Table[5](https://arxiv.org/html/2610.00053#S4.T5)states the sign and rounding policy for every route\.

### 2\.6Reference NVFP4 recipe versus the routes evaluated here

The NVIDIA recipe is a bundle, not only the NVFP4 datatype\. It recommends 2D16 weights, SR on gradient inputs to Dgrad and Wgrad, a paired H16 signed Hadamard transform \(described as RHT\) for Wgrad, and retaining roughly 15% of empirically sensitive linears in higher precision, with most selected linears near the end of the network\[[29](https://arxiv.org/html/2610.00053#bib.bib10)\]\. Three distinctions matter in this report\. First, our TE\-native comparator enables TE’s 2D, gradient\-SR, and signed\-Hadamard mechanisms but places all 32 body blocks in NVFP4; only the common output head is BF16\. Second, the TE comparator with four final BF16 blocks is a separate NVIDIA\-inspired route\. It is not a reproduction of NVIDIA’s per\-linear sensitivity list\. Third, the custom global NVFP4, MXFP4, and CTA\-local NVFP4 long routes use row\-Dgrad SR, and only explicitly named routes apply Hadamard preconditioning\. Tables[4](https://arxiv.org/html/2610.00053#S4.T4)and[5](https://arxiv.org/html/2610.00053#S4.T5)state the complete contract for each result\.

## 3Fused Execution

### 3\.1Fuse the complete producer–consumer boundary

Quantization helps only when its preparation work overlaps the matrix multiplication rather than extending the critical path\. We model the latency of one FP4 boundary as

Tboundary≈Tserial\+max⁡\(TGEMM,Treduce\+Tquant\+Tlayout\),T\_\{\\mathrm\{boundary\}\}\\approx T\_\{\\mathrm\{serial\}\}\+\\max\\\!\\left\(T\_\{\\mathrm\{GEMM\}\},T\_\{\\mathrm\{reduce\}\}\+T\_\{\\mathrm\{quant\}\}\+T\_\{\\mathrm\{layout\}\}\\right\),\(11\)HereTserialT\_\{\\mathrm\{serial\}\}is work that cannot overlap because of a data dependency or resource contention\. Fusion removes an HBM round trip only when the producer emits every scale, layout, and saved value required by the next operation\. Accelerating only the GEMM epilogue can leave a global reduction, a second tensor orientation, or backward recomputation on the critical path\. We implement the fused tensor operations in CUDA and ThunderKittens\[[39](https://arxiv.org/html/2610.00053#bib.bib28)\]\. Following CODA’s GEMM\-plus\-epilogue framing\[[20](https://arxiv.org/html/2610.00053#bib.bib29)\], an operation joins a boundary only when the next stage can consume its output directly\. A Llama block exposes four such boundaries: root\-mean\-square normalization \(RMSNorm\) into the query/key/value \(QKV\) projection, QKV into attention, the gated feed\-forward network \(FFN\), and the residual update into the next RMSNorm\. Each has a corresponding backward boundary\.

Our FP4 boundary contract makes the fusion boundary explicit: a producer completes the group of values that share a scale, emits both physical orientations needed by Fprop, Dgrad, and Wgrad, and retains the BF16 and random state required by autograd\. Scale completion, layout production, and saved\-state requirements differ across MXFP4, custom global NVFP4, and CTA\-local NVFP4, so one generic quantize–GEMM fusion schedule cannot represent all three paths\. Figure[6](https://arxiv.org/html/2610.00053#S3.F6)contrasts the serial boundaries with this format\-aware production schedule\.

### 3\.2What is fused in a Llama block

Figure[6](https://arxiv.org/html/2610.00053#S3.F6)presents four execution panels: QKV forward and backward, and FFN forward and backward\. The serial schedule writes BF16 intermediates to high\-bandwidth memory \(HBM\), reads them back to compute scales and layouts, and repeats that cycle before the next GEMM\. The fused schedule instead makes each producer emit the exact scale metadata, row and column views, and saved BF16 state that its consumers require\.

For a fixed route, fusion preserves the defined numerical contract\. It removes intermediate traffic and exposes independent work to the scheduler\. The scale stage is nevertheless format\-specific: MXFP4 completes a local 32\-value reduction; custom global NVFP4 starts a tensor\-wide maximum early; and CTA\-local NVFP4 carries two tile outer scales through the complete contraction and applies their product in the GEMM epilogue\.

The gated FFN illustrates why the boundary extends beyond a GEMM\. It has gate and up projections \(W1W\_\{1\}andW3W\_\{3\}\), followed by a down projection \(W2W\_\{2\}\)\. Writing theW1W\_\{1\}andW3W\_\{3\}outputs to BF16, launching a separate SiLU–multiply, then reading the result again to quantize theW2W\_\{2\}input spends bandwidth between every large contraction\. The fused path schedules the paired projections together and emits the FP4 input toW2W\_\{2\}with the SiLU–gate output\. In backward, it combines theW2W\_\{2\}data gradient with the SiLU derivative and produces the representations consumed by theW1W\_\{1\}andW3W\_\{3\}data\- and weight\-gradient contractions\. Exact BF16 values remain available where autograd requires them; fusion changes data movement, not the model definition\.

QKV follows the same principle\. The normalized input producer emits the format\-specific representations consumed by the grouped projection, and the Q/K projection applies RoPE and the required layout\. Backward combines inverse layout, RoPE, QKV gradient production, and the adjacent RMSNorm reduction when their data dependencies align\. Residual–RMSNorm retains the exact residual and row statistics while producing the next quantized representations\.

Scale work is scheduled by format\. MXFP4 reductions finish with each local tile\. Custom global NVFP4 begins the tensor maximum\-absolute\-value reduction early so scale finalization can overlap other work\. CTA\-local NVFP4 removes that global dependency, but its two outer scales must remain available through the full K reduction\. Figure[2](https://arxiv.org/html/2610.00053#S2.F2)summarizes these schedules\.

Figure 6:Serial and format\-aware execution of the QKV and gated\-FFN boundaries\. Solid boxes and arrows show values produced and consumed within one execution boundary; they do not imply one monolithic kernel\. Purple dashed arrows show stream overlap\. Distributed collectives remain separate operations even when their launch overlaps local work\. In panels B and D, row stochastic rounding \(SR\) applies only to the gradient view consumed by Dgrad; a paired fixed\-sign Hadamard transform \(H\), when enabled, applies to both column operands consumed by Wgrad\.
### 3\.3Depth\-wise and operand\-wise hybrids

We call the*depth\-wise*route the 27/5 hybrid: it assigns complete transformer blocks 1–27 to CTA\-local NVFP4 and blocks 28–32 to MXFP4\. Attention and FFN linears follow the assigned block, so Fprop, Dgrad, and Wgrad never mix formats within one linear\. Both formats use orientation\-consistent 2D weights and row\-only gradient\-data SR; neither uses Hadamard preconditioning\.

The*operand\-wise*hybrid instead chooses the format per contraction\. A controlled operator analysis using identical saved tensors found lower Dgrad error for CTA\-local NVFP4 than for MXFP4 in every measured layer and component\. This motivates replacing MXFP4 Dgrad with CTA\-local NVFP4 while retaining the MXFP4 Fprop and Wgrad path\. The diagnostic and its scope are reported in Section[5](https://arxiv.org/html/2610.00053#S5)and Appendix[C\.4](https://arxiv.org/html/2610.00053#A3.SS4)\.

Concretely, every linear uses MXFP4 for Fprop and Wgrad and CTA\-local NVFP4 with row\-data SR for Dgrad\. One producer loads each BF16 gradient tile once and emits both the CTA\-local row representation and the MXFP4 column representation\. The weight producer likewise loads BF16WWonce and emits the MXFP4 forward view and the CTA\-local Dgrad view\. The lower panel of Figure[4](https://arxiv.org/html/2610.00053#S2.F4)shows this contraction\-wise assignment for the plain\-H16 variant\.

We evaluate two Wgrad variants\. The plain\-H16 variant applies the same 16\-value Hadamard mixing toXXandd​YdYwithD=ID=I, so it performs no sign flips\. The fixed\-H32 variant applies the paired 32\-value signed transform used by the completed MXFP4\+row\-SR\+fixed\-H32 route\. Neither variant transforms the stored weight\. Fprop, CTA\-local Dgrad, weight encodings, row SR, output projection, and loss retain the same numerical contract\. Table[6](https://arxiv.org/html/2610.00053#S5.T6)reports the two complete configurations; Appendix[A](https://arxiv.org/html/2610.00053#A1)gives the sign construction\.

Every main custom route retains a BF16 output projection and compiled regular cross entropy\. Appendix[B](https://arxiv.org/html/2610.00053#A2)summarizes the low\-precision output heads that did not improve the end\-to\-end throughput–numerical tradeoff\.

## 4Experimental Setup

### 4\.1Model, data, and training horizon

The main workload is an 8B\-parameter Llama\-family decoder with RMSNorm, grouped\-query attention, rotary position embeddings \(RoPE\), and a gated feed\-forward network\[[16](https://arxiv.org/html/2610.00053#bib.bib30)\]\. The sequence length is 8,192 and the global batch is 512 sequences, or 4,194,304 tokens per update\. A 160B\-token run ends at step 38,147\. Unless stated otherwise, the named low\-precision route applies to every body linear in all 32 transformer blocks\.

All main custom routes use a BF16 output projection followed by Inductor\-compiled regular cross entropy\. The optimizer is AdamW with a 2,000\-step linear warmup to a peak learning rate of3×10−43\\times 10^\{\-4\}; the rate remains constant after warmup over the reported horizon\. Training losses are compared at matched optimizer steps\. Each long\-run recipe is represented by one trajectory, so the comparisons do not estimate seed\-to\-seed variation\. Table[3](https://arxiv.org/html/2610.00053#S4.T3)summarizes the shared configuration; the appendix records execution\-specific details\.

Table 3:Shared Llama\-8B training configuration\.
### 4\.2Recipe ledger

Tables[4](https://arxiv.org/html/2610.00053#S4.T4)and[5](https://arxiv.org/html/2610.00053#S4.T5)state the numerical recipe for every reported route\. “Row SR” means stochastic rounding only for the row\-oriented gradient consumed by Dgrad\. Activations, weights, scales, and the separate Wgrad\-oriented gradient representation remain deterministic in every custom route labelled “row SR\.” A Wgrad Hadamard transform always acts onXXandd​YdYas a pair; it never transforms the stored weight\.

Table 4:Per\-contraction numerical recipe\. 2D16 and 2D32 denote one orientation\-consistent16×1616\\times 16or32×3232\\times 32weight encoding\. NV denotes global NVFP4, LC denotes CTA\-local NVFP4, and MX denotes MXFP4\. The 27/5 hybrid changes format by depth; the operand hybrid changes it by contraction inside every block\.Table 5:Rounding and precision policy\. Every row uses a BF16 output projection\.“TE\-managed” means that Transformer Engine controls the H16 transform\. Its sign\-state contract is distinct from the explicit fixed\-sign contract used by the custom kernels\.

All custom training routes retain BF16 parameters and FP32 optimizer state\. The final column in Table[4](https://arxiv.org/html/2610.00053#S4.T4)describes the transient FP4 representation consumed by Tensor Cores\. The operand hybrid emits two encodings from one BF16 weight: MX 2D32 for Fprop and CTA\-local 2D16 for Dgrad\. Wgrad does not consume the stored weight; it quantizesXXandd​YdYwith MXFP4\. This is a deliberate contraction\-specific recipe rather than two layouts of one shared FP4 weight\.

Every operand marked “MX” in Table[4](https://arxiv.org/html/2610.00053#S4.T4)uses encode\-centric E8M0 scales for activation and gradient blocks and the adaptive 2D32 weight rule in Section[2\.2](https://arxiv.org/html/2610.00053#S2.SS2)\. The scale exponent itself is deterministic\. “Row SR” applies to the E2M1 gradient values, not to their E8M0 scale\. This distinction is part of the recipe: scale direction controls range and grid spacing, whereas data SR controls how a value is selected between adjacent E2M1 levels\.

Appendix[C](https://arxiv.org/html/2610.00053#A3)gives the checkpoint inclusion criteria and additional reproducibility details\.

### 4\.3End\-to\-end performance measurements

The performance probes use the same accelerator type, sequence length, global batch, seed, BF16 output projection, compiled CE, warmup rule, metric window, and per\-GPU timing records\. Each route uses its selected local batch, activation\-checkpoint policy, and distributed schedule, so the panel compares complete end\-to\-end configurations rather than one isolated implementation change\. Tables report cross\-device aggregates\. Local batch \(LB\) and gradient accumulation \(GA\) remain explicit because they affect occupancy, memory lifetime, and the exposed output\-layer cost\.

We use the dense\-model training FLOP convention implemented by TorchTitan\. For total parameter countNN, embedding parameter countNembN\_\{\\mathrm\{emb\}\}, number of layersLL, query\-head countHH, head dimensiondhd\_\{h\}, and sequence lengthSS, it gives

Fmodel/token=6​\(N−Nemb\)\+12​L​H​dh​S\.F\_\{\\mathrm\{model/token\}\}=6\\bigl\(N\-N\_\{\\mathrm\{emb\}\}\\bigr\)\+12LHd\_\{h\}S\.\(12\)The first term counts the forward and backward dense parameter operations; the second counts the attention contractions without charging recomputation\. HereN=8,030,261,248N=8\{,\}030\{,\}261\{,\}248,Nemb=525,336,576N\_\{\\mathrm\{emb\}\}=525\{,\}336\{,\}576,L=32L=32,H=32H=32,dh=128d\_\{h\}=128, andS=8,192S=8\{,\}192, givingFmodel/token=57,914,449,920F\_\{\\mathrm\{model/token\}\}=57\{,\}914\{,\}449\{,\}920FLOPs/token\.

For a route with per\-device token rateRR, we report BF16 model FLOP utilization \(BF16 MFU\):

MFUBF16=100​Fmodel/token​RFpeak,BF16,\\mathrm\{MFU\}\_\{\\mathrm\{BF16\}\}=100\\frac\{F\_\{\\mathrm\{model/token\}\}R\}\{F\_\{\\mathrm\{peak,BF16\}\}\},\(13\)using Equation[12](https://arxiv.org/html/2610.00053#S4.E12)and the hardware’s maximum dense BF16 Tensor Core throughput\. NVIDIA specifies 360 PFLOP/s of sparse FP16/BF16 throughput for a 72\-GPU GB200 NVL72 and states that dense throughput is half the sparse value\. Dividing by 72 GPUs and by two gives the maximum dense BF16 throughput used here,Fpeak,BF16=2\.5×1015F\_\{\\mathrm\{peak,BF16\}\}=2\.5\\times 10^\{15\}FLOP/s/GPU, or 2,500 BF16 TFLOP/s/GPU\[[30](https://arxiv.org/html/2610.00053#bib.bib22)\]\. Tokens/s/GPU is the directly observed metric\. We recompute BF16 MFU from each unrounded throughput aggregate with this peak\. For an FP4 route, BF16 MFU is BF16\-equivalent model work divided by the BF16 peak; it measures effective training throughput, not literal FP4 Tensor Core occupancy\. It can therefore exceed 100%\. Recomputing from the rounded token rate printed in a table can differ in the last decimal place\.

### 4\.4Training and checkpoint evaluation

Training curves use exact logged optimizer steps\. Smoothed curves use an exponential moving average only for visualization\. Custom\-route endpoints are raw observations; Appendix[C](https://arxiv.org/html/2610.00053#A3)defines the BF16 and TE\-native reference curves\.

Validation uses a fixed external stream constructed from an 82/18 DataComp\-LM \(DCLM\) and OLMo\-without\-DCLM source mixture\[[26](https://arxiv.org/html/2610.00053#bib.bib32),[43](https://arxiv.org/html/2610.00053#bib.bib31)\]\. It contains 768 sequences and 6,291,456 next\-token targets\. Documents are deduplicated, mixed, and shuffled before packing so one GPU worker cannot receive examples from only one source or contiguous region of source data\. Every checkpoint consumes the same tokenized sequences\. We call this an external validation stream rather than a held\-out split because zero overlap with every historical training trajectory cannot be proven\. Before route comparison, the converted\-checkpoint evaluator and native TorchTitan model must agree at the full 8,192\-token context, and a late BF16 checkpoint must improve over an early one by more than five sequence\-level standard errors\.

Every downstream comparison uses the literal step\-38,000 checkpoint and BF16 inference\. Converted models must match TorchTitan’s RoPE and RMSNorm semantics before scoring\. The evaluation panel follows the four\-task subset used by the reference NVFP4 protocol: MMLU, HellaSwag, WinoGrande, and ARC\-Challenge\[[22](https://arxiv.org/html/2610.00053#bib.bib50),[19](https://arxiv.org/html/2610.00053#bib.bib49),[29](https://arxiv.org/html/2610.00053#bib.bib10)\]\. Shot counts and reported metrics appear with the results\.

## 5Results

### 5\.1What throughput do the end\-to\-end routes achieve?

The fastest custom path, MXFP4 with row\-gradient SR, reaches 37,876\.8 tokens/s/GPU, compared with 18,812\.0 for BF16 and 27,622\.0 for TE\-native NVFP4 in all blocks\. Table[6](https://arxiv.org/html/2610.00053#S5.T6)reports the complete same\-accelerator panel\. Every row uses sequence length 8,192, global batch 512, a BF16 output projection, compiled regular CE, and a cross\-device median over steps 40–100\. BF16 and TE use local batch size 2 with eight gradient\-accumulation steps \(LB2/GA8\); the custom paths use local batch size 4 with four gradient\-accumulation steps \(LB4/GA4\)\.

Table 6:GB200 throughput with compiled regular CE\. Values are cross\-device medians over steps 40–100 for each route’s selected batch geometry\. BF16 uses the selective\-8 setting, which checkpoints every eighth transformer block; all other rows use selective\-32, which checkpoints every 32nd block\. BF16 MFU uses NVIDIA’s 2,500\-TFLOP/s/GPU maximum dense BF16 throughput: 180 PFLOP/s dense for 72 GPUs\[[30](https://arxiv.org/html/2610.00053#bib.bib22)\]\.Under the same 32\-GPU geometry with local batch size 4 and four gradient accumulation steps \(LB4/GA4\), the MXFP4\+row\-SR\+fixed\-H32 route reaches 98\.34% of the row\-SR\-only MXFP4 throughput\. Additional measurement details appear in Appendix[A](https://arxiv.org/html/2610.00053#A1)\.

### 5\.2How closely do the recipes track BF16 training loss?

Figure[7](https://arxiv.org/html/2610.00053#S5.F7)compares the training trajectories\. The top panel shows an exponential moving average over 31 logged observations \(EMA\-31\)\. The bottom panel follows the relative\-difference convention used by NVIDIA\[[29](https://arxiv.org/html/2610.00053#bib.bib10)\]:

ΔBF16​\(t\)=100​LBF16​\(t\)−Lroute​\(t\)LBF16​\(t\)\.\\Delta\_\{\\mathrm\{BF16\}\}\(t\)=100\\frac\{L\_\{\\mathrm\{BF16\}\}\(t\)\-L\_\{\\mathrm\{route\}\}\(t\)\}\{L\_\{\\mathrm\{BF16\}\}\(t\)\}\.\(14\)Zero is the BF16 reference and a negative value means the low\-precision route has higher loss\. Reported comparisons use exact shared logged steps; no reported loss value is interpolated\. The dashed custom\-global\-NVFP4 line is the display\-only fit described below\.

![Refer to caption](https://arxiv.org/html/2610.00053v1/figures/llama8b_160b_training_loss.png)Figure 7:Llama\-8B training loss and relative difference from the BF16 reference\. Continuous histories use EMA\-31, and diamonds mark the final plotted endpoint\. Custom\-global\-NVFP4 has regular observations through step 19,000, but its dense later history was not retained\. The upper panel therefore shows the 74 exact later observations recovered from training logs, including the terminal diamond; the lower panel shows the 18 observations recorded at the same step as BF16\. The dashed custom\-global\-NVFP4 line is a smoothed visual guide through those sparse observations, not additional measurements\. Appendix[C](https://arxiv.org/html/2610.00053#A3)records the surviving data sources\.Figure[8](https://arxiv.org/html/2610.00053#S5.F8)expands the final 40B\-token window\. It shows the late loss separation at the same scale without extrapolating any route\.

![Refer to caption](https://arxiv.org/html/2610.00053v1/figures/llama8b_160b_training_loss_zoom.png)Figure 8:Training loss from 120B to 160B tokens\. Diamonds mark exact logged endpoints\. As in Figure[7](https://arxiv.org/html/2610.00053#S5.F7), the late custom\-global\-NVFP4 markers are exact observations and the dashed curve is a smoothed visual guide, not additional measurements\.The TE route with four final BF16 blocks and the fixed\-H32 operand hybrid both complete the scheduled training horizon\.

Table 7:Raw last logged minibatch loss at step 38,140 \(159\.97B tokens\)\. “Loss excess” is relative to the unadjusted BF16 observation at that step\.At step 38,140, the TE route with four final BF16 blocks is the closest quantized trajectory to the raw BF16 observation, with 0\.87% excess, followed by TE\-native at 1\.34%\. MXFP4 with row\-SR and fixed H32 is the closest custom route at 2\.11%; it is 0\.76% above TE\-native\. The fixed\-H32 operand hybrid ends 1\.85% above the pure MXFP4\-H32 route and 4\.00% above BF16\.

To compare error in the backward input\-gradient calculation \(Dgrad\), we used tensors captured at step 28,000 from the MXFP4\+row\-SR\+fixed\-H32 run\. We recomputed Dgrad with CTA\-local NVFP4 and with MXFP4, using BF16 as the reference\. CTA\-local NVFP4 had lower Dgrad error energy in all 288 layer–component comparisons; the geometric\-meanEMX/ElocalCTAE\_\{\\mathrm\{MX\}\}/E\_\{\\mathrm\{localCTA\}\}ratio was 1\.292\. The completed plain\-H16 operand hybrid nevertheless ends 1\.99% above MXFP4\+row\-SR\+fixed H32 in training loss\. Appendix[C\.4](https://arxiv.org/html/2610.00053#A3.SS4)gives the capture and aggregation contract\.

### 5\.3Validation loss

Figure[9](https://arxiv.org/html/2610.00053#S5.F9)evaluates every available exact checkpoint on one fixed external stream\. We report mean negative log\-likelihood \(NLL\), for which lower values are better\. At the common step\-38,000 cut, MXFP4 with fixed H32 has the lowest observed validation NLL, 2\.422804\. BF16 records 2\.430206, the TE route with four final BF16 blocks 2\.437475, and TE\-native 2\.440488\. The fixed\-H32 operand hybrid records 2\.463842, compared with 2\.460331 for CTA\-local NVFP4 and 2\.462074 for custom global NVFP4\. Relative to BF16, the relative NLL differences100​\(LBF16−Lroute\)/LBF16100\(L\_\{\\mathrm\{BF16\}\}\-L\_\{\\mathrm\{route\}\}\)/L\_\{\\mathrm\{BF16\}\}for MXFP4\-H32, four\-final\-BF16\-block, and operand\-H32 are\+0\.305%\+0\.305\\%,−0\.299%\-0\.299\\%, and−1\.384%\-1\.384\\%, respectively; positive values indicate lower NLL than BF16\. These comparisons cover complete recipes from one training trajectory each; they do not isolate the effect of H32 or average over repeated seeds\.

The 27/5 depth hybrid is evaluated at the five common cuts: steps 2,000, 10,000, 18,000, 29,000, and 38,000\. At step 38,000 its validation NLL is 2\.538116, or 4\.440% higher than matched BF16\.

![Refer to caption](https://arxiv.org/html/2610.00053v1/figures/llama8b_validation_nll.png)Figure 9:Validation NLL on the fixed external stream at every available exact checkpoint\. Error bars are 95% sequence\-level intervals\. The lower panel reports100​\(LBF16−Lroute\)/LBF16100\(L\_\{\\mathrm\{BF16\}\}\-L\_\{\\mathrm\{route\}\}\)/L\_\{\\mathrm\{BF16\}\}at exact shared steps, so negative values are worse than BF16\. Lines connect evaluated checkpoints only; no value is interpolated or extrapolated\.
### 5\.4How do the routes compare on downstream tasks?

The common panel evaluates all eleven routes with a complete exact step\-38,000 checkpoint\. Every route uses BF16 inference and the same MMLU, HellaSwag, WinoGrande, and ARC\-Challenge protocol\.

Table 8:Exact step\-38,000 downstream scores \(%\)\. MMLU and WinoGrande report accuracy; HellaSwag and ARC\-Challenge report normalized accuracy\. Shot counts are 5, 10, 5, and 25, respectively\. Every route uses BF16 inference after exact converted/native parity\. Bold marks the highest observed score in each column\.The task ordering is not uniform\. BF16 has the highest MMLU score, the fixed\-H32 operand hybrid has the highest WinoGrande score, and MXFP4\+row\-SR\+fixed H32 has the highest HellaSwag and ARC\-Challenge scores\. Relative to that pure MXFP4\-H32 route, the fixed\-H32 operand hybrid differs by−1\.66\-1\.66,−2\.02\-2\.02,\+0\.79\+0\.79, and−2\.39\-2\.39points on MMLU, HellaSwag, WinoGrande, and ARC\-Challenge, respectively\. The four\-final\-BF16\-block TE route differs from BF16 by−2\.19\-2\.19,−0\.53\-0\.53,−1\.10\-1\.10, and\+1\.19\+1\.19points\. These are observations from one checkpoint per trajectory, not repeated\-seed estimates\.

![Refer to caption](https://arxiv.org/html/2610.00053v1/figures/fp4_downstream_delta_bf16.png)Figure 10:Downstream reported\-score difference from BF16 at exact step 38,000\. Positive values exceed the BF16 score on that task\. All panels use the same percentage\-point scale\. The absolute scores are reported in Table[8](https://arxiv.org/html/2610.00053#S5.T8)\.

## 6Discussion

The measured TE routes track BF16 closely: TE\-native and the four\-final\-BF16\-block route end 1\.34% and 0\.87% above the raw BF16 loss\. Their common probes reach 27\.6K and 27\.1K tokens/s/GPU\. A separate same\-accelerator probe of the custom global NVFP4 route reaches 32\.5K tokens/s/GPU; its long trajectory ends 2\.69% above BF16\. TE\-native NVFP4 and custom global NVFP4 both use the tensor\-global NVFP4 scale hierarchy; the four\-final\-BF16\-block route uses that hierarchy in its first 28 blocks\. The panel does not isolate the cost of scaling from implementation and batch geometry, but it exposes the systems constraint: a tensor\-global maximum\-absolute\-value reduction creates a completion dependency that the execution path must hide or pay\.

Hadamard preconditioning is not uniformly beneficial across scale strategies\. The fixed\-H32 MXFP4 recipe retains 98\.34% of row\-SR\-only MXFP4 throughput while moving the raw endpoint excess from 6\.53% to 2\.11% and validation NLL from 2\.593146 to 2\.422804\. The fixed\-H16 CTA\-local recipe is slower than CTA\-local without the transform and has higher endpoint and validation loss\. These are comparisons between complete trajectories, not experiments that isolate the effect of Hadamard preconditioning alone\.

Neither tested hybrid dominates the strongest pure custom route\. The depth\-wise hybrid and both operand\-wise hybrids are slower and have higher endpoint and validation loss than MXFP4 with row\-SR and fixed H32\. A controlled replay on identical saved tensors still finds lower Dgrad error for CTA\-local in all 288 tested layer–projection comparisons\. The completed hybrid trajectories do not preserve that operator\-level advantage in endpoint or validation loss\.

## 7Conclusion and Further Work

Format\-aware fusion makes the complete FP4 producer–consumer boundary the unit of optimization\. The TE routes give the closest observed training\-loss tracking, with measured tensor\-global execution paths at 27\.1–27\.6K tokens/s/GPU\. Among the custom routes, MXFP4 with row\-gradient SR and fixed\-sign H32 Wgrad preconditioning reaches 37\.2K tokens/s/GPU, 86\.3% BF16 MFU, a 2\.11% raw endpoint\-loss excess, and the lowest observed validation NLL on the fixed external data stream\. Its downstream ranking remains task dependent\. BF16 records the highest MMLU score, the fixed\-H32 operand hybrid the highest WinoGrande score, and MXFP4 with row\-SR and fixed H32 the highest HellaSwag and ARC\-Challenge scores\. In this panel, late training loss and downstream accuracy therefore do not have a monotonic ordering; training loss alone does not rank the downstream quality of these complete low\-precision recipes\.

Neither the tested depth\-wise nor operand\-wise hybrid improves the combined speed–quality point of the strongest pure custom route\. The opposite outcomes of Hadamard preconditioning under MXFP4 and CTA\-local scaling motivate choosing the group of values sharing each scale, the rounding rule, and the preconditioner jointly\. A complementary direction is to change the scale representation itself\. UE5M3 FP4 pairs E2M1 payloads with an unsigned E5M3 block scale and has supported a recipe with periodic tensor\-scale updates, selective SR, and no Hadamard preconditioning on a separate model and training setup\[[25](https://arxiv.org/html/2610.00053#bib.bib40)\]\. Combining wider unsigned block scales with a CTA\-local producer schedule, or with delayed tensor scaling and global outer scales, is a natural next step\.

## Generative\-AI Disclosure

Generative AI tools assisted with code development, experiment orchestration, analysis, figure generation, and drafting and editing this report\. The author reviewed and verified the code, experiments, numerical results, figures, citations, and final text and takes responsibility for the content\.

## References

- \[1\]A\. Agrusa, A\. Panferov, E\. Wei, K\. Wyss, P\. Gibbons, E\. Schultheis, T\. Blankevoort, and D\. Alistarh\(2026\)What matters for NVFP4 training? a scaling study of low\-precision pre\-training recipes\.InProceedings of the 43rd International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.306\.External Links:[Link](https://openreview.net/forum?id=jlkIyaG32w)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[2\]S\. Ashkboos, A\. Mohtashami, M\. L\. Croci, B\. Li, P\. Cameron, M\. Jaggi, D\. Alistarh, T\. Hoefler, and J\. Hensman\(2024\)QuaRot: outlier\-free 4\-bit inference in rotated LLMs\.arXiv preprint arXiv:2404\.00456\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2404.00456),[Link](https://arxiv.org/abs/2404.00456)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p4.1),[§2\.5](https://arxiv.org/html/2610.00053#S2.SS5.p3.1)\.
- \[3\]H\. Cao, M\. Chen, Y\. Yang, R\. Huang, F\. Dong, J\. Zhou,et al\.\(2026\)Metis: training LLMs with FP4 quantization\.InInternational Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=I2ZrCi5O84)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[4\]R\. L\. Castro, A\. Panferov, R\. Tabesh, O\. Sieberling, J\. Chen, M\. Nikdan, S\. Ashkboos, and D\. Alistarh\(2025\)Quartet: native FP4 training can be optimal for large language models\.InAdvances in Neural Information Processing Systems,Vol\.38,pp\.43552–43572\.External Links:[Document](https://dx.doi.org/10.52202/085713-1449),[Link](https://proceedings.neurips.cc/paper_files/paper/2025/hash/3e11872d3bc9bfba34e1752fef87639c-Abstract-Conference.html)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[5\]Y\. Chen, Y\. Liu, X\. Xu, P\. Zhang, M\. Beyer, M\. Rapp, J\. Zhu, and J\. Chen\(2026\)TetraJet\-v2: accurate NVFP4 training for large language models with oscillation suppression and outlier control\.InProceedings of the 43rd International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.306\.External Links:[Link](https://arxiv.org/abs/2510.27527)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[6\]Y\. Chen, H\. Xi, J\. Zhu, and J\. Chen\(2025\)Oscillation\-reduced MXFP4 training for vision transformers\.InProceedings of the 42nd International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.267,pp\.9400–9414\.External Links:[Link](https://proceedings.mlr.press/v267/chen25bu.html)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[7\]B\. Chmiel, R\. Banner, E\. Hoffer, H\. B\. Yaacov, and D\. Soudry\(2023\)Accurate neural training with 4\-bit matrix multiplications at standard formats\.InInternational Conference on Learning Representations,External Links:[Link](https://arxiv.org/abs/2112.10769)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p1.1),[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p4.1),[§2\.5](https://arxiv.org/html/2610.00053#S2.SS5.p1.2)\.
- \[8\]B\. Chmiel, M\. Fishman, R\. Banner, and D\. Soudry\(2025\)FP4 all the way: fully quantized training of large language models\.InAdvances in Neural Information Processing Systems,Vol\.38,pp\.91130–91151\.External Links:[Document](https://dx.doi.org/10.52202/085713-3049),[Link](https://proceedings.neurips.cc/paper_files/paper/2025/file/8340b085045cf13f1f0b6c2c4cc0a89c-Paper-Conference.pdf)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1),[§2\.5](https://arxiv.org/html/2610.00053#S2.SS5.p2.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.5.2.1.1)\.
- \[9\]M\. Cim, S\. Arora, P\. Palangappa, M\. Hodak, R\. Dwivedula, M\. Arunachalam, and M\. T\. Kandemir\(2026\)Pretraining large language models with MXFP4 on native FP4 hardware\.arXiv preprint arXiv:2605\.09825\.Note:Version 4, revised 12 August 2026External Links:[Document](https://dx.doi.org/10.48550/arXiv.2605.09825),[Link](https://arxiv.org/abs/2605.09825)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1),[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p4.1),[§2\.4](https://arxiv.org/html/2610.00053#S2.SS4.p2.1),[§2\.5](https://arxiv.org/html/2610.00053#S2.SS5.p6.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.2.2.1.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.4.2.1.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.6.2.1.1)\.
- \[10\]J\. Cook, J\. Guo, G\. Xiao, Y\. Lin, K\. Wyss, M\. Nazemi, A\. Mishra, C\. del Mundo, T\. Blankevoort, and S\. Han\(2025\)Four over six: more accurate NVFP4 quantization with adaptive block scaling\.arXiv preprint arXiv:2512\.02010\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2512.02010),[Link](https://arxiv.org/abs/2512.02010)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[11\]T\. Dao, D\. Y\. Fu, S\. Ermon, A\. Rudra, and C\. Re\(2022\)FlashAttention: fast and memory\-efficient exact attention with IO\-awareness\.InAdvances in Neural Information Processing Systems,Vol\.35\.External Links:[Link](https://arxiv.org/abs/2205.14135)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p5.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.7.2.1.1)\.
- \[12\]T\. Dao\(2023\)FlashAttention\-2: faster attention with better parallelism and work partitioning\.arXiv preprint arXiv:2307\.08691\.External Links:[Link](https://arxiv.org/abs/2307.08691)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p5.1)\.
- \[13\]S\. Ding, M\. Ma, J\. Tong, X\. Xing, Z\. Wang, and G\. Li\(2026\)Full\-stack FP4: stable LLM pretraining with quantized projections, optimizers, and attention\.arXiv preprint arXiv:2607\.04422\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2607.04422),[Link](https://arxiv.org/abs/2607.04422)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[14\]P\. Dong, R\. Fan, Y\. Tao, D\. Mou, W\. Hu, Z\. Tang, Y\. Yu, J\. Wang, W\. Su, G\. Yang, L\. Zhang, X\. Chu, B\. Li, and B\. Li\(2026\)Dissecting outlier dynamics in LLM NVFP4 pretraining\.arXiv preprint arXiv:2602\.02047\.External Links:[Link](https://arxiv.org/abs/2602.02047)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[15\]J\. Du, R\. Gong, L\. Ai, Z\. Wang, Y\. Peng, Y\. Wang, L\. Yan,et al\.\(2026\)Half\-s: halving the scale for near\-lossless 4\-bit LLM training\.InFindings of the Association for Computational Linguistics: ACL 2026,pp\.4890–4903\.External Links:[Document](https://dx.doi.org/10.18653/v1/2026.findings-acl.241),[Link](https://aclanthology.org/2026.findings-acl.241/)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[16\]A\. Dubeyet al\.\(2024\)The Llama 3 herd of models\.arXiv preprint arXiv:2407\.21783\.External Links:[Link](https://arxiv.org/abs/2407.21783)Cited by:[§4\.1](https://arxiv.org/html/2610.00053#S4.SS1.p1.1)\.
- \[17\]A\. Fasoli, M\. Kar, C\. Liu, S\. Venkataramani, V\. Srinivasan, L\. Chang, and N\. Wang\(2026\)Is finer better? the limits of microscaling formats in large language models\.arXiv preprint arXiv:2601\.19026\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2601.19026),[Link](https://arxiv.org/abs/2601.19026)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p1.1)\.
- \[18\]A\. W\. Fitzgibbon and S\. Felix\(2025\)On stochastic rounding with few random bits\.In2025 IEEE 32nd Symposium on Computer Arithmetic \(ARITH\),pp\.133–140\.External Links:[Document](https://dx.doi.org/10.1109/ARITH64983.2025.00029),[Link](https://doi.org/10.1109/ARITH64983.2025.00029)Cited by:[§2\.5](https://arxiv.org/html/2610.00053#S2.SS5.p1.2)\.
- \[19\]Y\. Gu, O\. Tafjord, B\. Kuehl, D\. Haddad, J\. Dodge, and H\. Hajishirzi\(2025\)OLMES: a standard for language model evaluations\.InFindings of the Association for Computational Linguistics: NAACL 2025,pp\.5020–5048\.External Links:[Document](https://dx.doi.org/10.18653/v1/2025.findings-naacl.282),[Link](https://aclanthology.org/2025.findings-naacl.282/)Cited by:[§4\.4](https://arxiv.org/html/2610.00053#S4.SS4.p3.1)\.
- \[20\]H\. Guo, J\. Zhang, A\. Menon, D\. Guessous, V\. Thakkar, Y\. Kim, and T\. Dao\(2026\)CODA: rewriting transformer blocks as GEMM\-epilogue programs\.arXiv preprint arXiv:2605\.19269\.External Links:[Link](https://arxiv.org/abs/2605.19269)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p5.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.7.2.1.1),[§3\.1](https://arxiv.org/html/2610.00053#S3.SS1.p1.2)\.
- \[21\]S\. Gupta, A\. Agrawal, K\. Gopalakrishnan, and P\. Narayanan\(2015\)Deep learning with limited numerical precision\.InProceedings of the 32nd International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.37,pp\.1737–1746\.External Links:[Link](https://proceedings.mlr.press/v37/gupta15.html)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p1.1),[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p4.1),[§2\.5](https://arxiv.org/html/2610.00053#S2.SS5.p1.2)\.
- \[22\]D\. Hendrycks, C\. Burns, S\. Basart, A\. Zou, M\. Mazeika, D\. Song, and J\. Steinhardt\(2021\)Measuring massive multitask language understanding\.InInternational Conference on Learning Representations,External Links:[Link](https://arxiv.org/abs/2009.03300)Cited by:[§4\.4](https://arxiv.org/html/2610.00053#S4.SS4.p3.1)\.
- \[23\]P\. Hsuet al\.\(2024\)Liger kernel: efficient Triton kernels for LLM training\.arXiv preprint arXiv:2410\.10989\.External Links:[Link](https://arxiv.org/abs/2410.10989)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p5.1)\.
- \[24\]R\. Hu, C\. Luschi, and P\. Balanca\(2025\)Elucidating the design space of FP4 training\.arXiv preprint arXiv:2509\.17791\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2509.17791),[Link](https://arxiv.org/abs/2509.17791)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p1.1)\.
- \[25\]R\. Hu, C\. Luschi, and P\. Balanca\(2026\)UE5M3 FP4 block scaling for stable language model pretraining\.arXiv preprint arXiv:2609\.02846\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2609.02846),[Link](https://arxiv.org/abs/2609.02846)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1),[§7](https://arxiv.org/html/2610.00053#S7.p2.1)\.
- \[26\]J\. Li, A\. Fang, G\. Smyrnis, M\. Ivgi, M\. Jordan, S\. Gadre,et al\.\(2024\)DataComp\-LM: in search of the next generation of training sets for language models\.InAdvances in Neural Information Processing Systems,Vol\.37\.External Links:[Document](https://dx.doi.org/10.52202/079017-0455),[Link](https://proceedings.neurips.cc/paper_files/paper/2024/hash/19e4ea30dded58259665db375885e412-Abstract-Datasets_and_Benchmarks_Track.html)Cited by:[§4\.4](https://arxiv.org/html/2610.00053#S4.SS4.p2.1)\.
- \[27\]P\. Micikevicius, S\. Narang, J\. Alben, G\. Diamos, E\. Elsen, D\. Garcia, B\. Ginsburg, M\. Houston, O\. Kuchaiev, G\. Venkatesh, and H\. Wu\(2018\)Mixed precision training\.InInternational Conference on Learning Representations,External Links:[Link](https://openreview.net/forum?id=r1gs9JgRZ)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p1.1)\.
- \[28\]P\. Micikevicius, D\. Stosic, N\. Burgess, M\. Cornea, P\. Dubey, R\. Grisenthwaite,et al\.\(2022\)FP8 formats for deep learning\.arXiv preprint arXiv:2209\.05433\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2209.05433),[Link](https://arxiv.org/abs/2209.05433)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p1.1)\.
- \[29\]NVIDIA, F\. Abecassis, A\. Agrusa, D\. Ahn, J\. Alben, S\. Alborghetti,et al\.\(2025\)Pretraining large language models with NVFP4\.arXiv preprint arXiv:2509\.25149\.Note:Version 2, revised 4 March 2026External Links:[Document](https://dx.doi.org/10.48550/arXiv.2509.25149),[Link](https://arxiv.org/abs/2509.25149)Cited by:[§1](https://arxiv.org/html/2610.00053#S1.p1.1),[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1),[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p4.1),[§2\.2\.2](https://arxiv.org/html/2610.00053#S2.SS2.SSS2.p1.1),[§2\.4](https://arxiv.org/html/2610.00053#S2.SS4.p1.2),[§2\.4](https://arxiv.org/html/2610.00053#S2.SS4.p2.1),[§2\.5](https://arxiv.org/html/2610.00053#S2.SS5.p2.1),[§2\.5](https://arxiv.org/html/2610.00053#S2.SS5.p3.1),[§2\.5](https://arxiv.org/html/2610.00053#S2.SS5.p4.1),[§2\.6](https://arxiv.org/html/2610.00053#S2.SS6.p1.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.3.2.1.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.4.2.1.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.5.2.1.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.6.2.1.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.7.2.1.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.8.2.1.1),[§4\.4](https://arxiv.org/html/2610.00053#S4.SS4.p3.1),[§5\.2](https://arxiv.org/html/2610.00053#S5.SS2.p1.1)\.
- \[30\]NVIDIA\(2025\)NVIDIA GB200 NVL72\.External Links:[Link](https://www.nvidia.com/en-us/data-center/gb200-nvl72/)Cited by:[§4\.3](https://arxiv.org/html/2610.00053#S4.SS3.p3.2),[Table 6](https://arxiv.org/html/2610.00053#S5.T6)\.
- \[31\]NVIDIA\(2026\)NVFP4 training with transformer engine\.External Links:[Link](https://docs.nvidia.com/deeplearning/transformer-engine-releases/release-2.15/user-guide/features/low_precision_training/nvfp4/nvfp4.html)Cited by:[§2\.4](https://arxiv.org/html/2610.00053#S2.SS4.p2.1),[§2\.5](https://arxiv.org/html/2610.00053#S2.SS5.p4.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.4.2.1.1)\.
- \[32\]NVIDIA\(2026\)NVIDIA HGX platform\.External Links:[Link](https://www.nvidia.com/en-us/data-center/hgx/)Cited by:[Table 9](https://arxiv.org/html/2610.00053#A1.T9)\.
- \[33\]Open Compute Project\(2023\)OCP microscaling formats \(MX\) specification, version 1\.0\.Technical reportOpen Compute Project\.External Links:[Link](https://www.opencompute.org/documents/ocp-microscaling-formats-mx-v1-0-spec-final-pdf)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p1.1),[§2\.2\.2](https://arxiv.org/html/2610.00053#S2.SS2.SSS2.p1.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.2.2.1.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.3.2.1.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.7.2.1.1)\.
- \[34\]K\. Ozkara, T\. Yu, and Y\. Park\(2025\)Stochastic rounding for LLM training: theory and practice\.InProceedings of the 28th International Conference on Artificial Intelligence and Statistics,Proceedings of Machine Learning Research, Vol\.258,pp\.4402–4410\.External Links:[Link](https://proceedings.mlr.press/v258/ozkara25b.html)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p4.1),[§2\.5](https://arxiv.org/html/2610.00053#S2.SS5.p1.2)\.
- \[35\]A\. Panferov, E\. Schultheis, S\. Tabesh, and D\. Alistarh\(2026\)Quartet II: accurate LLM pre\-training in NVFP4 by improved unbiased gradient estimation\.arXiv preprint arXiv:2601\.22813\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2601.22813),[Link](https://arxiv.org/abs/2601.22813)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[36\]M\. Rahimifar, A\. Darabi, M\. T\. Jazi, X\. Huang, Y\. Wang, Z\. Tu, Y\. Cui, Y\. Peng, and H\. Li\(2026\)Stable FP4 training via transposition\-invariant block quantization\.arXiv preprint arXiv:2607\.24953\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2607.24953),[Link](https://arxiv.org/abs/2607.24953)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p4.1),[§2\.4](https://arxiv.org/html/2610.00053#S2.SS4.p1.2),[§2\.4](https://arxiv.org/html/2610.00053#S2.SS4.p2.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.4.2.1.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.8.2.1.1)\.
- \[37\]B\. D\. Rouhani, R\. Zhao, A\. More, M\. Hall, A\. Khodamoradi, S\. Deng,et al\.\(2023\)Microscaling data formats for deep learning\.arXiv preprint arXiv:2310\.10537\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2310.10537),[Link](https://arxiv.org/abs/2310.10537)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p1.1)\.
- \[38\]B\. Rouhani, R\. Zhao, V\. Elango, R\. Shafipour, M\. Hall, M\. Mesmakhosroshahi,et al\.\(2023\)With shared microexponents, a little shifting goes a long way\.arXiv preprint arXiv:2302\.08007\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2302.08007),[Link](https://arxiv.org/abs/2302.08007)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p1.1)\.
- \[39\]B\. F\. Spector, S\. Arora, A\. Singhal, D\. Y\. Fu, and C\. Re\(2024\)ThunderKittens: simple, fast, and adorable AI kernels\.arXiv preprint arXiv:2410\.20399\.External Links:[Link](https://arxiv.org/abs/2410.20399)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p5.1),[§3\.1](https://arxiv.org/html/2610.00053#S3.SS1.p1.2)\.
- \[40\]X\. Sun, N\. Wang, C\. Chen, J\. Ni, A\. Agrawal, X\. Cui, S\. Venkataramani, K\. E\. Maghraoui, V\. Srinivasan, and K\. Gopalakrishnan\(2020\)Ultra\-low precision 4\-bit training of deep neural networks\.InAdvances in Neural Information Processing Systems,Vol\.33,pp\.1796–1807\.External Links:[Link](https://proceedings.neurips.cc/paper_files/paper/2020/file/13b919438259814cd5be8cb45877d577-Paper.pdf)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p1.1)\.
- \[41\]X\. Sun, S\. Li, R\. Xie, W\. Han, K\. Wu, Z\. Yang,et al\.\(2025\)Scaling laws for floating–point quantization training\.InProceedings of the 42nd International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.267,pp\.57544–57570\.External Links:[Link](https://proceedings.mlr.press/v267/sun25j.html)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p1.1)\.
- \[42\]M\. Taghian, Y\. Peng, X\. Huang, Y\. Wang, Y\. Wang, W\. Guo,et al\.\(2026\)HiFloat4 format for language model pre\-training on Ascend NPUs\.arXiv preprint arXiv:2604\.08826\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2604.08826),[Link](https://arxiv.org/abs/2604.08826)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[43\]Team OLMo, P\. Walsh, L\. Soldaini, D\. Groeneveld, K\. Lo,et al\.\(2025\)2 OLMo 2 furious\.arXiv preprint arXiv:2501\.00656\.External Links:[Link](https://arxiv.org/abs/2501.00656)Cited by:[§4\.4](https://arxiv.org/html/2610.00053#S4.SS4.p2.1),[Table 3](https://arxiv.org/html/2610.00053#S4.T3.4.4.2.1.1)\.
- \[44\]A\. Tseng, T\. Yu, and Y\. Park\(2025\)Training LLMs with MXFP4\.InProceedings of the 28th International Conference on Artificial Intelligence and Statistics,Proceedings of Machine Learning Research, Vol\.258,pp\.1630–1638\.External Links:[Link](https://proceedings.mlr.press/v258/tseng25a.html)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1),[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p4.1),[§2\.4](https://arxiv.org/html/2610.00053#S2.SS4.p2.1),[§2\.5](https://arxiv.org/html/2610.00053#S2.SS5.p3.1),[§2\.5](https://arxiv.org/html/2610.00053#S2.SS5.p4.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.6.2.1.1)\.
- \[45\]R\. Wang, Y\. Gong, X\. Liu, G\. Zhao, Z\. Yang, B\. Guo, Z\. Zha, and P\. Cheng\(2025\)Optimizing large language model training using FP4 quantization\.InProceedings of the 42nd International Conference on Machine Learning,Proceedings of Machine Learning Research, Vol\.267,pp\.62937–62957\.External Links:[Link](https://proceedings.mlr.press/v267/wang25ae.html)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[46\]E\. Wijmans, B\. Huval, A\. Hertzberg, V\. Koltun, and P\. Krahenbuhl\(2024\)Cut your losses in large\-vocabulary language models\.arXiv preprint arXiv:2411\.09009\.External Links:[Link](https://arxiv.org/abs/2411.09009)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p5.1)\.
- \[47\]H\. Yang, S\. Deng, A\. Nagpal, M\. Naumov, M\. Janani, T\. Liu, and H\. Guan\(2025\)An empirical study of microscaling formats for low\-precision LLM training\.InIEEE Symposium on Computer Arithmetic,External Links:[Document](https://dx.doi.org/10.1109/ARITH64983.2025.00011),[Link](https://doi.org/10.1109/ARITH64983.2025.00011)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p1.1)\.
- \[48\]W\. Zhang, C\. Huang, C\. You, C\. Gu, F\. Wang, and M\. Sun\(2026\)Practical FP4 training for large\-scale MoE models on hopper GPUs\.arXiv preprint arXiv:2603\.02731\.External Links:[Link](https://arxiv.org/abs/2603.02731)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[49\]Q\. Zhao, K\. Chen, C\. Tian, Z\. Jiang, H\. Zhang, C\. Yu, P\. Jiang, M\. Gong, J\. Liu, Z\. Liu, Z\. Zhang, and J\. Zhou\(2026\)Rethinking shrinkage bias in LLM FP4 pretraining: geometric origin, systemic impact, and UFP4 recipe\.arXiv preprint arXiv:2606\.20381\.External Links:[Link](https://arxiv.org/abs/2606.20381)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1)\.
- \[50\]J\. Zhou, D\. Tang, R\. Fu, B\. Hu, H\. Xu, Y\. Wang, Z\. Pei, Z\. Su, L\. Liu, X\. Zhang, and W\. Zhang\(2025\)Towards efficient pre\-training: exploring FP4 precision in large language models\.arXiv preprint arXiv:2502\.11458\.External Links:[Document](https://dx.doi.org/10.48550/arXiv.2502.11458),[Link](https://arxiv.org/abs/2502.11458)Cited by:[§2\.1](https://arxiv.org/html/2610.00053#S2.SS1.p2.1),[Table 1](https://arxiv.org/html/2610.00053#S2.T1.4.8.2.1.1)\.

## Appendix AImplementation and Validation Notes

The kernels specialize the production tensor shapes and define buffer lifetimes across eager execution, recomputation, and CUDA Graph replay\. QKV and FFN producers emit both quantized orientations\. Residual–RMSNorm preserves the BF16 residual and exact row statistics required by backward\. Each path is checked against a higher\-precision reference for outputs, input gradients, weight gradients, relative RMS error, and zero fractions before model timing\.

Row\- and column\-oriented scales are distinct numerical state, not interchangeable layout metadata\. Tensors returned to autograd cannot alias a workspace whose lifetime ends with the producing stream\. Each delayed FP4 prefetch buffer has one owner and is released exactly once, preventing asynchronous work from outliving its storage\. Distributed measurements use per\-GPU timing and dispatch evidence because the slowest GPU sets the step time\.

### A\.1Weight orientation and the fixed sign pattern

The custom global NVFP4 path creates one 2D16 numerical weight encoding and exposes it in both consumer layouts\. The native 2D32 MXFP4 path follows the same orientation\-consistency rule\.

The signed\-Hadamard paths use the fixed literal0x00002817\. Under the custom kernel’s convention, a set bit denotes\+1\+1and a clear bit denotes−1\-1\. Bits 0–15 encode the same 16\-entry sign vector that the pinned TE implementation stores explicitly\. The H32 implementation applies this same 16\-sign pattern separately to two 16\-value halves, then combines the halves with the final 32\-value Hadamard add/subtract stage\. Thus H32 names the 32\-value transform width, not a 32\-bit random mask: the reported H32 transform repeats one signed\-H16 diagonal and does not interpret the literal’s upper zero bits as 16 additional signs\. No signs are drawn during training\. The construction remains orthogonal and preserves the unquantized Wgrad dot product because the identical transform is paired onXXandd​YdY\. The experiments do not compare this fixed vector with newly sampled signs and do not establish that the particular diagonal is optimal\.

Compilation and first\-step kernel generation are excluded from steady\-state probe windows\. Each measurement records device count, local batch, gradient accumulation, seed, loss implementation, source revision, and metric window\. Each distributed worker checkpoints its stochastic\-rounding seed and counter offset so that a resumed run does not reuse random\-number draws\.

Table[9](https://arxiv.org/html/2610.00053#A1.T9)gives secondary production measurements\. All three use a BF16 output projection and compiled regular CE\. Their batch geometries and measurement windows differ, so the table does not isolate one implementation change\.

Table 9:Compiled\-CE B300 production snapshots\. BF16 MFU uses the B300’s 2,250 TFLOP/s/GPU dense BF16 peak\[[32](https://arxiv.org/html/2610.00053#bib.bib23)\]\.

## Appendix BLow\-Precision Output Head: Negative Result

This appendix records an engineering screen for which the exact low\-precision forward format was not preserved\. The vocabulary projection has a large forward GEMM and is therefore an attractive FP4 target\. In the complete trainer, however, the head also owns cross entropy, the hidden\-state gradient, the weight gradient, quantization, and saved\-tensor lifetime\. Accelerating one GEMM did not accelerate that whole boundary\.

MXFP8 below denotes an eight\-bit microscaling format used for one weight\-gradient configuration\.

Table 10:Historical whole\-trainer output\-head screen\. Deltas are paired within one experiment\. The complete profiler metadata was not preserved, so rates are rounded and are not compared with the primary performance panel\.†The experiment record preserves the backward choices and paired rates but not the exact low\-precision forward format\. We therefore retain the literal “lowp” label rather than assigning a more specific format after the fact\.

Both selective low\-precision variants are slower than their matched BF16 control\. The preserved record also says that neither reproduced the BF16 control loss, and that the MXFP8 weight\-gradient configuration additionally changed gradients; it does not retain a publication\-ready error magnitude, so we do not rank the size of those numerical differences\. These results support the selected design: a BF16 output projection with compiled CE\.

## Appendix CReproducibility

### C\.1Report inputs

The main training and performance tables and figures are generated from checked\-in data snapshots\. The publication data directory contains the training\-loss series, same\-accelerator performance aggregates, checkpoint inventories, evaluation results, plotting programs, and a SHA\-256 ledger\. Figure generators verify their declared inputs before writing an output\. The machine\-readable recipe ledger records the route, precision policy, rounding and preconditioning choices, batch geometry, seed when recovered, checkpoint horizon, and evidence status for every experiment discussed in the paper\. Shared model, data, and optimizer fields are stored separately so that an incomplete historical row cannot silently inherit a value from a newer run\.

For display consistency, the historical BF16 and TE\-native training\-loss curves in Figure[7](https://arxiv.org/html/2610.00053#S5.F7)use fixed offsets inferred from 41 matched steps in seed\-42 controls\. The raw series and adjustment remain in the publication data\.

The long\-run curves combine only explicitly identified execution segments\. The CTA\-local NVFP4\+fixed\-H16 and operand\-hybrid trajectories each cross a documented full\-state resume boundary\. Their manifests identify the source and continuation ranges; no overlapping step is counted twice\. Training\-loss observations for custom global NVFP4 are regular through step 19,000\. The configured Weights & Biases run is no longer returned by the service, and the dense local CSV named by the historical manifest was not present in any recovered or released tree\. Seventy\-four exact observations survive after step 19,000 in fragmented training logs\. The largest missing sequence of expected ten\-step records runs from step 24,710 through step 33,000\. The dashed late line is a visual LOWESS fit through the surviving observations, evaluated at the BF16 plotting steps\. It is never used to compute a reported numeric endpoint, table entry, or statistic\.

### C\.2Checkpoint and evaluator contract

Training comparisons use exact shared steps\. Custom\-route values are raw observations\. Downstream comparisons use literal step\-38,000 checkpoints; a terminal, nearby, or checkpoint from a different training run is never substituted\. Distributed checkpoints must contain all expected shards and pass conversion checks before evaluation\.

The evaluator must reproduce the training model’s RoPE and RMSNorm semantics\. The Llama\-3\.1 8B training configuration uses base500,000500\{,\}000and the long\-context RoPE scaling parameters\(8,1,4,8192\)\(8,1,4,8192\)\. An earlier evaluator disabled this scaling in both the converted\-checkpoint evaluator and native TorchTitan reference\. Agreement between those two implementations therefore did not establish agreement with the training model\. Results from that evaluator are excluded\.

An earlier validation stream used the correct model semantics but failed a data\-source robustness check: apparent route ordering changed when examples came from different contiguous regions of the source datasets\. Those values are also excluded\. The replacement stream was constructed afresh from deterministic windows in the 90–95% physical sample range of the DCLM and OLMo\-without\-DCLM components\. Documents are deduplicated by raw\-text SHA\-256, combined at an 82/18 token ratio, globally hash\-shuffled, and only then packed and sharded\. Thus no GPU worker is restricted to one source or contiguous region of source data\.

The replacement fixed validation stream contains 768 sequences of 8,193 tokens, yielding 6,291,456 scored next\-token targets\. It is tokenized once with the pinned Llama\-3\.1 tokenizer and reused byte\-for\-byte for every checkpoint\. We call it a*fixed external validation stream*, not a held\-out split, because zero document overlap across every historical training trajectory has not been proven\. Its source ledger contains 4,597 documents with 4,597 unique raw\-text hashes\. Before reporting route comparisons, the corrected checkpoint evaluator must agree exactly with the native TorchTitan model at the full 8,192\-token context, and a late BF16 checkpoint must improve over an early BF16 checkpoint by more than five sequence\-level standard errors\. Both checks pass\. The converted checkpoint and native TorchTitan model agree exactly at full context for the step\-2,000 and step\-29,000 BF16 checkpoints\. Their validation NLL values are 3\.283272 and 2\.460520, respectively; the paired late\-minus\-early difference is−0\.822753\-0\.822753with sequence\-level standard error 0\.003708\.

Downstream evaluation uses BF16 inference and one evaluator configuration for all routes\. MMLU is 5\-shot, HellaSwag 10\-shot, WinoGrande 5\-shot, and ARC\-Challenge 25\-shot; HellaSwag and ARC report normalized accuracy\. A route enters the common panel only after the exact checkpoint and corrected model semantics are verified\.

### C\.3Historical execution identity

Historical experiments are bound to the code, submodule, kernel asset, checkpoint, and output identities recovered for that execution\. The current source and runtime tips are not assigned retroactively to an older run\. Where a field was not recovered, the ledger records it as unknown rather than guessing the nearest commit\. Complete identifiers and content digests are in the publication data ledger rather than the narrative\.

The custom global NVFP4 path uses one orientation\-consistent 2D16 weight encoding\. The code used by the completed MXFP4\+row\-SR\+fixed\-H32 run is content\-verified in its run manifest\. The CTA\-local NVFP4\+fixed\-H16 and operand\-wise plain\-H16 trajectories each join verified execution segments at an exact full\-state checkpoint\. Their manifests record implementation changes, segment boundaries, and checkpoint state\.

### C\.4Controlled Dgrad diagnostic

The operand\-format diagnostic uses tensors from the step\-28,000 checkpoint of the completed MXFP4\+row\-SR\+fixed\-H32 trajectory\. It computes Dgrad with MXFP4 and CTA\-local NVFP4 against the corresponding BF16 result\. The diagnostic configures a paired plain\-H16 transform for Wgrad only; that transform does not enter the scored Dgrad contraction and is not part of the comparison\.

For each captured tensor, four stochastic candidate tensors are averaged before computing

E=∑i\(d​X^i−d​XiBF16\)2\.E=\\sum\_\{i\}\\left\(\\widehat\{dX\}\_\{i\}\-dX\_\{i\}^\{\\mathrm\{BF16\}\}\\right\)^\{2\}\.\(15\)The capture covers three sequence\-2,048 batches, QKV, attention\-output, and FFN projections in all 32 blocks, and an independently seeded stochastic\-rounding generator rather than the training run’s saved generator state\. This gives 96 layer–component comparisons per batch and 288 in total\. CTA\-local NVFP4 has lower error energy in all 288 comparisons\. Giving each tensor equal weight, the cross\-capture geometric mean ofEMX/ElocalCTAE\_\{\\mathrm\{MX\}\}/E\_\{\\mathrm\{localCTA\}\}is 1\.292\.

### C\.5Excluded experiments

The custom global NVFP4/MXFP4 depth hybrid remains outside the common endpoint panels because it diverged and retained only 16 of 32 terminal shards\. The TE route with four final BF16 blocks and the fixed\-H32 operand hybrid both completed 160B\-token trajectories with resumable final checkpoints and are included in the endpoint panels\.

Diagnostic screens are also excluded from the common panels\. The low\-precision output\-head configurations produced no stable model\-level speedup\. A CTA\-local NVFP4 transform screen resumed near the end of training under a changed runtime, so it is not a causal comparison\. The superseded downstream evaluator omitted training\-time RoPE scaling, while the superseded validation stream was sensitive to the contiguous source\-data region selected\. Their records are retained for audit, not used as scientific endpoints\.

Runmakein the report directory to regenerate the figures and PDF\. The checked\-in data README lists each source file, generator, and verification command;data/SHA256SUMSbinds the publication inputs\.

### C\.6Code and data availability

Code, pinned kernel sources, experiment recipes, evaluation tools, and figure builders are available at[https://github\.com/MrHuff/mfu\-fp4\-training](https://github.com/MrHuff/mfu-fp4-training)\. Project\-authored software is released under the MIT License\. The original manuscript and figures are released under CC BY 4\.0; included third\-party components retain their own terms\. Training corpora, tokenizer assets, model checkpoints, and checkpoint metadata are not redistributed\. The repository instead provides hash\-bound input schemas and public recipes for binding authorized local copies without recording credentials or private storage locations\.

相似文章