Introduction
Federated Learning (FL) allows multiple clients, such as mobile devices or hospitals, to collaboratively train a machine learning model without sharing their raw, private data. However, FL faces a notorious stumbling block: data heterogeneity. Because each client’s local data is often biased (e.g., one client might only have images of cats, while another only has dogs), local training causes individual models to drift significantly from the global objective.
To address this, researchers propose Federated Not-True Distillation (FedNTD), a novel algorithm that treats this data heterogeneity problem as an issue of catastrophic forgetting. By distilling knowledge from the global model only for the "not-true" classes during local training, FedNTD preserves a global perspective without increasing communication costs or compromising privacy.
The Forgetting Analogy in Federated Learning
The authors argue that the drift caused by data heterogeneity is actually a form of catastrophic forgetting, a concept typically associated with Continual Learning.
In a typical FL round using standard averaging (FedAvg), a client receives a strong, generalized global model. However, as the client trains this model on its specific, narrow local dataset, it "overwrites" the model's broad knowledge. When the central server averages these "forgetful" local models, the resulting global model becomes inconsistent and slow to converge.
The FedNTD Method
To combat this forgetting, the researchers introduce FedNTD. The core idea is to use Knowledge Distillation (KD) to keep the global model’s wisdom alive during local training, but with a clever twist.
Standard KD usually forces a student model to mimic a teacher's entire output distribution. In FL, this can be counterproductive because the global model (the teacher) might actually be less accurate on the client's specific local classes than the local model (the student) currently being trained.
How FedNTD works: 1. Local Training: A client trains on its local data using standard Cross-Entropy loss for the "true" class. 2. Not-True Distillation: Simultaneously, the client applies a distillation loss that matches the global model’s predictions—but only for the classes that are NOT the true label. 3. Preserving Perspective: By focusing on the "not-true" classes, the local model learns the relationships between all the other classes it doesn't see in its local data. This preserves the "global perspective" (e.g., "this image isn't a cat, but it looks more like a dog than a truck") without interfering with the learning of the actual local labels.
Crucially, this process happens entirely on the client side. It requires no extra data from the server and incurs no additional communication overhead.
Key Insights and Results
The authors evaluated FedNTD using standard image classification benchmarks (MNIST, CIFAR-10, CIFAR-100, and CINIC-10) under various simulated real-world heterogeneity conditions, such as Sharding and Latent Dirichlet Allocation (LDA).
- Quantifying Forgetting: The paper successfully bridges the gap between FL and Continual Learning by showing that the "forgetting measure" ($F$) is a strong predictor of performance drops in FL. Local training specifically destroys the model's performance on "out-local" distributions (classes the client doesn't own).
- Weight Alignment: One of the most interesting findings is that FedNTD improves "weight alignment." In standard FL, neurons in different local models often end up representing completely different concepts even if they share the same coordinates. FedNTD keeps the semantic meaning of weights consistent across clients, making the server's averaging step much more effective.
- State-of-the-Art Accuracy: FedNTD consistently outperformed state-of-the-art FL algorithms (like FedProx, SCAFFOLD, and MOON) across almost all tested scenarios. For instance, on CIFAR-10 with high heterogeneity, FedNTD achieved 52.61% accuracy, compared to FedAvg's 40.14%—a massive 12% improvement.
- Consistency: Unlike many other methods that perform well in some setups but fail to converge in others, FedNTD showed stable, top-tier performance across the board.
Limitations and Future Work
While highly effective, FedNTD has a few limitations to consider. First, if the global model itself becomes biased or "poisoned," FedNTD might inadvertently preserve that bias in local models. Second, it introduces a hyperparameter ($\beta$) to balance the distillation loss, which may require tuning for different datasets. Finally, while proven on standard convolutional networks, exploring how this "not-true" distillation behaves in massive architectures like Transformers or in different domains like Natural Language Processing remains an exciting open question.
Summary updated