Decentralized Bayesian Learning over Graphs

Anusha Lalitha, Xinghan Wang, Osman Cihan Kilinc, Yongxi Lu, Tara Javidi, Farinaz KoushanfararXiv 2019

Introduction

Modern distributed learning, most notably Federated Learning, typically relies on a central server to aggregate model updates from various devices. While effective, this "hub-and-spoke" architecture is vulnerable to single points of failure and is often impractical for decentralized networks like autonomous drone fleets, IoT sensor meshes, or privacy-first social platforms. This paper introduces a fully peer-to-peer algorithm that enables a network of agents to learn a shared global model through local Bayesian updates and neighbor-to-neighbor communication, eliminating the need for a central coordinator.

The Challenge of Decentralization

Transitioning from a centralized to a decentralized model introduces three significant hurdles:

  1. Statistical Insufficiency: Individual agents often possess only a narrow slice of the total data required to solve a problem.
  2. Privacy Constraints: Raw data cannot be shared directly between neighbors.
  3. Synchronization Issues: Without a master clock, keeping agents aligned is computationally difficult.

Methodology: Bayesian Consensus

The proposed framework treats learning as a Bayesian posterior update. Instead of sharing model weights, agents maintain and exchange posterior probability distributions over model parameters. The process follows a cyclic four-step approach:

  1. Local Update: Agents update their belief (prior) using local data batches.
  2. Projection: Using Variational Inference (VI), complex distributions are projected onto simpler families (e.g., Gaussians) for efficiency.
  3. Communication: Agents share these simplified distributions with immediate 1-hop neighbors.
  4. Consensus: Agents update their private beliefs by taking a weighted average of the log-posteriors received from neighbors.

For Gaussian distributions, this log-averaging simplifies to a weighted average of the means and precisions (inverse covariances), providing a mathematically elegant solution for belief merging.

Experimental Results

The researchers evaluated the algorithm using synthetic linear regression, MNIST, and Fashion-MNIST datasets. A key finding was the algorithm's ability to overcome local data deficiencies through cooperation.

Comparison of MSE across central, non-cooperative, and cooperative learning scenarios.

As shown in the figure above, agents learning in isolation (b) fail to reach the low error levels of a central agent (a). However, when utilizing the proposed decentralized cooperation (c), the agents' Mean Squared Error (MSE) converges toward the performance of the centralized model, demonstrating that the network can effectively pool information without a central server. On the MNIST dataset, the decentralized approach achieved 97.55% accuracy, nearly matching the 98% achieved by centralized Federated Learning (FedAvg).

Key Insights: Uncertainty and Network Topology

A standout feature of this Bayesian approach is the provision of confidence scores. Unlike standard neural networks that provide a single prediction, this model quantifies its uncertainty.

Evolution of confidence for In-Domain (ID) and Out-of-Domain (OOD) data over communication rounds.

As agents communicate, their confidence in "In-Domain" data remains high, while their confidence in "Out-of-Domain" data (labels not seen locally) increases as they learn from the network. This allows agents to identify when they are encountering unfamiliar data and leverage the collective knowledge of the graph to improve their predictions.

Furthermore, the study highlights the "Influential Expert" effect: convergence speed is heavily influenced by network topology. Agents with high-quality information who are also "central" in the network graph (high eigenvector centrality) accelerate the learning process for the entire network.

Conclusion and Future Work

Decentralized Bayesian Learning offers a robust, scalable alternative to centralized distributed learning. While a small performance gap remains due to the lack of global synchronization, the system's ability to handle non-IID data and provide uncertainty estimates makes it highly suitable for real-world edge computing. Future research will focus on applying these methods to deeper architectures like ResNets and further closing the synchronization gap.

Summary updated

BibTeX
@misc{lalitha2019decentralized,
  author = {Anusha Lalitha and Xinghan Wang and Osman Cihan Kilinc and Yongxi Lu and Tara Javidi and Farinaz Koushanfar},
  title = {{Decentralized Bayesian Learning over Graphs}},
  year = {2019},
  eprint = {1905.10466},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.10466},
}
Figure