The remainders 2, 3 and 2 identify 23 within a range of 105 integers when the divisors are 3, 5 and 7.
Science / The story

How four-bit math beat native double precision by up to 83× on NVIDIA’s B300

An ETH Zurich team turned one large matrix multiplication into dozens of smaller ones. The price of keeping a faint signal shows where the shortcut runs out.

GeekRadar3 min read

An NVIDIA B300 can finish a large matrix multiplication in as little as one eighty-third of the time its native double-precision routine takes, according to measurements by researchers at ETH Zurich. The surprising part is where the time went. The fast version does dozens of multiplications for every one it replaces. It wins by giving those jobs to the part of the GPU built for four-bit numbers.

The September preprint drew renewed attention this weekend. Its result raises a practical question for anyone using a GPU for science or engineering. Double precision, or FP64, gives a calculation roughly 16 significant decimal digits to work with. How can a chip recover that much detail when four bits have only 16 possible patterns?

Three remainders can name one number

Imagine sending someone the number 23 using three small counters. After division by 3, 5 and 7, the counters read 2, 3 and 2 respectively. The first two clues still leave several candidates. Both 8 and 23 have remainder 2 when divided by 3 and remainder 3 when divided by 5. The third clue separates them. Eight leaves 1 when divided by 7, while 23 leaves 2. Within the range from 0 through 104, only 23 fits all three clues. Add 105 and the pattern starts again.

The useful trick is that the counters can do arithmetic. Double their readings and reduce each by its own divisor. The new readings are 1, 1 and 4, which identify 46 in the same range. No counter ever had to hold 46. Matrices need far more bookkeeping, but multiplication and addition still obey that rule. A GPU can work on many small remainders and reconstruct the answer once the partial products are in.

An earlier implementation from a separate research group made this practical on four-bit tensor cores by expressing integer pieces in base 13. The Zurich team searched for combinations that require fewer trips through the matrix units. Each trip operates on whole arrays of numbers, so eliminating even one can pay off on a large problem.

Where the 83× comes from

The timing protocol in Table II used square matrices with 8,192, 16,384 or 32,768 entries on each side. The team tested single GPUs, including the B200 and RTX PRO 6000 Blackwell Server Edition. The 83× peak belongs to the B300, measured against NVIDIA’s native FP64 multiplication routine. At a side length of 16,384, one run of NVIDIA’s own fixed-precision emulation took 108 milliseconds, the best time recorded for that size on the B300. Which baseline you choose changes the engineering decision considerably.

At an inner dimension of 16,384, the paper’s FP4 example takes 59 products in its timed configuration, 78 for a guaranteed spread of 2¹⁶ and 134 for 2⁶⁴.
At an inner dimension of 16,384, the paper’s FP4 example takes 59 products in its timed configuration, 78 for a guaranteed spread of 2¹⁶ and 134 for 2⁶⁴.

The bits you can lose before multiplying

Consider a row containing one very large reading and several faint signals. The timed scheme scales the row to its largest value. Low-order bits of the smaller values can disappear in the conversion. Even perfect arithmetic on the converted row cannot bring those bits back. The team checked accuracy over each output matrix as a whole. A small overall error can coexist with a larger error in a particular entry.

The authors put a price on protecting a wider spread. In their worked example with an inner dimension of 16,384, the four-bit scheme uses 59 matrix multiplications. Guaranteeing the wider precision needed for a spread of 65,536 to one in each relevant row or column takes 78. At a spread of two to the power of 64, it takes 134. Those are counts of operations, not timings.

That gives a scientist a more useful starting point than the peak speedup. Alongside the work that falls outside matrix multiplication, look at the smallest signal your calculation has to preserve. A benchmark can tell you how fast the product arrives. Only the problem tells you which missing digits would change the answer.