On the Effect of Defections in Federated Learning and How to Prevent Them

Minbiao Han, Kumar Kshitij Patel, Han Shao, Lingxiao WangarXiv 2023 · DOI

Introduction

Federated Learning (FL) typically relies on the assumption that participating agents—such as hospitals or mobile devices—are selfless volunteers who remain engaged throughout the entire training process. However, in real-world scenarios, participation is costly, involving computational expenses, bandwidth usage, and privacy risks. If agents are "rational," they may monitor the model's performance on their local data and exit the collaboration once the model reaches a satisfactory threshold ((\epsilon)). This paper explores the consequences of such "defections" and proposes a novel solution to maintain global model integrity.

The Challenge of Rational Defection

Most FL research assumes a static population of agents. When agents act rationally, they may permanently defect once their local loss falls below their satisfaction threshold. The authors demonstrate that these defections are often harmful, particularly in heterogeneous settings where agents possess unique datasets. If an agent with a specific demographic dataset leaves early, the remaining agents can no longer benefit from that data, leading to suboptimal generalization and unfairness in the final global model.

Heterogeneous datasets and their union, illustrating the need for diverse agent participation.

Standard algorithms like FedAvg are fundamentally incapable of preventing these harmful defections because they treat all agent updates equally. They may "accidentally" satisfy certain agents too early, losing their unique data for the remainder of the training. This is particularly problematic in "Minimal Heterogeneous Problems," where agent gradients are linearly independent, necessitating careful navigation of the weight space to avoid "bad regions" where defections are guaranteed.

Methodology: ADA-GD

To mitigate harmful defections, we introduce ADA-GD (Adaptive Defection-aware Aggregation for Gradient Descent). This algorithm utilizes a framework of Adaptive Aggregation to keep agents engaged:

  1. Prediction: At each round, the server predicts which agents are on the verge of defecting based on their current loss and a linear approximation of the next update.
  2. Gradient Projection: For agents identified as near-satisfied, the server defines a subspace spanned by their gradients. It then projects the gradients of the non-defecting agents into the orthogonal complement of this subspace.
  3. The "Stay" Strategy: By updating the model only in directions orthogonal to the satisfied agents' gradients, ADA-GD ensures that the loss for those agents remains stable. This keeps them "at the table" while allowing the model to continue improving for the rest of the population.

Empirical Results

The effectiveness of ADA-GD was evaluated using the CIFAR-10 dataset with varying degrees of heterogeneity ((q)). The results highlight a phenomenon termed "Accuracy Collapse" in standard FL settings. In experiments with FedAvg, the peak average accuracy plummeted from approximately 46% to 22% as agents defected.

Training dynamics showing accuracy collapse and loss spikes as agents defect from the federation.

In contrast, ADA-GD effectively eliminated these defections. By carefully steering model updates, it allowed the global model to reach its full potential. Furthermore, ADA-GD provides a significant step-size advantage; while standard Local SGD must use tiny steps to avoid triggering defections, ADA-GD’s projection method allows for more aggressive optimization toward the global goal without losing participants.

Discussion and Future Work

While ADA-GD provides a strong theoretical and empirical foundation for managing rational agents, several challenges remain. The current theoretical guarantees assume convex loss functions and exact gradient oracles. In practice, the noise inherent in stochastic gradients (SGD) and the use of non-convex neural networks may complicate defection prediction. Future work will focus on extending these orthogonalization strategies to support multiple local updates ((K > 1)) and establishing specific rates of asymptotic convergence.

Summary updated

BibTeX
@misc{han2023effect,
  author = {Minbiao Han and Kumar Kshitij Patel and Han Shao and Lingxiao Wang},
  title = {{On the Effect of Defections in Federated Learning and How to Prevent Them}},
  year = {2023},
  eprint = {2311.16459},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.16459},
}
Figure