Fine-tuning Global Model via Data-Free Knowledge Distillation for Non-IID Federated Learning

Lin Zhang, Li Shen, Liang Ding, Dacheng Tao, Ling-Yu Duan

Abstract

Federated Learning (FL) enables collaborative model training without sharing raw data. However, standard aggregation methods like FedAvg struggle with Non-Identically and Independently Distributed (Non-IID) data, where local model drift leads to a global model that "forgets" specialized knowledge. This paper introduces FedFTG (Federated Fine-Tuning via Generator), a server-side fine-tuning framework. FedFTG employs Data-Free Knowledge Distillation (DFKD) by training a generator to produce "hard" samples—synthetic data where local and global models disagree. These samples are used to distill knowledge from the ensemble of local models back into the global model. Evaluations on CIFAR-10, CIFAR-100, and real-world datasets show that FedFTG consistently outperforms state-of-the-art methods in both accuracy and convergence speed.

Introduction

In Federated Learning, the server typically aggregates local models by averaging their parameters (FedAvg). While efficient, this approach is problematic in heterogeneous (Non-IID) environments. Each client's model drifts toward its local data distribution, and simple averaging often fails to capture the specialized features learned by individual clients. Existing solutions often impose constraints on local training, which can be restrictive. FedFTG shifts the focus to the server-side aggregation process, proposing a fine-tuning step that recovers lost information without requiring access to private client data.

Methodology

FedFTG enhances the standard FL pipeline by adding a post-aggregation fine-tuning phase at the server. This phase utilizes a Data-Free Knowledge Distillation (DFKD) mechanism:

  1. Generator Training: A lightweight generator ($G$) is trained to synthesize pseudo-data ($\tilde{x}$) that mimics the feature space of the local models.
  2. Hard Sample Mining: To maximize the efficiency of fine-tuning, the generator is trained adversarially to find "hard samples." These are inputs where the predictions of the local models (the teachers) and the aggregated global model (the student) diverge significantly.
  3. Knowledge Distillation: The global model is fine-tuned using these hard samples, effectively learning from the ensemble of local models.
  4. Handling Label Shift: To account for class imbalances across clients, FedFTG uses customized label sampling and a class-level ensemble strategy, weighting local model contributions based on their class-specific data frequency.
The FedFTG server-side training procedure, illustrating the generator, pseudo-data generation, and the distillation process from local model ensembles.

Experiments and Results

The performance of FedFTG was evaluated on five benchmarks: CIFAR-10, CIFAR-100, MIO-TCD (vehicle classification), CompCar (surveillance car classification), and Tiny-ImageNet. Data heterogeneity was simulated using a Dirichlet distribution with parameter $\beta$.

FedFTG demonstrates superior performance across all tested scenarios. On the CIFAR-100 dataset with high heterogeneity ($\beta=0.3$), FedFTG achieved an accuracy of 55.96%, significantly higher than SCAFFOLD (54.4%) and FedAvg (50.0%). Furthermore, FedFTG exhibits much faster convergence; for instance, it reaches 80% accuracy on CIFAR-10 in approximately 188 communication rounds, compared to over 425 rounds for FedAvg.

Learning curves for CIFAR-10 and CIFAR-100, demonstrating that FedFTG achieves higher test accuracy and faster convergence than baseline methods.

Conclusion

FedFTG provides a robust "plugin" for existing Federated Learning frameworks, addressing the fundamental limitations of parameter averaging in Non-IID settings. While it introduces additional server-side computational overhead, the gains in accuracy and communication efficiency make it a compelling choice for cross-silo FL applications. Future work will focus on optimizing generator efficiency and extending the framework to natural language processing tasks.

Summary updated

BibTeX
@inproceedings{zhang2022fine,
  author = {Lin Zhang and Li Shen and Liang Ding and Dacheng Tao and Ling-Yu Duan},
  title = {{Fine-tuning Global Model via Data-Free Knowledge Distillation for Non-IID Federated Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure