Generalized Leverage Score Sampling for Neural Networks

Jason D. Lee, Ruoqi Shen, Zhao Song, Mengdi Wang, Zheng Yu

Abstract

This work establishes a rigorous theoretical bridge between Generalized Leverage Score Sampling (LSS) and the training dynamics of regularized neural networks. By extending LSS theory to a broader class of kernels, we demonstrate that training an $\ell_2$-regularized neural network is equivalent to performing Neural Tangent Kernel (NTK) ridge regression. This equivalence holds even when the network is initialized using importance-based leverage score sampling rather than standard Gaussian initialization, providing a framework for more efficient kernel approximations in deep learning theory.

1. Introduction

Kernel Ridge Regression (KRR) remains a fundamental tool in machine learning, yet its application to large-scale datasets is hindered by a cubic computational complexity, $O(n^3)$, relative to the number of data points $n$. To mitigate this, researchers frequently employ random feature approximations. However, standard techniques like Random Fourier Features often require an excessive number of features to maintain accuracy, particularly in the presence of regularization.

Simultaneously, the Neural Tangent Kernel (NTK) framework has revealed that sufficiently wide neural networks behave like kernel methods. Despite this insight, most NTK research focuses on unregularized models, whereas practical deep learning almost universally employs weight decay ($\ell_2$ regularization). This paper addresses these gaps by generalizing LSS theory and building a formal connection between regularized neural network training and NTK ridge regression.

2. Problem Formulation

The study addresses two primary challenges in the current landscape of kernel methods and deep learning theory:

  1. Generalization of LSS: Extending leverage score sampling beyond specific shift-invariant kernels to a general class of kernels.
  2. Regularization in NTK: Providing a rigorous analysis of how $\ell_2$ regularization in neural networks maps to the $\lambda$ parameter in Ridge Regression.

3. Methodology

The authors introduce several theoretical innovations to unify these concepts:

3.1 Generalized Ridge Leverage Function

The authors define a leverage score for kernels expressed as an expectation: $$K(x, z) = \mathbb{E}_{w \sim p}[\phi(x, w)^\top \phi(z, w)]$$ This definition allows for the identification of specific weights ($w$) that are most critical for representing the data distribution, moving beyond uniform sampling.

3.2 Reweighed Neural Networks

Instead of the standard Gaussian initialization ($w \sim \mathcal{N}(0, I)$), the authors propose a "reweighed" strategy. Weights are sampled from a distribution proportional to their leverage scores and scaled accordingly. This approach allows the neural network to approximate the kernel matrix effectively with fewer total features (i.e., a narrower width).

3.3 Gradient Flow Analysis

To establish equivalence, the authors analyze the gradient flow—the continuous-time limit of gradient descent. They demonstrate that the optimization paths of the neural network and the kernel ridge regression remain close throughout the training process, ensuring that the final learned predictors are nearly identical.

4. Main Theoretical Results

The paper's contributions are formalized through several key theorems:

  • Kernel Approximation (Theorem 3.3): Establishes a tighter bound on the number of random features ($m$) required to approximate a generalized kernel matrix within a factor of $(1 \pm \epsilon)$.
  • Gaussian and Leverage Score Equivalence (Theorems 3.6, 3.7, & 3.9): These theorems prove that for sufficiently wide networks, the predictions of a neural network (using either Gaussian or leverage score initialization) stay within $\epsilon$ of the NTK ridge regression solution.
  • Width Requirements: The analysis shows that the required network width $m$ scales polynomially with the number of data points $n$ and the inverse of the desired accuracy $1/\epsilon$.

5. Discussion and Limitations

While this work provides a robust theoretical foundation for importance-based sampling in neural networks, several challenges remain:

  • The Training Bottleneck: Although leverage score sampling optimizes the initialization phase, the analysis of the training phase still requires significant over-parametrization. Currently, the theoretical width bound for LSS remains similar to Gaussian initialization due to the requirements of the proof techniques.
  • Computational Complexity: Calculating exact leverage scores is computationally intensive. Future research may focus on using approximate leverage scores to reduce this overhead.
  • Architectural Constraints: The current proofs primarily target two-layer ReLU networks. While extensions to multi-layer networks are mentioned, the application to complex architectures like Transformers or Convolutional Neural Networks (CNNs) remains an open area for investigation.

6. Conclusion

By viewing neural network initialization as a kernel approximation process, this paper demonstrates that importance sampling via leverage scores can theoretically produce more efficient representations. The explicit link between $\ell_2$ regularization and ridge regression parameters provides a clearer understanding of how weight decay influences the "lazy training" regime of wide neural networks.

Summary updated

BibTeX
@inproceedings{lee2020generalized,
  author = {Jason D. Lee and Ruoqi Shen and Zhao Song and Mengdi Wang and Zheng Yu},
  title = {{Generalized Leverage Score Sampling for Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=uzKYhX8Z7N2},
}
Figure