Learning Curves for SGD on Structured Features

Blake Bordelon, Cengiz Pehlevan
6/4/2021
stat.MLcs.LG

Official code: Pehlevan-Group/sgd_structured_features (0 stars, Jupyter Notebook, last commit 2021-06-09).

Abstract

The generalization performance of a machine learning algorithm such as a neural network depends in a non-trivial way on the structure of the data distribution. To analyze the influence of data structure on test loss dynamics, we study an exactly solveable model of stochastic gradient descent (SGD) on mean square loss which predicts test loss when training on features with arbitrary covariance structure.

Show full abstract

We solve the theory exactly for both Gaussian features and arbitrary features and we show that the simpler Gaussian model accurately predicts test loss of nonlinear random-feature models and deep neural networks trained with SGD on real datasets such as MNIST and CIFAR-10. We show that the optimal batch size at a fixed compute budget is typically small and depends on the feature correlation structure, demonstrating the computational benefits of SGD with small batch sizes. Lastly, we extend our theory to the more usual setting of stochastic gradient descent on a fixed subsampled training set, showing that both training and test error can be accurately predicted in our framework on real data.

View on arXivView PDF

Code Implementations(1)

Learning Curves for SGD on Linearized Neural Networks

00Jupyter NotebookJun 9, 20215 years ago

Similar Papers

Cite this paper

@article{bordelon2021learning,
  title  = {Learning Curves for SGD on Structured Features},
  author = {Blake Bordelon and Cengiz Pehlevan},
  year   = {2021},
  eprint = {2106.02713},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.02713}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.02713.svg)](https://codeofpaper.com/paper/2106.02713)

Discussion