TL;DR
FedMD-CG is a privacy-preserving federated learning framework that decouples local models into a private feature extractor and a shared classifier, replacing the extractor with a lightweight conditional generator during aggregation. By relying on dual-level (feature and logit) knowledge distillation rather than complex adversarial training (cGANs), it prevents client-side generator–classifier misalignment and defends against gradient inversion attacks without sacrificing classification accuracy.
What Problem Does This Paper Address?
Standard Federated Learning (FL) algorithms like FedAvg share local parameter updates or gradients across clients and a central server. While raw data stays on-device, prior research shows that attackers can reconstruct private client training samples using gradient inversion attacks (such as DLG).
Common privacy defenses carry steep trade-offs:
- Homomorphic encryption introduces massive computational and bandwidth overhead.
- Differential privacy adds noise that degrades model accuracy.
- Model decoupling (MD) splits models into private base layers (feature extractors) and shared top layers (classifiers), but simple split strategies still harm generalization or leave parts vulnerable.
Recent attempts like FedCG used conditional GANs (cGANs) to generate synthetic latent features instead of transmitting real feature extractors. However, FedCG suffers from significant drawbacks: clients must train separate discriminators, knowledge transfer is restricted to latent features, and the generator frequently drifts out of sync with the classifier ("inconsistency"), leading to model collapse and poor performance under non-IID data distributions.
Methods
FedMD-CG eliminates adversarial discriminators entirely, replacing them with a structured knowledge distillation (KD) pipeline across clients and server:
[Local Data] ---> [Local Feature Extractor F_i] ---> [Local Classifier D_i]
| ^
Feature & Logit Distillation |
v |
[Local Generator G_i] ---------------------+
|
(Upload G_i and D_i only)
v
[Server: Crossed Data-Free KD] ---> [Global G & D]
1. Client-Side Two-Stage Distillation
- Stage 1 (Local Model Update): The local model $[F_i, D_i]$ trains on private data using cross-entropy, while distilling knowledge from the downloaded global generator $G$. It aligns at both the latent feature level ($L_2$ loss $\vec{L}_{mse,i}$) and the output prediction level (KL divergence $\vec{L}_{kl,i}$), along with a classification loss on synthetic generator outputs ($\vec{L}_{ce,i}$).
- Stage 2 (Local Generator Update): The local generator $G_i$ is trained to mimic the latent space of the frozen local model $[F_i, D_i]$ via inverted distillation losses ($\overleftarrow{L}_{mse,i}$, $\overleftarrow{L}_{kl,i}$, and $\overleftarrow{L}_{ce,i}$).
- Label-Aware Diversity Constraints: Standard diversity losses ($L_{div}^0$) penalize generator collapse without considering class labels. The authors introduce two label-aware constraints ($L_{div}^1$ and $L_{div}^2$) that heavily weight inter-class sample distance, preventing inter-class overlap while preserving intra-class variety.
2. Server-Side Crossed Distillation Aggregation
Clients transmit only their generator $G_i$ and classifier $D_i$ (keeping the feature extractor $F_i$ completely private). The server averages the parameters and then refines the global generator $G$ and classifier $D$ through crossed data-free KD:
- Predictions from the global classifier $D$ on global generator samples $G(\hat{z}, \hat{y})$ are aligned with predictions from local models (Eq. 10).
- A crossover strategy feeds local generator features to the global classifier ($\rho_{ig}$) and global features to local classifiers ($\rho_{gi}$), distilling maximum shared knowledge across disparate client distributions.
Datasets
The authors evaluate their method on three image classification benchmarks:
- EMNIST (Extended MNIST)
- Fashion-MNIST (FMNIST)
- CIFAR-10
Data heterogeneity across clients is simulated via a Dirichlet distribution $\text{Dir}(\omega)$, testing skew settings $\omega \in \{0.1, 1.0, 10.0\}$, where smaller $\omega$ indicates severe non-IID partitions. Experiments use a LeNet-5 backbone (2 convolutional layers for feature extraction and 3 fully connected layers for classification).
Key Insights and Ideas
- Consistency Over Adversarial Training: GAN discriminators optimize for realism, not classifier compatibility. By directly distilling against the local classifier, FedMD-CG guarantees that generated pseudo-features are functionally distinguishable by the classifier, stabilizing training.
- Dual-Level Distillation Matters: Transferring knowledge exclusively at the latent feature level leaves valuable semantic information behind. Pairing representation-level ($L_2$) matching with decision-level (KL divergence) matching yields noticeable gains in convergence speed and accuracy.
- Label-Aware Diversity: Diversity penalties must be class-conditioned. Treating all output pairs equally often pushes intra-class features too far apart or pulls different classes together; explicitly weighting diversity by label differences ($L_{div}^2$) fixes this failure mode.
Key Results
- Classification Accuracy: On challenging, highly heterogeneous splits, FedMD-CG routinely outperforms other partial-sharing and generative FL baselines:
- On CIFAR-10 ($\omega = 1.0$), FedMD-CG achieves 46.30% local test accuracy, compared to 30.44% for FedCG, 38.13% for FedGen, 41.49% for LG-FedAvg, and 42.84% for standard FedAvg.
- On EMNIST ($\omega = 0.1$), FedMD-CG reaches 54.45% local accuracy, outperforming FedGen (51.29%) and FedCG (49.91%).
- Privacy Against Inversion (DLG): Under Deep Leakage from Gradients attacks, FedMD-CG achieves a low Peak Signal-to-Noise Ratio (~6.95–9.69 dB), matching FedCG (~7.05–9.87 dB) and LG-FedAvg (~6.78–8.75 dB). By contrast, FedAvg exhibits massive privacy leakage (22.63–29.22 dB), yielding clear reconstructions of private client images.
- Training Stability: As shown in generator-classifier loss curves, FedCG fails to converge across communication rounds, whereas FedMD-CG's consistency losses consistently drive error downward.
Limitations and Future Work
- Architecture Scope: Experiments are limited to relatively simple models (LeNet-5) and small image datasets; evaluation on deeper architectures (e.g., ResNets, Vision Transformers) and complex datasets (e.g., ImageNet) is not presented in the main text.
- Heterogeneity Types: The study focuses on label distribution skew (Dirichlet partitioning); real-world feature/domain shifts (e.g., varying lighting, sensors) remain unaddressed.
- Ablations and Extensions: Detailed discussions regarding limitations and broader ethical impacts are relegated to the paper's appendices (Appendix F and G).
Summary updated