Skip to main content
QUICK REVIEW

[Paper Review] Distributed Bayesian Learning with Stochastic Natural-gradient Expectation Propagation and the Posterior Server

Leonard Hasenclever, Stefan Webb|arXiv (Cornell University)|Dec 31, 2015
Gaussian Processes and Bayesian InferenceComputer Science67 references7 citations
TL;DR

This paper introduces Stochastic Natural Gradient Expectation Propagation (SNEP), a convergent, black-box variational inference method for Bayesian learning that uses stochastic natural gradients and Monte Carlo sampling to approximate posterior distributions. It further proposes the posterior server architecture, enabling scalable, distributed Bayesian learning across clusters by synchronizing moment-based messages via SNEP, demonstrating effectiveness on logistic regression and deep neural networks with minimal communication overhead.

ABSTRACT

This paper makes two contributions to Bayesian machine learning algorithms. Firstly, we propose stochastic natural gradient expectation propagation (SNEP), a novel alternative to expectation propagation (EP), a popular variational inference algorithm. SNEP is a black box variational algorithm, in that it does not require any simplifying assumptions on the distribution of interest, beyond the existence of some Monte Carlo sampler for estimating the moments of the EP tilted distributions. Further, as opposed to EP which has no guarantee of convergence, SNEP can be shown to be convergent, even when using Monte Carlo moment estimates. Secondly, we propose a novel architecture for distributed Bayesian learning which we call the posterior server. The posterior server allows scalable and robust Bayesian learning in cases where a data set is stored in a distributed manner across a cluster, with each compute node containing a disjoint subset of data. An independent Monte Carlo sampler is run on each compute node, with direct access only to the local data subset, but which targets an approximation to the global posterior distribution given all data across the whole cluster. This is achieved by using a distributed asynchronous implementation of SNEP to pass messages across the cluster. We demonstrate SNEP and the posterior server on distributed Bayesian learning of logistic regression and neural networks. Keywords: Distributed Learning, Large Scale Learning, Deep Learning, Bayesian Learn- ing, Variational Inference, Expectation Propagation, Stochastic Approximation, Natural Gradient, Markov chain Monte Carlo, Parameter Server, Posterior Server.

Motivation & Objective

  • To develop a convergent, black-box variational inference algorithm for Bayesian learning that does not require simplifying assumptions on the posterior distribution.
  • To enable scalable and robust distributed Bayesian learning when data is partitioned across a cluster, with each node processing only its local data subset.
  • To overcome the non-convergence issues of traditional Expectation Propagation (EP) by introducing a stochastic natural gradient formulation.
  • To design a communication-efficient distributed learning system using a posterior server that coordinates local MCMC samplers through moment sharing.
  • To demonstrate the method on large-scale models such as logistic regression and deep neural networks with distributed data.

Proposed method

  • Proposes SNEP, a stochastic natural gradient variant of Expectation Propagation that uses Monte Carlo estimates of moments from tilted distributions.
  • Employs stochastic gradient Langevin dynamics (SGLD) with adaptive mass matrix (inspired by Adam) to efficiently sample from local posterior approximations.
  • Introduces a posterior server that aggregates and broadcasts global moment updates (θ−i) to all workers to synchronize local posterior approximations.
  • Uses a state-shifting technique to preserve MCMC chain efficiency after each communication by repositioning the MCMC state relative to the new target distribution.
  • Applies natural gradient updates to the variational parameters using unbiased stochastic gradients derived from mini-batches of local data.
  • Employs a distributed asynchronous implementation of SNEP to pass messages across the cluster, minimizing communication frequency and enabling robustness.

Experimental results

Research questions

  • RQ1Can a stochastic natural gradient formulation of EP be made convergent even when using Monte Carlo moment estimates?
  • RQ2How can distributed Bayesian learning be made scalable and communication-efficient when data is partitioned across a cluster?
  • RQ3Can local MCMC samplers be kept in sync across workers without full data replication or frequent communication?
  • RQ4Does the posterior server architecture enable accurate and efficient posterior approximation in large-scale Bayesian models?
  • RQ5Can SNEP maintain convergence and performance on complex models like deep neural networks with distributed data?

Key findings

  • SNEP is provably convergent under mild conditions, even when using noisy Monte Carlo estimates of the moments of tilted distributions.
  • The posterior server enables distributed Bayesian learning with minimal communication, as messages are exchanged infrequently and only moments are shared.
  • The state-shifting technique allows MCMC samplers to resume efficiently after each communication, eliminating the need for burn-in periods.
  • The method achieves competitive posterior approximation accuracy on logistic regression and deep neural networks, comparable to centralized inference, despite distributed data and local sampling.
  • Adaptive SGLD with a diagonal mass matrix and debiasing (similar to Adam) significantly improves training stability and convergence speed.
  • Empirical results show that the approach scales effectively to large datasets, with performance robust to data partitioning and communication delays.

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.