Manuscript Offprint
arXiv:2611.01498FedUDG: Federated Domain Generalization with Unlabeled Clients
Junyu Ren, Wensheng Gan, Philip S. Yu, Life Fellow, IEEE
Abstract—Federated domain generalization (FDG) aims to learn models that generalize reliably to out-of-distribution (OOD) environments without centralizing client's data. However, existing FDG methods assume that all source clients have labeled data, limiting their ability to leverage the abundant unlabeled client data available in practice. To address this limitation, we propose FedUDG. At the federation level, FedUDG utilizes a parameter-functional differentiation strategy that maintains a semantic anchor updated solely using ground-truth labels. The remaining parameters absorb knowledge from unlabeled domains under bounded aggregation, preventing domain-biased noise from eroding the class semantics. Within each unlabeled client, FedUDG utilizes a student-teacher framework with two complementary objectives: (1) semantic self-training on high-confidence samples, using the functional differentiation between the semantic anchor and classifier to constrain the model to learn semantically pure and cross-domain stable features; and (2) label-free representation distillation on all unlabeled samples to stabilize learning under appearance variations. Together, these objectives guide the model toward a transferable feature space, while mitigating overfitting to domain-specific characteristics. Furthermore, to address the lack of systematic evaluation of FDG under formal privacy constraints, we develop a sample-level differentially private extension, DP-FedUDG, to quantify the trade-off between privacy and OOD generalization. Across four evaluation protocols, FedUDG consistently outperforms state-of-the-art baselines. The code is available at https://github.com/Jr10426/FedUDG
Index Terms—Federated learning, federated domain generalization, federated semi-supervised learning, differential privacy.
I. INTRODUCTION
Federated learning (FL) enables multiple clients to train a model collaboratively without directly exchanging raw data [1]. Clients exhibit heterogeneity in data distributions, acquisition processes, and dataset sizes. Such heterogeneity can induce client drift, divergent local objectives, and slow convergence [2], [3]. Several optimization methods address these differences among participating clients [2], [3]. However, their evaluations generally focus on distributions represented during training and do not directly assess performance in unseen environments. In deployment, changes in environments and acquisition devices can introduce distributional shifts between source and target data. Robustness to these OOD shifts is important for reliable deployment [4]. Domain generalization (DG) studies how to learn from multiple observed source domains and generalize to an unseen target domain [5], [6]. Centralized DG usually assumes joint access to all source-domain data, which is infeasible across institutions. Federated domain generalization (FDG) instead uses variation across source clients while keeping raw data local. Existing FDG methods address domain shifts through alignment [7], data manipulation [8], learning strategies [9], and aggregation optimization [10].
Despite recent progress, FDG remains underexplored in realistic settings where annotation is scarce. Annotation typically demands domain expertise and sustained human effort, making it realistic for a few clients to provide labels while many others possess only unlabeled samples. Federated semi-supervised learning (FSSL) [11]–[13] has been proposed to address label scarcity. FSSL assumes that training and test data come from the same distribution [12], [14], whereas FDG requires generalization to unseen out-of-distribution clients. This fundamental difference renders existing FSSL methods inapplicable to FDG tasks with unlabeled source clients: FSSL only needs to consider model performance on in-distribution clients and thus tends to learn domain-specific features during optimization. These features indeed can boost performance on unlabeled clients locally, but they do not constitute transferable class semantics and thus harm out-of-distribution generalization [15]. For FDG tasks with unlabeled clients, this implies a dual requirement: we should exploit unlabeled data for learning while simultaneously constraining the influence of domain-specific information. Furthermore, formal privacy protection remains underexplored in FDG. Several FDG studies regard local data retention as a privacy safeguard [16], [17], while others report low leakage under selected inversion attacks [18]. However, a rigorous privacy guarantee requires an explicit adjacency relation, a randomized mechanism, and cross-round privacy accounting [19]–[21]. Taken together, existing FDG research has two limitations: (1) it does not exploit unlabeled clients to improve OOD generalization; and (2) it does not evaluate generalization under formal privacy constraints.
To address these challenges, we propose FedUDG, a novel approach for FDG with unlabeled clients that bridges the gap illustrated in Fig. 1. Our method operates through two core mechanisms: (1) Federated-level semantic protection. We introduce a parameter-functional differentiation strategy. Specifically, we maintain a semantic anchor updated exclusively using ground-truth labels, serving as a stable reference for class semantics. The remaining parameters, including the classifier, can incorporate knowledge from unlabeled clients. The core rationale for this design is as follows: although
This research was supported in part by the National Natural Science Foundation of China (No. 62272196) and Guangzhou Basic and Applied Basic Research Foundation (No. 2024A04J9971).
Junyu Ren and Wensheng Gan are with the College of Cyber Security, Jinan University, Guangzhou 510632, China. (E-mail: renjunyu193@gmail.com, wsgan001@gmail.com)
Philip S. Yu is with the Department of Computer Science, University of Illinois Chicago, Chicago, USA. (E-mail: psyu@uic.edu)
Corresponding author: Wensheng Gan.

Fig. 1. Comparison of the problem settings of FSSL, FDG, and this work. FSSL jointly exploits labeled and unlabeled data but typically evaluates on the client distributions seen during training. FDG targets OOD generalization to unseen target clients but generally assumes that all source clients are labeled. FedUDG addresses both heterogeneous label availability across source clients and generalization to an unseen OOD target client.
unlabeled data carries rich cross-domain knowledge, noise in supervisory signals introduced by domain bias can compromise the model. By partitioning parameters into two categories: those maintained solely by ground-truth labels and those receiving knowledge from unlabeled clients, we enable the global update to leverage information from unlabeled clients while remaining constrained within the boundaries by genuine class semantics. (2) Semi-supervised representation learning with transferability constraints. To provide stable and consistent learning objectives for unlabeled clients, we adopt a student-teacher framework. Building upon the parameter-functional differentiation strategy, we supervise the student model via a consensus mechanism derived from the teacher: a sample receives supervisory signals to guide student learning only when the semantic anchor and classifier agree on the same class with high confidence and maintain consistent predictions under independent perturbations. The core insight is that the two predictors maintain fundamentally different supervisory characteristics: the semantic anchor represents a pure semantic baseline, while the classifier carries cross-domain bias. Their consensus helps ensure that the supervisory targets are both semantically faithful and stable across domain variations. This supervision strategy guides the model's learning process toward a transferable feature space, mitigating overfitting to domain-specific cues. Concurrently, for all unlabeled samples, we employ label-free representation distillation, aligning the student's strongly augmented representations with the teacher's weakly augmented ones. This objective encourages consistency and robustness in the representation space, enabling the model to make use of all unlabeled data while reducing sensitivity to domain-related appearance variations.
Based on this framework, we extend FedUDG with sample-level differential privacy, resulting in DP-FedUDG, which allows us to quantify the trade-off between privacy and OOD generalization. Our contributions are summarized as follows.
- To the best of our knowledge, this is the first study of federated domain generalization with unlabeled clients.
- We propose a parameter-functional differentiation strategy that maintains a semantic anchor updated solely using ground-truth labels as a stable reference, enabling the model to absorb cross-domain knowledge from unlabeled
clients while remaining aligned with genuine class semantics. This design allows the model to effectively leverage unlabeled clients for FDG.
-
We introduce a student-teacher framework with two objectives: semantic self-training on credible samples that leverages the distinct roles of the semantic anchor and classifier to learn semantically faithful and cross-domain stable features, and representation distillation on all unlabeled samples to stabilize learning under appearance variations without semantic supervision. These objectives guide the model toward a transferable feature space, mitigating overfitting to domain-specific characteristics.
-
We develop DP-FedUDG, a sample-level differentially private extension, and evaluate the trade-off between privacy budget and OOD generalization under an explicit adjacency relation and cross-round privacy accounting.
-
Across four evaluation protocols, FedUDG achieves the highest mean accuracy on unseen target clients in 12 of the 13 evaluated settings.
The remainder of this paper is organized as follows. Section II reviews related work. Section III presents FedUDG. Section IV reports the experimental results and analysis. Section V concludes the paper and discusses future research directions.
A. Federated Domain Generalization
Federated domain generalization [22] trains a model collaboratively on multiple source clients without exchanging raw data and deploys it to a target client that is unseen during training. Unlike conventional FL, which focuses on average performance over participating distributions, FDG evaluates generalization to a non-participating target distribution. Existing FDG methods fall into four main categories [22]: (1) Federated domain alignment methods reduce discrepancies among client representations or prediction distributions without sharing raw samples. Representative implementations include statistical distance constraints [23], adversarial alignment [24], and cross-client feature alignment [7]. FedAlign [7] transfers and aligns features across clients so that each local model observes representation variations from other source domains. These methods use a shared representation space to exchange knowledge and promote more consistent decision structures across clients. (2) Data-manipulation methods expand the observed support of source domains to simulate potential distribution shifts. Common strategies include data generation [25], data augmentation [8], [26], and normalization [27]. FedDG [8] exchanges and interpolates amplitude information in the frequency domain and uses episodic learning to simulate continuous domain shifts. CCST [26] exchanges client-level channel-style statistics and transfers them to labeled samples for cross-client style augmentation. (3) Learning-strategy methods use local objectives and training procedures to learn transferable representations. They include domain-invariant representation learning [9], [28], adversarial learning [24], feature disentanglement [25], meta-learning [8], knowledge distillation [29], and invariant-risk regularization [9], [15]. Representation learning and feature disentanglement respectively model shared discriminative structure and domain-specific factors. Meta-learning and episodic training construct simulated domain-transfer tasks across source clients. (4) Aggregation-optimization methods adjust how local models, gradients, or client weights are combined at the server [10], [30]. FedDGA [10] adjusts client contributions according to generalization gaps. FedOMG [30] matches client gradients and balances the average descent direction with cross-domain consistency.
These methods generally assume that all source clients are labeled and rely on ground-truth supervision to learn transferable features. They do not consider source clients without labels, where unlabeled supervision may introduce pseudo-label noise and domain-specific shortcuts. FedUDG extends this setting to labeled and unlabeled source clients while retaining evaluation on an unseen OOD target.
B. Federated Semi-Supervised Learning
Federated semi-supervised learning [11] studies collaborative learning when raw data are decentralized and labels are incomplete. Where labels reside determines both the supervision available to the algorithm and the paths through which pseudo-label errors propagate. Existing work can be organized into three settings according to client-level label topology: (1) Under intra-client partial labeling, every client contains a small labeled subset and a larger unlabeled subset. FedMatch [11] uses parameter decomposition and inter-client consistency to reduce interference between supervised and unsupervised objectives. SAGE [31] exploits confidence discrepancies between local and global models to correct mismatched pseudo-labels, and ProxyFL [32] uses classifier proxies and a cross-client proxy pool to recover low-confidence samples. Since each client has some ground-truth labels, local supervision can directly calibrate pseudo-label thresholds, class priors, and decision boundaries. (2) Under inter-client label separation, some clients are fully labeled while the others are fully unlabeled, so unlabeled clients receive no local supervision. FedIRM [12] extracts class relations from labeled clients and matches them on unlabeled clients. RSCFed [14] samples client models to construct multiple sub-consensus models and reweights them by model distance. XCLP [33] performs label propagation over a cross-client data graph. FedRVR [34] models data and model relations and uses relation-guided aggregation to reduce the influence of biased unlabeled clients, and FedPDM [35] progressively matches pseudo-label distributions through optimal transport. These methods mainly stabilize the use of fully unlabeled clients through relational, consensus-based, or distributional constraints. (3) Under server-side labeling, a small labeled set resides on the server and all clients are unlabeled. SemiFL [36] alternates between supervised server fine-tuning and client-side pseudo-label training. [37] combines adaptive thresholds, sharpness-aware consistency, and learning-state-aware aggregation, and B SemiFL [38] fuses global and local predictions in a Bayesian manner to generate pseudo-labels. In this setting, the server-labeled set provides a common reference for checking and correcting client-generated pseudo-labels.
Inter-client label separation is closest to the data topology studied here, but existing methods in this setting mainly optimize semi-supervised classification over the participating client distributions and do not evaluate generalization to an unseen target client [12], [14], [34]. Under source-target shifts, even correctly predicted pseudo-labels may reinforce domain-specific shortcuts, and unlabeled updates may propagate the resulting biases into the global model. FedUDG adopts the same label topology but targets generalization capability: it learns from unlabeled clients through semantic self-training and representation distillation that encourage cross-domain semantic consistency and stability under appearance perturbations.
C. Privacy in Federated Domain Generalization
Several FDG studies frame privacy in terms of local data retention and restricted information exchange. FADH [16] keeps its domain hallucinator local and exchanges nothing beyond model weights, and BPF [17] communicates through client-side proxy models and transfers knowledge by mutual distillation. These designs avoid exposing raw samples or explicit domain statistics, but the server still observes model or proxy-model updates, from which training records may be reconstructed [39]. Other methods replace sample exchange with compact statistics or parameters. CCST [26] transmits channel-wise style statistics, FedAlign [7] shares feature means and variances for cross-client feature expansion, and PLAN [40] encodes domain knowledge in lightweight visual and textual prompts that are exchanged and aggregated. PARDON [18] uploads client-level style statistics to construct interpolated global styles, and empirically evaluates style leakage through generative reconstruction attacks. Such abstraction reduces direct information exposure and can resist selected inversion attacks [18]. However, these methods assess privacy through data localization, information abstraction, or attack experiments. They typically neither specify a sample-level adjacency relation nor account for privacy loss across communication rounds, and therefore do not provide a composable guarantee. To examine unseen-domain generalization under formal privacy constraints, we develop DP-FedUDG, which applies sample-level differential privacy with cross-round privacy accounting to FedUDG.
III. PROPOSED METHOD
This section defines the task and presents FedUDG's learning objectives, model aggregation, and privacy extension.
A. Problem Formulation and Method Overview
Suppose that source clients participate in federated training. Their set is , where contains fully labeled clients and contains fully unlabeled clients. We assume , , and . Each source client represents a training

Fig. 2. Overall architecture of FedUDG. Labeled clients learn the encoder, classifier, and semantic anchors from ground-truth labels. Within a student-teacher framework, unlabeled clients perform semantic self-training on credible samples and label-free representation distillation on all samples. The server follows the parameter-functional differentiation strategy when aggregating model components and updates the EMA teacher.
environment with joint distribution . All clients share the input space and label space , but their data distributions may differ. A labeled client holds sampled independently from . An unlabeled client observes only sampled from the marginal distribution , and its class labels are unavailable during training. The unseen target client is denoted by , where . Its joint distribution differs from those of all source clients: for every . The target test set is used only after training. Given and , the goal is to learn a predictor through federated collaboration without exchanging raw data. Its target risk is , where is the per-sample classification loss.
Fig. 2 shows the FedUDG architecture. FedUDG combines a parameter-functional differentiation strategy with a student-teacher framework for learning from unlabeled clients. Labeled data provide class-semantic supervision, whereas unlabeled data provide cross-domain representation signals. The server maintains a student model and an exponential moving average (EMA) teacher [41]. The student consists of an encoder , a linear classifier , and cosine semantic anchors . The corresponding teacher parameters are . FedUDG first uses ground-truth labels to establish the shared representation, linear decision boundary, and semantic anchors. The EMA teacher provides consensus-based soft semantic targets for semantic self-training on credible samples and representation targets for label-free representation distillation on all unlabeled samples. Each unlabeled client retains a local projection head . The server coordinates the two learning paths and updates the temporally smoothed teacher. Unlabeled clients contribute updates to the shared encoder and classifier, while labeled clients update the semantic anchors. After training, the EMA checkpoint with the best labeled-source validation score is selected, and inference uses only and .
B. Supervised Learning on Labeled Clients
Labeled clients form the supervised semantic-learning path and train the encoder, linear classifier , and semantic anchors with ground-truth labels. For an encoder feature , the linear classifier produces . The semantic-anchor matrix is . Let be a numerical-stability constant, , and . Anchor predictions are given by , where is the anchor temperature. The linear classifier learns a decision boundary from unnormalized features, whereas anchor predictions provide a geometric semantic reference through the cosine similarity between feature directions and class directions.
For a labeled sample , the client draws one view from the weak augmentation distribution and obtains ; the superscript indexes an independent augmentation draw. The same feature is passed to and . A labeled client minimizes
where weights the anchor loss. At round , every labeled client starts from the same global student state and obtains after local optimization, with each transmitted anchor row normalized to unit norm. The superscript denotes a state after local training in round and before the next global update. The server averages corresponding parameters equally across labeled clients, giving . Unlabeled training begins after supervised warm-up to reduce reliance on poorly calibrated early teacher predictions. During joint training, labeled clients continue to optimize Eq. (1) in each round before their updates are fused with those from unlabeled clients.
C. Unlabeled-Client Learning
Each unlabeled client receives the current student and EMA teacher. The teacher produces semantic evidence and representation targets from weakly augmented inputs, while the student learns from strongly augmented inputs. This student-teacher framework combines two objectives: semantic self-training on credible samples selected by teacher consensus and label-free representation distillation on all unlabeled samples.
- Teacher consensus and soft-target construction: For an unlabeled sample , the client draws two independent weak augmentations, and , and one strong augmentation . The weakly augmented inputs are passed through the teacher encoder and classifier to obtain and . The teacher feature of the first weakly augmented input is also passed to the teacher anchors, giving . For each prediction , let and . A sample is admitted only when three conditions hold. Class agreement requires and excludes explicit semantic conflicts. This condition cross-checks the linear classifier against cosine semantic anchors maintained by labeled-client supervision. The confidence condition requires , preventing low-confidence predictions from passing solely because their predicted classes agree. For distributional consistency, let be the ordered collection of three predictions and . The sample must further satisfy , which limits disagreement among the full predictive distributions beyond the top-1 class. Because the linear classifier and anchors receive different supervision, their consensus selects samples with confident, mutually consistent semantic predictions for self-training. Let indicate whether all three conditions hold. For an admitted sample, the classwise log-consensus score is . The normalized geometric mean then defines the soft semantic target
The geometric mean reduces the weight of any class that receives a low probability from one prediction. It is computed in log space to avoid numerical underflow. The full probability vector integrates the three teacher predictions and provides semantic supervision for the strongly augmented input.
- Semantic self-training for admitted samples: Admitted samples provide semantic supervision through the EMA teacher's consensus soft semantic target. The student matches this target under strong augmentation, encouraging class-consistent predictions across source domains and prediction stability under the applied appearance perturbations. The student prediction on is . The teacher-derived and are treated as constants during local optimization. For a mini-batch on unlabeled client , the semantic loss is
where is soft-target cross-entropy. Normalizing by the number of admitted samples reduces changes in loss scale across mini-batches with different admission rates. If no sample is admitted, is set to zero. This design follows the weak-to-strong augmentation consistency principle of FixMatch [42], while combining predictions from the classifier and semantic anchors.
- Label-free representation distillation: To exploit all unlabeled samples, FedUDG complements semantic self-training with label-free representation distillation. The teacher provides representation targets for every sample, including those not admitted for semantic self-training. For the same sample, the EMA teacher extracts a stable target representation from a weakly augmented input, while the student encoder extracts a representation from a strongly augmented input. A local projection head maps the student representation into the teacher feature space. The distillation loss is
where denotes cosine similarity and sg stops gradients. The fixed target branch provides a stable reference during local optimization, while the local projection head maps the student's representation of the strongly augmented input toward the teacher's representation of the weakly augmented input. This asymmetric design is inspired by SimSiam [43] and uses an EMA teacher to provide temporally smoothed targets. Equation (4) enforces consistency in representation space using teacher features as targets, independently of class-semantic supervision. This consistency stabilizes feature learning under the applied appearance perturbations and promotes transfer to unseen domains.
- Local unlabeled objective: The two unlabeled-client losses are combined with a proximal regularizer to control client drift:
where controls representation distillation, controls semantic self-training, and is the proximal coefficient. Here, is the vector of trainable encoder parameters. The proximal term uses the global encoder distributed at the beginning of round as its reference. It limits excessive drift of on heterogeneous unlabeled data [2].
Let be the number of warm-up rounds and be the ramp-up duration. The semantic weight is , where
Representation distillation remains active throughout joint training, while the ramp-up limits the influence of early teacher predictions. Together, the two objectives encourage cross-domain semantic consistency and stabilize discriminative learning under appearance perturbations, supporting generalization to unseen domains.
D. Model Aggregation and EMA Teacher Update
Following the parameter-functional differentiation strategy, the server aggregates model components from the two client groups separately after local training. Labeled clients upload , , and . Unlabeled clients upload and and retain locally across rounds. Therefore, the encoder and classifier incorporate updates from both groups, whereas the anchors are supervised only by ground-truth labels from labeled clients. Let and denote the group states after equal-client averaging at round . The labeled-group anchor is , where normalizes each row to unit norm. The server fuses the encoder and classifier with a bounded coefficient and updates the student anchors only from the labeled group:
(7)
Here, and . Averaging within each group prevents the more numerous unlabeled clients from receiving greater weight solely because of their number. The bound on controls the weight of potentially biased unlabeled updates in the global encoder and classifier.
After obtaining the global student for round , the server updates the teacher by EMA. The teacher anchor is normalized separately after mixing the previous teacher anchor with the newly aggregated student anchor:
(8)
where is the EMA decay at round . For a base per-step decay , we use , where is the rounded mean number of labeled-client local optimization steps in round , lower-bounded by one. The server updates the teacher once after each global aggregation. Temporal averaging provides more stable semantic and representation targets than the instantaneous student [41]. Teacher parameters remain fixed during local training, and is neither aggregated nor included in the EMA update.
E. Sample-Level Differential Privacy Extension
Generalization under formal privacy constraints remains underexplored in FDG. We therefore extend FedUDG with sample-level differential privacy [21] and call the resulting method DP-FedUDG.
- Threat model and privacy unit: DP-FedUDG considers an honest-but-curious server that follows the training protocol but may inspect client messages. Clients are assumed to execute local optimization as specified. The privacy unit is one local training sample. Let denote two adjacent datasets on the same client that differ by the addition or removal of one sample. A randomized client-training mechanism Priv satisfies sample-level -differential privacy if, for every measurable output event ,
The probability is over the internal randomness of the mechanism. bounds the distinguishability of output distributions induced by adjacent datasets, and is the permitted failure probability. This definition bounds the influence of any one training sample on both the client update and the final model derived from such updates [21].
- DP-compatible masked objective: The non-private semantic loss is normalized by the number of admitted samples. This data-dependent denominator makes each sample's gradient scale depend on other admissions in the mini-batch. DP-FedUDG constructs the private data objective from separable semantic and distillation terms. Let and , and let denote the cosine-distance summand in Eq. (4). The unreduced loss for sample on an unlabeled client is
The admission mask, soft semantic target, and teacher representation are computed using and the fixed EMA teacher. Each sample therefore contributes independently, and rejected samples retain their distillation term. Both loss terms share the expected-batch normalization applied after per-sample clipping and noise addition in Eq. (11). On a labeled client, the unreduced per-sample loss is the summand of Eq. (1), . The encoder proximal term is applied separately as a deterministic update after the private data-gradient step.
- Client-side DP-SGD and privacy accounting: Clients use Poisson sampling, independently selecting each local record at every step with sampling rate . This sampling mechanism provides privacy amplification and supports explicit privacy accounting [19]. Let be any source client and let denote its optimizable parameter vector. For , this vector concatenates the parameters of . For , it concatenates those of . For unreduced per-sample loss , DP-SGD [19] computes , clips it by the global norm, and adds isotropic Gaussian noise to the sum of clipped gradients:
Here, is the expected Poisson batch size used by the DP optimizer, C is the clipping threshold, is the noise multiplier, and I is the identity matrix with the same dimension as the parameter vector. The realized size is random and does not replace in the noised-gradient normalization. Clipping bounds the contribution of one sample to an update, while controls the privacy-utility trade-off. BatchNorm in training mode couples samples through batch statistics. DP training therefore freezes both the running statistics and affine parameters of the pretrained BatchNorm layers. Although the local projection head is not communicated, its state affects shared updates in later rounds. It is consequently included with the encoder and classifier in per-sample clipping and noise addition. Each client maintains a separate Rényi differential privacy (RDP) accountant [20]. The accountant accumulates Rényi privacy loss using the actual
Algorithm 1 Training of FedUDG
Input: Client datasets and ; warm-up rounds ; total rounds .
Output: Selected EMA encoder and classifier .
1: Initialize the global student ; 2: Set ; 3: Initialize local projection heads . 4: for do 5: Server: broadcast the student to labeled clients; 6: for all labeled clients in parallel do 7: Set ; 8: Draw one weak augmentation per sample; 9: Optimize using Eq. (1); 10: Upload to the server. 11: end for 12: Server: average models from into ; normalize . 13: if then 14: Set and using Eq. (6); 15: Server: send student and teacher to unlabeled clients; 16: for all unlabeled clients in parallel do 17: Set ; 18: Draw , , and for each sample; 19: Compute teacher predictions ; 20: Obtain by agreement, confidence, and JS tests; 21: Compute for admitted samples by Eq. (2); 22: Compute and by Eqs. (3) and (4); 23: Optimize using Eq. (5); 24: Upload ; retain locally. 25: end for 26: Server: equally average unlabeled models; apply Eq. (7). 27: else 28: Server: use labeled-group averages as the next student. 29: end if 30: Server: update the EMA teacher using Eq. (8); 31: Evaluate the EMA model on labeled-source validation sets; 32: Retain if the mean score improves. 33: end for 34: return .
Poisson sampling rate, the number of local optimization steps, and the number of participating rounds, and converts it to -DP for a specified [21]. Privacy losses across local steps and communication rounds on the same client compose sequentially. Because clients hold disjoint records, parallel composition applies across clients, and the system-level sample privacy budget is . Server aggregation, EMA updates, and inference are post-processing operations on privatized updates and consume no additional privacy budget.
F. End-to-End Training and Inference
As summarized in Algorithm 1, FedUDG begins with a supervised warm-up phase using only labeled clients, followed by joint training with labeled and unlabeled clients. During joint training, labeled clients continue supervised optimization, while unlabeled clients optimize the semantic self-training and label-free representation distillation objectives. At the start of each joint-training round, every participating client initializes its shared trainable parameters from the current global student. On unlabeled clients, the EMA teacher provides semantic and representation targets and remains fixed throughout local optimization. Each unlabeled client retains its local projection head across rounds. After aggregating client updates, the server updates the EMA teacher for the next round. The EMA checkpoint with the highest equally weighted mean validation accuracy across labeled source clients is retained for inference.
DP-FedUDG follows the same procedure but replaces local optimization on labeled and unlabeled clients with DP-SGD, as defined in Eq. (11). Each client's privacy accountant is updated accordingly. At inference, the selected EMA encoder and linear classifier predict .
IV. EXPERIMENTS
This section evaluates FedUDG across four protocols and examines its component contributions, parameter sensitivity, and performance under differential privacy.
A. Datasets and Evaluation Protocols
FedUDG is evaluated on three visual-domain benchmarks. PACS [44] contains four domains, Photo (P), Art Painting (A), Cartoon (C), and Sketch (S), with seven shared classes. DomainNet [45] contains six domains and 345 classes; we use its seven-class subset aligned with PACS, denoted miniDomainNet, covering Real (R), Painting (P), Clipart (C), Quickdraw (Q), Infograph (I), and Sketch (S), where the DomainNet class face is mapped to the PACS class person. VLCS [46] contains four domains, VOC2007 (V), LabelMe (L), Caltech101 (C), and SUN09 (S), with five shared classes. To assess the robustness of unseen-domain generalization across diverse federated settings, we consider four evaluation protocols. These protocols vary the source domains represented by labeled and unlabeled clients, the degree of within-domain class imbalance, and the coverage of labeled supervision:
-
PACS-DomainNet joint dataset: Each PACS domain is held out in turn as the unseen target. The remaining PACS domains provide labeled clients, and all six miniDomainNet domains provide unlabeled clients. Each source domain forms one client or is randomly partitioned into two or four clients, yielding , , and , respectively. An additional setting uses within-domain Dirichlet partitions with and . This protocol emphasizes feature shifts between labeled and unlabeled clients.
-
miniDomainNet with within-domain class imbalance: Each of the six domains serves once as the unseen target. Each remaining source domain is partitioned into three disjoint clients through a class-wise Dirichlet allocation, with one client fully labeled and two fully unlabeled, giving . We use to vary class-proportion heterogeneity. Both label roles are therefore represented within every source domain.
-
VLCS with within-domain class imbalance: Each of the four domains serves once as the unseen target. The remaining three source domains follow the same partitioning and label-assignment procedure as miniDomainNet, yielding under .
-
Single labeled-source domain: Each source domain forms one client. X-Y denotes that X is the only labeled source client, Y is the unseen target client, and the remaining domains provide fully unlabeled source clients. For example, V-S uses VOC2007 as the labeled source,
TABLE I MODEL AND TRAINING CONFIGURATION
| Parameter | Value |
|---|---|
| Backbone | ImageNet-pretrained ResNet-18 |
| Input resolution | 224 × 224 |
| Communication rounds | 80 |
| Local epochs | 5 |
| Batch size | 16 |
| Optimizer | SGD |
| Initial learning rate | |
| Momentum | 0.9 |
| Weight decay | |
| LR schedule | |
| Random seed | 1337, 1338, 1339 |
SUN09 as the target, and LabelMe and Caltech101 as unlabeled sources.
In the four evaluation protocols, data of labeled clients is split into 80% and 20% for training and validation, respectively.
B. Implementation Details and Baselines
All experiments are implemented in PyTorch with Python 3.9 and run on an NVIDIA® GeForce RTX 4090 GPU. Table I summarizes the shared training settings, including the ImageNet-pretrained ResNet-18 backbone [47], [48]. All experiments were implemented in PyTorch based on Python 3.9. The hardware platform consisted of an NVIDIA® GeForce RTX 4090 GPU. FedUDG uses 10 supervised warm-up rounds, followed by one unlabeled local epoch per communication round. The base per-step EMA decay is , converted to a round-level decay as described in Section III. The confidence and JS thresholds for consensus-based sample admission are and . The anchor temperature , anchor-loss weight , representation-distillation weight , and maximum semantic-loss weight are set to 0.1, 1.0, 0.5, and 1.0. The maximum unlabeled mixing weight is 0.5 and increases linearly during the first 20 joint-training rounds. The encoder proximal coefficient is , and the hidden dimension of the local projection head is 512. The weak augmentation consists of RandomResizedCrop with scale [0.7, 1.0], random horizontal flipping with probability 0.5, ColorJitter with magnitude 0.4, random grayscale conversion with probability 0.1, and ImageNet normalization. The strong augmentation uses the same random crop and horizontal flip, followed by RandAugment [49] with two operations and magnitude 10, and then ImageNet normalization. FedUDG hyperparameters are set empirically and selected or checked using only labeled-source validation data.
We compare FedUDG with eight baselines from two families. The FSSL baselines are FedIRM [12], FedPDM [35], FedRVR [34], and RSCFed [14]. They share the client-level label topology of FedUDG, but they are designed for semi-supervised classification on the participating client distributions rather than OOD generalization to an unseen client. The FDG baselines are FedGA [10], FedAlign [7], FedDIM [28], and FedIIR [9]. They target generalization to unseen domains but assume that every source client is fully labeled, and are therefore trained only on the labeled source clients. The two families
thus provide complementary references: FSSL methods use unlabeled clients but lack an explicit OOD objective, whereas FDG methods pursue OOD generalization but are restricted to labeled data. FedUDG addresses both aspects in a single framework. To control for model capacity and training budget, all methods use the same backbone and the shared settings in Table I, while method-specific objectives, augmentations, and hyperparameters follow the original papers or public implementations. We report the classification accuracy on the unseen target client, averaged over three independent runs.
C. Main Results
Table II reports the results on the PACS-DomainNet joint dataset. FedUDG achieves the best mean accuracy in all four settings and the best result in 16 of the 20 reported columns. It outperforms the strongest baseline, FedDIM, by 2.39, 2.43, 2.99, and 3.51 percentage points, and the strongest FSSL baseline by 5.51, 7.02, 8.91, and 10.58 points. As the federation grows larger and more heterogeneous, FedUDG stays more stable than the baselines, and its advantage widens. From to , , FedUDG drops by only 2.27 points, whereas the FDG and FSSL baselines drop by 3.39–4.52 and 5.52–19.12 points, respectively. Notably, every FDG baseline outperforms every FSSL baseline in mean accuracy in all settings, even though the FDG baselines use no unlabeled data. The gap between the best methods of the two groups also widens from 3.12 to 7.07 points as increases. Access to additional unlabeled clients alone therefore does not ensure better OOD generalization. FedUDG outperforms all evaluated baselines under this protocol, supporting the effectiveness of its controlled semantic transfer across labeled and unlabeled domains. Fig. 3 offers qualitative insights into the FDG–FSSL performance gap. FedUDG and the FDG baselines tend to align classes across domains and form tighter within-class clusters of source and target samples. In contrast, FSSL appears to struggle with cross-domain alignment, often fragmenting instances of the same class into separate subclusters. This pattern suggests that domain alignment is an important factor for OOD generalization.
Tables III and IV report the results under within-domain Dirichlet partitions. On miniDomainNet, FedUDG achieves mean accuracies of 79.08%, 77.92%, and 70.95% for , and 0.1, respectively. These results exceed the strongest FDG baseline in each setting by 0.25, 0.34, and 0.89 percentage points. The gains over the strongest FSSL baseline range from 6.36 to 6.99 points. On VLCS, FedUDG reaches 74.40%, 73.06%, and 62.85% under the same three values. It leads the strongest baseline by 0.11 points at and 1.49 points at , but trails FedIIR by 0.20 points at . FedUDG thus achieves the highest mean accuracy in five of the six settings across the two datasets. Note that to focus on exploring how unlabeled clients enhance OOD generalization, FedUDG does not employ standard FDG strategies for labeled clients, suggesting synergistic potential with existing FDG methods. However, decreasing from 10 to 0.1 reduces its mean accuracy by 8.13 points on miniDomainNet and 11.55 points on VLCS. Severe class imbalance therefore remains challenging despite its competitive relative performance.
TABLE II
CLASSIFICATION ACCURACY (%) ON HELD-OUT PACS TARGETS IN THE PACS-DOMAINNET JOINT DATASET. DENOTES THE LABELED AND UNLABELED CLIENT COUNTS. BEST AND SECOND-BEST RESULTS ARE BOLD AND UNDERLINED, RESPECTIVELY.
| Method | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| P | A | C | S | Mean | P | A | C | S | Mean | P | A | C | S | Mean | P | A | C | S | Mean | |
| FedIRM [12] | 93.41 | 73.14 | 72.78 | 74.21 | 78.39 | 92.57 | 73.71 | 72.01 | 73.56 | 77.96 | 90.16 | 72.68 | 71.17 | 72.59 | 76.65 | 87.51 | 71.93 | 68.12 | 62.24 | 72.45 |
| FedPDM [35] | 91.02 | 76.46 | 77.60 | 79.15 | 81.06 | 87.66 | 73.49 | 75.73 | 64.95 | 75.46 | 86.11 | 64.75 | 72.10 | 45.74 | 67.18 | 81.98 | 58.15 | 68.26 | 39.35 | 61.94 |
| FedRVR [34] | 95.69 | 81.15 | 74.57 | 65.69 | 79.28 | 93.89 | 79.98 | 74.70 | 59.00 | 76.89 | 93.15 | 76.98 | 70.59 | 56.21 | 74.23 | 92.34 | 74.35 | 65.23 | 45.29 | 69.30 |
| RSCFed [14] | 91.44 | 75.39 | 78.11 | 72.00 | 79.24 | 92.93 | 77.25 | 75.64 | 70.88 | 79.18 | 93.83 | 75.44 | 75.17 | 61.64 | 76.52 | 93.89 | 69.68 | 70.56 | 60.75 | 73.72 |
| FedGA [10] | 93.86 | 81.27 | 76.84 | 82.83 | 83.70 | 91.41 | 79.82 | 75.18 | 83.23 | 82.41 | 91.08 | 77.27 | 73.97 | 80.45 | 80.69 | 90.95 | 74.23 | 71.62 | 79.90 | 79.18 |
| FedAlign [7] | 94.35 | 79.13 | 76.74 | 78.17 | 82.10 | 92.24 | 78.50 | 76.99 | 75.21 | 80.74 | 91.59 | 76.42 | 74.17 | 75.59 | 79.44 | 88.54 | 73.39 | 74.14 | 74.59 | 77.67 |
| FedDIM [28] | 94.21 | 81.96 | 74.12 | 86.41 | 84.18 | 93.36 | 81.33 | 74.24 | 86.15 | 83.77 | 92.09 | 80.21 | 73.10 | 84.87 | 82.57 | 90.35 | 79.20 | 72.34 | 81.27 | 80.79 |
| FedIIIR [9] | 93.36 | 84.02 | 72.24 | 83.59 | 83.30 | 90.77 | 82.14 | 71.79 | 82.06 | 81.69 | 90.16 | 79.76 | 72.08 | 81.20 | 80.80 | 86.19 | 80.02 | 70.08 | 80.06 | 79.09 |
| FedUDG | 95.63 | 85.69 | 78.75 | 86.21 | 86.57 | 94.97 | 86.04 | 78.41 | 85.37 | 86.20 | 95.75 | 85.40 | 76.75 | 84.34 | 85.56 | 94.55 | 83.89 | 74.70 | 84.04 | 84.30 |
TABLE III
CLASSIFICATION ACCURACY (%) ON MINIDOMAINNET UNDER WITHIN-DOMAIN DIRICHLET PARTITIONS WITH . BEST AND SECOND-BEST RESULTS ARE BOLD AND UNDERLINED, RESPECTIVELY.
| Method | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| S | R | Q | C | P | I | Mean | S | R | Q | C | P | I | Mean | S | R | Q | C | P | I | Mean | |
| FedIRM [12] | 76.54 | 81.97 | 33.25 | 86.30 | 85.18 | 43.35 | 67.77 | 76.01 | 81.52 | 32.75 | 85.67 | 85.03 | 41.36 | 67.06 | 70.19 | 72.21 | 30.25 | 68.15 | 80.42 | 34.20 | 59.24 |
| FedPDM [35] | 78.72 | 83.78 | 33.86 | 88.15 | 83.14 | 45.39 | 68.84 | 77.65 | 84.51 | 33.26 | 87.58 | 84.09 | 44.12 | 68.54 | 69.74 | 74.38 | 31.98 | 70.36 | 82.29 | 38.53 | 61.21 |
| FedRVR [34] | 80.97 | 93.13 | 37.09 | 91.72 | 86.95 | 46.45 | 72.72 | 79.57 | 92.82 | 35.99 | 87.23 | 85.82 | 44.15 | 70.93 | 62.36 | 88.95 | 38.21 | 69.20 | 79.41 | 47.09 | 64.20 |
| RSCFed [14] | 81.19 | 89.22 | 34.57 | 90.61 | 85.17 | 45.11 | 70.98 | 80.90 | 87.50 | 36.51 | 89.10 | 87.00 | 44.55 | 70.93 | 61.50 | 55.10 | 39.00 | 70.90 | 76.80 | 48.20 | 58.58 |
| FedGA [10] | 84.01 | 94.08 | 56.29 | 92.61 | 88.62 | 43.98 | 76.60 | 82.70 | 93.95 | 54.71 | 89.33 | 87.91 | 43.25 | 75.31 | 64.26 | 87.19 | 49.04 | 73.58 | 85.92 | 42.59 | 67.10 |
| FedAlign [7] | 86.44 | 93.17 | 52.91 | 92.61 | 91.05 | 50.88 | 77.84 | 84.28 | 93.17 | 50.26 | 91.43 | 90.21 | 50.02 | 76.56 | 76.53 | 89.12 | 45.78 | 72.83 | 88.50 | 44.39 | 69.53 |
| FedDIM [28] | 85.63 | 93.86 | 57.60 | 91.23 | 90.67 | 50.58 | 78.26 | 85.11 | 93.91 | 55.78 | 88.32 | 88.53 | 48.05 | 76.62 | 79.45 | 90.18 | 47.06 | 68.15 | 88.10 | 47.43 | 70.06 |
| FedIIIR [9] | 86.99 | 93.15 | 60.46 | 90.96 | 91.19 | 50.25 | 78.83 | 84.65 | 93.06 | 59.52 | 88.27 | 89.43 | 50.56 | 77.58 | 80.21 | 85.30 | 45.97 | 66.99 | 83.59 | 48.22 | 68.38 |
| FedUDG | 86.14 | 94.86 | 58.26 | 93.25 | 91.71 | 50.25 | 79.08 | 86.09 | 94.68 | 57.99 | 90.67 | 90.83 | 47.25 | 77.92 | 81.22 | 87.79 | 53.74 | 74.65 | 86.05 | 42.22 | 70.95 |

Fig. 3. t-SNE visualization of encoder features for the Photo target in the PACS-DomainNet joint dataset .
Table V compares FedUDG with the FSSL baselines under a single labeled-source setting. FedUDG achieves the highest mean accuracy on PACS, miniDomainNet, and VLCS (68.92%, 72.14%, and 65.16%), exceeding the strongest baseline by 6.80, 4.21, and 1.38 percentage points. The strongest baseline also differs across datasets (FedRVR, FedPDM, and RSCFed). The largest gains arise under large appearance shifts, such as S-C on PACS (+9.43) and C-Q on miniDomainNet (+7.33). Across the 14 tasks, FedUDG ranks first on 7, second on 6, and third on V-S, where it is 0.83 points below the best result. The baselines are markedly less stable. For example, FedRVR is best on VLCS S-C but reaches only 23.37% on C-L, and FedPDM is best on miniDomainNet I-P but reaches only 33.65% on C-Q. FedUDG still trails the best baseline by 3.90–5.95 points on PACS P-S, miniDomainNet I-P, and VLCS C-L and S-C, indicating that a single labeled source can limit its advantage on certain source-target pairs.
D. Ablation Study
FedAvg trains only on labeled source clients with a linear classifier, whereas FedUDG w/o unlabeled retains FedUDG's supervised training with semantic anchors but excludes unlabeled-client updates. As shown in Table VI, full FedUDG reaches a mean accuracy of 86.57%, exceeding these two variants by 4.42 and 3.44 percentage points, respectively. The latter gap isolates the contribution of unlabeled sources beyond the labeled-path design. Removing semantic self-training or label-free representation distillation lowers the mean accuracy to 85.14% and 85.90%, respectively; the larger drop from removing suggests that class-level supervision on admitted samples is the main source of the unlabeled-client gain, while distillation provides a complementary improvement. For consensus-based sample admission, FedUDG w/o JS retains the classifier-anchor agreement check, whereas FedUDG w/o anchor & JS further uses a single weak view with classifier
TABLE IV
CLASSIFICATION ACCURACY (%) ON VLCS UNDER WITHIN-DOMAIN DIRICHLET PARTITIONS WITH . BEST AND SECOND-BEST RESULTS ARE BOLD AND UNDERLINED, RESPECTIVELY.
| Method | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| V | L | C | S | Mean | V | L | C | S | Mean | V | L | C | S | Mean | |
| FedIRM [12] | 62.10 | 51.57 | 91.81 | 67.92 | 68.35 | 47.83 | 53.52 | 90.16 | 66.58 | 64.52 | 36.49 | 50.17 | 87.32 | 51.21 | 56.30 |
| FedRVR [34] | 62.34 | 51.26 | 97.17 | 58.86 | 67.41 | 61.63 | 50.98 | 95.71 | 55.85 | 66.04 | 31.29 | 48.42 | 94.54 | 44.67 | 54.73 |
| FedPDM [35] | 65.72 | 53.09 | 93.44 | 68.57 | 70.21 | 63.15 | 49.11 | 93.24 | 66.19 | 67.92 | 35.32 | 48.27 | 83.30 | 49.16 | 54.01 |
| RSCFed [14] | 66.32 | 59.45 | 95.95 | 68.72 | 72.61 | 58.90 | 60.34 | 96.15 | 68.06 | 70.86 | 35.22 | 55.47 | 92.09 | 62.67 | 61.36 |
| FedGA [10] | 68.81 | 55.89 | 94.35 | 70.70 | 72.44 | 65.82 | 54.98 | 93.45 | 68.67 | 70.73 | 35.62 | 49.63 | 89.14 | 52.48 | 56.72 |
| FedAlign [7] | 68.94 | 54.98 | 96.47 | 71.40 | 72.95 | 66.94 | 56.03 | 94.10 | 69.60 | 71.67 | 36.40 | 50.29 | 90.68 | 54.34 | 57.93 |
| FedDIM [28] | 71.18 | 57.24 | 97.28 | 70.83 | 74.13 | 68.01 | 58.88 | 95.44 | 68.09 | 72.61 | 36.35 | 55.94 | 95.06 | 53.42 | 60.19 |
| FedIIR [9] | 70.79 | 58.49 | 95.86 | 72.01 | 74.29 | 68.17 | 58.32 | 95.59 | 70.94 | 73.26 | 37.20 | 57.16 | 91.43 | 58.28 | 61.02 |
| FedUDG | 68.06 | 60.81 | 97.17 | 71.57 | 74.40 | 67.88 | 60.11 | 95.15 | 69.09 | 73.06 | 39.86 | 59.44 | 95.22 | 56.86 | 62.85 |
TABLE V
CLASSIFICATION ACCURACY (%) WITH ONE LABELED SOURCE CLIENT ON PACS, MINIDOMAINNET, AND VLCS. BEST AND SECOND-BEST RESULTS ARE BOLD AND UNDERLINED, RESPECTIVELY.
| Method | PACS | miniDomainNet | VLCS | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| P-S | A-P | C-A | S-C | Mean | R-S | P-R | C-Q | S-C | I-P | Q-I | Mean | V-S | L-V | C-L | S-C | Mean | |
| FedIRM [12] | 28.81 | 86.96 | 63.81 | 49.43 | 57.25 | 78.78 | 89.82 | 55.05 | 71.61 | 64.52 | 17.60 | 62.90 | 68.12 | 56.36 | 46.39 | 59.48 | 57.59 |
| FedPDM [35] | 27.38 | 94.67 | 74.95 | 44.11 | 60.28 | 79.93 | 93.97 | 33.65 | 87.55 | 89.09 | 23.39 | 67.93 | 74.84 | 60.81 | 37.17 | 60.54 | 58.34 |
| FedRVR [34] | 41.74 | 92.93 | 66.30 | 47.52 | 62.12 | 81.64 | 91.86 | 47.57 | 83.12 | 43.76 | 15.13 | 60.51 | 71.83 | 52.26 | 23.37 | 76.59 | 56.01 |
| RSCFed [14] | 29.19 | 95.80 | 64.74 | 57.59 | 61.83 | 79.81 | 95.47 | 42.37 | 80.24 | 71.95 | 20.41 | 65.04 | 74.27 | 61.63 | 57.67 | 61.55 | 63.78 |
| FedUDG | 35.99 | 96.04 | 76.61 | 67.02 | 68.92 | 82.13 | 94.19 | 62.38 | 85.09 | 85.19 | 23.85 | 72.14 | 74.01 | 63.44 | 52.56 | 70.64 | 65.16 |
TABLE VI
ABLATION RESULTS (%) ON HELD-OUT PACS TARGETS IN THE PACS-DOMAINNET JOINT DATASET WITH .
| Variant | P | A | C | S | Mean |
|---|---|---|---|---|---|
| FedAvg | 92.56 | 77.08 | 77.87 | 81.11 | 82.15 |
| FedUDG w/o unlabeled | 92.29 | 80.84 | 76.56 | 82.81 | 83.13 |
| FedUDG w/o | 94.01 | 83.01 | 78.97 | 84.58 | 85.14 |
| FedUDG w/o | 95.51 | 85.24 | 77.99 | 84.86 | 85.90 |
| FedUDG w/o JS | 96.07 | 84.68 | 77.01 | 85.28 | 85.76 |
| FedUDG w/o anchor & JS | 95.43 | 82.56 | 77.66 | 84.87 | 85.13 |
| FedUDG | 95.63 | 85.69 | 78.75 | 86.21 | 86.57 |
confidence only. Their mean accuracies decrease to 85.76% and 85.13%, respectively. To examine screening beyond target accuracy, we track pseudo-label precision and admission coverage during training. Let denote the samples admitted at round . Precision is the fraction of whose soft target satisfies , where is the ground-truth label used only for this analysis, and coverage is . Over the last five joint-training rounds, full FedUDG and FedUDG w/o anchor & JS reach mean precision of 91.14% and 89.65% and mean coverage of 80.96% and 85.47%, respectively (Fig. 4). The full rule thus trades 4.51 points of coverage for 1.49 points of precision, yielding cleaner semantic supervision.
E. Parameter Sensitivity
We study three parameters introduced by FedUDG: the confidence threshold , the JS threshold , and the maximum unlabeled mixing weight . Using the PACS-DomainNet joint dataset with , we vary one parameter at a time over , , and

Fig. 4. Pseudo-label precision among admitted samples (a) and admission coverage (b) on the PACS-miniDomainNet joint dataset. Lines show the mean across four target tasks; shaded bands show the minimum-maximum range.
, keeping the others at their defaults . This analysis is performed post hoc, and target accuracy is deliberately excluded from hyperparameter selection. As shown in Table VII, mean accuracy ranges from 85.66% to 86.57% across all settings, a maximum variation of 0.91 percentage points. Even the lowest setting exceeds the strongest baseline at by 4.60 points, suggesting that the advantage of FedUDG does not depend on precise tuning. For each parameter, the highest accuracy is achieved at its default value. For , the stricter threshold of 0.9 lowers the mean by 0.76 points, more than the 0.39-point drop at 0.7, consistent with the observation in ablation study that excessive filtering reduces coverage without a commensurate precision gain. For , values of 0.05 and 0.2 reduce the mean by 0.46 and 0.83 points. For , a value of 0.3 gives the lowest mean of 85.66%, indicating that unlabeled clients require sufficient aggregation weight; increasing it to 0.7 improves Art Painting to 86.96% but lowers Cartoon to 76.84%, yielding a slightly lower mean.
TABLE VII
PARAMETER SENSITIVITY (%) ON HELD-OUT PACS TARGETS IN THE PACS-DOMAINNET JOINT DATASET WITH .
| Parameter | Value | P | A | C | S | Mean |
|---|---|---|---|---|---|---|
| 0.7 | 95.51 | 85.01 | 79.18 | 85.03 | 86.18 | |
| 0.8 | 95.63 | 85.69 | 78.75 | 86.21 | 86.57 | |
| 0.9 | 94.97 | 84.13 | 78.71 | 85.42 | 85.81 | |
| 0.05 | 94.85 | 85.74 | 78.71 | 85.14 | 86.11 | |
| 0.1 | 95.63 | 85.69 | 78.75 | 86.21 | 86.57 | |
| 0.2 | 94.92 | 84.90 | 78.09 | 85.03 | 85.74 | |
| 0.3 | 94.82 | 84.84 | 78.03 | 84.93 | 85.66 | |
| 0.5 | 95.63 | 85.69 | 78.75 | 86.21 | 86.57 | |
| 0.7 | 95.55 | 86.96 | 76.84 | 85.53 | 86.22 |
TABLE VIII
ACCURACY (%) ON HELD-OUT PACS TARGETS UNDER SAMPLE-LEVEL DP IN THE PACS-DOMAINNET JOINT DATASET ().
| Method | P | A | C | S | Mean | ||
|---|---|---|---|---|---|---|---|
| FedUDG | - | 95.63 | 85.69 | 78.75 | 86.21 | 86.57 | |
| DP-FedUDG | 1.0 | 16.94 | 73.59 | 53.11 | 42.92 | 57.25 | 56.72 |
| 1.5 | 8.46 | 53.95 | 39.51 | 34.02 | 41.72 | 42.30 | |
| 2.0 | 5.66 | 29.46 | 20.34 | 22.99 | 25.35 | 24.54 |
F. Privacy Evaluation
We evaluate DP-FedUDG on the PACS-DomainNet joint dataset with , fixing and clipping norm and varying the noise multiplier . For each , the reported is the maximum privacy budget over all clients and the four target settings. The reported budget covers training records only. Checkpoint selection uses held-out labeled-source validation records, which are not included in this accounting. As shown in Table VIII, DP-FedUDG retains some unseen-domain utility at lower noise levels, but remains substantially below non-private FedUDG. At ( ), the mean accuracy is 56.72%, a reduction of 29.85 percentage points. Increasing to 1.5 and 2.0 reduces to 8.46 and 5.66, while mean accuracy falls to 42.30% and 24.54%, respectively. At the highest evaluated noise level, target accuracies range from 20.34% to 29.46%, indicating severely limited unseen-domain utility. The degradation may reflect the combined effects of per-sample clipping, Gaussian noise, and frozen BatchNorm statistics. Perturbed local updates may reduce the reliability of the EMA teacher and the supervised semantic reference used for unlabeled-client learning. Under the evaluated configuration, DP-FedUDG does not yet achieve a satisfactory balance between sample-level privacy and OOD generalization, especially at higher noise levels. This remains a limitation of the current extension despite FedUDG's strong non-private performance.
V. CONCLUSION
This paper studied federated domain generalization with unlabeled clients. We proposed FedUDG to address heterogeneous label availability and improve OOD generalization. At the federation level, FedUDG uses a parameter-functional differentiation strategy. It maintains an additional semantic
anchor supervised solely by ground-truth labels to protect class semantics, while the remaining parameters absorb knowledge from unlabeled clients through bounded aggregation. Within each unlabeled client, the student-teacher framework connects the protected semantic reference to unlabeled learning through two complementary objectives. Consensus between the classifier and label-supervised anchor provides soft targets for semantic self-training on credible samples. Label-free representation distillation exploits all unlabeled samples. Together, these objectives combine selective class-semantic guidance with feature stability under appearance perturbations to support generalization to unseen domains. On the PACS-DomainNet joint dataset, FedUDG achieved the highest mean target accuracy in all four settings, exceeding the strongest FSSL baseline by 5.51–10.58 percentage points and the strongest FDG baseline by 2.39–3.51 points. In the single-labeled-source setting on PACS, miniDomainNet, and VLCS, it exceeded the strongest baseline by 6.80, 4.21, and 1.38 points, respectively. Within-domain Dirichlet partitions further yielded the highest mean accuracy in five of six settings across two datasets. Ablations confirmed that unlabeled sources contribute gains beyond the labeled-path design.
We further evaluated DP-FedUDG, a sample-level differentially private extension. It retained some generalization ability at lower noise levels, but mean accuracy fell from 56.72% to 24.54% as increased from 1.0 to 2.0. Under these settings, the extension did not preserve competitive OOD performance, particularly at stronger noise levels. DP-FedUDG therefore does not yet offer a satisfactory privacy–generalization trade-off. Future work will focus on preserving generalizable representations under formal, quantitatively accounted privacy constraints.
REFERENCES
[1] B. McMahan, E. Moore, D. Ramage, S. Hampson, and B. Agüera y Arcas, "Communication-efficient learning of deep networks from decentralized data," in the International Conference on Artificial Intelligence and Statistics, vol. 54, 2017, pp. 1273–1282.
[2] T. Li, A. K. Sahu, M. Zaheer, M. Sanjabi, A. Talwalkar, and V. Smith, "Federated optimization in heterogeneous networks," in Proceedings of Machine Learning and Systems, vol. 2, 2020, pp. 429–450.
[3] S. P. Karimreddy, S. Kale, M. Mohri, S. Reddi, S. Stich, and A. T. Suresh, "SCAFFOLD: Stochastic controlled averaging for federated learning," in the International Conference on Machine Learning, vol. 119, 2020, pp. 5132–5143.
[4] G. R. Abbavaram, R. Verma, C. Rubio-Madrigal, K. Muandet, and R. Burkholz, “Boosting for predictive sufficiency,” in International Conference on Learning Representations, 2026.
[5] J. Ren, W. Gan, and P. S. Yu, “Domain-aware hierarchical contrastive learning for semi-supervised generalization fault diagnosis,” arXiv preprint arXiv:2604.20928, 2026.
[6] I. Gulrajani and D. Lopez-Paz, “In search of lost domain generalization,” in International Conference on Learning Representations, 2021.
[7] S. Gupta, V. Sutar, V. Singh, and A. Sethi, “FedAlign: Federated domain generalization with cross-client feature alignment,” in IEEE Conference on Computer Vision and Pattern Recognition Workshops, 2025, pp. 1807–1816.
[8] Q. Liu, C. Chen, J. Qin, Q. Dou, and P.-A. Heng, “FedDG: Federated domain generalization on medical image segmentation via episodic learning in continuous frequency space,” in IEEE Conference on Computer Vision and Pattern Recognition, 2021, pp. 1013–1023.
[9] Y. Guo, K. Guo, X. Cao, T. Wu, and Y. Chang, “Out-of-distribution generalization of federated learning via implicit invariant relationships,” in International Conference on Machine Learning, vol. 202, 2023, pp. 11905–11933.
[10] R. Zhang, Q. Xu, J. Yao, Y. Zhang, Q. Tian, and Y. Wang, "Federated domain generalization with generalization adjustment," in IEEE Conference on Computer Vision and Pattern Recognition, 2023, pp. 3954–3963.
[11] W. Jeong, J. Yoon, E. Yang, and S. J. Hwang, “Federated semi-supervised learning with inter-client consistency & disjoint learning,” in International Conference on Learning Representations, 2021.
[12] Q. Liu, H. Yang, Q. Dou, and P.-A. Heng, “Federated semi-supervised medical image classification via inter-client relation matching,” in Medical Image Computing and Computer Assisted Intervention, 2021, pp. 325–335.
[13] X. Qiu, Y. Gao, L. Sani, H. Pan, W. Zhao, P. P. B. Gusmao, M. Alibeigi, A. Iacob, and N. D. Lane, “FedAnchor: Enhancing federated semi-supervised learning with label contrastive loss for unlabeled clients,” arXiv preprint arXiv:2402.10191, 2024.
[14] X. Liang, Y. Lin, H. Fu, L. Zhu, and X. Li, “RSCFed: Random sampling consensus federated semi-supervised learning,” in IEEE Conference on Computer Vision and Pattern Recognition, 2022, pp. 10154–10163.
[15] M. Arjovsky, L. Bottou, I. Gulrajani, and D. Lopez-Paz, “Invariant risk minimization,” arXiv preprint arXiv:1907.02893, 2019.
[16] Q. Xu, R. Zhang, Y. Zhang, Y.-Y. Wu, and Y. Wang, “Federated adversarial domain hallucination for privacy-preserving domain generalization,” IEEE Transactions on Multimedia, vol. 26, pp. 1–14, 2024.
[17] H. Lai, Y. Luo, B. Li, J. Lu, and J. Yuan, “Bilateral proxy federated domain generalization for privacy-preserving medical image diagnosis,” IEEE Journal of Biomedical and Health Informatics, vol. 29, no. 4, pp. 2784–2797, 2025.
[18] D. T. Nguyen, T. T. Johnson, and K. Leach, “PARDON: Privacy-aware and robust federated domain generalization,” in IEEE International Conference on Distributed Computing Systems, 2025, pp. 703–713.
[19] M. Abadi, A. Chu, I. Goodfellow, H. B. McMahan, I. Mironov, K. Talwar, and L. Zhang, “Deep learning with differential privacy,” in ACM SIGSAC Conference on Computer and Communications Security, 2016, pp. 308–318.
[20] I. Mironov, “Rényi differential privacy,” in IEEE Computer Security Foundations Symposium, 2017, pp. 263–275.
[21] J. Fu, Y. Hong, X. Ling, L. Wang, X. Ran, Z. Sun, W. H. Wang, Z. Chen, and Y. Cao, “Differentially private federated learning: A systematic review,” ACM Computing Surveys, vol. 58, no. 11, pp. 271:1–271:38, 2026.
[22] Y. Li, X. Wang, R. Zeng, P. K. Donta, I. Murturi, M. Huang, and S. Dustdar, “Federated domain generalization: A survey,” Proceedings of the IEEE, vol. 113, no. 4, pp. 370–410, 2025.
[23] Y. Sun, N. Chong, and H. Ochiai, “Feature distribution matching for federated domain generalization,” in Asian Conference on Machine Learning, vol. 189, 2023, pp. 942–957.
[24] L. Zhang, X. Lei, Y. Shi, H. Huang, and C. Chen, “Federated learning for IoT devices with domain generalization,” IEEE Internet of Things Journal, vol. 10, no. 11, pp. 9622–9633, 2023.
[25] J. Zhang, X. Liu, J. Niu, S. Tang, H. Yang, and X. Wu, “Causality inspired federated learning for OOD generalization,” in International Conference on Machine Learning, vol. 267, 2025, pp. 75 615–75 637.
[26] J. Chen, M. Jiang, Q. Dou, and Q. Chen, “Federated domain generalization for image recognition via cross-client style transfer,” in IEEE/CVF Winter Conference on Applications of Computer Vision, 2023, pp. 361–370.
[27] J. Yuan, X. Ma, D. Chen, F. Wu, L. Lin, and K. Kuang, “Collaborative semantic aggregation and calibration for federated domain generalization,” IEEE Transactions on Knowledge and Data Engineering, vol. 35, no. 12, pp. 12 528–12 541, 2023.
[28] T. Liao, B. Xie, L. Fu, S. Huang, B. Deng, C. Chen, and Z. Zheng, “Federated domain generalization with decision insight matrix,” in International Joint Conference on Artificial Intelligence, 2025, pp. 5689–5697.
[29] Z. Liu, H. Zhang, Y. Wang, and Z. Gao, “Embracing knowledge integration from the vision-language model for federated domain generalization on multi-source fused data,” Information Fusion, vol. 127, p. 103714, 2026.
[30] T.-B. Nguyen, M.-D. Nguyen, J. Park, Q.-V. Pham, and W. J. Hwang, “Federated domain generalization with data-free on-server matching gradient,” in International Conference on Learning Representations, 2025.
[31] Y. Liu, X. Shang, Y. Zhang, Y. Lu, C. Gong, J.-H. Xue, and H. Wang, “Mind the gap: Confidence discrepancy can guide federated semi-supervised learning across pseudo-mismatch,” in IEEE Conference on Computer Vision and Pattern Recognition, 2025, pp. 10173–10182.
[32] D. Chen and Y. Wang, “ProxyFL: A proxy-guided framework for federated semi-supervised learning,” in IEEE Conference on Computer Vision and Pattern Recognition, 2026, pp. 17525–17534.
[33] J. Scott, M. Yeo, and C. H. Lampert, “Cross-client label propagation for transductive and semi-supervised federated learning,” Transactions on Machine Learning Research, 2023.
[34] Q. Yang, Z. Chen, Z. Peng, and Y. Yuan, “Relation-guided versatile regularization for federated semi-supervised learning,” International Journal of Computer Vision, vol. 133, no. 6, pp. 3312–3326, 2025.
[35] D. Liao, X. Gao, Y. Xu, and C.-Z. Xu, “Progressive distribution matching for federated semi-supervised learning,” in AAAI Conference on Artificial Intelligence, vol. 39, no. 5, 2025, pp. 5191–5199.
[36] E. Diao, J. Ding, and V. Tarokh, “SemiFL: Semi-supervised federated learning for unlabeled clients with alternate training,” in Advances in Neural Information Processing Systems, vol. 35, 2022, pp. 17871–17884.
[37] S. Lee, T.-L. V. Le, J. Shin, and S.-J. Lee, “(FL) : Overcoming few labels in federated semi-supervised learning,” in Advances in Neural Information Processing Systems, vol. 37, 2024, pp. 43 693–43 714.
[38] H. Wang, S. Wang, J. Li, H. Ren, X. Han, W. Xu, S. Guo, T. Zhang, and R. Li, “BSEmiFL: Semi-supervised federated learning via a Bayesian approach,” in International Conference on Machine Learning, ser. PMLR, 2025, pp. 64 655–64 669.
[39] L. Zhu, Z. Liu, and S. Han, “Deep leakage from gradients,” in Advances in Neural Information Processing Systems, vol. 32, 2019.
[40] S. Gong, C. Cui, C. Zhang, W. Wang, X. Nie, and L. Zhu, “Federated domain generalization via prompt learning and aggregation,” IEEE Transactions on Information Forensics and Security, vol. 21, pp. 1528–1541, 2026.
[41] A. Tarvainen and H. Valpola, “Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results,” in Advances in Neural Information Processing Systems, vol. 30, 2017.
[42] K. Sohn, D. Berthelot, N. Carlini, Z. Zhang, H. Zhang, C. Raffel, E. D. Cubuk, A. Kurakin, and C.-L. Li, “FixMatch: Simplifying semi-supervised learning with consistency and confidence,” in Advances in Neural Information Processing Systems, vol. 33, 2020, pp. 596–608.
[43] X. Chen and K. He, “Exploring simple siamese representation learning,” in IEEE Conference on Computer Vision and Pattern Recognition, 2021, pp. 15750–15758.
[44] D. Li, Y. Yang, Y.-Z. Song, and T. M. Hospedales, “Deeper, broader and artier domain generalization,” in IEEE International Conference on Computer Vision, 2017, pp. 5542–5550.
[45] X. Peng, Q. Bai, X. Xia, Z. Huang, K. Saenko, and B. Wang, “Moment matching for multi-source domain adaptation,” in IEEE International Conference on Computer Vision, 2019, pp. 1406–1415.
[46] A. Torralba and A. A. Efros, “Unbiased look at dataset bias,” in IEEE Conference on Computer Vision and Pattern Recognition, 2011, pp. 1521–1528.
[47] K. He, X. Zhang, S. Ren, and J. Sun, “Deep residual learning for image recognition,” in IEEE Conference on Computer Vision and Pattern Recognition, 2016, pp. 770–778.
[48] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei, “ImageNet: A large-scale hierarchical image database,” in IEEE Conference on Computer Vision and Pattern Recognition, 2009, pp. 248–255.
[49] E. D. Cubuk, B. Zoph, J. Shlens, and Q. V. Le, “RandAugment: Practical automated data augmentation with a reduced search space,” in IEEE Conference on Computer Vision and Pattern Recognition Workshops, 2020, pp. 702–703.