Error Analysis of Matrix Multiplication Emulation Using Ozaki-II Scheme
Yuki Uchino, Katsuhisa Ozaki, Toshiyuki Imamura
TL;DR
The paper addresses the challenge of obtaining reliable high-precision matrix products via Ozaki-II, a CRT-based emulation that composes many low-precision GEMMs. It develops a rigorous deterministic error analysis, deriving explicit bounds that depend on the CRT moduli, scaling vectors, and input magnitude, and introduces two practical error estimates with different tightness and computational costs. The results explain how exponent distributions and the number of moduli influence accuracy and provide a foundation for automatic parameter tuning in Ozaki-II. The work advances the reliability and portability of CRT-based high-precision emulation on modern hardware, with potential extension to complex-valued matrix multiplication.
Abstract
The Ozaki-II scheme is an emulation method that leverages the Chinese Remainder Theorem to compute high-precision matrix multiplication via a sequence of low-precision matrix multiplications. In this scheme, the attainable numerical accuracy improves as the number of low-precision matrix multiplications increases. Previous numerical studies have shown that single- and double-precision matrix multiplication using the Ozaki-II scheme achieves higher throughput than that of standard BLAS routines on modern AI hardware equipped with fast INT8 matrix multiply-accumulate units with INT8 inputs and INT32 accumulation. However, the accuracy of the Ozaki-II scheme can degrade when the exponent distribution of the input matrices is wide, in which case a large number of low-precision matrix multiplications is required to obtain high-precision results. In this paper, we present a rigorous deterministic error analysis of the Ozaki-II scheme. The proposed analysis not only clarifies the accuracy behavior of the method but also enables the estimation of the number of low-precision matrix multiplications required to achieve a desired level of numerical accuracy.
