Transformer Engine 2.21's scalar FP4 rounding is unbiased on BF16 [1/4,6] but zeros every BF16 magnitude below 1/512

0 citing publications

An independent scalar audit of pinned Transformer Engine v2.21.0 checks 33,154 signed BF16 encodings and every local byte: 8,487,424 host helper evaluations match an exact rational oracle. Every BF16 magnitude from 1/4 through 6 is unbiased, while every nonzero BF16 magnitude below 1/512 becomes signed zero for all bytes. The exact FP32 FMA escape threshold is slightly lower: 1/512 minus 2^-26. An independent midpoint-count law matches 17,878 additional boundary-focused FP32 histograms; 448 differ from the rational approximation. Finite-bit bias is established prior art; the contribution is a pinned numerical contract and finite census. No CUDA dispatch, native instruction, full tensor recipe, or learning experiment is executed. The complete-recipe gradient/learning consequence remains unestablished here. Includes source-hash-checking downloader, host extraction, independent exact verifier, full BF16 table and figure.

FP4 · BF16 · stochastic rounding · Transformer Engine · exact arithmetic · FMA

No votes to show.

References

6
  1. usesTransformer Engine 2.21.0 can accumulate NVFP4 weight gradients with beta=1; audited forward and input-gradient calls use beta=0
  2. useshttps://github.com/NVIDIA/TransformerEngine/blob/7457e47d26d9d02dfb783007335dfbe75e1b90a8/transformer_engine/common/util/ptx.cuh
  3. doi:10.48550/arXiv.2603.06060
  4. doi:10.48550/arXiv.2408.03069
  5. doi:10.48550/arXiv.2509.25149
  6. doi:10.48550/arXiv.2601.22813

Cited by

0 publications

No incoming citations on sciscape.