Skip to main content
QUICK REVIEW

[Paper Review] Federated Stochastic Gradient Langevin Dynamics

Khaoula El Mekkaoui, Diego Mesquita|Työväentutkimus Vuosikirja|Apr 23, 2020
Markov Chains and Monte Carlo MethodsMathematics27 references5 citations
TL;DR

This paper proposes Federated Stochastic Gradient Langevin Dynamics (FSGLD), a novel method that improves posterior sampling in federated non-IID settings by introducing 'conducive gradients'—a variance-reduction mechanism using local likelihood approximations to correct biased gradient estimates. FSGLD converges to the true posterior even under delayed communication and outperforms DSGLD in both metric learning and neural network experiments, especially on non-IID data.

ABSTRACT

Stochastic gradient MCMC methods, such as stochastic gradient Langevin dynamics (SGLD), employ fast but noisy gradient estimates to enable large-scale posterior sampling. Although we can easily extend SGLD to distributed settings, it suffers from two issues when applied to federated non-IID data. First, the variance of these estimates increases significantly. Second, delaying communication causes the Markov chains to diverge from the true posterior even for very simple models. To alleviate both these problems, we propose conducive gradients, a simple mechanism that combines local likelihood approximations to correct gradient updates. Notably, conducive gradients are easy to compute, and since we only calculate the approximations once, they incur negligible overhead. We apply conducive gradients to distributed stochastic gradient Langevin dynamics (DSGLD) and call the resulting method federated stochastic gradient Langevin dynamics (FSGLD). We demonstrate that our approach can handle delayed communication rounds, converging to the target posterior in cases where DSGLD fails. We also show that FSGLD outperforms DSGLD for non-IID federated data with experiments on metric learning and neural networks.

Motivation & Objective

  • To address the poor convergence and high variance of distributed SGLD (DSGLD) in federated non-IID settings.
  • To enable reliable posterior sampling in federated learning where data are partitioned across clients and communication is infrequent.
  • To develop a method that maintains computational efficiency while improving sampling accuracy compared to existing distributed SG-MCMC approaches.
  • To provide theoretical convergence bounds for both DSGLD and the proposed FSGLD method.
  • To demonstrate that conducive gradients, computed once per client, significantly reduce sampling variance and improve generalization in non-IID scenarios.

Proposed method

  • Introduces 'conducive gradients'—a zero-mean stochastic function that combines local likelihood approximations from each client to correct gradient updates.
  • Computes local likelihood surrogates (e.g., diagonal multivariate normal approximations) once per client before training, incurring negligible overhead.
  • Augments the DSGLD gradient estimator by adding conducive gradients to reduce variance and bias from non-IID data.
  • Uses control variate principles to stabilize the Markov chain and improve convergence to the true posterior.
  • Employs a communication-efficient protocol where only local approximations are shared once, not full gradients or data.
  • Derives convergence bounds for both DSGLD and FSGLD, showing improved stability under data heterogeneity and delayed communication.

Experimental results

Research questions

  • RQ1Can a variance-reduction mechanism based on local likelihood approximations improve posterior sampling in federated non-IID settings?
  • RQ2Does the proposed FSGLD method converge to the true posterior when DSGLD fails due to delayed communication or data heterogeneity?
  • RQ3How does the choice of local likelihood surrogates affect the convergence and performance of FSGLD?
  • RQ4Can FSGLD maintain the same computational complexity as DSGLD while significantly improving sampling accuracy?
  • RQ5What theoretical guarantees can be provided for the convergence of DSGLD and FSGLD under federated, non-IID data regimes?

Key findings

  • FSGLD significantly outperforms DSGLD on non-IID data, achieving an average test log-likelihood of -0.67 ± 0.03 compared to DSGLD’s -1.11 ± 0.312 in MLP experiments.
  • In the non-IID case, DSGLD exhibits poor generalization, as evidenced by a large drop in test log-likelihood from training (-0.44 to -1.11), indicating overfitting or poor convergence.
  • FSGLD achieves lower variance in sampling, with standard deviation reduced by over 50% compared to DSGLD across multiple runs.
  • FSGLD converges to the true posterior in cases where DSGLD fails, particularly under delayed communication and high data heterogeneity.
  • The method maintains the same computational complexity as DSGLD, with negligible overhead from computing local likelihood approximations only once.
  • Convergence bounds for FSGLD show that the choice of local surrogates (e.g., exponential family approximations) directly impacts the tightness of the bound and sampling efficiency.

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.