Manuscript Offprint
arXiv:2609.31560Generalization behavior of OPTQ and the role of regularization
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 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.
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.
2 Setting
Starting from a weight vector , the goal of post-training quantization algorithms is to obtain a quantized vector that approximates . Here, represents the quantization alphabet, which is a discrete set of real numbers. As an example, can be the following set
which allows us to represent as a vector of -bit integers scaled by some value . Quantizing the real-valued vector will then accrue errors in two ways: by rounding and by clipping. In this paper, we will only be interested in the error caused by the rounding process, so we will work with the alphabet . This is a model for an alphabet of the form given by Eq. (1) where is chosen sufficiently large so that there is no clipping performed.
2.1 OPTQ
OPTQ is a data-dependent post-training quantization algorithm introduced by Frantar et al. [2023]. Given a weight vector and a calibration matrix , OPTQ constructs a quantized vector by sequentially quantizing the coordinates of while attempting to keep the calibration error small. The key feature of OPTQ is that, after quantizing coordinate , the algorithm updates the remaining unquantized coordinates to compensate for the error introduced at coordinate .
We recall a mathematical formulation of this OPTQ update structure [Frantar et al., 2023, Zhang et al., 2026], first focusing on the unregularized version. OPTQ maintains a working vector, initialized as
At step i, in the standard (deterministic) version of OPTQ, the current value of the i-th coordinate is quantized by setting
where denotes nearest-neighbor quantization onto the alphabet , i.e.,
The rounding error introduced at this step is
A PREPRINT
Thus, before any compensation is applied to obtain , the new contribution to the error vector is . With the coordinates already quantized, OPTQ compensates for the error using only the remaining coordinates . If the tail compensation is written as with , then the corresponding error to be minimized is . After factoring out , the optimization problem becomes
Assuming for the moment that X has full column rank with , the least-squares solution is
This gives the update direction
Equivalently, is characterized by the variational problem
The weight vector is then updated as
Since the coordinates are fixed after step , after all steps we obtain
This representation of the OPTQ quantization error will be useful throughout the analysis.
We now introduce the regularization parameter . The procedure described above corresponds to OPTQ with . For , OPTQ is equivalent to running the same procedure with an augmented calibration matrix in place of , where
Note that is always full column rank. Therefore, with , the update directions are well-defined for any calibration matrix . In this case, the preceding formulas are interpreted with replaced by . In particular,
Let us now elaborate on how the coefficients are chosen. For deterministic OPTQ, the -th coordinate is rounded to the nearest multiple of , and the corresponding residual is
This choice gives and .
We will also consider a stochastic variant, studied by Chee et al. [2023], Zhang et al. [2025], which differs only in the resulting . Let be the remainder when is divided by . Stochastic OPTQ sets
With this choice, and almost surely. We will refer to the deterministic and stochastic variants collectively as OPTQ when the distinction is not important.
A PREPRINT
In what follows, the quantization error , update directions , and coefficients will be central to our analysis. These quantities depend on the calibration matrix and on the regularization parameter through the augmented matrix . When this dependence is relevant, we will indicate it explicitly.
Finally, we note a geometric consequence of the variational characterization. Since minimizes among vectors whose first nonzero coordinate is a unit entry in position , the vector is the projection of onto the orthogonal complement of the span of the columns of . We denote this projection operator by , so that .
3 Main results
We begin by isolating the step whereby we use an empirical result to obtain a population result from the particular quantization algorithm. The following theorem shows that, under regularization, the regularized empirical error controls the corresponding population error uniformly over all error vectors, including those that depend on the calibration data.
Theorem 3.1. Suppose we sample m i.i.d. random samples of a random vector satisfying almost surely. Denote the matrix whose -th row is \boldsymbol{x}^{(i)}^\top by
and let . Fix and assume that . Then, with probability at least over the randomness of the sample , the following holds simultaneously for all :
In particular, the conclusion applies to any possibly data-dependent vector .
The preceding theorem is independent of the particular quantization algorithm. It shows that any bound on the regularized empirical error immediately yields a corresponding population error bound. We next illustrate the usefulness of this result for OPTQ by invoking OPTQ's bound for the augmented calibration matrix [Zhang et al., 2025]. Indeed, when applied to OPTQ, with , the term that appears in the upper bound represents the average “training error” of OPTQ with an additional regularization term. That is,
\frac{1}{m}\|\mathbf{X}\boldsymbol{r}\|^{2}+\frac{\lambda}{m}\|\boldsymbol{r}\|^{2}=\left(\frac{1}{m}\sum_{i=1}^{N}|\boldsymbol{x}^{(i)}^{\top}\boldsymbol{w}-\boldsymbol{x}^{(i)}^{\top}\boldsymbol{q}|^{2}\right)+\frac{\lambda}{m}\|\boldsymbol{w}-\boldsymbol{q}\|^{2}. \tag{18}This term is then multiplied by a factor which can be controlled by the choice of . Corollary 3.2, connecting this bound to the geometry of the calibration data, follows immediately by applying Eq. (3.5) of [Zhang et al., 2025].
Corollary 3.2. Suppose the hypotheses of Theorem 3.1 hold. Let be the output of OPTQ applied to using the augmented calibration matrix , and let . Then, with probability at least over the randomness of the sample ,
Here for deterministic OPTQ and for stochastic OPTQ.
The proofs of Theorem 3.1 and Corollary 3.2 are in Appendix A. These results demonstrate an important role of the regularization parameter. In the absence of the term , the empirical quadratic form need not control uniformly over data-dependent error vectors , since directions that are poorly represented (or absent) in the calibration sample may still have nonzero population variance. The regularization term makes every direction visible to the empirical objective, at the cost of introducing the additional contribution into the bound.
We now proceed to state the second major result of this paper, which bounds arbitrary positive semi-definite quadratic forms of r when using stochastic OPTQ.
A PREPRINT
Theorem 3.3. Let be an arbitrary positive semi-definite matrix. For stochastic OPTQ, we can bound
where denotes the expectation is taken only over the randomness in Eq. (15) associated with choosing , with the sample matrix fixed.
Furthermore, with probability at least over the randomness in , we have
This theorem is proven in Appendix B. Theorem 3.3 holds very broadly and has a variety of applications. An important application for this work is as follows.
Corollary 3.4. Let be a random vector with finite second moment. Then, when stochastic OPTQ with is run with a data matrix we have
where denotes the expectation taken over . With probability at least over the randomness of , we also have
Proof. Apply Theorem 3.3 with
Since , it follows that has full column rank, so . Consequently,
Moreover,
because
Note that this bound holds for each fixed calibration matrix , and the only probability in the second part of the corollary is the stochastic rounding probability. It is therefore distribution-agnostic in , even when the distribution of differs from the distribution that generated . If we instead used memoryless scalar quantization (MSQ), which is often also referred to as round-to-nearest (RTN), we generically would expect
Therefore, using the data-dependent algorithm stochastic OPTQ with sufficiently large choice of will produce a quantized vector that performs only a bounded factor worse in the worst case compared to a data-independent algorithm. In Appendix C, we make the statement in Eq. (27) precise.
Another application of Theorem 3.3 is the following, which improves a result in [Zhang et al., 2025, Theorem 4.6] by a factor of .
Corollary 3.5. When stochastic OPTQ with is run with a data matrix , with probability at least over the randomness of we have
Proof. Apply Eq. (21) of Theorem 3.3 to the coordinate projectors and use a union bound over the failure probabilities. This shows, with probability at least , we have
The desired result follows by recognizing the last entries of as .
The utility of this result is that it bounds above the -norm of q based on , X, and w. This allows us to use the alphabet in Eq. (1) and determine an appropriate value of b so that with high probability no clipping will need to be performed.
A PREPRINT
4 Choosing
4.1 Theory
Corollaries 3.2 and 3.4 bound the generalization error of OPTQ in two different ways, but both bounds feature a dependence on . Suppose each row of is drawn i.i.d. from a distribution with compact support in the ball of radius of . If the following two inequalities hold
then with high probability we can bound for a random vector z
whenever z is drawn from the same distribution that each row of X was and
always. In general, we won’t know the value of R in Eq. (30). However, a lower bound for R is the maximum row norm of X. Therefore, if we wish to have both bounds Eqs. (32) and (33) we should ensure
We now turn our attention to Eq. (19) of Corollary 3.2. This bound depends on in two ways: through the regularized training error term and the multiplicative factor in front of it. We consider how to choose to minimize this bound.
Remark 4.1. To minimize the bound in Eq. (17), a good choice of is
where is a scaling factor to be determined empirically.
We proceed to justify this remark. From Corollary 3.2, for we have
Here for stochastic OPTQ and for deterministic OPTQ, corresponding respectively to and . We will attempt to minimize the bound in Eq. (36). Since the bound in Eq. (36) is strictly positive, minimizing it is equivalent to minimizing
For each , the function is differentiable for , as can be seen by standard formulas for matrix-vector calculus. However, this function also has the following representation:
where is the affine subspace . The minimum in Eq. (38) is attained at exactly one point . In particular, this means that each function has derivative equal to . We therefore see that
A PREPRINT
The first term of Eq. (39) is at most . If we let . We can then bound
Thus whenever .
On the other hand, the first term of Eq. (39) is at least . Therefore, we can bound
and so whenever
In particular, whenever
This means that the value of that minimizes satisfies
In the regime where each row of is an i.i.d. sample from the same distribution as a generic test point, we should choose satisfying Eq. (45). We now proceed to simplify this bound. Let be such that . For distributions for which the empirical second moment is representative of its expectation, , and hence . This replacement is, of course, heuristic unless accompanied by an explicit concentration assumption on the row norms. With this definition of , Eq. (45) becomes
where hides the dependence on and log factors. In light of Corollary 3.4, it is sensible to use the upper bound as a conservative estimate for . This leads to the scaling in Eq. (35). While this argument is not precise enough to determine an optimal scaling constant, in the next subsection we will empirically determine a good choice of constant.
4.2 Experiments
We now demonstrate how the recommendations from Section 4.1 work in practice. To do this, we run the output of OPTQ with varying choices of for data drawn from three different distributions and show the generalization error of the result.
We consider a total of seven different choices of for OPTQ. Five of these choices correspond to Eq. (35) with different values of . The remaining two are recommendations previously made in the literature. These are from Frantar et al. [2023] and from Zhang et al. [2026].
In all experiments, we sample the rows of the data matrix i.i.d. from the same distribution as a generic test point and vary the number of rows . We simplify the measures of the generalization error by reporting the value of
See https://github.com/ErinGeorge/OPTQ-generalization for the code used for these experiments.
The recommendation is for Qronos, but the effect of on OPTQ is identical.
A PREPRINT

Figure 1: Test error versus for various choices of when OPTQ is run with samples from the uniform Hadamard distribution.

Figure 2: Test error versus for various choices of when OPTQ is run with samples from the non-uniform Hadamard distribution.
as the test error. For stochastic OPTQ, this expression is precisely where the contribution from the is ignored (see Eqs. (70) and (74) from the proof of Theorem 3.3). The contribution of each depends on both the randomness of stochastic OPTQ and the individual quantization error for each coordinate. Up to constant factors of , Eq. (47) can be regarded as both a worst-case for the generalization error and an average-case for the generalization error (over the randomness of and the initial position of ). We approximate the expectations in Eq. (47) with 1000 samples of . For all the plots in this section, the mean and standard deviation over 30 trials (each an independent sample of ) is shown.
Uniform Hadamard The first data distribution we consider is the uniform distribution on rows from Sylvester's construction of a Hadamard matrix. In the full data distribution, each coordinate is independent of the others. However, in a low sampling regime, many spurious correlations between the columns of can appear. As such, OPTQ performs poorly when improperly regularized. The results of these experiments are shown in Fig. 1.
Non-uniform Hadamard The second data distribution we consider again draws rows from a Hadamard matrix, but with a non-uniform distribution on the rows. The probability of a row being drawn is proportional to . Similar to the uniform Hadamard distribution, this data distribution results in many spurious correlations appearing in a low sampling regime. However, the true data distribution does have a low-rank structure exploitable by OPTQ to reduce the error. The results of these experiments are shown in Fig. 2.
ReLU neural network The last data distribution we consider is a model of a ReLU neural network. First, we fix a matrix where each coordinate is sampled i.i.d. from a standard normal distribution. We generate a random vector by first sampling a random vector with i.i.d. standard normal coordinates and then applying the ReLU function coordinate-wise to . This is a model of what the data distribution of the output of a single neural network layer may look like. Here, the low-rank structure comes from the overparameterization of the neural network layer and the positivity enforced by the ReLU function. The results of these experiments are in Fig. 3.
The ReLU function is defined as .
A PREPRINT

Figure 3: Test error versus m for various choices of when OPTQ is run with samples from the ReLU neural network distribution.
Across Figs. 1 to 3, a clear trend emerges. The existing recommendations for both do well in data distributions with low-rank structure in a well-sampled regime, but are susceptible to producing large errors in a low sampling regime. However, choosing according to Eq. (35) can result in the same error being achieved in the well-sampled regime without the large error present in the low sampling regime. Across all the experiments, choosing is able to substantially reduce the error in Figs. 1 and 2 with low m while still achieving small values for the error in Figs. 2 and 3 for large m.
5 Conclusion
In this work, we bound the generalization error of OPTQ in two different settings: when the input data is drawn i.i.d. from the same distribution as a test point and when randomized rounding is used as the quantization procedure for OPTQ. Using these results, we derive a formula for choosing the quantization parameter that outperforms previous recommendations in a low-sampling regime while still achieving similarly good generalization performance in a high-sampling regime.
Acknowledgments
E.G. was supported by NSF grant DMS-2503574. R.S. was partially supported by grant DMS-2410717.
AI disclosure
In this work, we used generative AI tools to find references in the literature and to edit the paper. All AI-provided references and edits were then reviewed by the authors. We did not use generative AI tools for any other task.
References
Johann Birnick. The lattice geometry of neural network quantization: A short equivalence proof of GPTQ and Babai's algorithm, 2026. URL https://arxiv.org/abs/2508.01077.
Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 1877–1901. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper_files/paper/2020/file/1457c0d6bfcb4967418bfb8ac142f64a-Paper.pdf.
Jerry Chee, Yaohui Cai, Volodymyr Kuleshov, and Christopher De Sa. Quip: 2-bit quantization of large language models with guarantees. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine, editors, Advances in Neural Information Processing Systems, volume 36, pages 4396–4429. Curran Associates, Inc., 2023. doi: 10.52202/075280-0196. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/0df38cd13520747e1e64e5b123a78ef8-Paper-Conference.pdf.
A PREPRINT
Jiale Chen, Yalda Shabanzadeh, Elvir Crnčević, Torsten Hoefler, and Dan Alistarh. The geometry of LLM quantization: GPTQ as Babai's nearest plane algorithm. In The Fourteenth International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=NFB4QGGS65.
Pierre Vilar Dantas, Waldir Sabino da Silva, Lucas Carvalho Cordeiro, and Celso Barbosa Carvalho. A comprehensive review of model compression techniques in machine learning. Applied Intelligence, 54(22):11804–11844, November 2024. ISSN 1573-7497. doi: 10.1007/s10489-024-05747-w. URL https://doi.org/10.1007/s10489-024-05747-w.
DeepSeek-AI, Anyi Xu, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, Chenchen Ling, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chengyu Hou, Chenhao Xu, Chenze Shao, Chong Ruan, Conner Sun, Damai Dai, Daya Guo, Dejian Yang, Deli Chen, Donghao Li, Dongjie Ji, Erhang Li, Fang Wei, Fangyun Lin, Fangzhou Yuan, Feiyu Xia, Fucong Dai, et al. DeepSeek-V4: Towards highly efficient million-token context intelligence, 2026. URL https://arxiv.org/abs/2606.19348.
Elias Frantar, Saleh Ashkboos, Torsten Hoefler, and Dan Alistarh. OPTQ: Accurate quantization for generative pre-trained transformers. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=tcbBPnfwxS.
Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, and Dmitry Kalenichenko. Quantization and training of neural networks for efficient integer-arithmetic-only inference. In 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 2704–2713, 2018. doi: 10.1109/CVPR.2018.00286.
Renren Jin, Jiangcun Du, Wuwei Huang, Wei Liu, Jian Luan, Bin Wang, and Deyi Xiong. A comprehensive evaluation of quantization strategies for large language models. In Lun-Wei Ku, Andre Martins, and Vivek Srikumar, editors, Findings of the Association for Computational Linguistics: ACL 2024, pages 12186–12215, Bangkok, Thailand, August 2024. Association for Computational Linguistics. doi: 10.18653/v1/2024.findings-acl.726. URL https://aclanthology.org/2024.findings-acl.726/.
Iosif Pinelis. Optimum bounds for the distributions of martingales in Banach spaces. The Annals of Probability, 22(4):1679–1706, 1994. ISSN 00911798, 2168894X. URL http://www.jstor.org/stable/2244912.
Mark Rudelson and Roman Vershynin. Hanson-wright inequality and sub-gaussian concentration. Electronic Communications in Probability, 18(82):1–9, 2013.
Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. LLaMA: Open and efficient foundation language models, 2023. URL https://arxiv.org/abs/2302.13971.
Joel A. Tropp. User-friendly tail bounds for sums of random matrices. Foundations of Computational Mathematics, 12(4):389–434, August 2012. ISSN 1615-3383. doi: 10.1007/s10208-011-9099-z. URL https://doi.org/10.1007/s10208-011-9099-z.
Roman Vershynin. High-Dimensional Probability: An Introduction with Applications in Data Science. Cambridge Series in Statistical and Probabilistic Mathematics. Cambridge University Press, 2nd edition, 2025. doi: 10.1017/9781108231596. URL https://doi.org/10.1017/9781108231596.
Lu Wei, Zhong Ma, Chaojie Yang, and Qin Yao. Advances in the neural network quantization: A comprehensive review. Applied Sciences, 14(17), 2024. ISSN 2076-3417. doi: 10.3390/app14177445. URL https://www.mdpi.com/2076-3417/14/17/7445.
Haoyu Zhang, Shihao Zhang, Ian Colbert, and Rayan Saab. Provable post-training quantization: Theoretical analysis of OPTQ and Qronos, 2025. URL https://arxiv.org/abs/2508.04853.
Jiaqi Zhang. Survey of quantization-aware training (qat) applications in deep learning quantization. In Proceedings of the 2025 International Symposium on Artificial Intelligence and Computational Social Sciences, AICSS '25, page 431–442, New York, NY, USA, 2025. Association for Computing Machinery. ISBN 9798400721007. doi:10.1145/3776759.3776826. URL https://doi.org/10.1145/3776759.3776826.
Shihao Zhang, Haoyu Zhang, Ian Colbert, and Rayan Saab. Qronos: Correcting the past by shaping the future... in post-training quantization. In C. Vondrick, B. Hariharan, C. Raffel, L. Pinto, D. Yang, and A. Faust, editors, International Conference on Learning Representations, volume 2026, pages 87775–87798, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/file/8d22a09f18d9fc85dcbe6f482e13e1d7-Paper-Conference.pdf.
A PREPRINT
A Proof of Theorem 3.1 and Corollary 3.2
To prove Theorem 3.1, we will use the following result.
Theorem A.1 (Matrix Chernoff inequality [Tropp, 2012, Remark 5.3]). Consider a finite sequence of independent, random, self-adjoint matrices with dimension . Assume that each random matrix is positive semidefinite and satisfies almost surely.
Let be the smallest eigenvalue of its matrix argument and define
Then for ,
We now proceed to prove Theorem 3.1.
Theorem 3.1. Suppose we sample i.i.d. random samples of a random vector satisfying almost surely. Denote the matrix whose -th row is \boldsymbol{x}^{(i)}^\top by
and let . Fix and assume that . Then, with probability at least over the randomness of the sample , the following holds simultaneously for all :
In particular, the conclusion applies to any possibly data-dependent vector .
Proof. Let . We first note that, for any ,
Let and let . Consider
Then . We write as
Each summand has operator norm at most . Indeed, since , we have . Therefore, using ,
Similarly, for the artificial regularization summands, , where the last inequality follows from . Therefore, by Theorem A.1,
A PREPRINT
Taking , we obtain that, with probability at least ,
On this event,
where we used . Combining this estimate with Eq. (50) proves the result.
Corollary 3.2. Suppose the hypotheses of Theorem 3.1 hold. Let be the output of OPTQ applied to using the augmented calibration matrix , and let . Then, with probability at least over the randomness of the sample ,
Here for deterministic OPTQ and for stochastic OPTQ.
Proof. Apply Theorem 3.1 to the OPTQ error vector
Then, to obtain Eq. (19), we use the OPTQ identity [Zhang et al., 2025, Eq. (3.5)]
For deterministic OPTQ, , and for stochastic OPTQ, almost surely. Hence
where for deterministic OPTQ and for stochastic OPTQ. Substituting this into Eq. (59) and applying Eq. (17) completes the proof.
B Proof of Theorem 3.3
We first will establish the following lemma.
Lemma B.1. Let be a positive semi-definite matrix. If we run OPTQ, then
Proof. Recall that by Eq. (8), each vector is , the projection of onto the orthogonal complement of the range of . Therefore, is a collection of orthogonal vectors. Define
for and let
A PREPRINT
We bound
and compute
We now proceed to prove Theorem 3.3.
Theorem 3.3. Let be an arbitrary positive semi-definite matrix. For stochastic OPTQ, we can bound
where denotes the expectation is taken only over the randomness in Eq. (15) associated with choosing , with the sample matrix fixed.
Furthermore, with probability at least over the randomness in , we have
Proof. We first show Eq. (20). In the stochastic version of OPTQ, each is a random variable that satisfies
By the law of total expectation,
We therefore see that
Equation (20) follows by applying Lemma B.1 to Eq. (70).
We now consider Eq. (21). From Eq. (66), we see that the sequence of vectors
is a vector martingale. From [Pinelis, 1994, Theorem 3.5], we can bound
Since , we have
We set to see that with probability at least over the randomness of choosing we have
We then again apply Lemma B.1 to Eq. (74) to conclude Eq. (21).
A PREPRINT
C Generalization behavior of round-to-nearest algorithms
To precisely state a lower bound for MSQ, we first precisely define the algorithm. Similarly to OPTQ, we will consider two variants of MSQ: a deterministic variant and a stochastic variant. In deterministic MSQ, we obtain a quantized vector by rounding each coordinate of to the nearest multiple of . That is,
In stochastic MSQ, we do a similar randomized rounding procedure as stochastic OPTQ to obtain a quantized vector . First, for each coordinate we define
and randomly choose
We then set .
Proposition C.1. Let and be a vector with finite second moment. Suppose is determined by sampling from the uniform distribution on . Choose either stochastic MSQ or deterministic MSQ and let be the quantized vector obtained by applying this algorithm to . There are absolute constants such that
Here, denotes that the expectation is taken only over and denotes the probability with respect to the random choice of and the randomness in stochastic MSQ, if chosen.
Proof. Denote . Let denote . With this notation,
and
Therefore, we need only to demonstrate
We now proceed to do so. We see that is a random vector independent of . This random vector consists of i.i.d. mean-zero coordinates such that each coordinate almost surely lies in the interval . Consequently, is a subgaussian random vector with subgaussian norm bounded above by , for some absolute constant . We can now apply the Hanson–Wright inequality [Rudelson and Vershynin, 2013, Theorem 1.1] to the quadratic form to conclude
where is an absolute constant. We proceed to compute . This can be done as follows
where in the last line we use that the coordinates of are i.i.d. and mean-zero.
A PREPRINT
In the case of deterministic round-to-nearest for all possible values of . Therefore, is a uniform variable on , so
In the case of stochastic round-to-nearest, by construction. This depends on the random variable , whose marginal distribution is the uniform distribution on . Thus, we can compute
From Eqs. (85) to (87), we obtain the bound
We now combine Eqs. (82) and (88) to obtain
Because is a positive semi-definite matrix, we have
Therefore,
As is non-negative, Eq. (91) is enough to conclude that is subexponential with subexponential norm bounded by for an absolute constant . This yields the following bound for its second moment [Vershynin, 2025, Proposition 2.8.1]
for another absolute constant . We now apply the Paley-Zygmund inequality to obtain