PARDON: Privacy-Aware and Robust Federated Domain Generalization

Dung Thuy Nguyen, Taylor T. Johnson, Kevin Leach

TL;DR

PARDON introduces a privacy-preserving framework for Federated Domain Generalization (FedDG) that enables machine learning models to perform accurately on completely unseen data domains. By extracting an anonymous, global "interpolative style" from decentralized clients and leveraging local contrastive learning, it eliminates the need to share sensitive raw data or local signals while outperforming state-of-the-art methods by up to 57%.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple clients (like different hospitals or mobile devices) to collaboratively train a global model without sharing their private local data. However, real-world deployments frequently suffer from domain shift—where the data distribution at test time differs from the training data (e.g., medical images taken from different scanner models or under varying lighting conditions).

To make matters worse, existing Federated Domain Generalization (FedDG) solutions rely on two unrealistic assumptions:

  1. Domain Isolation: They assume each client has access to a complete, single domain dataset. In reality, clients often hold a messy mixture of multiple domains (domain-based client heterogeneity).
  2. Full Participation: They assume all clients participate in every training round, ignoring the practical reality of client sampling, where only a subset of devices are online at any given time.

Furthermore, many current FedDG methods share local gradients or class prototypes to bridge domain gaps, which opens the door to malicious privacy reconstruction attacks. PARDON tackles these exact challenges: achieving robust generalization across unseen domains under complex client distributions while strictly preserving data privacy.

Methods

PARDON shifts the paradigm away from sharing individual local signals. Instead, it computes a secure, aggregated global interpolation style at the start of training and uses it to guide local contrastive learning.

The framework operates in four main phases:

  1. Local Style Calculation: Each client extracts abstract style statistics (channel-wise mean and standard deviation) from their local data using a pre-trained VGG encoder. To prevent dominant domains within a single client from biasing the results, clients use a parameter-free clustering algorithm called FINCH to group and average their local styles safely.
  2. Interpolation Style Extraction: The server collects these abstract style vectors. It applies a two-level clustering process and computes the median style across clusters. Using the median ensures that minority domains are fairly represented and prevents outliers from skewing the global style representation.
  3. Local Contrastive Learning: The server sends this global interpolation style back to the clients. Clients use an Adaptive Instance Normalization (AdaIN) mechanism to project this global style onto their local images. They then train their local models using a triplet loss function, forcing the network to map original images and style-transferred images of the same class close together in the feature space, effectively learning domain-invariant representations.
  4. Aggregation: The local model weights are aggregated using standard federated averaging (FedAvg) to update the global model.
Fig. 2: The PARDON framework we present in this paper. Clients calculate their style information using their local data and a pre-trained encoder in Step 1⃝. The server extracts interpolation style by weighted averaging the local style information in Step 2⃝. Then, in Step 3⃝, local clients exploit the interpolation style to obtain style-transferred data and update their models via contrastive learning. The aggregated global model in Step 4⃝runs inference on unseen data.

Datasets

The authors evaluated PARDON across three widely recognized computer vision benchmarks:

  • PACS: Contains 4 distinct domains (Photo, Art-Painting, Cartoon, Sketch) across 7 object classes.
  • Office-Home: Features 4 domains (Art, Clipart, Product, Real-World) covering 65 classes.
  • IWildCam: A massive, highly challenging real-world dataset consisting of wild animal camera traps spread across 243 training domains and 182 classes.

Key Insights and Ideas

  • The Power of the Median: Traditional aggregation methods use simple averaging, which allows dominant domains to overshadow rarer ones. PARDON's use of cluster-based medians ensures equitable knowledge transfer across highly skewed client distributions.
  • Style Statistics as a Privacy Shield: Instead of sharing raw features or class prototypes, PARDON only shares highly abstracted style statistics. The authors proved via Generative Adversarial Network (GAN) reconstruction attacks that it is mathematically impractical for an adversary to reverse-engineer private user images from these client-level style vectors.
  • Decoupling Style from Training Rounds: By calculating the global interpolation style as a one-time cost before iterative training begins, PARDON remains entirely unaffected by client sampling issues during individual training rounds.

Key Results

PARDON demonstrated substantial performance leaps over five state-of-the-art FedDG baselines (including FedSR, FedGMA, and CCST):

  • Unseen Domain Accuracy: Under Leave-One-Domain-Out (LODO) validation, PARDON achieved top tier performance, outperforming the closest baseline on the PACS dataset by 4.63% on the Cartoon domain and 4.12% on the Sketch domain. Overall, performance improvements over baselines ranged from 3.64% to 57.22%.
  • Robustness to Extreme Heterogeneity: On the massive IWildCam dataset, when domain overlap between clients was reduced to zero ($\lambda = 0$), baseline methods suffered catastrophic performance drops of up to 50%. PARDON remained highly stable, experiencing only a minor 19% drop and maintaining the highest accuracy.
Fig. 3: Convergence curve when the training round increases on PACS’s Sketch, and the training domains are Art-Painting and Cartoon; decreasing domain heterogeneity from left to right. λ = 0 means domain separation while λ = 1.0 means homogeneous domain distribution.
  • Low Computational Overhead: As shown below, PARDON introduces negligible computational costs. The global style extraction is a one-time operation taking a mere 3.3 seconds, while its local training time remains comparable to or faster than existing methods.
Fig. 4: Computational overhead of FedDG methods.

Limitations and Future Work

While PARDON excels in computer vision tasks, its architecture relies heavily on a pre-trained vision encoder (VGG) and style-transfer modules (AdaIN). The paper does not explore how this methodology translates to non-visual modalities, such as natural language processing (NLP) or tabular data, where "style" cannot be easily defined by channel-wise feature statistics. Adapting interpolative style transfer for text or audio federated domains remains an open area for future research.

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. In addition, certain methods enable information sharing among clients, raising privacy concerns as this information could be used to reconstruct sensitive private data. To overcome this, we introduce FISC, a novel FedDG paradigm designed to robustly handle more complicated domain distributions between clients while ensuring security. 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 on unseen domains, with improvements ranging from 3.64% to 57.22% on unseen domains. Our code is available at https://github.com/judydnguyen/PARDON-FedDG.
BibTeX
@inproceedings{nguyen2025pardon,
  author = {Dung Thuy Nguyen and Taylor T. Johnson and Kevin Leach},
  title = {{PARDON: Privacy-Aware and Robust Federated Domain Generalization}},
  booktitle = {ICDCS},
  year = {2025},
  doi = {10.1109/icdcs63083.2025.00074},
}
Figure