Variational Federated Multi-Task Learning

Luca Corinzia, Joachim M. BuhmannarXiv 2019

Introduction

Standard Federated Learning (FL) algorithms, such as the widely used FedAvg, typically aim to train a single global model across many devices. This approach works effectively when data is independent and identically distributed (IID). However, real-world data is inherently non-IID; for example, handwriting styles or linguistic patterns vary significantly between individuals. While Multi-Task Learning (MTL) allows for personalized models, previous federated MTL approaches were largely restricted to simple convex models.

VIRTUAL (VarIational fedeRaTed mUlti-tAsk Learning) addresses this gap by treating the server-client relationship as a star-shaped Bayesian network. This framework enables multi-task learning for complex, non-convex models like deep neural networks, significantly outperforming standard methods on heterogeneous data while reducing communication overhead.

Methodology: The VIRTUAL Framework

Instead of simple weight averaging, VIRTUAL employs a hierarchical Bayesian network architecture. In this setup, the server maintains a "global" posterior distribution of shared parameters, while each client manages private parameters tailored to their specific task.

Graphical representation of the Bayesian network (a) and variational posterior model (b).

The algorithm utilizes Variational Inference and an approximation method inspired by Expectation Propagation (EP). Clients compute a "delta"—the ratio between their local posterior after training and the prior received from the server—which naturally incorporates uncertainty into the update process. To prevent the server from "forgetting" global knowledge during local updates, a "Cavity Distribution" regularization term is used. Additionally, a tunable KL Multiplier ($\beta$) balances model complexity against accuracy, enhancing generalization.

Experimental Evaluation

The researchers evaluated VIRTUAL across several diverse federated benchmarks, including FEMNIST (handwritten characters), MNIST/PMNIST (digits with pixel permutations), Vehicle Sensors Network (VSN), Human Activity Recognition (HAR), and Shakespeare (NLP next-character prediction). These datasets represent a wide spectrum of data heterogeneity and task complexity.

Key Results and Insights

VIRTUAL consistently outperformed baselines like FedAvg and FedProx across nearly all benchmarks. A critical insight is that VIRTUAL achieves significantly higher "Multi-Task" accuracy compared to "Global" (Server) accuracy, as it successfully learns commonalities while specializing for individual users.

Comparison of Server and MTL Cross Entropy across six datasets, demonstrating VIRTUAL's superior performance and stability.

Personalization and Stability

The Bayesian framework provides greater stability during training. As shown in the performance metrics, the Multi-Task metric remains much more consistent than the Server metric, which often fluctuates as it attempts to accommodate conflicting client data distributions. On the highly non-IID Shakespeare dataset, VIRTUAL was particularly effective at personalizing models for small datasets prone to overfitting.

Communication Efficiency through Sparsity

Despite Bayesian models requiring twice as many parameters (mean and variance) as deterministic ones, VIRTUAL can achieve a 50% reduction in communication costs compared to FedProx. This efficiency is driven by SNR-based pruning. The authors observed that many weight updates have a low Signal-to-Noise Ratio (SNR); by transmitting only the most important updates (achieving up to 75% sparsity), accuracy is maintained while communication efficiency is drastically improved.

Conclusion

VIRTUAL represents a significant advancement in federated multi-task learning for non-convex models. By leveraging Bayesian principles, it provides a robust, personalized, and communication-efficient solution for heterogeneous edge environments. Future research will explore asynchronous updates and alternative lateral connection architectures to further optimize performance for specific deep learning applications.

Summary updated

BibTeX
@misc{corinzia2019variational,
  author = {Luca Corinzia and Joachim M. Buhmann},
  title = {{Variational Federated Multi-Task Learning}},
  year = {2019},
  eprint = {1906.06268},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1906.06268},
}
Figure