Skip to main content
QUICK REVIEW

[Paper Review] A Bayesian Perspective on Training Speed and Model Selection

Clare Lyle, Lisa Schut|arXiv (Cornell University)|Oct 27, 2020
Gaussian Processes and Bayesian InferenceComputer Science43 references9 citations
TL;DR

This paper proposes a Bayesian framework linking training speed to marginal likelihood estimation in linear models and deep neural networks. By showing that the sum of training log-likelihoods over sequentially processed data (SOTL) approximates the marginal likelihood, it reveals that faster-learning models are favored in both model selection and linear model combinations—offering a new explanation for why SGD generalizes well in deep learning.

ABSTRACT

We take a Bayesian perspective to illustrate a connection between training speed and the marginal likelihood in linear models. This provides two major insights: first, that a measure of a model's training speed can be used to estimate its marginal likelihood. Second, that this measure, under certain conditions, predicts the relative weighting of models in linear model combinations trained to minimize a regression loss. We verify our results in model selection tasks for linear models and for the infinite-width limit of deep neural networks. We further provide encouraging empirical evidence that the intuition developed in these settings also holds for deep neural networks trained with stochastic gradient descent. Our results suggest a promising new direction towards explaining why neural networks trained with stochastic gradient descent are biased towards functions that generalize well.

Motivation & Objective

  • To establish a theoretical connection between training speed and marginal likelihood in Bayesian model selection.
  • To develop a computationally efficient estimator of the marginal likelihood that mirrors standard SGD training procedures.
  • To investigate whether training speed, as measured by the sum of predictive log-likelihoods over sequential data, predicts model performance and weighting in linear combinations.
  • To extend insights from linear models to the infinite-width limit of deep neural networks and validate them empirically.
  • To explore whether the same principles apply to subnetworks within a trained DNN, suggesting a mechanism for in-network generalization bias.

Proposed method

  • Proposes a family of estimators for the marginal likelihood based on the sum of predictive log-likelihoods conditioned on preceding data points in a sequential Bayesian update.
  • Leverages the fact that gradient descent in linear models and infinite-width DNNs produces exact posterior samples, enabling exact correspondence between SOTL and marginal likelihood estimation.
  • Uses iterative Bayesian updating to compute the sum of log-likelihoods over data points in sequence, forming the SOTL estimator.
  • Applies the SOTL estimator to model selection tasks in linear models and infinite-width DNNs, comparing it to exact marginal likelihoods.
  • Empirically evaluates the SOTL as a proxy for test accuracy and model weight in linear ensembles trained via SGD.
  • Extends the analysis to subnetworks in DNNs by treating penultimate-layer activations as individual models, assessing their final weights in the final linear layer.

Experimental results

Research questions

  • RQ1Can training speed, measured as the sum of predictive log-likelihoods over sequentially processed data, serve as a proxy for the marginal likelihood in Bayesian model selection?
  • RQ2Does the SOTL estimator predict the relative weighting of models in a linear model combination trained to minimize regression loss?
  • RQ3To what extent does the SOTL correlate with generalization performance in deep neural networks trained with stochastic gradient descent?
  • RQ4Is there a mechanism within trained DNNs—such as differential weighting of subnetworks—that reflects the same bias toward fast-learning models observed in linear models?
  • RQ5Can the SOTL provide a principled explanation for why SGD favors models that generalize well, even in finite-width networks?

Key findings

  • The sum of training log-likelihoods over sequentially processed data (SOTL) closely approximates the marginal likelihood in linear models and infinite-width DNNs.
  • SOTL is strongly correlated with test set performance: models with lower average test cross-entropy had higher SOTL values.
  • In linear model combinations trained with gradient descent, models with higher SOTL values were assigned significantly larger final weights.
  • Empirical results show that SOTL predicts final test accuracy in DNNs trained with SGD, with a strong positive correlation observed across multiple architectures.
  • Within a DNN, subnetworks (penultimate-layer features) that perform better individually (higher SOTL) are assigned larger weights in the final linear layer, indicating a bias toward fast-learning components.
  • The SOTL estimator provides a computationally efficient alternative to expensive variational inference, closely tracking marginal likelihoods in settings where exact computation is feasible.

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.