One-Bit Quantization and Sparsification for Multiclass Linear Classification via Regularized Regression

Reza Ghane, Danil Akhtiamov, Babak Hassibi · DOI

Abstract

Modern over-parametrized models can be aggressively compressed through quantization and pruning without significant accuracy loss. This paper provides a theoretical foundation for this phenomenon in multiclass linear classification. By employing the Convex Gaussian Min-Max Theorem (CGMT) and a novel "Sandwich Theorem," the authors analyze the performance of $\ell_1$ and $\ell_\infty$ regularization. They prove that these methods allow for extreme sparsification (up to 33x) and one-bit quantization, respectively, achieving performance nearly identical to the optimal Ridge regression baseline, even under label noise.

Introduction

The scaling of Large Language Models (LLMs) to trillions of parameters has necessitated techniques like quantization and pruning to manage memory and power constraints. While these methods are effective in practice, a rigorous theoretical understanding of the trade-offs involved has been lacking. This study addresses the "sacrifice" in accuracy when forcing models into low-bit or highly sparse regimes, specifically within the over-parametrized multiclass linear classification setting where parameters exceed data points and training labels may be noisy.

Methodology

The research analyzes multiclass classification as a regularized linear regression problem. Three primary regularizers are compared:

  1. $\ell_2$ (Ridge): Maintains small, non-zero weights.
  2. $\ell_1$ (LASSO): Promotes sparsity, facilitating model pruning.
  3. $\ell_\infty$: Constrains weights to a boundary, enabling one-bit quantization by using the signs of the weights.

The authors utilize the Convex Gaussian Min-Max Theorem (CGMT) to solve high-dimensional systems. A critical technical advancement is the "Sandwich Theorem," which enables precise calculation of classification error in the "large $\lambda$" regime. This strong regularization is essential to prevent the model from overfitting to mislabeled data.

Experimental Setup

The theoretical framework was validated using:

  • Synthetic Gaussian Mixture Models (GMM): Controlled environments with varying levels of label corruption (e.g., 30% noise) to test robustness.
  • MNIST Dataset: A subset of 5 classes and 500 training points was used to demonstrate "Gaussian Universality," showing that theoretical predictions based on Gaussian assumptions hold for real-world image data.

Theoretical Insights

  • Necessity of Strong Regularization: In noisy, over-parametrized regimes, heavy regularization is mandatory. While $\ell_2$ is theoretically optimal for error minimization, $\ell_1$ and $\ell_\infty$ are remarkably competitive.
  • Efficiency of Sparsity: $\ell_1$ regularization can achieve 15x to 33x sparsification (over 90% weight reduction) with error rates comparable to dense $\ell_2$ models.
  • Viability of One-Bit Quantization: Under $\ell_\infty$ regularization, weights cluster at boundaries. Since classification depends on relative weight values, replacing high-precision weights with their signs results in negligible performance loss.
  • Emergent Compression: These benefits occur even without inherent sparsity in the underlying data, suggesting compression is a natural property of the over-parametrized regime.

Key Results

The study proves that $\ell_2$ regularization with an infinite penalty ($\lambda \to \infty$) reaches the minimum possible classification error. Experimental results with $d=750$ features and $n=500$ samples showed that $\ell_1$ regularization reaches a "sweet spot" of near-zero error with 15x compression.

Comparison of true classification error versus theoretical prediction for $\ell_2$ regularization as a function of the regularization parameter $\lambda$.

As shown in Figure 1, the theoretical predictions align closely with the true error in the high-regularization regime ($\lambda \ge 10^3$), confirming the validity of the proposed analytical framework. On the MNIST dataset, optimal errors for both full-precision and compressed classifiers were approximately 0.09, further validating the theory's real-world applicability.

Conclusion

This work establishes sharp theoretical bounds for model compression in linear classifiers. While limited to the linear regime, it offers a rigorous explanation for why massive models can be compressed so effectively. Future research aims to extend these findings to deep, non-linear architectures and explore the universality of the "Ridge is best" observation across diverse data distributions.

Summary updated

BibTeX
@misc{ghane2024one,
  author = {Reza Ghane and Danil Akhtiamov and Babak Hassibi},
  title = {{One-Bit Quantization and Sparsification for Multiclass Linear Classification via Regularized Regression}},
  year = {2024},
  eprint = {2402.10474},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.10474},
}
Figure