arXiv(opens in a new tab)cs.DCSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.37693

FP64 Is All You Want, INT8 Is All You Need, FP4/6/8 Is All You Have

Pratyai Mazumder, Alexandru Calotoiu, Torsten Hoefler

Pratyai Mazumder

ETH Zurich

Zurich, Switzerland

pmazumder@ethz.ch

Alexandru Calotoiu

ETH Zurich

Zurich, Switzerland

acalotoiu@ethz.ch

Torsten Hoefler

ETH Zurich

Zurich, Switzerland

htor@ethz.ch

Abstract—Ozaki scheme II emulates FP64 matrix products with INT8 ones through residues modulo pairwise coprime moduli, and variants for FP8 and FP4 have followed. We treat these schemes as one family and pose the choice of a scheme as a combinatorial program that minimizes the number of low-precision GEMMs. Given, for each modulus, a finite set of ways to compute products modulo it from low-precision GEMMs, we find the choice of moduli and ways with the fewest GEMMs, for any format, accumulator and inner dimension, and derive lower bounds on the GEMM count over the whole family. Applied to the formats of current GPUs, the method gives the first FP6 schemes, an FP8 scheme with fewer GEMMs than any previous one, and an FP4 scheme that the bounds show needs the fewest GEMMs of any scheme in the family whose moduli lie in a stated range. Implemented on three Blackwell GPUs, the INT8, FP8 and FP4 schemes run faster than native FP64, up to 83× on B300.

Index Terms—Ozaki scheme, DGEMM emulation, matrix multiplication, residue number system, combinatorial optimization, low-precision arithmetic, Tensor Cores, GPU

I. INTRODUCTION

FP64 throughput has declined on recent NVIDIA and AMD GPUs, while peak throughput for lower-precision FP formats has continued to rise (Figure 1). Ozaki I [1] and II [2] compute an FP64 GEMM from many low-precision ones, and were implemented on the much faster integer units [3], [4], [5]. Those units stop at eight bits: the MI355X datasheet lists INT4 at its INT8 rate [6], Blackwell's lists no INT4 rate [7], and its 4-bit integer instruction runs at the 8-bit rate (Section IV-C). On B300 even the INT8 rate is reduced [8]. On AI-focused GPUs the fastest formats are sub-8-bit floats [6], [7].

Ozaki I and II have since been adapted to the FP8 [13], [14], [15] and FP4 [16] units, where Ozaki II needs fewer GEMMs than Ozaki I [14], [16]. In FP8 it is projected to run faster than native FP64 on B300 and Rubin [14], [15], [17], and in FP4 it matches FP8 on an RTX PRO 6000 [16]. To our knowledge, only particular instances of Ozaki II for low-precision formats have been described, each for one format. The FP8 and FP4 ones split every residue into two low-precision values [14], [16], the FP4 one at a fixed base of 13 and without Karatsuba's identity [18, §1.3.2]. AWE [19] chooses the base per modulus and multiplies integer combinations of such values, at 59 GEMMs in FP4, selecting the moduli by an integer program whose formulation and solver it does not give [19, §V-C]. No Ozaki II scheme has been given for FP6 or INT4; FP6 appears only in an Ozaki I GEMM count table [13].

Figure

Fig. 1. Peak throughput per GPU, dense. FP64 alone is quoted on both the vector lanes and the matrix instruction. A blank slot is a format the GPU has no unit for, or a rate its vendor does not publish. The two “!” mark B300’s reduced FP64 and INT8 rates. Rubin’s rates are preliminary [9], and NVIDIA gives its FP64 matrix rate only by emulation [10]. RTX PRO is the RTX PRO 6000 Server Edition, for which NVIDIA publishes no FP64, INT8 or dense low-precision rate; these are derived from its FP32 and its unlabeled FP8 and FP4 figures with the ratios NVIDIA gives for the chip [11], [12].

Rather than another instance, we formulate the selection of an Ozaki II scheme as an optimization of its GEMM count on a broad class of formats and accumulators. We choose jointly the moduli, the split of each residue and how its product is formed. At a given inner dimension an exact search returns a scheme of least GEMM count among its candidates, whose Kmax⁡K_{\max} is the largest inner dimension its exactness conditions certify. Lower bounds on the GEMM count over every way of forming a product show that at K=214K = 2^{14} no FP4 scheme on a stated range of moduli needs fewer GEMMs than the one the search returns. Individual formats follow as instantiations, and the INT8, FP8 and FP4 schemes the search chooses are timed on three Blackwell GPUs.

References (50)