Decentralized Variational Bayesian Inference

Trevor Campbell, Jonathan P. HowarXiv 2014

Abstract

This paper presents an approximate method for performing Bayesian inference in models with conditional independence over a decentralized network of learning agents. The method first employs variational inference on each individual learning agent to generate a local approximate posterior, the agents transmit their local posteriors to other agents in the network, and finally each agent combines its set of received local posteriors. The key insight in this work is that, for many Bayesian models, approximate inference schemes destroy symmetry and dependencies in the model that are crucial to the correct application of Bayes' rule when combining the local posteriors. The proposed method addresses this issue by including an additional optimization step in the combination procedure that accounts for these broken dependencies. Experiments on synthetic and real data demonstrate that the decentralized method provides advantages in computational performance and predictive test likelihood over previous batch and distributed methods.

Introduction

In decentralized machine learning, independent agents—such as a swarm of drones or a network of mobile sensors—must collaboratively learn a global model without a central coordinator. A significant hurdle in this setting is parameter permutation symmetry. In models like Gaussian Mixture Models (GMM) or Latent Dirichlet Allocation (LDA), the labels assigned to components are arbitrary. If two agents learn the same model but assign labels differently (e.g., Agent A's "Topic 1" is Agent B's "Topic 2"), their local posteriors cannot be naively combined.

The Label Switching Problem

Standard Bayesian inference involves updating a prior with data to obtain a posterior. In a decentralized network, each agent calculates a local posterior. The goal is to merge these into a global posterior equivalent to one found by a single agent seeing all data.

Naive merging—multiplying local distributions—fails for symmetric models. Because Variational Inference (VI) "breaks" symmetry by picking one arbitrary label ordering, agents end up with mismatched labels. Merging these mismatched models results in a "smeared" global distribution where distinct features are blurred together.

Figure 5: Local posteriors of different agents in parameter space (pi_1, pi_2). The different colors represent different agents, showing how they cluster in different regions of the parameter space due to inconsistent label assignments.

AMPS: Approximate Merging of Posteriors with Symmetry

To resolve this, the authors propose AMPS (Approximate Merging of Posteriors with Symmetry). The algorithm introduces an optimization step to align local models before merging.

  1. Local Variational Inference: Agents use VI to find an approximate posterior for local data.
  2. Symmetrization: The posterior is mathematically defined as a sum over all possible label permutations.
  3. Alignment via Convex Optimization: Since the full sum is computationally intractable, AMPS finds the optimal alignment between agents. This is framed as a maximization problem over the Birkhoff polytope (the space of doubly stochastic matrices) and solved efficiently using iterative maximum-weight bipartite matching.
Figure 1: Comparison of local posteriors and the merged global posterior. (a) shows a single agent's view, while (b) illustrates multiple local posteriors (colored) being combined into a coherent global model (black line) despite the initial label discrepancies.

Experimental Results

The authors evaluated AMPS across several domains:

  • Synthetic GMMs: Demonstrated that AMPS successfully recovers the global model where naive methods fail.
  • Topic Modeling (20 Newsgroups): AMPS significantly outperformed individual agents and the naive approach in predictive test log-likelihood, even beating state-of-the-art distributed methods like SDA-Bayes.
  • Feature Discovery (Yale/Caltech Faces): Agents collaboratively learned latent facial features (eyes, noses, mouths) with error rates comparable to centralized batch learners.

A surprising finding was that decentralized learning sometimes outperformed batch learning. Batch VI often gets trapped in local optima; by having multiple agents explore different parts of the data and then merging their findings, AMPS can effectively "escape" these traps.

Conclusion

AMPS provides a robust framework for decentralized Bayesian inference in symmetric models. By explicitly addressing the label switching problem through convex optimization, it enables efficient, high-accuracy collaborative learning in low-bandwidth, decentralized environments. Future work includes scaling the alignment process for very large networks and extending the method to non-parametric models.

Summary updated

BibTeX
@misc{campbell2014decentralized,
  author = {Trevor Campbell and Jonathan P. How},
  title = {{Decentralized Variational Bayesian Inference}},
  year = {2014},
  eprint = {1403.7471},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1403.7471},
}
Figure