Skip to content
DraconiticResearch
Search Sources API
197,768 studies31 sourcesUpdated 20 min ago
PreprintarXiv licencearXiv

AWE: Adaptive Weight Encoding for Exact Integer Matrix Products with Fewer GEMMs on FP4 Tensor Cores

Abstract

Emulation of high-accuracy floating-point matrix multiplication, as in the Ozaki scheme, splits the inputs into low-precision components and multiplies them pairwise. These products must be error-free, and each is an integer matrix product times a scale factor. FP4 Tensor Cores are the fastest on the NVIDIA B200 and B300 but cannot hold INT8 operands. The FP4 values scaled by 2 form the set S = {0, ±1, ±2, ±3, ±4, ±6, ±8, ±12}, which contains every residue modulo 13, so with carries any integer splits into base-13 digits that FP4 can store. Prior work splits each INT8 operand into 3 such digits (limbs) with weights $(1, 13, 169)$ and multiplies them pairwise, 9 FP4 matrix multiplications (GEMMs) for INT8×INT8. The classical ways to reduce products, such as the Karatsuba and Toom--Cook methods, do not apply as they stand: sums of limbs reach ± 24 and leave S. This paper asks how many FP4 GEMMs are needed for one integer matrix product. We propose Adaptive Weight Encoding (AWE): the limbs take freely chosen integer weights, the stored planes are linear combinations of limbs, and the exact product is the sum of the FP4 GEMMs scaled by reconstruction coefficients. For each input range, we searched these choices for encodings with fewer products and found INT8×INT8 in 6 products and INT4×INT8 in 4. The formulation also holds modulo m, which covers the residue number systems of Ozaki scheme II: for the FP64 significand, the 75 products of prior work are reduced to 59. The boundary in product count between encodings with and without residues lies near input width 15. We release the encodings found.

Related

  1. Integer-valued polynomials over structural matrix rings
    Valentin Havlovec
    arXivPreprintarXiv licenceFull textAlgebra & number theoryarXiv
  2. The Weight Criterion, Dong Property, and Manin Products of Operads
    P. Kolesnikov, B. Sartayev
    arXivPreprintarXiv licenceFull textAlgebra & number theoryarXiv
  3. Integer-Quantized Hierarchical Matrices with Adaptive Bit Allocation
    Erin Carson, Xinye Chen, Ritesh Khan
    arXivPreprintarXiv licenceFull textNumerical analysis & scientific computingarXiv
  4. Pointwise Hölder continuity of Lyapunov exponents of random matrix products
    Pablo G. Barrientos
    arXivPreprintarXiv licenceFull textDynamical systemsarXiv
  5. Regularity Estimates for Quasilinear Elliptic Equations with Measure Data and Matrix-Valued Weight
    Sun-Sig Byun, Xiatong Li, Yeonghun Youn
    arXivPreprintCC BY 4.0Full textAnalysis & PDEsarXiv
BibTeX
@misc{hayashi2026adaptive,
  title = {{AWE: Adaptive Weight Encoding for Exact Integer Matrix Products with Fewer GEMMs on FP4 Tensor Cores}},
  author = {Shun-ichiro Hayashi and Daichi Mukunoki and Tetsuya Hoshino and Takahiro Katagiri},
  howpublished = {arXiv},
  year = {2026},
  month = sep,
  doi = {10.48550/arxiv.2609.24519},
  eprint = {2609.24519},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.24519},
}
RIS
TY  - UNPB
TI  - AWE: Adaptive Weight Encoding for Exact Integer Matrix Products with Fewer GEMMs on FP4 Tensor Cores
AU  - Shun-ichiro Hayashi
AU  - Daichi Mukunoki
AU  - Tetsuya Hoshino
AU  - Takahiro Katagiri
PY  - 2026
DA  - 2026/09/21
PB  - arXiv
DO  - 10.48550/arxiv.2609.24519
UR  - https://arxiv.org/abs/2609.24519
AB  - Emulation of high-accuracy floating-point matrix multiplication, as in the Ozaki scheme, splits the inputs into low-precision components and multiplies them pairwise. These products must be error-free, and each is an integer matrix product times a scale factor. FP4 Tensor Cores are the fastest on the NVIDIA B200 and B300 but cannot hold INT8 operands. The FP4 values scaled by 2 form the set S = {0, ±1, ±2, ±3, ±4, ±6, ±8, ±12}, which contains every residue modulo 13, so with carries any integer splits into base-13 digits that FP4 can store. Prior work splits each INT8 operand into 3 such digits (limbs) with weights $(1, 13, 169)$ and multiplies them pairwise, 9 FP4 matrix multiplications (GEMMs) for INT8×INT8. The classical ways to reduce products, such as the Karatsuba and Toom--Cook methods, do not apply as they stand: sums of limbs reach ± 24 and leave S. This paper asks how many FP4 GEMMs are needed for one integer matrix product. We propose Adaptive Weight Encoding (AWE): the limbs take freely chosen integer weights, the stored planes are linear combinations of limbs, and the exact product is the sum of the FP4 GEMMs scaled by reconstruction coefficients. For each input range, we searched these choices for encodings with fewer products and found INT8×INT8 in 6 products and INT4×INT8 in 4. The formulation also holds modulo m, which covers the residue number systems of Ozaki scheme II: for the FP64 significand, the 75 products of prior work are reduced to 59. The boundary in product count between encodings with and without residues lies near input width 15. We release the encodings found.
ER  -