Abstract
Data heterogeneity (Non-IID) on Federated Learning (FL) is currently a widely publicized problem, which leads to local model drift and performance degradation. Because of the advantage of knowledge distillation, it has been explored in some recent work to refine global models. However, these approaches rely on a proxy dataset or a data generator. First, in many FL scenarios, proxy dataset do not necessarily exist on the server. Second, the quality of data generated by the generator is unstable and the generator depends on the computing resources of the server. In this work, we propose a novel data-Free knowledge distillation approach via generator-Free Data Generation for Non-IID FL, dubbed as FedF²DG. Specifically, FedF²DG requires only local models to generate pseudo datasets for each client, and can generate hard samples by adding an additional regularization term that exploit disagreements between local model and global model. Meanwhile, FedF²DG enables flexible utilization of computational resources by generating pseudo dataset locally or on the server. And to address the label distribution shift in Non-IID FL, we propose a Data Generation Principle that can adaptively control the label distribution and number of pseudo dataset based on client current state, and this allows for the extraction of more client knowledge. Then knowledge distillation is performed to transfer the knowledge in local models to the global model. Extensive experiments demonstrate that our proposed method significantly outperforms the state-of-the-art FL methods and can serve as plugin for existing Federated Learning methods such as FedAvg, FedProx, etc, and improve their performance.
Introduction
Federated Learning (FL) enables collaborative model training across decentralized devices while preserving data privacy. However, a significant challenge arises from Data Heterogeneity (Non-IID data), where local data distributions vary significantly across clients. This often results in "model drift," where local updates pull the global model away from an optimal joint solution, degrading overall performance.
To mitigate this, researchers have turned to Knowledge Distillation (KD), treating local models as teachers to guide a global student model. Traditional KD requires a shared proxy dataset, which is often unavailable in privacy-sensitive applications. While "data-free" KD methods using Generative Adversarial Networks (GANs) have emerged, they are often unstable and computationally expensive for servers. FedF²DG addresses these issues by synthesizing pseudo-data directly from local models without an external generator.
The FedF²DG Framework
FedF²DG operates through a structured three-stage process designed to capture and transfer local knowledge effectively without auxiliary data.
- Federated Learning Stage: Standard FL rounds are conducted initially to ensure local models develop sufficient expertise to serve as reliable teachers.
- Adaptive Data Generation Stage: This stage utilizes the Batch Normalization (BN) statistics within local models to reconstruct training distributions from random noise.
- Hard Sample Generation: A unique regularization term is introduced to generate "hard samples"—images where the local model is confident but the global model is uncertain. This targets the "knowledge gap" between the server and clients.
- Data Generation Principle: The system adaptively manages the volume and label distribution of pseudo-data based on each client's specific data characteristics and the global model's current performance.
- Knowledge Distillation Stage: The server aggregates and shuffles the generated pseudo-data, performing distillation to refine the global model using the collective intelligence of the local teachers.
Comparative Advantages
FedF²DG distinguishes itself from existing FL optimizers and KD-based methods by combining several critical features into a single framework.
As shown in the comparison above, FedF²DG is the only method that simultaneously aligns optimization objectives, boosts aggregation, requires no proxy data, and offers flexible computational resource usage.
Experimental Evaluation
The framework was tested on standard benchmarks (CIFAR-10, CIFAR-100, and SVHN) under varying degrees of data heterogeneity, controlled by a Dirichlet distribution parameter ($\beta$).
- Superior Accuracy: On CIFAR-10 with extreme heterogeneity ($\beta=0.05$), FedF²DG achieved 85.72% accuracy, a 6.47% improvement over the state-of-the-art SCAFFOLD method.
- Stability: Unlike GAN-based methods like FedGen, which struggle as data becomes more Non-IID, FedF²DG maintains robust performance.
- Versatility: FedF²DG acts as a "plugin," enhancing the performance of existing algorithms like FedAvg and FedProx when integrated.
Conclusion
FedF²DG provides a robust, generator-free solution for data-free knowledge distillation in Federated Learning. By leveraging the inherent "memory" of local models via Batch Normalization and focusing on hard-sample generation, it effectively overcomes the hurdles of data heterogeneity. While it introduces some computational overhead during the synthesis phase, its ability to significantly boost global model accuracy without proxy data makes it a powerful tool for privacy-preserving machine learning. Future work will focus on further optimizing the synthesis speed and exploring enhanced privacy safeguards during the data generation process.
Summary updated