Manuscript Offprint

arXiv:2609.31560

Generalization behavior of OPTQ and the role of regularization

Erin George, Rayan Saab

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 λ\lambda plays an important role. We use insights from these results to make a new recommendation for the choice of λ\lambda and see that this choice of λ\lambda preforms favorably in experiments when compared to prior recommendations in the literature.

1 Introduction

Modern neural networks typically feature massive amounts of parameters. Early large language models (LLMs) used billions of parameters, such as GPT-3 [Brown et al., 2020] (175B) and LLaMa [Touvron et al., 2023] (7–65B). Recent AI models are even larger, with Deepseek-V4-Pro [DeepSeek-AI et al., 2026] having 1.6 trillion parameters for example. In turn, storing and using these models can require substantial amount of memory and compute time. Several paradigms have emerged recently to reduce these costs, including pruning, low-rank factorization, and knowledge distillation [Dantas et al., 2024]. One technique of particular interest is to store the parameters of the neural network in representations that use fewer bits. This process is called quantization.

There are two major types of methods for quantization [Wei et al., 2024]. One type, called quantization-aware training (QAT) modifies the optimization of neural networks to enable efficient quantization [Jacob et al., 2018, Zhang, 2025]. The other major type of quantization algorithms is post-training quantization (PTQ). Methods for PTQ work on an already trained neural network and attempt to quantize the network with as minimal an impact on its performance as possible. In comparison to QAT methods, PTQ methods typically require less data and computational resources but are usually not able to achieve the same level of accuracy [Wei et al., 2024]. A popular PTQ method that has emerged recently is OPTQ, also known as GPTQ [Frantar et al., 2023]. OPTQ is able to successfully quantize many LLMs to 4-bit weights [Frantar et al., 2023, Jin et al., 2024] and is a component of more sophisticated quantization algorithms, such as QuIP [Chee et al., 2023] and Qronos [Zhang et al., 2026].

A line of work has been developed to analyze OPTQ from a theoretical perspective. Zhang et al. [2025] bound overall and coordinate-wise errors for OPTQ on the calibration dataset used to quantize a neural network model. Birnick [2026], Chen et al. [2026] establish connections between OPTQ and Babai's algorithm for the closest vector problem. Despite this progress, little is known about how OPTQ is able to generalize outside of the calibration dataset. This paper

A PREPRINT

aims to address this problem by deriving explicit bounds for the generalization error of OPTQ in a variety of settings. We are motivated by the perspective that calibration error (the error on the dataset used to guide the quantization) and generalization error (the expected error on an unseen datapoint) are distinct quantities for data-dependent PTQ methods. In particular, OPTQ can make the error small on the calibration data by exploiting the empirical geometry of the sampled activations, but this empirical geometry may contain spurious correlations when the calibration set is small. Regularization plays an important role in our analysis, mainly to prevent this form of overfitting. The contributions of the paper should therefore be viewed in two layers. First, we prove a regularized empirical-to-population comparison inequality that is not intrinsically tied to OPTQ and can be applied to any data-dependent quantizer whose regularized empirical error is controlled. Second, we specialize this comparison to OPTQ using its update structure, and we prove a complementary positive-semidefinite quadratic-form bound for stochastic OPTQ.

References (33)