FISC: Federated Domain Generalization via Interpolative Style Transfer and Contrastive Learning

Dung Thuy Nguyen, Taylor T. Johnson, Kevin Leach · OpenReview

TL;DR

This paper introduces PARDON, a novel Federated Domain Generalization (FedDG) method designed to tackle domain shifts in federated learning (FL) while preserving privacy. PARDON uses an "interpolative style" derived from all clients' local data to guide style transfer and contrastive learning, enabling robust generalization even with heterogeneous client data distributions and client sampling.

What Problem Does This Paper Address?

Federated Learning (FL) allows collaborative model training without sharing raw data, which is great for privacy. However, a major hurdle is "domain shift" – when data from different clients comes from different underlying distributions (e.g., images from different camera types or locations). Existing FL methods often struggle with this, leading to poor performance on unseen data. Current Federated Domain Generalization (FedDG) methods also have limitations: they often assume clients have data from a single, complete domain, which doesn't reflect real-world scenarios where data is often split across clients (domain-based heterogeneity) and only a subset of clients participate in training rounds (client sampling). Furthermore, some methods that share information between clients raise privacy concerns.

Methods

PARDON tackles these challenges with a multi-stage approach:

  1. Local Style Calculation: Each client extracts "style" information from their local data. This is done by first using a pre-trained encoder to get feature representations of images and then applying a hierarchical clustering method (FINCH) to group similar styles. The style of each cluster is then represented by the mean and standard deviation of its feature representations. This local style is designed to be abstract enough to prevent reconstruction of private data.
  2. Interpolation Style Extraction: The server aggregates these local styles. Instead of simple averaging, it uses FINCH again to cluster the client styles themselves, identifying shared characteristics. An "interpolative style" is then computed as the median of these cluster styles. This median approach is robust to outliers and ensures fairness, preventing any single dominant client style from skewing the global representation. This interpolative style acts as a unified, unbiased representation of all client domains.
  3. Contrastive-Based Local Training: Each client uses the global interpolative style to perform style transfer on their local data. This creates "style-transferred" data. Clients then use a contrastive learning mechanism:
  4. Inter-domain learning: They learn to align their local data representations with the style-transferred data from the same class (positive pairs) while pushing away representations from different classes (negative pairs). This is guided by a triplet loss.
  5. Intra-domain learning: They also use a standard Cross-Entropy loss to maintain their ability to learn from their local data.
  6. Regularization: L2 regularization is applied to the representations to prevent overfitting and improve generalization.
  7. Aggregation: The local models are aggregated using standard federated averaging to form the global model.

Datasets

The paper evaluates PARDON on three diverse datasets:

  • PACS: Contains four domains (Photo, Art, Cartoon, Sketch) with seven classes.
  • Office-Home: Includes four domains (Art, Clipart, Product, Real-World) with 65 classes.
  • IWildCam: A real-world dataset with 243 training, 32 validation, and 48 test domains, featuring 182 classes. This dataset is noted for its significant domain shift.

The FL simulation uses a framework that allows for controlled domain-based client heterogeneity (controlled by parameter λ) and client sampling (controlled by the ratio K/N).

Key Insights and Ideas

  • Interpolative Style as a Privacy-Preserving Bridge: The core innovation is using a median-aggregated interpolative style from all clients. This style is abstract enough to prevent direct reconstruction of private data, unlike methods that share more granular local information. It acts as a shared "understanding" of domain characteristics without revealing sensitive details.
  • Addressing Client Sampling and Heterogeneity Simultaneously: PARDON's design, particularly the global interpolative style computed before client-specific training rounds, inherently handles client sampling. The method also explicitly addresses domain-based heterogeneity by clustering client styles.
  • Contrastive Learning with Style Transfer: Combining style transfer (using the interpolative style) with contrastive learning is key. It allows clients to learn representations that are invariant to domain shifts by treating style-transferred versions of the same class as positive examples.
  • Robustness to Extreme Heterogeneity: The IWildCam experiments highlight PARDON's significant robustness to extreme domain shifts and heterogeneity, where other methods experience drastic performance drops.

Key Results

  • Superior Accuracy: PARDON consistently outperforms state-of-the-art FedDG baselines across various datasets and evaluation scenarios (LODO, LTDO). Accuracy improvements range from 3.64% to 57.22% on unseen domains.
  • Robustness: PARDON shows remarkable stability under varying levels of domain heterogeneity (λ) and client sampling (K/N), outperforming competitors, especially in challenging scenarios like IWildCam where performance drops for other methods can be substantial (35-50%).
  • Computational Efficiency: PARDON's computational overhead is comparable to or even lower than other methods, with a one-time cost for style calculation and clustering that doesn't scale linearly with the number of clients.
  • Privacy Preservation: Security analysis and image reconstruction experiments demonstrate that PARDON's style vectors are less informative for reconstructing private data compared to sample-level or cross-client style sharing methods.

Limitations and Future Work

  • Ablation Study Insights: The paper includes an ablation study showing that both the local/global clustering and the contrastive learning components are crucial. Removing clustering (PARDON-v1/v2) or contrastive learning (PARDON-v3) significantly degrades performance. PARDON-v4, which uses standard contrastive learning without interpolation style transfer, also underperforms PARDON-v5 (the full model).
  • Future Work: While not explicitly detailed as future work, the paper's focus on robustness and privacy in complex FL settings suggests potential extensions to other FL tasks beyond classification, or further exploration of privacy guarantees. The success of the interpolative style concept could also be applied to other federated learning challenges.

Summary updated

Abstract

Federated Learning (FL) shows promise in preserving privacy and enabling collaborative learning. However, most current solutions focus on private data collected from a single domain. A significant challenge arises when client data comes from diverse domains (i.e., domain shift), leading to poor performance on unseen domains. Existing Federated Domain Generalization approaches address this problem but assume each client holds data for an entire domain, limiting their practicality in real-world scenarios with domain-based heterogeneity and client sampling. To overcome this, we introduce FISC, a novel FL domain generalization paradigm that handles more complex domain distributions across clients. FISC enables learning across domains by extracting an interpolative style from local styles and employing contrastive learning. This strategy gives clients multi-domain representations and unbiased convergent targets. Empirical results on multiple datasets, including PACS, Office-Home, and IWildCam, show FISC outperforms state-of-the-art (SOTA) methods. Our method achieves accuracy improvements ranging from 3.64% to 57.22% on unseen domains. Our code is available at https://anonymous.4open.science/r/FISC-AAAI-16107.
BibTeX
@inproceedings{nguyen2025fisc,
  author = {Dung Thuy Nguyen and Taylor T. Johnson and Kevin Leach},
  title = {{FISC: Federated Domain Generalization via Interpolative Style Transfer and Contrastive Learning}},
  booktitle = {ICDCS},
  year = {2025},
  doi = {10.1109/icdcs63083.2025.00074},
}
Figure