Stochastic Marginal Likelihood Gradients using Neural Tangent Kernels

Alexander Immer, Tycho F. A. van der Ouderaa, Mark van der Wilk, Gunnar Rätsch, Bernhard Schölkopf
6/6/2023
stat.MLcs.LG

No official code found. Best implementation: aleximmer/ntk-marglik (7 stars, last commit 2024-01-14).

Abstract

Selecting hyperparameters in deep learning greatly impacts its effectiveness but requires manual effort and expertise. Recent works show that Bayesian model selection with Laplace approximations can allow to optimize such hyperparameters just like standard neural network parameters using gradients and on the training data. However, estimating a single hyperparameter gradient requires a pass through the entire dataset, limiting the scalability of such algorithms. In this work, we overcome this issue by introducing lower bounds to the linearized Laplace approximation of the marginal likelihood. In contrast to previous estimators, these bounds are amenable to stochastic-gradient-based optimization and allow to trade off estimation accuracy against computational complexity. We derive them using the function-space form of the linearized Laplace, which can be estimated using the neural tangent kernel. Experimentally, we show that the estimators can significantly accelerate gradient-based hyperparameter optimization.

View on arXivView PDF

Code Implementations(1)

Code for "Stochastic Marginal Likelihood Gradients using Neural Tangent Kernels" at ICML'23

70Shell, PythonJun 6, 20232 years ago

Similar Papers

Cite this paper

@article{immer2023stochastic,
  title  = {Stochastic Marginal Likelihood Gradients using Neural Tangent Kernels},
  author = {Alexander Immer and Tycho F. A. van der Ouderaa and Mark van der Wilk and Gunnar Rätsch and Bernhard Schölkopf},
  year   = {2023},
  eprint = {2306.03968},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.03968v1},
  journal = {ICML 2023 2023}
}

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

Discussion