Abstract
Federated Learning (FL) is gaining popularity as a distributed learning framework that only shares model parameters or gradient updates and keeps private data locally. However, FL is at risk of privacy leakage caused by privacy inference attacks. And most existing privacy-preserving mechanisms in FL conflict with achieving high performance and efficiency. Therefore, we propose FedMD-CG, a novel FL method with highly competitive performance and high-level privacy preservation, which decouples each client's local model into a feature extractor and a classifier, and utilizes a conditional generator instead of the feature extractor to perform server-side model aggregation. To ensure the consistency of local generators and classifiers, FedMD-CG leverages knowledge distillation to train local models and generators at both the latent feature level and the logit level. Also, we construct additional classification losses and design new diversity losses to enhance client-side training. FedMD-CG is robust to data heterogeneity and does not require training extra discriminators (like cGAN). We conduct extensive experiments on various image classification tasks to validate the superiority of FedMD-CG.
Introduction
Standard Federated Learning (FL) frameworks, such as FedAvg, rely on sharing model parameters or gradients to train a global model while keeping raw data local. However, this approach is vulnerable to Deep Leakage from Gradients (DLG) attacks, where a malicious server can reconstruct private training data from shared gradients. While techniques like differential privacy or model decoupling have been proposed to mitigate these risks, they often suffer from accuracy degradation or a "consistency gap" between private and shared model components, particularly in non-IID (heterogeneous) data environments.
FedMD-CG (Federated Learning with Model Decoupling and Conditional Generators) addresses these challenges by replacing the vulnerable feature extractor with a local conditional generator. This architecture ensures that only abstract, high-level feature patterns are shared, effectively shielding private data from reconstruction attacks while maintaining high performance.
Methodology
The FedMD-CG framework decouples each client's model into a private feature extractor and a shared classifier. To bridge the consistency gap, it employs a two-stage distillation strategy and a novel server-side aggregation method.
Client-Side Training
Clients perform training in two stages using Knowledge Distillation (KD):
- Model Learning: The local model distills knowledge from the global generator to improve generalization.
- Generator Learning: The local generator is trained to mimic the latent feature space of the local model, ensuring the generator produces features compatible with the local classifier.
To prevent mode collapse, a label-aware diversity loss is introduced, penalizing the generator if it produces similar features for different classes. This ensures the generator maintains a high-quality representation of the local data distribution.
Server-Side Aggregation
Instead of simple weight averaging, the server performs "crossed" data-free KD. It uses noise to generate pseudo-features from local generators and trains the global model to ensure the global classifier understands features from all local generators. This crossover maximizes knowledge transfer between clients while maintaining privacy.
Experimental Evaluation
The framework was evaluated on EMNIST, FMNIST, and CIFAR-10 datasets with varying levels of data heterogeneity, controlled by a Dirichlet parameter $\omega$.
Key Results
- Superior Accuracy: FedMD-CG consistently outperforms baselines like FedGen and FedCG. For instance, on CIFAR-10 with high heterogeneity, it achieved a local test accuracy of 54.82%, significantly higher than FedCG's 39.39%.
- Robust Privacy: In DLG attack simulations, FedMD-CG maintained a low Peak Signal-to-Noise Ratio (PSNR) of 6-9 dB, rendering reconstructed images unrecognizable. In contrast, FedAvg's PSNR reached 24-29 dB, indicating successful data leakage.
- Convergence: The method demonstrates faster convergence in early training stages compared to competing privacy-preserving methods.
Conclusion
FedMD-CG provides a robust solution for privacy-preserving FL by decoupling models and utilizing conditional generators. By ensuring consistency through latent and logit-level distillation, it overcomes the performance drops typical of decoupled models. While it introduces higher computational overhead (2-3x per round compared to FedAvg), the gains in privacy and accuracy on heterogeneous data make it a compelling framework for secure distributed learning. Future work will focus on optimizing generator efficiency to reduce communication and computation costs.
Summary updated