Dynamics of stochastic gradient descent for two-layer neural networks in the teacher-student setup

Sebastian Goldt, Madhu S. Advani, Andrew M. Saxe, Florent Krzakala, Lenka Zdeborová
6/18/2019
201 citations
stat.MLcond-mat.dis-nncond-mat.stat-mech
distillation

Official code: sgoldt/pyscm (7 stars, Mathematica, last commit 2019-10-27). 1 more implementation below.

Abstract

Deep neural networks achieve stellar generalisation even when they have enough parameters to easily fit all their training data. We study this phenomenon by analysing the dynamics and the performance of over-parameterised two-layer neural networks in the teacher-student setup, where one network, the student, is trained on data generated by another network, called the teacher.

Show full abstract

We show how the dynamics of stochastic gradient descent (SGD) is captured by a set of differential equations and prove that this description is asymptotically exact in the limit of large inputs. Using this framework, we calculate the final generalisation error of student networks that have more parameters than their teachers. We find that the final generalisation error of the student increases with network size when training only the first layer, but stays constant or even decreases with size when training both layers. We show that these different behaviours have their root in the different solutions SGD finds for different activation functions. Our results indicate that achieving good generalisation in neural networks goes beyond the properties of SGD alone and depends on the interplay of at least the algorithm, the model architecture, and the data set.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
sgoldt/pyscmOfficial7Mathematica–2019-10-27
sgoldt/nn2ppOfficial6C++–2021-11-11
sgoldt/pyscmOfficial100%

(Online) learning in two-layer neural networks

71Mathematica, PythonJan 25, 20197 years ago
sgoldt/nn2ppOfficial100%

Utilities to train two-layer neural networks

63C++, COct 27, 20195 years ago

Similar Papers

Cite this paper

@article{goldt2019dynamics,
  title  = {Dynamics of stochastic gradient descent for two-layer neural networks in the teacher-student setup},
  author = {Sebastian Goldt and Madhu S. Advani and Andrew M. Saxe and Florent Krzakala and Lenka Zdeborová},
  year   = {2019},
  eprint = {1906.08632},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.08632}
}

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

Discussion