Introduction: The Challenge of Domain Shift
Standard Federated Learning (FL) often struggles with data heterogeneity. While most research focuses on "label shift" (clients having different amounts of each class), this paper targets domain shift. In real-world scenarios, a "cat" looks different in a photo than it does in a cartoon or a thermal image. If a global model is trained on these disparate domains, it often becomes biased toward the dominant domain or fails to generalize, leading to poor performance on clients with unique data distributions.
Existing "prototype-based" solutions, which share class-wise feature averages instead of raw data, typically rely on simple averaging. The authors argue this is insufficient due to:
- Inter-domain bias: Simple averaging favors common domains, ignoring unique "long tail" client distributions.
- Intra-domain stagnation: Local models overfit to their specific domain due to a lack of internal feature diversity.
The I²PFL Framework
The authors introduce I²PFL (Intra- and Inter-Domain Prototype Federated Learning), a framework designed to address these challenges at both the server and client levels.
1. Inter-Domain: Prototype Reweighting
Instead of simple averaging, the server calculates a Generalized Prototype using a distance-based reweighting scheme. Prototypes further from the initial mean are assigned higher weights. This ensures that underrepresented or "difficult" domain characteristics are emphasized rather than washed out. To maintain stability, an Exponential Moving Average (EMA) is used to update prototypes across rounds.
2. Intra-Domain: Augmented Prototype Alignment (APA)
To improve local generalization, I²PFL employs feature-level MixUp. By interpolating between feature vectors of different local samples, the model creates "synthetic" augmented prototypes. Aligning local features with these augmented versions forces the model to learn more robust, less domain-specific representations.
3. Contrastive Learning
The local loss function incorporates a Generalized Prototype Contrastive Learning (GPCL) term. This encourages local features to cluster near the correct generalized global prototype while pushing them away from prototypes of other classes.
Experimental Evaluation
The framework was evaluated on three standard domain adaptation benchmarks: Digits (MNIST, USPS, SVHN, Synthetic), Office-10 (Amazon, Caltech, DSLR, Webcam), and PACS (Photo, Art Painting, Cartoon, Sketch). Tests covered both in-client performance and out-client generalization to unseen domains.
Key Results
- Superior Accuracy: I²PFL consistently outperformed state-of-the-art methods like FedProto and FPL. On Office-10, it improved average accuracy by 4.99% over the next best method.
- Unseen Domain Generalization: In "leave-one-domain-out" tests on the PACS dataset, I²PFL showed a 1.43% improvement, demonstrating its ability to learn generalizable features rather than just memorizing training domains.
- Stability and Convergence: Variance analysis (as seen in Figure 1) shows that I²PFL significantly reduces prototype variance across domains, leading to faster convergence and fewer fluctuations compared to baselines.
- Better Feature Separation: Visualizations demonstrate that I²PFL produces much tighter, more distinct clusters for different classes compared to standard methods.
Conclusion
I²PFL demonstrates that "outlier" prototypes in federated learning are not just noise but valuable representations of real-world diversity. By reweighting these prototypes and employing feature-level MixUp locally, the method achieves a more robust global model. While challenges remain regarding hyperparameter tuning and scalability to massive class counts, I²PFL sets a new benchmark for privacy-preserving domain generalization in federated environments.
Summary updated