Skip to main content
QUICK REVIEW

[Paper Review] Functional Variational Bayesian Neural Networks

Shengyang Sun, Guodong Zhang|arXiv (Cornell University)|Mar 14, 2019
Adversarial Robustness in Machine LearningComputer Science115 citations
TL;DR

The paper introduces functional variational Bayesian neural networks (fBNNs) that perform variational inference over functions rather than weights, using a functional ELBO and finite measurement sets to approximate KL divergences, enabling structured priors and scalable, reliable uncertainty estimates.

ABSTRACT

Variational Bayesian neural networks (BNNs) perform variational inference over weights, but it is difficult to specify meaningful priors and approximate posteriors in a high-dimensional weight space. We introduce functional variational Bayesian neural networks (fBNNs), which maximize an Evidence Lower BOund (ELBO) defined directly on stochastic processes, i.e. distributions over functions. We prove that the KL divergence between stochastic processes equals the supremum of marginal KL divergences over all finite sets of inputs. Based on this, we introduce a practical training objective which approximates the functional ELBO using finite measurement sets and the spectral Stein gradient estimator. With fBNNs, we can specify priors entailing rich structures, including Gaussian processes and implicit stochastic processes. Empirically, we find fBNNs extrapolate well using various structured priors, provide reliable uncertainty estimates, and scale to large datasets.

Motivation & Objective

  • Motivate why weight-space priors are hard to relate to functions and why function-space variational inference can help.
  • Define the functional ELBO (fELBO) and show KL divergence between stochastic processes equals the supremum of marginal KLs over finite input sets.
  • Propose a practical training objective using finite measurement sets and spectral Stein gradient estimator (SSGE).
  • Demonstrate that fBNNs can leverage structured priors (e.g., Gaussian processes, implicit processes) and scale to large datasets.
  • Show empirical benefits in extrapolation, uncertainty quantification, and contextual bandits performance.

Proposed method

  • Define a stochastic process prior over functions p and a variational posterior q over functions realized by a neural network with stochastic weights/inputs.
  • Formulate the functional ELBO: L(q)=E_q[log p(D|f)] - KL[q||p], where KL is between stochastic processes and is computed as a supremum over finite measurement-set marginals (Theorem 1).
  • Approximate the functional KL gradients using marginal KLs over measurement sets via sampling and the spectral Stein gradient estimator (SSGE).
  • Adopt a GAN-like minimax framework with adversarial measurement sets or a sampling-based objective to optimize the fELBO (Equations 6-7).
  • Provide algorithm (Algorithm 1) that samples measurement points and function samples, computes likelihood gradients, and uses SSGE to approximate KL gradients.
  • Allow explicit or implicit stochastic process priors (including GPs and piecewise function priors) and enable explicit posterior function samples for tasks like Thompson sampling.

Experimental results

Research questions

  • RQ1Can variational inference be performed directly in function space to enable richer priors than weight-space priors?
  • RQ2How can the KL divergence between stochastic processes be computed or approximated in practice for fBNNs?
  • RQ3Do fBNNs with structured priors extrapolate well and provide reliable uncertainty estimates compared to weight-space BNNs?
  • RQ4Can fBNNs scale to large datasets while maintaining good predictive performance and uncertainty calibration?
  • RQ5Do fBNNs enable useful posterior samples of the function for tasks like Thompson sampling or predictive entropy search?

Key findings

  • fBNNs extrapolate well with structured priors, including GP-like and implicit priors.
  • fBNNs provide reliable uncertainty estimates and scale to large datasets.
  • On extrapolation tasks with periodic structure, fBNNs match GP priors with corresponding kernels and outperform weight-space BBB baselines.
  • On small-scale regression benchmarks, fBNNs outperform BBB and Noisy K-FAC in RMSE and log-likelihood on several datasets.
  • On large-scale datasets, fBNNs achieve competitive RMSE and log-likelihood, demonstrating scalability.

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.