NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DG-LMC: A Turn-key and Scalable Synchronous Distributed MCMC Algorithm via Langevin Monte Carlo within Gibbs

Vincent Plassier, Maxime Vono, Alain Durmus, Eric Moulines

Bayesian inference is the gold standard for quantifying uncertainty in machine learning, but it has a notorious scaling problem. As datasets grow too large for a single machine, traditional Markov Chain Monte Carlo (MCMC) methods—the workhorses of Bayesian computation—often become prohibitively slow or require complex, manual tuning to work in distributed environments.

In their paper, "DG-LMC: A Turn-key and Scalable Synchronous Distributed MCMC Algorithm," Vincent Plassier and colleagues introduce a new framework that makes distributed Bayesian inference both reliable and efficient.

TL;DR

DG-LMC is a distributed MCMC algorithm that combines Langevin Monte Carlo with a Gibbs sampling framework to enable scalable Bayesian inference on large, partitioned datasets. It offers provable quadratic scaling in high dimensions and provides clear hyperparameter guidelines, making it a "turn-key" solution for practitioners.

What Problem Does This Paper Address?

Modern machine learning often deals with "tall data"—datasets so massive they must be split across multiple computing nodes (workers). Performing Bayesian inference in this setting is challenging because workers need to communicate to reach a global consensus on the model parameters.

Existing methods generally fall into two camps:

  1. One-shot methods: Workers run independent chains and the master averages the results at the very end. While fast, these are often inaccurate in high dimensions.
  2. Distributed Stochastic Gradient (D-SGLD) methods: These communicate frequently but suffer from high variance and are extremely sensitive to hyperparameter choices like step size.

The authors identify a critical gap: there is no "user-friendly" distributed MCMC algorithm that is both computationally efficient in high dimensions and theoretically grounded.

Methods

The authors propose Distributed Gibbs using Langevin Monte Carlo (DG-LMC). It operates within a master/worker architecture and relies on a statistical framework called Asymptotically Exact Data Augmentation (AXDA).

The DG-LMC algorithm alternates between local worker updates and global master updates.

The process works in two main steps:

  • Local Exploration (The "LMC" part): Each worker node holds a shard of the data. Instead of trying to sample the global parameter directly, workers update local "auxiliary variables" using several steps of Langevin Monte Carlo. This allows workers to explore their local data thoroughly before needing to communicate.
  • Global Consensus (The "Gibbs" part): Workers send their local updates to a master node. The master then updates the global parameter by sampling from a simple Gaussian distribution. This step is mathematically "clean" and computationally cheap, even when the model has many parameters.

What makes this "turn-key" is that the authors provide explicit formulas for setting the tolerance parameters and step sizes, removing the guesswork that plagues other distributed methods.

Datasets

The researchers evaluated DG-LMC on three types of problems:

  • Toy Gaussian Model: A simple 2D case used to visualize how the algorithm explores the probability space.
  • Bayesian Logistic Regression: Using the covtype dataset (581,012 observations, 54 dimensions) partitioned across 16 workers.
  • Bayesian Neural Network: Using the MNIST dataset (60,000 images) partitioned across 50 workers to test the algorithm on complex, non-convex problems.

Key Insights and Ideas

  • Quadratic Scaling: The paper provides a rigorous non-asymptotic analysis showing that the algorithm's mixing time scales quadratically ($O(d^2 \log d)$) with the dimension $d$. This is a major theoretical contribution, as such explicit bounds are rare for distributed MCMC.
  • Communication Efficiency: By allowing workers to perform multiple local LMC steps before talking to the master, the algorithm significantly reduces communication overhead without sacrificing accuracy.
  • Robustness to Hyperparameters: Unlike D-SGLD, which can fail if the step size is slightly off, DG-LMC is much more stable. The authors show that their suggested defaults work well across different datasets.

Key Results

In experiments, DG-LMC consistently outperformed popular competitors like D-SGLD and Global Consensus Monte Carlo (GCMC).

  • Better Mixing & Higher Accuracy: In the Gaussian toy example, DG-LMC showed much lower autocorrelation than D-SGLD, meaning it generates "fresher" samples more quickly. It also accurately captured the target distribution's contours, whereas baselines struggled.
  • Scalability: On the logistic regression task, DG-LMC reached a 1% error threshold in estimating high-posterior density regions significantly faster than other methods. Furthermore, the algorithm handled the 50-worker MNIST neural network task effectively, providing reliable uncertainty estimates where exact MCMC methods would be computationally impossible.
Visualizing the posterior approximation and autocorrelation: DG-LMC (top) accurately captures the target distribution and mixes faster than D-SGLD (bottom).

Limitations and Future Work

While powerful, DG-LMC has a few limitations:

  • Synchronous Bottlenecks: The current version is synchronous, meaning the master node must wait for the slowest worker (the "straggler") before updating.
  • Log-Concavity Assumptions: The strongest theoretical guarantees assume the target distribution is "strongly log-concave." While the algorithm performed well on the non-convex Bayesian Neural Network, the theory for such cases is still catching up.
  • Network Optimization: The authors suggest that future work could involve more sophisticated modeling of communication costs (like I/O bandwidth) to automatically optimize the number of local steps.

Summary updated

BibTeX
@inproceedings{plassier2021dg,
  author = {Vincent Plassier and Maxime Vono and Alain Durmus and Eric Moulines},
  title = {{DG-LMC: A Turn-key and Scalable Synchronous Distributed MCMC Algorithm via Langevin Monte Carlo within Gibbs}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=BbNZdXuoyW9},
}
Figure