The Onset of Variance-Limited Behavior for Networks in the Lazy and Rich Regimes

Alexander Atanasov, Blake Bordelon, Sabarish Sainathan, Cengiz Pehlevan
12/23/2022
stat.MLcs.LG

Official code: Pehlevan-Group/onset-of-variance (0 stars, Jupyter Notebook, last commit 2023-10-03).

Abstract

For small training set sizes $P$, the generalization error of wide neural networks is well-approximated by the error of an infinite width neural network (NN), either in the kernel or mean-field/feature-learning regime. However, after a critical sample size $P^*$, we empirically find the finite-width network generalization becomes worse than that of the infinite width network.

Show full abstract

In this work, we empirically study the transition from infinite-width behavior to this variance limited regime as a function of sample size $P$ and network width $N$. We find that finite-size effects can become relevant for very small dataset sizes on the order of $P^* \sim \sqrt{N}$ for polynomial regression with ReLU networks. We discuss the source of these effects using an argument based on the variance of the NN's final neural tangent kernel (NTK). This transition can be pushed to larger $P$ by enhancing feature learning or by ensemble averaging the networks. We find that the learning curve for regression with the final NTK is an accurate approximation of the NN learning curve. Using this, we provide a toy model which also exhibits $P^* \sim \sqrt{N}$ scaling and has $P$-dependent benefits from feature learning.

View on arXivView PDF

Code Implementations(1)

This is the code to reproduce most figures in https://arxiv.org/abs/2212.12147

00Jupyter Notebook, PythonOct 3, 20233 years ago

Similar Papers

Cite this paper

@article{atanasov2022onset,
  title  = {The Onset of Variance-Limited Behavior for Networks in the Lazy and Rich Regimes},
  author = {Alexander Atanasov and Blake Bordelon and Sabarish Sainathan and Cengiz Pehlevan},
  year   = {2022},
  eprint = {2212.12147},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.12147}
}

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/2212.12147.svg)](https://codeofpaper.com/paper/2212.12147)

Discussion