pFedGPA: Diffusion-based Generative Parameter Aggregation for Personalized Federated Learning

Jiahao Lai, Jiaqi Li, Jian Xu, Yanru Wu, Boshi Tang, Siqi Chen, Yongfeng Huang, Wenbo Ding, Yang Li

Abstract

Federated Learning (FL) traditionally relies on Federated Averaging (FedAvg) to aggregate local model updates. However, in heterogeneous (Non-IID) environments, linear averaging often leads to "parameter collapse," where the global model resides in a low-performance region of the parameter space. We present pFedGPA (Personalized Federated Generative Parameter Aggregation), a novel framework that replaces arithmetic averaging with a generative diffusion model. By learning the manifold of successful model parameters, pFedGPA generates personalized weights for each client. We introduce "Parameter Inversion" to anchor generated weights to local data distributions and "Global Guidance" to accelerate convergence for new clients. Experimental results on Fashion-MNIST, EMNIST, and CIFAR-10 demonstrate that pFedGPA consistently outperforms state-of-the-art personalized FL baselines.

Introduction

Federated Learning has emerged as a privacy-preserving paradigm for training machine learning models across decentralized devices. The standard aggregation method, FedAvg, assumes that a simple linear combination of local weights can capture the collective knowledge of the network. While effective for independent and identically distributed (IID) data, this assumption fails in real-world scenarios where data distributions vary significantly across clients. Researchers from Tsinghua University and CUHK, in a paper for AAAI-25, propose a radical shift: treating model parameters as data points on a manifold and using diffusion models to aggregate them.

The Challenge: Parameter Collapse

When clients possess non-IID data, their optimal model parameters ($\theta_1, \theta_2, \dots$) diverge into distinct regions of the high-dimensional parameter space. Linear averaging ($\theta_{avg} = \frac{\theta_1 + \theta_2}{2}$) assumes the parameter space is convex and that the midpoint between two "good" models is also a "good" model. In practice, the loss landscape is highly non-convex. Averaging often results in a model that falls into a "valley" of low probability or high loss, a phenomenon termed parameter collapse.

Visualization of parameter collapse in traditional FedAvg versus the learned model distribution.

Methodology: pFedGPA

To address these limitations, pFedGPA moves away from arithmetic and toward generation. The server treats the uploaded parameters from all clients as training samples for a Latent Diffusion Model (LDM). This model learns the underlying distribution of "good" parameters across the entire network.

Parameter Inversion

A key innovation in pFedGPA is Parameter Inversion. Direct generation of parameters can be unstable and may ignore a client's specific local nuances. Parameter Inversion maps a client's current weights into a latent space, representing their local "semantics," and then uses the diffusion process to refine these weights. This ensures that the resulting personalized model benefits from global knowledge while remaining strictly relevant to the client's local data distribution.

The Parameter Inversion process used to refine client parameters while preserving local semantics.

Global Guidance and Efficiency

For new clients joining the network, pFedGPA employs Global Guidance. The diffusion model acts as a map, steering the new client’s initial training toward high-probability regions of the parameter space. To handle the high dimensionality of neural network weights, the system uses an autoencoder to compress parameters into a lower-dimensional latent space and employs 1D convolutional layers to maintain computational efficiency.

Experimental Results

The framework was evaluated on standard image classification benchmarks (Fashion-MNIST, EMNIST, and CIFAR-10) under Non-IID setups. pFedGPA consistently outperformed traditional and personalized FL baselines:

  • Accuracy Gains: On CIFAR-10 with 20 clients, pFedGPA achieved 78.54% accuracy, surpassing the strong FedAvg-FT baseline (76.46%).
  • Scalability: The performance gap widened with more clients; on EMNIST with 100 clients, pFedGPA reached 88.22%, while FedAvg-FT trailed at 86.52%.
  • Cold Start: The Global Guidance mechanism allowed new clients to reach 95% of their peak performance significantly faster than baseline methods.
  • Robustness: Ablation studies confirmed that the inversion mechanism reduced "failed" parameter generations significantly compared to direct generation.

Conclusion

pFedGPA represents a paradigm shift in Federated Learning, moving from arithmetic aggregation to generative modeling. By treating parameters as data points on a manifold, it effectively bypasses the pitfalls of parameter collapse in heterogeneous environments. While server-side computational costs remain a consideration for future optimization, pFedGPA sets a new benchmark for personalized federated learning performance and robustness.

Summary updated

BibTeX
@inproceedings{lai2025pfedgpa,
  author = {Jiahao Lai and Jiaqi Li and Jian Xu and Yanru Wu and Boshi Tang and Siqi Chen and Yongfeng Huang and Wenbo Ding and Yang Li},
  title = {{pFedGPA: Diffusion-based Generative Parameter Aggregation for Personalized Federated Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i17.33980},
}
Figure