FedCG: Leverage Conditional GAN for Protecting Privacy and Maintaining Competitive Performance in Federated Learning
Yuezhou Wu, Yan Kang, Jiahuan Luo, Yuanqin He, Qiang Yang
TL;DR
FedCG tackles privacy risks in federated learning by keeping each client’s private extractor local while sharing a generator for knowledge aggregation, enabling a global generator $G_g$ and global classifier $C_g$ learned via knowledge distillation without public data. The method uses a two-stage client update with losses $L^{cls}$ and $L^{mse}$ (weighted by a ramped parameter $\gamma$) and a cGAN-based generator update, promoting alignment between local representations and the global generator. A privacy-aware server aggregation and a dedicated DLG-based privacy analysis show FedCG can resist gradient-inversion attacks while maintaining competitive accuracy across IID and non-IID settings, outperforming several FL baselines in non-IID scenarios. The results indicate FedCG’s practical potential for privacy-preserving, high-performance FL, with future work aimed at deeper networks and formal privacy guarantees.
Abstract
Federated learning (FL) aims to protect data privacy by enabling clients to build machine learning models collaboratively without sharing their private data. Recent works demonstrate that information exchanged during FL is subject to gradient-based privacy attacks, and consequently, a variety of privacy-preserving methods have been adopted to thwart such attacks. However, these defensive methods either introduce orders of magnitude more computational and communication overheads (e.g., with homomorphic encryption) or incur substantial model performance losses in terms of prediction accuracy (e.g., with differential privacy). In this work, we propose $\textsc{FedCG}$, a novel federated learning method that leverages conditional generative adversarial networks to achieve high-level privacy protection while still maintaining competitive model performance. $\textsc{FedCG}$ decomposes each client's local network into a private extractor and a public classifier and keeps the extractor local to protect privacy. Instead of exposing extractors, $\textsc{FedCG}$ shares clients' generators with the server for aggregating clients' shared knowledge, aiming to enhance the performance of each client's local networks. Extensive experiments demonstrate that $\textsc{FedCG}$ can achieve competitive model performance compared with FL baselines, and privacy analysis shows that $\textsc{FedCG}$ has a high-level privacy-preserving capability. Code is available at https://github.com/yankang18/FedCG
