cs.LGSep 25, 2026

Generalization behavior of OPTQ and the role of regularization

Authors: Erin George, Rayan Saab

Abstract

Large neural networks can be compressed by rounding or "quantizing" their weights to numbers that admit representations with fewer bits. One algorithm for quantization, OPTQ, progressively quantizes the weights of a neural network so that the squared quantization error on a specified calibration dataset is as small as possible. We study the performance of OPTQ and a variant algorithm, stochastic OPTQ, in a generalization setting and derive bounds for the expected squared error accrued by the algorithm when a test point is drawn from a fixed distribution. We prove two results. One result relates the generalization error to the error on a calibration dataset comprising independent samples from the same distribution as the test distribution. The other result bounds the generalization error of stochastic OPTQ for all sufficiently nice distributions, regardless of the calibration dataset. In both of these results, the regularization term λλ plays an important role. We use insights from these results to make a new recommendation for the choice of λλ and see that this choice of λλ preforms favorably in experiments when compared to prior recommendations in the literature.

Figures & tables

Explore similar work

CardsList
  1. Learning Non-Vacuous Generalization Bounds from Optimization

    Jun 9, 2022Chengli Tan, Jiangshe Zhang, Junmin Liu +1Neural Network GeneralizationStatistical Learning Theory

  2. Scale Sensitivity in Low-Bit Post-Training Quantization: Curvature of the Quantization Error Landscape

    Sep 29, 2026Jonas von Berg, Massimiliano Datres, Carlo Kneißl +1Post-Training QuantizationNeural Network Quantization