Adaptive federated sampling cuts communication in high dimensions
Breaking the $\sqrt{d}$ Communication Barrier in Federated Sampling with Adaptive Hamiltonian Monte Carlo
Machine Learning
Summary
Sampling from complex probability distributions is important for many machine learning tasks but is costly when data is spread across devices. The authors improve a method called Hamiltonian Monte Carlo (HMC) for federated learning, which lets devices collectively learn without sharing raw data. Their new approach reduces the amount of communication needed between devices, especially when data differences across devices are small. This makes Bayesian learning across multiple devices more efficient and better suited for practical use.
What this means in practice
- •For machine learning engineers: Reduce communication overhead in distributed Bayesian learning across edge devices with similar data distributions.
- •For data scientists in healthcare: Enable privacy-preserving sampling algorithms for medical data analysis when patient data is stored on separate hospital servers.
Authors
Jiajun Liang, Linxuan Wang, Guang Lin, Qifan Song
Abstract
This work proposes the Adaptive Federated Hamiltonian Monte Carlo (AFHMC) for Bayesian federated learning (FL) tasks. The prior work on HMC applications for FL achieves $O(\sqrt{d}/ε)$ communication cost under log-convex distributions, already demonstrating its advantage over the Langevin dynamic-based counterpart. Based on a refined analysis, this paper further reveals the benefit of HMC for the FL regime by incorporating a control mechanism for local node shifts. We prove that AFHMC at most requires $O(\{d/ε^2\}^{1/3})$ communication cost up to a logarithmic term, which is significantly better than the existing results. Moreover, the proposed method adapts to client heterogeneity. Under low-heterogeneity settings (i.e., the target sampling precision $ε^2$ is higher than the heterogeneity level), the communication rate of AFHMC can be as good as $O(\log(d/ε^2))$, resembling the communication costs for FL optimization tools. To the best of our knowledge, this provides the first logarithmic communication complexity result for federated sampling, even though it requires low heterogeneity. Numerically, we also justify AFHMC's advantage under the low-heterogeneity regime. Our code is available at https://github.com/laaaarrywang/Adaptive-Federated-HMC