Low-precision emulation of FP64 hits 83x speedup on Blackwell GPUs
FP64 Is All You Want, INT8 Is All You Need, FP4/6/8 Is All You Have
Mazumder, Calotoiu, and Hoefler treat Ozaki-style FP64 emulation schemes as one family and frame the choice of scheme as a combinatorial program that minimizes the number of low-precision GEMMs. Their search yields the first FP6 schemes, an FP8 scheme with fewer GEMMs than any prior approach, and an FP4 scheme proven minimal within a stated modulus range. On three Blackwell GPUs, the INT8, FP8, and FP4 schemes all beat native FP64, reaching up to 83x on B300.
Implemented on three Blackwell GPUs, the INT8, FP8 and FP4 schemes run faster than native FP64, up to 83x on B300.
- nukanse
It should be possible to replace a small tree of neurons with a smaller set of functions that back propagate more efficiently and are cheaper to calculate meanwhile using less ram/cpu per computation. It's not probable that our first shoot in the dark with neurons got the optimal math structure.
Why would multiplication and addition be the only needed math, and not xor gates.
Ai should be used to find that set of functions.
- adrian_b
On modern NVIDIA GPUs, both consumer and datacenter, any software implementation of FP64 computations will be much faster than the hardware FP64, because the hardware has 1:64 FP64:FP32 throughput.
Simple implementations of the FP64 operations with FP32 will result in a speed of up to 4 times greater than that of the hardware, for correct implementations that also implement the FP64 exponent range and the behaviors for special FP values.
By using the GPU "tensor" units, higher speedups should be achievable, like claimed in this paper.
Nonetheless, the 83x speedup from the paper is most likely bogus and not reachable in most applications. The real speedup might be 2 or 3 times less than that.
After a quick skimming through the paper, I could not find any mention about how they handle exponents and floating-point exceptions.
If they do not implement the standard FP64 exponent range, underflows and overflows would be extremely frequent. Depending on how they handle exceptions, this would either produce incorrect results or slow down the computation dramatically.
- MWil
B300 has worse INT8 performance than my RTX Pro 6000. CUDA 13.4 cuBLAS already has Ozaki-II at 29.9 TFLOPS benchmark (just ran it personally). However, that is clearly not optimized. Should be able to do twice that since INT8 GEMM benchmarking shows me 59.1 TFLOPS.
So would it make more sense for me to target the paper's FP4/FP6/FP8 (maybe even the NVIDIA specific implementations) or would it make more sense for me to optimize the INT8 performance? I'm not sure the extra memory traffic wouldnt just offset non-INT8.
- lucamark
TL;DR: The problem is that modern AI GPUs -e.g., NVIDIA's Blackwell series - are fast at low-precision math (FP4, FP6, FP8, INT8) used for AI, but terrible at high-precision math (FP64) needed for scientific computing.
So, they formulated a combinatorial optimization method to unify tricks that break down a single, high-precision FP64 matrix multiplication into many small, low-precision ones using modular arithmetic (the Chinese Remainder Theorem) and then reassemble the exact result.
Conclusion: 83× speedup over native FP64 on an NVIDIA B300 GPU
- saagarjha
This paper is really hard to read but it seems like they're trying to optimize for fewest GEMMs instead of normalizing for the ones that run the fastest at the precision they need? I don't really understand why you would care about having fewer GEMMs.