Data-free knowledge distillation via generator-free data generation for Non-IID federated learning

Siran Zhao, Tianchi Liao, Lele Fu, Chuan Chen, Jing Bian, Zibin Zheng

TL;DR

FedF²DG is a new framework that tackles the "model drift" problem in Federated Learning without requiring any auxiliary proxy datasets or heavy data generators. By repurposing local client models to synthesize their own training data from pure noise, it allows the global model to "learn" from clients' private distributions through knowledge distillation, significantly boosting performance in highly heterogeneous (Non-IID) environments.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple devices to train a shared global model without ever sharing their raw data. However, it faces a major hurdle: Data Heterogeneity (Non-IID data). In the real world, one user might only have photos of cats, while another has only dogs. When these local models are averaged, they often "drift" away from an ideal global solution, leading to poor accuracy.

To fix this, researchers often use Knowledge Distillation (KD), where a global model (the student) learns from local models (the teachers). The catch? Standard KD requires a "proxy dataset" to act as a medium for this knowledge transfer. In many privacy-sensitive scenarios, no such dataset exists on the server. Recent "data-free" attempts use a separate Generative Adversarial Network (GAN) to create fake data, but these generators are notoriously unstable to train and demand massive computational resources from the server.

Methods

The authors introduce FedF²DG (Data-Free Knowledge Distillation via Generator-Free Data Generation). The process unfolds in three distinct stages:

  1. Federated Learning Stage: Standard local training occurs for several rounds to ensure local models have "matured" enough to act as reliable teachers.
  2. Adaptive Data Generation Stage: This is the "secret sauce." Instead of training a separate generator, the authors use an optimization technique (inspired by DeepInversion) to turn random noise into realistic pseudo-images. They do this by matching the noise's feature statistics to the Batch Normalization (BN) layers already stored inside the local models.
  3. Hard Sample Generation: They add a regularization term that specifically generates "hard samples"—images where the local model is confident but the global model is confused. This forces the global model to focus on the knowledge it's currently missing.
  4. Data Generation Principle: Not all clients are equal. The system adaptively decides how many images to generate per client based on their data size and how well the global model performed on that client's pseudo-data in the previous round.
  5. Knowledge Distillation Stage: The server shuffles all the generated pseudo-data and performs distillation, transferring the diverse expertise of the local models into the global model.

Datasets

The authors evaluated their method on three standard computer vision benchmarks, partitioned using a Dirichlet distribution ($\beta$) to simulate varying levels of data heterogeneity (where a smaller $\beta$ means more extreme Non-IID data):

  • CIFAR-10: 10 classes of general objects.
  • CIFAR-100: 100 classes of general objects.
  • SVHN: Street View House Numbers.

Key Insights and Ideas

  • Models as Generators: The most elegant insight is that a trained model's Batch Normalization layers act as a "memory" of the data distribution it was trained on. You don't need a GAN; the classifier itself contains enough information to reconstruct its training distribution.
  • Embracing Disagreement: By maximizing the "disagreement" between the local and global models during data synthesis, the authors ensure the generated data is highly informative. It’s like a teacher giving a student the specific practice problems they keep getting wrong.
  • Adaptive Labeling: Instead of generating random classes, FedF²DG samples labels based on the client's actual local distribution. This ensures the global model learns the specific "expertise" of each client rather than noise.
  • The "Plugin" Effect: FedF²DG isn't just a standalone algorithm; it can be added to existing FL optimizers like FedProx or SCAFFOLD to further boost their performance.

Key Results

FedF²DG consistently outperformed state-of-the-art (SOTA) methods across all datasets, especially in extreme Non-IID scenarios:

  • CIFAR-10 ($\beta=0.05$): FedF²DG achieved 85.72% accuracy, outperforming the next best method (SCAFFOLD) by 6.47%.
  • CIFAR-100: In the 20-client scenario, it beat the suboptimal method by 6.16%.
  • Robustness: While other data-free methods (like FedGen) saw performance tank as data became more heterogeneous, FedF²DG remained stable.
  • Convergence: The authors showed that adding the KD stage at the 80th round led to a sharp, immediate spike in accuracy, proving that the synthesized data effectively captured "lost" local knowledge.

Limitations and Future Work

  • Privacy Concerns: While "data-free," the act of generating pseudo-images on a server could theoretically leak information about the private training set. The authors suggest generating data locally on the client side to mitigate this, though this increases the client's computational burden.
  • Computational Overhead: Synthesizing images via optimization is more time-consuming than simple model averaging. The authors acknowledge that this makes the total training time longer.
  • Dependency on Model Quality: The quality of the pseudo-data is strictly tied to the quality of the local models. If a client has very poor data or performs poorly during the initial training stage, the generated data will be less effective. Future work could involve better ways to evaluate "client data quality" to guide the generation process.

Summary updated

BibTeX
@article{zhao2024data,
  author = {Siran Zhao and Tianchi Liao and Lele Fu and Chuan Chen and Jing Bian and Zibin Zheng},
  title = {{Data-free knowledge distillation via generator-free data generation for Non-IID federated learning}},
  journal = {Neural Networks},
  year = {2024},
  doi = {10.1016/j.neunet.2024.106627},
}
Figure