Error scaling laws for kernel classification under source and capacity conditions

Hugo Cui, Bruno Loureiro, Florent Krzakala, Lenka Zdeborová · DOI

Introduction

The recent explosion in deep learning performance has been accompanied by the discovery of "neural scaling laws"—empirical observations that test error decreases as a power law with respect to the amount of training data, model parameters, or compute. While these laws provide a practical roadmap for scaling AI systems, their theoretical foundations remain unevenly developed. In the realm of kernel methods, which often serve as a mathematical proxy for infinitely wide neural networks, scaling laws for regression are well-understood. However, kernel classification has long been characterized by "worst-case" theoretical bounds that are significantly more pessimistic than the performance observed in practice.

This paper addresses this discrepancy by deriving exact, typical-case theoretical scaling laws for kernel classifiers. By utilizing a framework based on source and capacity conditions, the authors provide a precise characterization of how test error decays for Support Vector Machines (SVM) and Ridge classifiers as the training set size $n$ grows.

Theoretical Framework: Source and Capacity Conditions

To move beyond worst-case analysis, the authors model the complexity of the data distribution through two key parameters: capacity ($\alpha$) and source ($r$).

  • Capacity ($\alpha$): This parameter describes the eigenvalue decay of the data's covariance matrix. Specifically, if the eigenvalues $\lambda_k$ decay as $k^{-\alpha}$, a higher $\alpha$ indicates that the data effectively resides in a lower-dimensional subspace, making the learning task inherently easier.
  • Source ($r$): This parameter measures the "smoothness" of the target function relative to the data distribution. It quantifies how well the true labels align with the principal components of the data. A higher $r$ implies a target function that is easier for a kernel model to approximate.

The analysis is conducted in the high-dimensional limit where the number of samples $n$ and the feature dimension $p$ both tend toward infinity, specifically focusing on the regime where $n \ll p$.

Methodology

The study focuses on two primary algorithms:

  1. Margin-maximizing SVM: Utilizing the hinge loss to find the hyperplane that maximizes the margin between classes.
  2. Ridge Classification: Utilizing the squared loss (often used in regression) for binary classification tasks.

The authors employ the replica method, a powerful tool from statistical physics, to analyze the Gaussian covariate model. This allows them to derive closed-form asymptotic equations for the generalization error $\epsilon_g$ as a function of $n, \alpha,$ and $r$.

Key Theoretical Insights

The core contribution of the paper is the derivation of the error decay rates, expressed as $\epsilon_g \sim n^{-\beta}$.

SVM vs. Ridge Scaling

One of the most significant findings is that SVMs consistently outperform Ridge classifiers in terms of learning speed. The derived exponents are:

  • SVM Exponent: $\beta_{SVM} = \frac{\alpha \min(r, 1/2)}{1 + \alpha \min(r, 1/2)}$
  • Ridge Exponent: $\beta_{Ridge} = \frac{\alpha \min(r, 1)}{1 + 2\alpha \min(r, 1)}$

For any given data complexity ($\alpha, r$), the SVM exponent is always strictly greater than the Ridge exponent. This implies that SVMs are more sample-efficient, extracting more predictive power from each additional training example.

The Failure of Worst-Case Bounds

Historically, statistical learning theory has relied on "worst-case" analysis to provide performance guarantees. These bounds are designed to hold for any possible data distribution, which often results in extremely conservative estimates. For kernel classification, these bounds often suggest much slower learning rates than what is observed in practice. The authors demonstrate that by assuming a "typical" data structure, one can derive much tighter bounds that explain why practitioners see much better performance from SVMs than traditional theory would predict.

The Saturation Effect

The authors identify a "saturation" phenomenon in classification. In kernel regression, increasing the smoothness of the target function ($r$) continues to improve the scaling rate indefinitely. In classification, however, there is a ceiling. For SVMs, the scaling rate stops improving once $r \ge 1/2$. For Ridge classifiers, this saturation occurs at $r = 1$. This suggests that for very "easy" classification tasks, the choice of loss function becomes even more critical, as the SVM's architectural advantage is capped earlier than Ridge's.

Empirical Validation

To test the universality of these laws, the authors conducted experiments on both synthetic Gaussian data and real-world image datasets. These included:

  • MNIST: Classifying digits 8 (+1) vs. 1 (-1).
  • Fashion MNIST: Classifying T-shirts (+1) vs. Coats (-1).
  • CIFAR-10: Classifying Animals (+1) vs. Means of transport (-1).

In a notable quantitative test using the MNIST dataset with a Radial Basis Function (RBF) kernel, the authors measured the data parameters as $\alpha \approx 1.65$ and $r \approx 0.39$.

  • Predicted Rates: The theory predicted an SVM decay rate of 0.39 and a Ridge rate of 0.28.
  • Observed Rates: Empirical training results showed learning curves with slopes that matched these predictions almost perfectly.

This validation demonstrates that despite the theoretical reliance on Gaussian assumptions, the scaling laws accurately describe the behavior of complex, non-Gaussian real-world data.

Conclusion and Future Work

This work provides a rigorous theoretical foundation for understanding scaling in kernel classification, proving that typical-case performance is far superior to what worst-case bounds suggest. It establishes the inherent superiority of the hinge loss (SVM) over the squared loss (Ridge) for classification tasks in high dimensions.

Future research directions include providing a fully rigorous mathematical proof that relaxes the Gaussian design assumption and extending the analysis to non-asymptotic regimes where $n$ and $p$ are finite. Additionally, exploring how these kernel scaling laws relate to the behavior of deep neural networks during different phases of training remains a promising area of inquiry.

Summary updated

BibTeX
@article{cui2023error,
  author = {Hugo Cui and Bruno Loureiro and Florent Krzakala and Lenka Zdeborová},
  title = {{Error scaling laws for kernel classification under source and capacity conditions}},
  journal = {Mach. Learn. Sci. Technol.},
  year = {2023},
  doi = {10.1088/2632-2153/acf041},
}
Figure