FedPDG: Prediction Discrepancy–Guided Data Generation for Heterogeneous Federated Learning

Yuqi Wang, Jianwei Niu, Xinghao Wu, Xuefeng Liu, Xin HaoICML 2026

Introduction

Federated Learning (FL) enables multiple participants to collaboratively train a shared global model without ever exposing their raw, private data. However, a persistent challenge in FL is data heterogeneity. In real-world scenarios, client datasets are rarely Independent and Identically Distributed (non-IID). This imbalance causes local models to drift away from the global objective, severely degrading overall performance.

Recent approaches have attempted to mitigate this by using generative models, such as Stable Diffusion, to create synthetic data that "balances" local datasets. Unfortunately, these methods typically operate on a flawed assumption: that the global data distribution is perfectly balanced. In reality, global data is often naturally imbalanced. Furthermore, strict privacy constraints prevent the central server from directly observing the true global distribution.

This raises a critical question: How can we generate synthetic data that aligns local distributions with a true, yet unknown, global distribution? To address this, researchers introduce FedPDG, a novel framework that leverages diffusion models to generate synthetic data tailored to each client's specific needs based on "prediction discrepancy."

Methodology

FedPDG operates on the key insight that a model’s performance implicitly reflects the data distribution it has been trained on. By analyzing the performance gap between local and global models, the system can identify missing data regions for each client. The framework consists of three core components:

1. Prediction Discrepancy Guided Data Selection (PDS)

Instead of relying on direct access to client data, FedPDG uses model loss as a proxy for data distribution. If the global model performs well on a generated synthetic sample but a specific client’s local model performs poorly, it strongly indicates that the sample represents a data type missing from the client's local dataset. The server uses this "loss gap" to selectively assign synthetic images to the clients that need them most.

2. Discrepancy Preference Optimization (DPO)

Rather than merely filtering randomly generated images, FedPDG actively fine-tunes the diffusion model to produce highly useful samples. Utilizing Direct Preference Optimization alongside a lightweight Low-Rank Adaptation (LoRA) module, the server trains the generator to prefer creating images that maximize the discrepancy between the global and local models. This ensures the generator focuses on the most informative, missing data regions.

3. Exponential Decay Scheduler (ESS)

The timing of synthetic data supplementation is crucial. The researchers implemented an exponential decay scheduler, discovering that providing a larger volume of synthetic data in early training rounds helps "kickstart" the model. Tapering off this supply in later rounds ensures stability as the local and global models converge.

Crucially, all generation and selection processes occur on the server side. Clients only receive the final synthetic images, resulting in zero additional computational or communication overhead for the clients compared to standard FL.

Experimental Setup and Datasets

To evaluate FedPDG, researchers modified several computer vision benchmarks to simulate globally imbalanced FL scenarios:

  • CIFAR-10 & CIFAR-100: Standard image classification benchmarks.
  • Tiny-ImageNet: A more complex dataset featuring 200 classes.
  • EuroSAT: Satellite imagery, used to test the framework's robustness against "domain shift" (data significantly different from the natural images the base diffusion model was trained on).
  • iNaturalist: A large-scale dataset of plant and animal species that naturally reflects real-world ecological imbalances.

Key Insights and Results

FedPDG shifts the paradigm from artificial "balance" to true global alignment. By preserving natural imbalances, the framework avoids the performance penalties associated with forcing an artificial uniform distribution on naturally skewed data.

  • Significant Accuracy Gains: FedPDG consistently outperformed state-of-the-art generative FL methods (such as Gen-FedSD and CRFed), achieving accuracy improvements of up to 3.82% on CIFAR-10.
  • Superior Distribution Alignment: Quantitative evaluations using KL divergence demonstrated that datasets supplemented by FedPDG were significantly closer to the true global distribution than those augmented by random or rare-class-only generation.
  • High Efficiency: Because the server generates data concurrently while clients train locally, FL pipeline wait times are virtually eliminated. By supplementing data, the authors reduced local training requirements from five epochs to just one, cutting client-side compute costs by approximately 60%.
  • Robustness and Compatibility: The method maintained its efficacy even when scaled up to 50 clients and functioned seamlessly as a "plug-and-play" enhancement for existing FL algorithms like FedProx and FedFA.

Limitations and Future Work

While highly effective, FedPDG's performance is inherently tied to the quality and domain knowledge of the underlying diffusion model.

  • Generator Domain Gap: In tests involving satellite imagery (EuroSAT), the performance benefits were less pronounced because the base Stable Diffusion model lacked prior training on satellite data.
  • Specialized Priors: The system may struggle with highly specialized domains—such as molecular structures or circuit schematics—where general-purpose diffusion models lack the necessary visual priors.

Future research directions include integrating domain-specific generators (e.g., medical or satellite-specific diffusion models) to bridge the domain gap, and evaluating the FedPDG framework in larger-scale, real-world deployments.

Summary updated

BibTeX
@inproceedings{wang2026fedpdg,
  author = {Yuqi Wang and Jianwei Niu and Xinghao Wu and Xuefeng Liu and Xin Hao},
  title = {{FedPDG: Prediction Discrepancy–Guided Data Generation for Heterogeneous Federated Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=4vfv9HXhXN},
}
Figure