Client-only Distributed Markov Chain Monte Carlo Sampling over a Network

Bo Yuan, Jiaojiao Fan, Jiaming Liang, Yongxin ChenTMLR 2025

Abstract

We aim to sample from a target $\exp\left(-\sum_{i=1}^n f_i(x|\mathcal{D}_i\right))$ where each client $f_i$ only has access to local data $\mathcal{D}_i$. We present a fully distributed Markov Chain Monte Carlo (MCMC) sampler that operates through client-to-client communication, eliminating the need for additional centralized servers. Unlike MCMC algorithms that rely on server-client structures, our proposed sampler is entirely distributed, enhancing security and robustness through decentralized communication. In contrast to limited decentralized algorithms arising from Langevin dynamics, our sampler utilizes blocked Gibbs sampling on an augmented distribution. Furthermore, we establish a non-asymptotic analysis of our sampler, employing innovative techniques. This study contributes to one of the initial analyses of the non-asymptotic behavior of a fully distributed sampler arising from Gibbs sampling.

Introduction

In modern distributed computing environments, such as sensor networks and edge computing, data is inherently decentralized. Performing Bayesian inference in these settings requires sampling from a global target distribution that depends on the sum of local potential functions stored across many "clients." Traditionally, this task has relied on centralized architectures where a single server coordinates the process.

A traditional centralized server-client architecture where a single hub aggregates data.

However, centralized hubs represent single points of failure and significant security risks. While peer-to-peer (decentralized) sampling algorithms exist, most are based on Langevin dynamics. These methods are notoriously sensitive to hyperparameters; an improper step size can lead to divergence or failure to converge. This paper introduces a fully decentralized, "client-only" MCMC sampler that leverages blocked Gibbs sampling to provide a more robust and theoretically grounded alternative.

Methodology: Fully Distributed Gibbs Sampling

The proposed approach moves away from gradient-based Langevin methods toward a more stable Gibbs-style framework. The method relies on three key pillars:

  1. Augmented Distribution: Instead of sampling the target distribution directly, the authors construct an augmented joint distribution. Each client maintains its own local variable, which is coupled to its neighbors via quadratic penalty terms.
  2. Bipartite Blocking: The algorithm operates over a bipartite graph structure (or a spanning tree). This allows the network to be partitioned into two groups (A and B). Clients in group A update their samples in parallel based on neighbors in group B, and then the roles are reversed.
  3. Client-to-Client Communication: There is no central coordinator. Each node only shares its current state with immediate neighbors, ensuring privacy and reducing the risk of a central bottleneck.
A decentralized network topology, such as a spanning tree, used for peer-to-peer communication.

Theoretical Innovation

A major contribution of this work is the first non-asymptotic convergence analysis for a decentralized Gibbs-style sampler. Using Total Variation (TV) distance, the authors rigorously bound the bias introduced by the augmented distribution. They prove that as the coupling parameter ($\eta$) decreases, the average of the client samples converges to the true target distribution. Furthermore, the convergence rate is explicitly linked to the spectral gap of the network's communication matrix, showing that better-connected networks converge faster.

Experimental Results

The sampler was validated using synthetic datasets, including 5D and 32D Gaussian targets and a non-smooth "sum of absolute powers" distribution. Evaluation was performed on various topologies, including perfect binary trees and circular graphs with up to 63 nodes.

  • Robustness: The Gibbs sampler demonstrated remarkable stability, converging reliably across a wide range of step sizes ($\eta = 0.01$ to $2.0$). In contrast, baseline decentralized Langevin methods (D-SGLD) often diverged or plateaued when hyperparameters were not perfectly tuned.
  • Accuracy: On a 32D Gaussian target, the sampler achieved a Wasserstein-2 (W2) distance of 0.76 within 80 iterations, matching the performance of more complex ADMM-based distributed samplers.
  • Non-Gaussian Performance: Even when violating theoretical assumptions of smoothness or convexity, the sampler remained stable and reached low error levels quickly.

Conclusion and Future Work

This research bridges the gap between decentralized communication and stable Gibbs sampling. While the current theoretical guarantees rely on strongly log-concave and smooth potentials, empirical evidence suggests the algorithm is effective beyond these constraints. Future work will focus on extending theoretical proofs to non-convex potentials, exploring communication compression techniques, and addressing asynchronous communication in real-world networks.

Summary updated

BibTeX
@article{yuan2025client,
  author = {Bo Yuan and Jiaojiao Fan and Jiaming Liang and Yongxin Chen},
  title = {{Client-only Distributed Markov Chain Monte Carlo Sampling over a Network}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=1bZ2rLfKwu},
}
Figure