arXiv:2611.01498cs.LGNov 2026

Manuscript Offprint

arXiv:2611.01498

FedUDG: Federated Domain Generalization with Unlabeled Clients

Junyu Ren, Wensheng Gan, Philip S. Yu

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.

Figure

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.

References (48)