Preservation of the Global Knowledge by Not-True Self Knowledge Distillation in Federated Learning

Gihun Lee, Yongjin Shin, Minchan Jeong, Se-Young Yun

Abstract

In federated learning, a strong global model is collaboratively learned by aggregating clients' locally trained models. Although this precludes the need to access clients' data directly, the global model's convergence often suffers from data heterogeneity. This study starts from an analogy to continual learning and suggests that forgetting could be the bottleneck of federated learning. We observe that the global model forgets the knowledge from previous rounds, and the local training induces forgetting the knowledge outside of the local distribution. Based on our findings, we hypothesize that tackling down forgetting will relieve the data heterogeneity problem. To this end, we propose a novel and effective algorithm, Federated Not-True Distillation (FedNTD), which preserves the global perspective on locally available data only for the not-true classes. In the experiments, FedNTD shows state-of-the-art performance on various setups without compromising data privacy or incurring additional communication costs.

Introduction: The Forgetting Problem in Federated Learning

Federated Learning (FL) enables collaborative model training across multiple clients without direct data sharing. While standard algorithms like FedAvg perform well under Independent and Identically Distributed (IID) data, they struggle significantly with non-IID (heterogeneous) data.

The authors argue that this degradation is fundamentally a problem of catastrophic forgetting, a phenomenon typically studied in Continual Learning (CL). In a non-IID setting, local training on skewed data causes the model to overfit to local distributions, effectively "forgetting" the global knowledge acquired in previous rounds. When these divergent local models are averaged at the server, the resulting global model's performance suffers.

Conceptual comparison between Continual Learning, FedAvg, and FedNTD. FedNTD aims to keep the model within the "Knowledge Preservation Area" through Not-True Distillation.

Methods: Federated Not-True Distillation (FedNTD)

To address forgetting without the overhead of complex regularizers or proxy datasets, the authors introduce FedNTD. This method leverages Knowledge Distillation (KD) in a novel way.

Traditional KD forces a student model to mimic all output probabilities of a teacher. In FL, using the global model as a teacher can be counterproductive if its prediction for the local "true" class is inaccurate, potentially interfering with local learning. FedNTD decouples the learning objective:

  1. Local Learning (True Class): The local model uses standard cross-entropy loss to learn from the ground-truth labels of the local data.
  2. Global Preservation (Not-True Classes): For all classes except the true class, the local model is distilled to match the global model's relative probability distribution.

This "Not-True Distillation" preserves the "dark knowledge"—the structural relationships between non-target classes—which helps maintain the global model's decision boundaries for data not present in the local set.

Experimental Setup

The method was evaluated on MNIST, CIFAR-10, CIFAR-100, and CINIC-10. Data heterogeneity was simulated using:

  • Sharding: Assigning a fixed number of classes per client.
  • Latent Dirichlet Allocation (LDA): Skewing class distributions using a concentration parameter $\alpha$, where lower $\alpha$ indicates higher heterogeneity.

Key Results and Insights

FedNTD achieves state-of-the-art accuracy across various benchmarks, particularly in highly heterogeneous scenarios. For instance, on CIFAR-10 with LDA $\alpha=0.1$, FedNTD reached 54.42% accuracy, significantly outperforming FedAvg (46.49%) and FedProx (47.65%).

Empirical measurements confirm that FedNTD effectively mitigates forgetting. As shown in Figure 6, forgetting increases as data heterogeneity becomes more severe. FedNTD's ability to maintain weight alignment between local and global models ensures that the server-side aggregation remains effective.

Measured forgetting increases with data heterogeneity.

Key Insights:

  • Stability-Plasticity Balance: FedNTD manages the trade-off between learning new local features (plasticity) and retaining global knowledge (stability).
  • Zero Communication Overhead: Unlike methods like SCAFFOLD or MOON, FedNTD requires no additional communication between the server and clients.
  • Improved Weight Alignment: By preserving global semantics, local models remain closer in parameter space, facilitating better aggregation.

Limitations and Future Work

A potential risk of FedNTD is bias inheritance. Since the local models are encouraged to mirror the global model's "not-true" distribution, any biases present in the global model are likely to be preserved and potentially amplified. Future research could explore the geometric properties of the loss landscape under FedNTD to further optimize convergence in decentralized networks.

Summary updated

BibTeX
@inproceedings{lee2022preservation,
  author = {Gihun Lee and Yongjin Shin and Minchan Jeong and Se-Young Yun},
  title = {{Preservation of the Global Knowledge by Not-True Self Knowledge Distillation in Federated Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=Let8a0xMJT},
}
Figure