Low-precision training
Four-bit NVFP4 matrix multiplications run six times faster than BF16 on Blackwell GPUs, using 16-value blocks with 8-bit scales to keep dynamic range tight. That coarse 15-value grid introduces two coupled failure modes: one outlier erases small values in its block, and transposing a tensor for the backward pass regroups blocks so backward products differentiate a slightly different function.
Two recipes resolve that mismatch in opposite ways. NVIDIA runs forward and backward products in NVFP4 across 10 trillion tokens using square weight tiles, stochastic gradient rounding, rotated weight gradients, and higher-precision final layers. Thinking Machines keeps 1-by-16 forward expert blocks, re-encodes decoded tensors into MXFP8 with stochastic rounding for backward passes, and adds rotated 8-bit combines across pretraining through RL.
- An NVFP4 block of 16 values holds one outlier and fifteen values at (with outer scale ). Compute and the encoded E2M1 code for : what happens to all fifteen small values?Setting puts , snapping to 0. Any value below is wiped out; for the cliff hits at . Drag outlier M below across 36 to watch the snap to zero:From End-to-end 4-bit training
- NVIDIA's 12B NVFP4 recipe scales weights in tiles (256 values/scale) while keeping activations and gradients in blocks. What bug would weight blocks trigger in a fully 4-bit backward pass?Because Dgrad sums over instead of , blocks force a second column-blocked copy . Square tiles group the exact same 256 weights in both orientations, keeping consistent.From Pretraining with NVFP4
- In forward (summing over ), is blocked in rows. Why can't tensor cores reuse those exact NVFP4 weight blocks unchanged for the input gradient ?Tensor cores require both operands blocked along the summed dimension. Forward sums along (rows of ), while sums along (columns of ), regrouping each entry with 15 new neighbors and a new scale.From End-to-end 4-bit training
- Take uniform over a grid cell of width . Compare the mean squared error of round-to-nearest () against stochastic rounding (): why does NVIDIA put on gradients ONLY?For uniform , while . Gradients sum over a whole batch so zero-mean noise cancels while bias compounds; forward tensors want lower MSE.From Pretraining with NVFP4
- NVIDIA's weight tiles give identical encodings in row and column orientations. Why did Thinking Machines reject tiles in Inkling 2?In the post's single-outlier example, row blocks preserve 241 of 256 values, whereas a tile scale erases all 255 small entries via the rule, hurting compute efficiency.From End-to-end 4-bit training