TL;DR
Federated Adversarial Training (FAT) helps decentralized models resist security attacks, but it severely degrades when real-world data follows a long-tailed (highly imbalanced) distribution. FedCART solves this by decoupling the model into a shared feature extractor and a dual-classifier structure, using client-side contrastive alignment and server-side virtual feature generation to eliminate classification bias without compromising privacy.
What Problem Does This Paper Address?
Federated Learning (FL) allows multiple clients to collaboratively train a global machine learning model without sharing their raw, private data. However, these models remain highly vulnerable to adversarial attacks—small, intentional perturbations designed to trick the network. While Federated Adversarial Training (FAT) is the standard defense, existing methods operate under a "closed-world" assumption that data across classes is globally balanced.
In reality, real-world data is almost always long-tailed: a few "head" classes contain the vast majority of the samples, while many "tail" classes have very few. When you combine adversarial training with severe class imbalance and data heterogeneity (Non-IID data across clients), the model's feature space becomes chaotic. The classifier develops a massive predictive bias toward dominant head classes, completely failing to recognize tail classes.
Methods
To tackle this dual challenge of robustness and class imbalance, the authors introduce FedCART (Federated Classifier Refinement Training). The core innovation lies in decoupling the global model into a shared feature extractor and a dual-classifier structure (a main classifier and an auxiliary classifier).
The training process is split into two collaborative phases:
- Client-Side Local Update:
- Local Training: Clients train the feature extractor and main classifier using a novel contrastive learning-based feature-alignment loss ($\mathcal{L}_{\text{Align}}$). This adaptively forces the feature representations of natural and adversarial samples to be consistent, stabilizing local training.
- Prototype Extraction: Clients freeze the feature extractor and use their local data to compute gradient-based class prototypes via the auxiliary classifier. These prototypes capture class-wise update directions safely without leaking raw data.
- Server-Side Global Optimization:
- Virtual Feature Alignment: The server aggregates the models and the gradient prototypes. It then synthesizes a globally balanced set of virtual features whose gradients match the aggregated prototypes.
- Classifier Retraining: The server retrains the auxiliary classifier using these balanced virtual features. This step effectively removes the long-tailed bias before distributing the refined model back to the clients.
During inference, the biased main classifier is discarded, and the refined auxiliary classifier is deployed.
Datasets
The authors evaluated FedCART on the long-tailed variants of four standard computer vision benchmarks:
- CIFAR10-LT
- CIFAR100-LT
- FMNIST-LT (Fashion-MNIST)
- SVHN-LT (Street View House Numbers)
Data heterogeneity across clients was simulated using a Dirichlet distribution ($\beta$), and the severity of the long-tail imbalance was controlled via an imbalance ratio ($\rho$).
Key Insights and Ideas
- The Distortion Effect: Adversarial training compounded with class scarcity acts as a "double whammy" on tail classes. It distorts their feature representations to the point where standard classifiers confuse them entirely with head classes.
- Decoupling Robustness from Fairness: By separating feature learning (handled on the client for robustness) from classifier calibration (handled on the server for fairness), FedCART optimizes both objectives without them conflicting.
- Privacy-Preserving Virtual Features: Instead of sharing raw data or raw feature prototypes (which can be vulnerable to inversion attacks), sharing gradient-based prototypes allows the server to safely reconstruct a balanced feature space.
Key Results
FedCART consistently achieved state-of-the-art performance across all benchmarks, outperforming existing FAT methods by 1.65% to 9.89% in average robust accuracy.
- Robustness Boost: Under a stringent PGD-20 adversarial attack, FedCART improved robust accuracy by 2.43% on CIFAR10-LT and 6.43% on SVHN-LT compared to the best baseline.
- Rescuing the Tail: On CIFAR100-LT, standard FAT methods achieved near-zero (~2%) robust accuracy on minority (tail) classes. FedCART boosted minority class robust accuracy to 9.09%.
- Faster Convergence: FedCART demonstrated significantly faster and more stable convergence curves, reducing the communication overhead typically associated with federated adversarial training.
Limitations and Future Work
While FedCART significantly mitigates the performance drop on tail classes, an inherent trade-off between natural accuracy and robust accuracy still remains—a fundamental open problem in adversarial machine learning. Additionally, the authors note that future work will focus on extending this framework to defend against other types of decentralized security threats, such as privacy leaks or Byzantine client attacks.
Summary updated