Overcoming Forgetting in Federated Learning on Non-IID Data

Neta Shoham, Tomer Avidor, Aviv Keren, Nadav Israel, Daniel Benditkis, Liron Mor-Yosef, Itai ZeitakarXiv 2019 · arXiv

TL;DR

This paper tackles the challenge of Federated Learning (FL) with non-IID (non-independently and identically distributed) data, where local models can diverge and "forget" previously learned information. They adapt a technique from Lifelong Learning called Elastic Weight Consolidation (EWC) to penalize local models for deviating too much from a shared optimum, leading to faster convergence and improved accuracy on non-IID datasets.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple devices to collaboratively train a machine learning model without sharing their raw data. This is crucial for privacy and handling data distributed across edge devices. However, a major hurdle arises when the data on each device is not representative of the overall data distribution (non-IID). In such scenarios, local models trained on individual devices can drift apart, leading to a phenomenon similar to "catastrophic forgetting" in Lifelong Learning. This divergence hinders the overall learning process, requiring more communication rounds and resulting in lower accuracy compared to scenarios with IID data. This paper aims to mitigate this forgetting problem in FL with non-IID data.

Methods

The core of the proposed solution, named FedCurv, is an adaptation of the Elastic Weight Consolidation (EWC) algorithm from Lifelong Learning. EWC typically penalizes changes to model parameters that are deemed important for previously learned tasks. FedCurv applies this concept to the FL setting by adding a penalty term to each local model's loss function. This penalty encourages local models to stay close to a shared optimum, preventing them from diverging too much due to non-IID data.

Specifically, FedCurv uses the diagonal of the Fisher Information Matrix (FIM) to identify important parameters. The FIM, approximated by the Hessian of the loss function, quantifies how much information a parameter carries about the data. By penalizing deviations from a reference point (the aggregated model from the previous round) weighted by the FIM, FedCurv effectively "consolidates" the learning across devices.

The authors also address potential bandwidth and privacy concerns. They show that the necessary information for the penalty term can be transmitted efficiently, requiring only aggregated information about the FIM and parameter values, which is comparable to the communication overhead of standard FedAvg.

Datasets

The paper evaluates their method on the MNIST dataset. They created a non-IID setting by dividing the dataset into blocks and randomly assigning two blocks to each of the 96 simulated devices.

Key Insights and Ideas

  • Lifelong Learning as a Blueprint: The paper highlights the strong parallels between overcoming catastrophic forgetting in Lifelong Learning and addressing model divergence in Federated Learning with non-IID data. This cross-pollination of ideas is a key insight.
  • Fisher Information for Parameter Importance: Using the diagonal of the Fisher Information Matrix is an effective way to identify which model parameters are most critical for maintaining performance across different local datasets.
  • Efficient Communication for Privacy: The proposed FedCurv method achieves its goal without significantly increasing communication bandwidth or compromising the privacy guarantees of standard Federated Learning.
  • EWC's Adaptability to Parallel Learning: The paper demonstrates that a technique designed for sequential learning (Lifelong Learning) can be effectively adapted to a parallel learning paradigm like Federated Learning.

Key Results

  • Faster Convergence: For a large number of local epochs (E=50), FedCurv achieved 90% test accuracy three times faster than standard FedAvg.
  • Improved Accuracy: FedCurv achieved 95% accuracy twice as fast as FedAvg, and significantly outperformed FedProx in achieving higher accuracies.
  • Scalability with Local Epochs: The benefits of FedCurv become more pronounced with larger numbers of local training epochs (higher E), as predicted by the theory.
  • Robustness to Non-IID Data: Experiments showed FedCurv's superiority in scenarios with non-IID data, where standard FedAvg struggles.

Limitations and Future Work

  • Bandwidth Reduction Exploration: The authors mention that further bandwidth reduction is possible by using sparse versions of the Fisher Information Matrix, but this was not explored in their experiments.
  • Generalization to Other Architectures/Datasets: While successful on MNIST with a CNN, the paper doesn't extensively explore the generalization of FedCurv to other complex architectures or datasets.
  • Hyperparameter Tuning: The paper mentions that FedProx and FedCurv's hyperparameters (μ and λ respectively) were chosen by searching for values that achieved 90% accuracy fastest. Further analysis on the sensitivity and optimal selection of these hyperparameters could be beneficial.

Summary updated

BibTeX
@misc{shoham2019overcoming,
  author = {Neta Shoham and Tomer Avidor and Aviv Keren and Nadav Israel and Daniel Benditkis and Liron Mor-Yosef and Itai Zeitak},
  title = {{Overcoming Forgetting in Federated Learning on Non-IID Data}},
  year = {2019},
  eprint = {1910.07796},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.07796},
}
Figure