Abstract
Federated Learning (FL) enables multiple clients to collaboratively train a global model by aggregating locally trained models without sharing raw data. However, substantial data heterogeneity across clients often leads to "client drift," where local models converge to disparate optima, degrading the performance of the aggregated global model. We propose Adaptive Self-Distillation (ASD), a novel regularization technique for client-side training. ASD adaptively adjusts regularization based on the global model's prediction confidence and the client's local label distribution. Our method is a "plug-and-play" solution that integrates easily with existing FL algorithms. Extensive experiments on real-world benchmarks demonstrate that ASD significantly boosts performance and mitigates client drift by preserving global knowledge during local updates.
Introduction: The Challenge of Data Heterogeneity
Federated Learning allows for decentralized model training, but its performance is often hampered by data heterogeneity. In practice, data is rarely independent and identically distributed (IID) across clients. For example, one client might have many samples of a specific class while another has none.
When clients train locally on such non-IID data, they overfit to local biases, leading to client drift. Instead of converging toward a shared global optimum, each client drifts toward its own local one. This results in a global model that performs poorly and converges slowly upon aggregation. Existing solutions often require auxiliary public data or use uniform regularization, which can be counterproductive when certain classes are rare.
Methodology: Adaptive Self-Distillation (ASD)
We introduce Adaptive Self-Distillation (ASD), a regularization technique that uses the global model from the start of each round as a "teacher" to guide the local "student" model during training.
ASD is "adaptive" because it intelligently weights the distillation loss for each training sample based on two factors:
- Global Model Confidence: ASD calculates the entropy of the global model's predictions. If the global model is uncertain about a sample (high entropy), the distillation weight is reduced to avoid learning from an unreliable teacher.
- Local Label Distribution: If a sample belongs to a class that is rare in the client's local dataset, the distillation weight is increased. This forces the local model to "remember" the global model's knowledge of that class, preventing it from being forgotten during local training.
ASD is computationally efficient and can be seamlessly integrated into standard FL frameworks like FedAvg, FedProx, and FedDyn.
Experimental Evaluation
ASD was evaluated using standard computer vision benchmarks: CIFAR-10, CIFAR-100, and Tiny-ImageNet. Data heterogeneity was simulated using a Dirichlet distribution ($\delta$), covering various levels of label imbalance. The method was tested across different architectures, including ResNet-20 and Vision Transformers (ViT), and remained effective even in large-scale "cross-device" scenarios with low client participation.
Key Insights and Results
Mitigating Knowledge Loss
A primary insight of this work is how ASD prevents the loss of global knowledge during local updates. Without regularization, local training often causes a sharp drop in accuracy for classes not well-represented locally. ASD acts as a safety net, preserving performance on these classes.
Performance and Generalization
Adding ASD consistently improved the accuracy of base FL algorithms. For instance, on CIFAR-100 with high heterogeneity ($\delta=0.3$), adding ASD to FedAvg boosted accuracy from 38.67% to 42.77%. Combined with FedSpeed, it reached a state-of-the-art accuracy of 49.16%.
Furthermore, analysis of the loss landscape revealed that ASD helps models converge to "flat minima." By examining the Hessian matrix (specifically the top eigenvalue and trace), we observed that ASD-regularized models exhibit a much flatter spectrum compared to standard FedAvg. In deep learning, flat minima are strongly associated with better generalization to unseen data.
Conclusion
Adaptive Self-Distillation (ASD) provides a robust, efficient, and flexible solution to the client drift problem in Federated Learning. By intelligently balancing local learning with global knowledge preservation, ASD enables clients to learn from their unique data without sacrificing global model integrity. Future research will explore extending ASD to handle feature-level imbalance and further optimizing memory overhead for resource-constrained edge devices.
Summary updated