Contraction-Gauge Preconditioning for Quantized Matrix Multiplication

📅 2026-07-21
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the significant accuracy degradation in low-precision quantized matrix multiplication caused by quantization error. The authors propose a joint optimization method based on shrinkage-norm preconditioning that co-designs factor representations and their sharing patterns prior to quantization to minimize the expected squared error of the quantized product. They derive an exact analytical expression for the stochastic product error, establish a globally optimal solution framework within diagonal norm families, and employ geometric and linear programming for efficient optimization of norm parameters. Transform selection is uniformly guided by computable statistics—including tail exponents, profile dispersion, coherence, and weighted Gram energy. Experiments demonstrate 18.0% and 20.5% reductions in geometric mean product error under 8-bit and 4-bit quantization, respectively, outperforming SmoothQuant; the method achieves superior performance in 10 out of 12 linear layers and yields substantially lower logit mean squared error.
📝 Abstract
We study low-precision computation of C=AB with both factors quantized. We derive an exact finite-dimensional identity for the expected squared product error under independent, zero-mean entrywise errors with known variance fields; it holds exactly for non-overloading subtractive dither and for independent stochastic rounding, and we empirically assess deterministic round-to-nearest (RTN). Using the product-preserving equivalence AB=(AT)(T^{-1}B), we formulate contraction-gauge preconditioning: jointly choosing a factor representation and its sharing pattern before quantization. Preconditioning can reduce product error but may require extra transformed, quantized copies of the opposite operand: a shared transform needs one copy, a block-specific transform up to one per block. Within the bounded family of positive diagonal gauges (folds), a geometric program computes a globally optimal shared fold and a linear program decides whether the identity fold is already optimal. For other families we derive computable selection statistics -- tail index for scaling, profile spread for partitioning, coherence and weighted-Gram energy for rotations, slice-energy covariance for hierarchy depth -- with upper bounds for ranking heuristic candidates. Across twelve linear products from a trained three-block image classifier, median within-product rank correlations between dither-model predictions and deterministic-RTN errors are 0.937 at 8 bits and 0.918 at 4 bits. The GP fold cuts held-out product error over the identity fold by 18.0% (8-bit) and 20.5% (4-bit) in geometric mean, beats a SmoothQuant-style grid baseline at both precisions and on ten of twelve products, and lowers composed logit MSE by 15.4% and 26.4%. We thus provide exact stochastic product-error accounting, certified selection within the diagonal family, and a common objective for evaluating reusable transform candidates under RTN.
Problem

Research questions and friction points this paper is trying to address.

quantized matrix multiplication
low-precision computation
product error
quantization
matrix preconditioning
Innovation

Methods, ideas, or system contributions that make the work stand out.

contraction-gauge preconditioning
quantized matrix multiplication
stochastic error modeling
geometric programming
low-precision arithmetic
🔎 Similar Papers
P
Piyush Sao
Oak Ridge National Laboratory, Oak Ridge, Tennessee 37831, USA
N
Narasinga Miniskar
Oak Ridge National Laboratory, Oak Ridge, Tennessee 37831, USA
P
Pedro Valero-Lara
Oak Ridge National Laboratory, Oak Ridge, Tennessee 37831, USA
Keita Teranishi
Keita Teranishi
Oak Ridge National Laboratory
high performance computing
S
Sudip Seal
Oak Ridge National Laboratory, Oak Ridge, Tennessee 37831, USA