Skip to main content
QUICK REVIEW

[Paper Review] Early Stopping is Nonparametric Variational Inference

Dougal Maclaurin, David Duvenaud|arXiv (Cornell University)|Apr 6, 2015
Gaussian Processes and Bayesian InferenceComputer Science13 references12 citations
TL;DR

This paper proposes that unconverged stochastic gradient descent (SGD) with random initialization implicitly performs nonparametric variational inference by transforming an initial distribution through optimization steps. It introduces a scalable, unbiased estimator of the variational lower bound via entropy tracking, enabling hyperparameter optimization without a validation set and offering a theoretical foundation for early stopping and ensembling in deep learning.

ABSTRACT

We show that unconverged stochastic gradient descent can be interpreted as a procedure that samples from a nonparametric variational approximate posterior distribution. This distribution is implicitly defined as the transformation of an initial distribution by a sequence of optimization updates. By tracking the change in entropy over this sequence of transformations during optimization, we form a scalable, unbiased estimate of the variational lower bound on the log marginal likelihood. We can use this bound to optimize hyperparameters instead of using cross-validation. This Bayesian interpretation of SGD suggests improved, overfitting-resistant optimization procedures, and gives a theoretical foundation for popular tricks such as early stopping and ensembling. We investigate the properties of this marginal likelihood estimator on neural network models.

Motivation & Objective

  • To provide a theoretical interpretation of early stopping and incomplete optimization as variational inference with implicit, nonparametric posterior approximations.
  • To develop a scalable, unbiased estimator of the variational lower bound on the log marginal likelihood using entropy tracking during SGD.
  • To enable hyperparameter optimization without a validation set by leveraging the estimated marginal likelihood.
  • To analyze the properties of implicit variational distributions formed by optimization dynamics in neural networks.
  • To explore how optimization algorithms with random initialization implicitly define a sequence of distributions converging to posterior modes.

Proposed method

  • Interprets each optimization step of SGD as a deterministic transformation of an initial parameter distribution, forming a sequence of implicit, nonparametric variational approximations.
  • Tracks the change in entropy across optimization steps to estimate the entropy of the implicit variational distribution at each iteration.
  • Uses the entropy estimate to compute an unbiased, scalable lower bound on the log marginal likelihood, which serves as a surrogate for model selection.
  • Proposes an 'entropy-friendly' variant of SGD that maintains better-behaved implicit distributions by modifying the update rule.
  • Applies the estimator to neural networks, enabling hyperparameter tuning based on the marginal likelihood estimate instead of cross-validation.
  • Employs reverse-mode differentiation to enable gradient-based optimization of variational parameters, including training hyperparameters.

Experimental results

Research questions

  • RQ1Can unconverged SGD be interpreted as sampling from a nonparametric variational posterior distribution?
  • RQ2Can the entropy of the implicit variational distribution formed by SGD be estimated in a scalable and unbiased manner?
  • RQ3Does the estimated marginal likelihood from the variational lower bound correlate with generalization performance on test data?
  • RQ4Can hyperparameters be optimized using the marginal likelihood estimator without requiring a validation set?
  • RQ5How do the implicit distributions from optimization compare to the true posterior in terms of quality and concentration?

Key findings

  • The paper establishes that each iteration of SGD with random initialization implicitly defines a nonparametric variational distribution that converges toward posterior modes.
  • The proposed entropy estimator enables an unbiased, scalable estimate of the variational lower bound on the log marginal likelihood, even for models with millions of parameters.
  • The marginal likelihood estimator shows reasonable correlation with test performance, suggesting potential for validation-free model selection in neural networks.
  • The method provides a theoretical justification for early stopping as optimizing a variational lower bound with respect to the number of iterations.
  • Ensembling multiple SGD runs is naturally interpreted as independent sampling from the same implicit variational posterior, explaining its empirical success.
  • The entropy-friendly variant of SGD maintains more stable and informative implicit distributions, improving the quality of the variational approximation.

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.