Skip to main content
QUICK REVIEW

[Paper Review] Learning with SGD and Random Features

Luigi Carratino, Alessandro Rudi|arXiv (Cornell University)|Jul 17, 2018
Face and Expression RecognitionComputer Science34 citations
TL;DR

This paper studies stochastic gradient descent (SGD) with random features for nonparametric learning, showing that optimal $O(1/\sqrt{n})$ generalization error is achieved with only $\sqrt{n}$ random features. The method implicitly regularizes through hyperparameters like step size, mini-batch size, and iterations, enabling efficient large-scale learning without explicit penalties.

ABSTRACT

Sketching and stochastic gradient methods are arguably the most common techniques to derive efficient large scale learning algorithms. In this paper, we investigate their application in the context of nonparametric statistical learning. More precisely, we study the estimator defined by stochastic gradient with mini batches and random features. The latter can be seen as form of nonlinear sketching and used to define approximate kernel methods. The considered estimator is not explicitly penalized/constrained and regularization is implicit. Indeed, our study highlights how different parameters, such as number of features, iterations, step-size and mini-batch size control the learning properties of the solutions. We do this by deriving optimal finite sample bounds, under standard assumptions. The obtained results are corroborated and illustrated by numerical experiments.

Motivation & Objective

  • To analyze the statistical and computational trade-offs in using SGD with random features for nonparametric regression.
  • To understand how implicit regularization arises from hyperparameters like step size, mini-batch size, and number of iterations.
  • To derive finite-sample generalization bounds for the SGD with random features estimator under standard assumptions.
  • To validate theoretical findings with experiments on real-world datasets like SUSY and HIGGS.
  • To demonstrate that $\sqrt{n}$ random features suffice for optimal learning rates, avoiding explicit regularization.

Proposed method

  • Formulates the learning problem as a least-squares regression over a reproducing kernel Hilbert space using random features.
  • Employs mini-batch stochastic gradient descent with random feature maps $\phi_M(x)$ to estimate model weights $w$.
  • Uses random Fourier features with i.i.d. $w \sim \mathcal{N}(0, \Sigma)$ and $q \sim \text{Unif}[0, 2\pi]$ to approximate shift-invariant kernels.
  • Analyzes the estimator under standard assumptions, including bounded feature maps and sub-Gaussian noise.
  • Derives finite-sample bounds by relating the SGD with random features to ridge regression and leveraging spectral properties of the kernel operator.
  • Uses theoretical tools from kernel methods and random matrix theory to characterize the interplay between $M$, $n$, $T$, $b$, and $\gamma_t$.

Experimental results

Research questions

  • RQ1What is the optimal number of random features $M$ required to achieve $O(1/\sqrt{n})$ generalization error in SGD with random features?
  • RQ2How do the step size $\gamma_t$, mini-batch size $b$, and number of iterations $T$ affect the stability and generalization of the solution?
  • RQ3Can implicit regularization via SGD with random features achieve the same statistical performance as explicit regularization like ridge regression?
  • RQ4What trade-offs exist between computational cost (e.g., number of passes, batch size) and test error in this framework?
  • RQ5How does the performance scale with increasing $n$ when $M \sim \sqrt{n}$, and does further increasing $M$ improve accuracy?

Key findings

  • The estimator achieves $O(1/\sqrt{n})$ generalization error with only $M = \Theta(\sqrt{n})$ random features, matching the optimal rate of ridge regression.
  • Increasing the number of random features beyond $\sqrt{n}$ yields no further improvement in test accuracy, confirming theoretical predictions.
  • The step size $\gamma_t$ must scale with mini-batch size $b$ to maintain optimal performance; larger $b$ allows larger $\gamma_t$.
  • For mini-batch sizes exceeding $\sqrt{n}$, a single pass over the data is insufficient to reach the optimal error; multiple passes are required.
  • The method achieves optimal statistical performance without explicit regularization, with implicit control via $M$, $T$, $b$, and $\gamma_t$.
  • Numerical experiments on SUSY and HIGGS datasets confirm that test error plateaus beyond $M \sim \sqrt{n}$, and optimal error is only reached when $\gamma_t$ scales with $b$.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.