Federated Multi-Task Learning for Competing Constraints

Tian Li, Shengyuan Hu, Ahmad Beirami, Virginia Smith

Abstract

Fairness and robustness are two important concerns for federated learning systems. In this work, we identify that robustness to data and model poisoning attacks and fairness, measured as the uniformity of performance across devices, are competing constraints in statistically heterogeneous networks. To address these constraints, we propose employing a simple, general framework for personalized federated learning, Ditto, that can inherently provide fairness and robustness benefits, and develop a scalable solver for it. Theoretically, we analyze the ability of Ditto to achieve fairness and robustness simultaneously on a class of linear problems. Empirically, across a suite of federated datasets, we show that Ditto not only achieves competitive performance relative to recent personalization methods, but also enables more accurate, robust, and fair models relative to state-of-the-art fair or robust baselines.

Introduction

Standard Federated Learning (FL) typically aims to train a single global model across a network of heterogeneous edge devices. However, this "one-size-fits-all" approach faces significant challenges regarding robustness to adversarial attacks and fairness across diverse data distributions. This paper identifies a fundamental tension between these two objectives: robust aggregation methods often penalize rare but benign data distributions as outliers, while fairness-oriented methods may inadvertently overfit to malicious updates. We propose Ditto, a multi-task learning framework that addresses these competing constraints through personalization.

Methodology: The Ditto Framework

Ditto treats federated learning as a multi-task learning problem where each device $k$ learns a personalized model $v_k$ that is regularized towards a global model $w^*$. The objective for each device is defined as:

$$\min_{v_k} F_k(v_k) + \frac{\lambda}{2} \|v_k - w^*\|^2$$

where $F_k$ is the local loss and $\lambda$ controls the trade-off between local personalization and global knowledge. This framework is lightweight and modular, allowing it to be integrated with existing robust FL aggregation rules used to compute $w^*$.

The optimal regularization parameter $\lambda^*$ adapts to the power of the adversary, allowing devices to rely more on local data when the global model is compromised.

The hyperparameter $\lambda$ serves as a critical defense mechanism. As shown in Figure 2, the optimal $\lambda^*$ decreases as the power of the adversary increases, enabling devices to "buffer" themselves against a poisoned global model by prioritizing their own clean local data. This allows the system to maintain high performance even when the global reference model is degraded.

Experimental Evaluation

We evaluated Ditto on several federated datasets, including Vehicle, FEMNIST, CelebA, Fashion MNIST, and StackOverflow. These datasets represent a range of vision and language tasks with varying degrees of statistical heterogeneity. We compared Ditto against state-of-the-art robust aggregation methods (e.g., Krum, median, clipping) and fair FL baselines (e.g., TERM).

Results and Discussion

Ditto consistently outperforms both robust-only and fair-only baselines. In terms of robustness, Ditto achieves significant accuracy gains across various attack scenarios, including label flipping and model replacement.

Ditto maintains high test accuracy across different datasets (Fashion, FEMNIST) and attack types (A1, A2, A3) even as the fraction of malicious devices increases, outperforming standard robust aggregation baselines.

Empirical results demonstrate that Ditto is more resilient to increasing fractions of malicious devices compared to traditional robust aggregators like Krum or median. Across all datasets and attacks, Ditto improved test accuracy by an average of ~6% (absolute) over the strongest robust FL baselines. Furthermore, Ditto improves fairness by reducing the variance of test accuracy across devices by approximately 10% relative to fair FL methods, while simultaneously improving overall utility.

Conclusion

Ditto provides a scalable and effective solution for the competing constraints of fairness and robustness in federated learning. By embracing device-level personalization, Ditto avoids the pitfalls of a single global model in heterogeneous and potentially adversarial environments. Future work includes developing automated methods for tuning $\lambda$ and investigating Ditto's resilience to more sophisticated backdoor attacks.

Summary updated

BibTeX
@inproceedings{li2021federated,
  author = {Tian Li and Shengyuan Hu and Ahmad Beirami and Virginia Smith},
  title = {{Federated Multi-Task Learning for Competing Constraints}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=r-m1CB1Iyr4},
}
Figure