TL;DR
FedDAP introduces a domain-aware prototype learning framework to tackle the challenge of domain shift in Federated Learning (FL). By constructing domain-specific global prototypes and employing a dual-alignment strategy (intra-domain consistency and cross-domain contrastive learning), it prevents semantic dilution and significantly boosts model generalization across diverse data sources.
What Problem Does This Paper Address?
Federated Learning (FL) allows decentralized clients to collaboratively train a shared model without exposing their private data. However, real-world FL frequently suffers from domain shift, where different clients possess data from distinct domains (e.g., one client has photos of dogs, while another has cartoon sketches).
Existing prototype-based FL methods try to align clients by averaging local representations into a single global prototype per class. The authors point out two fatal flaws in this approach:
- Semantic Dilution: Naively averaging prototypes across completely different visual styles creates a messy, ambiguous "average" prototype that doesn't accurately represent any single domain.
- Semantic Conflict: Forcing local client features to align with these domain-agnostic global prototypes creates instability and hurts local training performance.
Methods
To resolve these conflicts, the authors propose FedDAP (Federated Domain-Aware Prototypes), which introduces two core mechanisms:
- Domain-Specific Global Prototypes: Instead of a single global prototype per class, the server maintains a distinct prototype for every class-domain pair. Rather than simple averaging, the server uses a cosine similarity-weighted fusion mechanism to aggregate local prototypes. This assigns higher weights to semantically consistent client updates and naturally filters out outliers.
- Dual Prototype Alignment Strategy: During local training, client models optimize their feature extractors using a combination of two novel losses alongside standard cross-entropy:
- Domain-Consistent Prototype Alignment (DPA): This forces local features to align closely with the global prototype from their own domain, ensuring intra-domain stability and semantic consistency.
- Cross-Domain Prototype Contrastive Learning (CPCL): This pulls local features toward same-class prototypes from other domains while pushing them away from different-class prototypes, forcing the network to learn domain-invariant semantic representations.
Datasets
The framework was evaluated on three multi-domain image benchmarks:
- DomainNet: A massive dataset from which 10 classes across 6 domains (Clipart, Infograph, Painting, Quickdraw, Real, Sketch) were selected.
- Office-10: Features 10 shared object categories across 4 domains (Caltech, Amazon, Webcam, DSLR).
- PACS: Contains 7 object classes across 4 highly distinct artistic styles (Photo, Art Painting, Cartoon, Sketch).
Key Insights and Ideas
- Disentangling Style and Semantics: FedDAP effectively structures the feature space along two axes: label semantics (vertical) and domain characteristics (horizontal). This allows the model to respect local data styles while still grasping the overarching global concept.
- Averaging is the Enemy of Diversity: In heterogeneous environments, uniform averaging destroys domain-specific nuances. Weighting updates based on domain similarity preserves the integrity of the feature space.
- Contrastive Learning as a Bridge: Achieving cross-domain generalization doesn't mean ignoring domain differences. Explicitly contrasting different domains helps the model map out clear boundaries between classes, regardless of the visual style.
Key Results
- State-of-the-Art Accuracy: FedDAP consistently outperformed standard baselines and advanced prototype methods. Compared to standard FedAvg, it achieved absolute top-1 accuracy improvements of +5.61% on DomainNet, +15.06% on Office-10, and +7.56% on PACS.
- Faster Convergence: FedDAP achieved faster and more stable convergence across all datasets, reaching higher accuracy in fewer communication rounds than competing methods.
- Tighter Feature Clustering: Qualitative t-SNE visualizations demonstrated that FedDAP produces uniformly tighter and well-separated class clusters compared to the diffuse and overlapping features generated by older methods like FedProto.
- Unseen Domain Generalization: In "leave-one-domain-out" experiments, FedDAP demonstrated superior zero-shot generalization on completely unseen target domains.
Limitations and Future Work
- Dependence on Domain Labels: FedDAP assumes that clients have explicit knowledge of their domain identifiers (e.g., knowing their data is "Cartoon" vs. "Photo"). In wild, uncurated FL deployments, explicit domain labels might not be readily available.
- Communication Overhead: Introducing domain-specific prototypes increases the download traffic from the server to the clients linearly with the number of domains. While the authors demonstrate this payload is negligible compared to full model parameter transfers, it remains a factor to consider for highly bandwidth-constrained networks.
- Future Direction: A natural extension of this work would be developing methods to automatically discover latent domains without relying on explicit client-side domain identifiers.
Summary updated