Optimal Scalar Quantization for Matrix Multiplication: Closed-Form Density and Phase Transition
Abstract
We study entrywise scalar quantization of two matrices prior to multiplication. Given and , we quantize entries of and independently using scalar quantizers with and levels per entry, and form . The objective is to minimize the matrix multiplication mean-squared error (MSE) under a pair-i.i.d.\ inner-product model. In the high-resolution regime , we derive a sharp asymptotic expansion for , identify the exact optimal leading constants, and characterize asymptotically optimal quantization center densities in terms of conditional second moments. We then specialize to correlated Gaussian multiplicative pairs, obtaining a closed-form optimal point density with the same form for , and prove a correlation-driven phase transition: the density is unimodal at the origin for and becomes bimodal for with peaks at . We show our method's applicability in synthetic experiments such as matrix multiplication quantization and least squares optimization, as well as quantization of large language model key and query activations.
Cite
@article{arxiv.2603.19559,
title = {Optimal Scalar Quantization for Matrix Multiplication: Closed-Form Density and Phase Transition},
author = {Calvin Ang and Sungyoon Kim and Mert Pilanci},
journal= {arXiv preprint arXiv:2603.19559},
year = {2026}
}