Regularized Linear Regression for Binary Classification

Danil Akhtiamov, Reza Ghane, Babak Hassibi

TL;DR

This paper provides a rigorous theoretical analysis of how regularization—specifically $\ell_1$, $\ell_2$, and $\ell_\infty$—affects linear classifiers in the over-parametrized regime. The authors demonstrate that regularization not only helps "denoise" datasets with mislabeled points but also enables massive model compression (up to 1-bit per weight or 100x sparsity) with negligible loss in classification performance.

What Problem Does This Paper Address?

In the era of Large Language Models (LLMs), we face two massive hurdles: noise and scale. Modern models are often "over-parametrized," meaning they have far more parameters than training data points. While this allows for great flexibility, it also makes models prone to "interpolating" noise—essentially memorizing mislabeled data points instead of learning the underlying patterns. Furthermore, storing billions of weights is computationally expensive.

The authors tackle a fundamental "toy problem": regularized linear regression for binary classification. They ask: Can we use regularization to both ignore corrupted labels and "squish" the model into a smaller memory footprint without breaking it?

Methods

The researchers use a sophisticated mathematical framework called the Convex Gaussian Min-Max Theorem (CGMT).

  • The Setup: They model the data using a Gaussian Mixture Model (GMM), where two classes of data are generated from different high-dimensional "clouds." Crucially, they assume a fraction of the training labels are flipped (corrupted).
  • The Analytical "Trick": CGMT allows the authors to perform "mathematical heavy lifting" by reducing a complex, high-dimensional optimization problem (finding the best weights in $d$-dimensional space) into a much simpler, low-dimensional scalar optimization.
  • Regularizers Studied:
    • Ridge ($\ell_2$): Penalizes the square of the weights.
  • Lasso ($\ell_1$): Encourages weights to be exactly zero (sparsity).
  • $\ell_\infty$: Penalizes the maximum absolute value of any single weight.

Datasets

As a theoretical study, the paper relies on synthetic datasets rather than real-world benchmarks like ImageNet. This allows the authors to precisely control variables like:

  • $d$ (Dimension): Set to 2000.
  • $n$ (Samples): Set to 200 (creating a 10:1 over-parametrization ratio).
  • Corruption rate ($c$): How many labels are wrong.
  • Noise level ($\sigma$): How much the data "clouds" overlap.

The results were validated using numerical simulations in MATLAB to ensure the theory matched reality.

Key Insights and Ideas

  • Sparsity is "Free": Perhaps the most surprising finding is that $\ell_1$ regularization induces extreme sparsity even when the underlying data has no sparse structure. The authors found they could zero out 99% of the weights (reducing a 2000-dimensional vector to just 18 non-zero entries) while maintaining an error rate as low as 0.03%.
  • The 1-Bit Phenomenon: Under $\ell_\infty$ regularization, the optimal weights tend to cluster around two values of opposite signs. This suggests a "compression scheme" where you only store the sign of each weight (1 bit). The paper proves that this 1-bit version performs nearly as well as the full-precision model.
  • Annihilating Corruption: The authors show that with a high enough regularization strength ($\lambda$), the negative impact of mislabeled data can be almost entirely "annihilated," especially when the feature noise ($\sigma$) is low.

Key Results

  • Master Theorem: The authors derived a "Master Theorem" (Theorem 2) that provides a closed-form expression for the generalization error for any separable convex regularizer.
  • Ridge Regression: They proved that ridge regression invariably improves classification error compared to unregularized versions in noisy settings.
  • Quantitative Sparsity: In their simulations, they achieved a generalization error of 0.0003 with an 18-sparse estimator in a 2000-dimensional space.
  • Robustness: The 1-bit compression scheme derived from $\ell_\infty$ regularization remained effective even as the label corruption rate approached 50%.

Limitations and Future Work

  • Linearity: The study is limited to linear classifiers. While these are the building blocks of neural networks, the dynamics of deep, multi-layer architectures are significantly more complex.
  • Gaussian Assumption: The proofs rely on the data being Gaussian. Real-world data (like text or images) often follows much more complex, non-Gaussian distributions.
  • Future Directions: The authors suggest extending this analysis to multi-class classification and exploring non-linear loss functions (like logistic loss) or non-separable regularizers to see if these "compression-friendly" properties hold up.

Summary updated

BibTeX
@inproceedings{akhtiamov2024regularized,
  author = {Danil Akhtiamov and Reza Ghane and Babak Hassibi},
  title = {{Regularized Linear Regression for Binary Classification}},
  booktitle = {ISIT},
  year = {2024},
  url = {https://openreview.net/forum?id=axZOO5ZtDZ},
}
Figure