Task Diversity in Bayesian Federated Learning: Simultaneous Processing of Classification and Regression

Junliang Lyu, Yixuan Zhang, Xiaoling Lu, Feng Zhou

Abstract

Traditional Federated Learning (FL) frameworks often impose task homogeneity, requiring all participating devices to execute a single type of task, such as classification or regression. This approach fails to capture the multi-modal and correlated nature of real-world data collected by edge devices. We introduce pFed-Mul, a personalized Bayesian federated multi-task learning framework that enables devices to simultaneously process diverse tasks. By employing Multi-output Gaussian Processes (MOGP) and Pólya-Gamma augmentation, pFed-Mul leverages inter-task correlations to enhance performance and provide robust uncertainty quantification. Experimental results on synthetic and real-world datasets like CelebA demonstrate that pFed-Mul significantly outperforms existing FL methods in both accuracy and reliability.

Introduction

The prevailing paradigm in Federated Learning (FL) research assumes that a central server coordinates thousands of clients to solve a uniform problem—for instance, training a global model for speech recognition or battery life prediction. However, edge devices such as smartphones and IoT sensors typically collect data that serves multiple, often related, purposes. A health monitoring application might need to classify a user's activity (e.g., walking vs. running) while simultaneously predicting physiological metrics like heart rate trends.

These tasks are inherently linked; the activity type provides a strong prior for the expected heart rate. Existing FL methods struggle to exploit these cross-task dependencies while maintaining strict data privacy. Furthermore, most standard FL models are deterministic, providing point estimates without associated confidence levels. In high-stakes domains like healthcare or autonomous driving, the inability to signal uncertainty—especially for out-of-distribution (OOD) data—poses a significant risk.

The pFed-Mul Framework

To address these challenges, we propose pFed-Mul (Personalized Federated Multi-task Learning). The framework integrates several advanced Bayesian techniques to handle task diversity and provide efficient, scalable learning.

Multi-output Gaussian Processes (MOGP)

Rather than treating classification and regression as independent silos, pFed-Mul models them as correlated functions using MOGPs. This allows the model to "transfer" knowledge between tasks. For example, regression data can help refine the decision boundaries of a classification task, effectively reducing the amount of labeled data required for high performance.

Efficient Inference via Pólya-Gamma Augmentation

A significant hurdle in Bayesian multi-task learning is the non-conjugacy of classification likelihoods with Gaussian Process priors, which typically necessitates slow approximation methods. pFed-Mul utilizes the Pólya-Gamma augmentation trick to transform the classification likelihood into a form that permits closed-form analytical updates. This ensures that local training is both computationally efficient and numerically stable.

The pFed-Mul architecture showing the interaction between the central server and diverse clients, utilizing bi-level optimization and mean-field variational inference.

Bi-level Optimization and Scalability

The system employs a bi-level optimization strategy where local devices compute their posteriors based on local data, and the central server aggregates these to update a global prior. To maintain scalability as the number of clients and data points grows, pFed-Mul incorporates Deep Kernels for feature extraction and Inducing Points to approximate the Gaussian Process, keeping the computational complexity manageable.

Key Results and Insights

pFed-Mul demonstrates a clear advantage in scenarios requiring both high accuracy and reliable uncertainty estimates.

Performance Gains

In the CelebA 10-shot learning scenario, pFed-Mul achieved a classification accuracy of 86.36%, outperforming standard FL baselines like FedAvg (82.50%) and personalized methods like pFedMe (78.04%). For regression tasks, the model consistently yielded lower Mean Square Error (MSE) compared to single-task variants, proving that multi-tasking acts as a catalyst for better learning.

Uncertainty and OOD Detection

As a Bayesian framework, pFed-Mul naturally produces confidence scores. Visualizations reveal that the model's predictive variance increases significantly when presented with masked or out-of-distribution images. This "knowing what it doesn't know" capability is a critical safety feature for real-world deployment.

Visualization of pFed-Mul performance on regression (left) and classification (right) tasks, showing the model's predictions and associated confidence intervals.

Convergence and Efficiency

The use of analytical updates via Pólya-Gamma augmentation allows pFed-Mul to reach peak performance within approximately 10 communication rounds. This is significantly faster than many baseline methods, which often exhibit high volatility or slower convergence rates.

Conclusion and Future Work

pFed-Mul represents a significant step toward more realistic Federated Learning systems that can handle the inherent diversity of edge-device data. By leveraging task correlations and providing robust uncertainty estimates, it offers a more accurate and safer alternative to deterministic, single-task FL models.

Future research will focus on reducing the computational overhead associated with Gaussian Processes as the number of tasks increases. Additionally, while the current framework excels at binary classification, extending the underlying mathematics to multi-class scenarios and integrating formal Differential Privacy (DP) guarantees are key areas for further development.

Summary updated

BibTeX
@inproceedings{lyu2024task,
  author = {Junliang Lyu and Yixuan Zhang and Xiaoling Lu and Feng Zhou},
  title = {{Task Diversity in Bayesian Federated Learning: Simultaneous Processing of Classification and Regression}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
}
Figure