Flashback: Understanding and Mitigating Forgetting in Federated Learning

Mohammed Aljahdali, Ahmed M. Abdelmoniem, Marco Canini, Samuel Horváth · DOI

Introduction

Federated Learning (FL) enables training global models on decentralized data. However, data heterogeneity (non-IID distributions) across clients often leads to "forgetting," where the model loses previously acquired knowledge during training rounds. This paper introduces Flashback, an algorithm designed to mitigate this phenomenon through dynamic knowledge distillation.

The Challenge of Round Forgetting

The authors identify round forgetting as a two-stage process that occurs during the standard federated training loop:

  1. Local Forgetting: When a client trains on its specific data, it may "over-write" general knowledge received from the global model to better fit its local distribution.
  2. Aggregation Forgetting: When the server averages different client models, the mathematical averaging of weights can inadvertently wash out specialized insights learned by individual clients.

Existing solutions like FedProx or MOON attempt to limit local model drift, but they often struggle under severe data imbalance. Flashback addresses this by creating a "closed loop" of knowledge preservation at both the client and server levels.

The Flashback Algorithm

Flashback utilizes Dynamic Knowledge Distillation (dKD) to preserve knowledge. The core innovation is using simple label counts as a proxy for a model's expertise in specific classes.

Dynamic Knowledge Distillation

  • Local Update: During local training, the client uses the global model as a teacher. The distillation loss is weighted so that the client relies more on the teacher for classes where the client has limited local data.
  • Server-Side Refinement: Unlike standard FedAvg, Flashback uses a small public dataset at the server to perform ensemble distillation. It treats participating clients and the previous global model as a panel of teachers to refine the new global model.
  • Knowledge Trust: A hyperparameter $\gamma$ controls how the global model builds trust in its accumulated knowledge over time, ensuring stability.

Experimental Evaluation

The researchers evaluated Flashback on three standard benchmarks: CIFAR-10, CINIC-10, and FEMNIST, modified to simulate high heterogeneity.

Round-to-accuracy performance of Flashback and other baselines over training rounds.

Performance and Convergence

Flashback demonstrates a massive speedup in convergence. On CIFAR-10, it reached target accuracy in just 10 rounds, while FedAvg required 82 rounds and FedProx took 93. In highly heterogeneous scenarios, Flashback consistently outperformed baselines that often failed to reach target accuracy entirely.

Loss curves comparing Flashback's stability against baselines on CIFAR10 and CINIC10.

As shown in the loss curves, standard FL methods often exhibit "spiky" behavior where the model learns and then immediately forgets. Flashback produces significantly smoother, more stable convergence curves, indicating effective knowledge retention across rounds.

Key Insights and Efficiency

  • Label Counts as Expertise: The researchers found a high correlation between a client's per-class label counts and its per-class test accuracy, justifying the use of counts to weight complex distillation losses.
  • Public Data Efficiency: While Flashback requires a public dataset for server-side refinement, it is remarkably efficient, performing well with a public set as small as 1.88% of the total training data.

Conclusion

Flashback offers a robust solution to the forgetting problem in federated learning. By leveraging dynamic knowledge distillation and simple metadata, it achieves superior accuracy and up to 10x faster convergence than existing state-of-the-art methods. Future work will explore removing the public data requirement and applying these techniques to Large Language Models (LLMs).

Summary updated

BibTeX
@misc{aljahdali2024flashback,
  author = {Mohammed Aljahdali and Ahmed M. Abdelmoniem and Marco Canini and Samuel Horváth},
  title = {{Flashback: Understanding and Mitigating Forgetting in Federated Learning}},
  year = {2024},
  eprint = {2402.05558},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.05558},
}
Figure