Ground Truth.
AI, checked against the source.

Learn · Advanced

Ozaki schemes: using low-precision hardware for high-precision matrix multiplication

An Ozaki-style method uses low-precision matrix units to compute a product that needs higher precision by splitting each number into smaller pieces and combining the partial products. The Chinese Remainder Theorem can reconstruct a bounded integer from residues under carefully chosen moduli, while input decomposition and error analysis determine whether the final floating-point answer is accurate enough. This is a way to trade extra arithmetic for access to faster hardware.

The basic problem

Modern accelerators often multiply low-precision values far faster than full 64-bit values. Neural networks can use methods such as mixed-precision training, but scientific applications may need a wider range and more accurate digits. An emulation scheme uses the fast matrix hardware as a building block, then reconstructs a result close to the higher-precision product.

Split a number into pieces

Suppose a real value is too precise to fit safely in one low-precision number. We can write it as a sum of smaller pieces: a leading component captures the largest bits, and one or more residual components capture what the leading piece missed. If both matrices are decomposed this way, their product becomes a sum of partial products. With a high and low part per value, multiplication creates high-high, cross, and low-low terms. A scheme chooses which pieces and terms to keep.

This resembles using several short measurements instead of asking one cheap instrument for every digit. More pieces mean more multiplications and bookkeeping, so a fast inner kernel does not guarantee a fast complete operation.

Use remainders to reconstruct

The Chinese Remainder Theorem gives a second way to combine information. If an unknown integer lies in a known interval and we know its remainder under several pairwise-coprime moduli, those remainders uniquely identify the integer within that interval. A simple analogy is locating a number on several circular dials: each dial wraps around at a different interval, and the combination of dial readings narrows the number to one possibility.

Ozaki-style GPU schemes can encode matrix values into integer-like pieces, compute products modulo selected numbers, and reconstruct the result from residues. If an intermediate value falls outside the range represented by the chosen moduli, reconstruction can wrap to a wrong answer. Range analysis is part of correctness.

The 2026 paper by Mazumder, Calotoiu, and Hoefler searches over a family of modulus choices and formulas to reduce the number of lower-precision matrix multiplications. It reports an FP4 construction meeting a lower bound within its specified family and new FP6 and FP8 constructions. Those are statements about that search space, not proof that no better algorithm exists outside it. The paper reports up to about 83 times speedup for large tested matrix products on an NVIDIA B300 compared with native FP64. That result is tied to a large, dense workload and to a GPU whose native FP64 throughput is much lower than its low-precision matrix throughput. See the authors’ paper for the exact configuration and bounds.

Accuracy is a contract

“High precision” can refer to several different promises. A result may have small aggregate relative error, may be within a number of units in the last place, or may be correctly rounded for every possible input. These are not interchangeable. The fast configurations in the 2026 paper truncate operand representations to 53 significant bits before modular multiplication. The authors explicitly state that these measured paths do not return correctly rounded fl(A×B) for every possible FP64 input. More conservative variants preserve more information for inputs with a bounded range, but require more matrix operations.

For an FP4 example with inner dimension 16,384, the paper says that handling a range spanning 2¹⁶ raises the construction from 59 to 78 low-precision matrix multiplications. More precision consumes speed. The paper checks a relative Frobenius-norm error threshold of 10⁻¹², an aggregate metric that does not say every output element is correctly rounded.

Hardware details matter too. The authors say exactness for their FP8 and FP4 paths on Blackwell depends on FP32 matrix-unit accumulation behavior that public instruction-set documentation does not fully specify. NVIDIA’s cuBLAS documentation describes a separate Ozaki-based fixed-point emulation path with dynamic mantissa control and fallback behavior. Related implementations do not independently reproduce the B300 performance result.

When this helps

These schemes are most promising for large, dense matrix multiplication on hardware with strong low-precision support when the application can state an acceptable error contract. They may be less useful for small or sparse operations, irregular exponent ranges, non-finite values, or software where matrix multiplication is only one part of runtime. Encoding, scaling, and reconstruction should be tested on real application inputs, not only random matrices.

This topic is related to quantization, but the goal differs. Quantization usually stores or computes a model’s weights and activations with fewer bits and accepts some task-level accuracy change. Ozaki emulation uses low-precision operations as intermediate arithmetic to target a higher-precision result. The number format may be similar; the correctness target and reconstruction are not.

The practical question is not simply “How many bits did the accelerator use?” It is: what mathematical quantity was computed, under what range assumptions, with what error guarantee, on which hardware, and with what full-operation timing? When those details are explicit, low-precision hardware can support computations that require more precision than the hardware’s fastest native format suggests.

Key papers
FP64 Is All You Want, INT8 Is All You Need, FP4/6/8 Is All You Have
A CPU implementation of the Ozaki II scheme

Key questions

What problem does an Ozaki-style scheme solve?

It uses fast lower-precision matrix hardware to approximate or emulate a higher-precision matrix product while controlling the error through decomposition and reconstruction.

Does CRT reconstruction make every low-precision product exactly equal to FP64?

Only when the method’s range and arithmetic assumptions hold; practical implementations may truncate inputs or use bounded-error variants, so they do not automatically guarantee correctly rounded results for every input.

Why can splitting values into more pieces make the result slower?

More pieces require more low-precision matrix multiplications and reconstruction work, which can outweigh the hardware throughput advantage, especially for smaller matrices.
Cite this

APA

Ground Truth. (2026, November 29). Ozaki schemes: using low-precision hardware for high-precision matrix multiplication. Ground Truth. https://groundtruth.day/learn/ozaki-scheme-crt-high-precision-matrix-multiplication.html

BibTeX

@misc{groundtruth:ozaki-scheme-crt-high-precision-matrix-multiplication,
  title  = {Ozaki schemes: using low-precision hardware for high-precision matrix multiplication},
  author = {{Ground Truth}},
  year   = {2026},
  month  = {nov},
  url    = {https://groundtruth.day/learn/ozaki-scheme-crt-high-precision-matrix-multiplication.html}
}

Topics: numerical-computing · matrix-multiplication · low-precision · hardware