Joint Distribution Alignment for Universal Domain Adaptation
Authors: Shizhe Li, Hongshan Pu, Mengying Xie, Yi Xiang, Xiaowei Yang
Organizations: School of Software Engineering, South China University of Technology, Guangzhou 510006, China · School of Future Technology, South China University of Technology, Guangzhou 511442, China · College of Computer Science, Chongqing University, Chongqing 400044, China
Unsupervised domain adaptation (UDA) has been widely concerned in the fields of machine learning, pattern recognition, and computer vision. Traditional UDA learning usually assumes that the label spaces of the source and target domains are exactly the same and only needs to solve the problem of sample distribution drift existing between two domains. However, in real world applications, the label spaces between two domains may be different. In this case, there are both sample distribution drift and class spatial difference between domains, namely Universal Domain Adaptation (UniDA) learning scenario. At present, existing works rarely offer theoretical analysis for universal domain adaptation. In this paper, we provide an upper bound of the generalization error for universal domain adaptation. According to the proposed generalization error bound, we propose a novel UniDA algorithm called Joint Distribution Alignment for Universal Domain Adaptation (JAUA), which aligns the joint distributions by minimizing the distribution discrepancy calculated by Chi-Square divergence. Furthermore, we propose a progressive pseudo-labeling method to assign the pseudo labels to unlabeled target samples. The experiment results on six public image datasets demonstrate the superiority of JAUA in handling the UniDA problem.
Figures & tables
Fig. 1: Illustration of DA
Fig. 2: Different setting of DA
Symbols
Descriptions
X∈RD
Feature space
C
The number of common classes
Yus={yus}={C+1}
Private label space
Yut={yut}={C+2}
Unknown label space
YuG={y1,y2,...,yc}
Common label space
Ys={y1,y2,...,yc,yus}
Source label space
TABLE I: Symbols and notations
Fig. 3: The framework of JAUA. The input dataset is first classified into 1,2,…,C+1 classes using SVM. Through progressive pseudo-labeling, the dataset’s classification is progressively updated. Target domain samples with confidence E below τ are classified as C+2 , and the label set is updated. This iterative training process is repeated until the final target domain classification results are obtained.
datasets
Domain
Sample number
Category
Office-31
Amazon
2,817
31
Dslr
795
31
Webcam
498
31
Office-Home
Art
2,427
65
Clipart
4,365
65
Product
4,439
65
TABLE II: Dataset description
Parameters
Office-31
Office-Home
Visda
Domainnet
ImageCLEF
PACS
λtt
1
1
1
1
1
1
λs
0.1
0.1
0.07
0.1
0.07
0.1
λt
0.1
0.1
0.07
0.1
0.07
0.1
λgss
0.1
0.01
0.4
0.3
0.4
0.3
λgst
0.3
0.01
0.2
0.4
0.2
0.3
λ
0.0001
0.0001
0.0001
0.0001
0.0001
0.0001
TABLE III: The parameter settings in JAUA
Methods
ACC
UNK
HOS
UAN
60.8
20.4
30.5
CMU
61.4
24.1
34.6
DANCE
69.2
31.0
42.8
DCC
64.2
32.3
43.0
OSBP
30.3
49.9
37.7
IWAN
58.7
18.0
27.6
TABLE IV: Comparison of the results on Visda dataset(Unit:%)
Methods
ACC
UNK
HOS
UAN
89.3
49.3
63.5
CMU
91.1
61.1
73.1
DANCE
93.0
78.2
84.7
DCC
93.2
70.7
80.2
IWAN
86.7
36.7
51.6
OVANet
84.2
88.0
85.9
TABLE V: Comparison of the results on Office-31 dataset(Unit:%)
Methods
ACC
UNK
HOS
UAN
77.0
45.2
56.6
CMU
77.2
52.0
61.6
DANCE
80.3
54.0
63.9
DCC
78.9
68.4
72.0
OSBP
64.6
34.5
44.5
IWAN
73.3
33.0
45.3
TABLE VI: Comparison of the results on Office-Home dataset(Unit:%)
Fig. 4: Influence of the parameters of JAUA for task: D → A on Office-31
Methods
HOS
UAN
41.0
CMU
48.3
DANCE
33.5
DCC
49.2
OSBP
32.0
IWAN
32.8
TABLE VII: Comparison of the results on Domainnet dataset(Unit:%)
Methods
HOS
OVANet
74.3
MLNET
83.3
E-MLNET
85.4
JAUA
89.4
TABLE VIII: Comparison of the results on ImageCLEF dataset(Unit:%)
Methods
ACC
UAN
30.7
CMU
21.0
DANCE
17.6
OVANet
58.5
GUDA
58.2
JAUA
64.2
TABLE IX: Comparison of the results on PACS dataset(Unit:%)
Fig. 5: The change of the whole loss of JAUA for task: D → A on Office-31
Fig. 6: Ablation experiment for task: D → A on Office-31
Effective unsupervised domain adaptation (UDA) requires a representation that captures transferable structure from both the labeled source domain and the unlabeled target domain. We introduce Joint Contrastive-Adversarial Representation Learning (JCAR), a two-stage framework that learns a common representation from the union of unlabeled source and target samples by combining contrastive learning with adversarial domain alignment, and then freezes the representation to fit a source-supervised predictor. We establish a non-asymptotic excess-risk bound for this procedure that couples representation and domain-discriminator estimation while separating downstream prediction, with explicit neural-network approximation errors. Under the stated assumptions and common Hölder smoothness β≥1, the bound identifies a sufficiently large unlabeled-sample regime in which the downstream rate is O(m−β/(2β+d)), where m counts labeled source samples and logarithmic factors are suppressed. The labeled-sample exponent is governed by the latent dimension d rather than the ambient dimension p, which enters the pretraining cost. Experiments on Office-31, Office-Home, and DomainNet demonstrate clear transfer gains across diverse domain shifts, with particularly strong performance when representations are learned from scratch.
A central problem in unsupervised domain adaptation is determining what to transfer from labeled source domains to an unlabeled target domain. To handle high-dimensional observations (e.g., images), a line of approaches use deep learning to learn latent representations of the observations, which facilitate knowledge transfer in the latent space. However, existing approaches often rely on restrictive assumptions to establish identifiability of the joint distribution in the target domain, such as independent latent variables or invariant label distributions, limiting their real-world applicability. In this work, we propose a general domain adaptation framework that learns compact latent representations to capture distribution shifts relative to the prediction task and address the fundamental question of what representations should be learned and transferred. Notably, we first demonstrate that learning representations based on all the predictive information, i.e., the label's Markov blanket in terms of the learned representations, is often underspecified in general settings. Instead, we show that, interestingly, general domain adaptation can be achieved by partitioning the representations of Markov blanket into those of the label's parents, children, and spouses. Moreover, its identifiability guarantee can be established. Building on these theoretical insights, we develop a practical, nonparametric approach for domain adaptation in a general setting, which can handle different types of distribution shifts.
Ignavier Ng, Yan Li, Zijian Li +3
Carnegie Mellon University · Mohamed bin Zayed University of Artificial Intelligence
Correlation alignment and the maximum mean discrepancy are two widely used distribution-matching frameworks for unsupervised domain adaptation (UDA). However, high variance in these losses has been shown to undermine their effectiveness in minibatch optimisation settings. Furthermore, the losses lack finite-sum structure, which renders them incompatible with classical stochastic variance reduction (SVR) methods. This paper proposes Paired Sampling for Domain Adaptation (PSDA), a novel SVR technique tailored to such objectives. PSDA pairs observations both within and across domains, to form quadruplets that are always sampled together during training. The pairings are designed to minimise expected gradient variance, and reduce to solving a set of linear assignment problems. Our simulations demonstrate reduced variance compared to related methods, and experiments on three domain shift datasets show improved target domain accuracy.
Andrea Napoli
Department of Electronics and Computer Science University of Southampton, UK