22email: {yanghr26@mail2, rchuanx@mail, luoyw28@mail2}.sysu.edu.cn
COD: Learning Conditional Invariant Representation for Domain Adaptation Regression
Abstract
Aiming to generalize the label knowledge from a source domain with continuous outputs to an unlabeled target domain, Domain Adaptation Regression (DAR) is developed for complex practical learning problems. However, due to the continuity problem in regression, existing conditional distribution alignment theory and methods with discrete prior, which are proven to be effective in classification settings, are no longer applicable. In this work, focusing on the feasibility problems in DAR, we establish the sufficiency theory for the regression model, which shows the generalization error can be sufficiently dominated by the cross-domain conditional discrepancy. Further, to characterize conditional discrepancy with continuous conditioning variable, a novel Conditional Operator Discrepancy (COD) is proposed, which admits the metric property on conditional distributions via the kernel embedding theory. Finally, to minimize the discrepancy, a COD-based conditional invariant representation learning model is proposed, and the reformulation is derived to show that reasonable modifications on moment statistics can further improve the discriminability of the adaptation model. Extensive experiments on standard DAR datasets verify the validity of theoretical results and the superiority over SOTA DAR methods.
Keywords:
Domain Adaptation Regression, Optimal Transport, Invariant Representation Learning, Kernel Embedding Theory.1 Introduction
Deep learning has shown a promising ability for fitting and achieved great success in various application tasks. However, large-scale data with sufficient annotations plays a vital role in training high-quality deep models while the label annotations for unlabeled data are usually expensive. Therefore, aiming to reduce training costs by transferring knowledge, Unsupervised Domain Adaptation (UDA) [14, 28, 17, 2] has received increasing attention in recent years. Basically, UDA aims to transfer task-related information from a labeled source domain to a target domain without annotations, where the domain gap is characterized as the distribution shift across domains [43]. Following this line, considerable methods have been proposed to alleviate the UDA problem by shift correction and distribution alignment, such as adversarial training for cross-domain samples [14, 52] and explicitly distribution matching by statistical discrepancy minimization [28, 49]. From a theoretical perspective, recent literature [60, 6] show that the marginal distribution with covariate shift assumption is insufficient to characterize the cross-domain generalization error, while the conditional distribution alignment indeed serves as a sufficient condition to ensure small error and successful transfer. Mathematically, when the conditional distributions for every are aligned, a well-trained source predictor can perform well on the target domain, which is described in Fig. 1. Inspired by theoretical advances, recent works [41, 45, 23] consider the statistical methods for conditional alignment, and show promising performance in mitigating negative transfer and improving recognition accuracy. However, most of the existing results are designed for classification settings with discrete prior on label variables, which induces the infeasibility for regression problems. Consequently, it restricts the application of UDA methods for wider real-world problems, e.g., human pose estimation [36], product condition monitoring[27], depth estimation [42].
Considering the dilemma of UDA, pioneer works have explored the Domain Adaptation Regression (DAR) framework for solving the distribution shift in continuous label scenarios, where theoretical results [35, 7] and correction methods [15, 51, 47] are provided. To further relax the requirement of labeled training target data in pioneer DAR works, advanced works[4, 38] propose unsupervised DAR methods to learn transferable regression models without the help of labeled target data. Nonetheless, existing DAR theory and methods are directly facilitated by the covariate shift framework, where the marginal distribution alignment is considered. Therefore, it inevitably induces the negative transfer and misaligned local structure, which are shown in the results in classification settings [60, 6]. In fact, there is a significant obstacle for modeling conditional distribution alignment in regression scenarios, i.e., the conditional shift correction induces infinite matching problems for on all points . The continuous label variable with infinite possible outcomes makes it infeasible to directly apply the existing conditional alignment methods for DAR. Thus, it is vital to understand the continuity problem in regression, and develop the generalization error theory and statistical methodology for DAR scenarios.
In this work, we focus on the theory guarantee and conditional alignment methodology for successful DAR. Theoretically, we explore the generalization upper bound for continuous output scenarios and show the cross-domain joint error can be sufficiently upper-bounded by the conditional discrepancy. It ensures the sufficiency of conditional alignment still holds for regression scenarios and provides reliable guarantees for theory-driven modeling. Methodologically, to deal with the continuous problem in conditional alignment, we treat the conditional distribution as finite statistical moments in Hilbert space. By exploring the distribution embedding theory of Reproducing Kernel Hilbert Space (RKHS), a novel conditional metric called Conditional Operator Discrepancy (COD) is proposed, which can be interpreted as the conditional Wasserstein distance in RKHS. With the sufficiency theory and metric-based learning principle for regression, a COD-based conditional invariant representation learning method is proposed, which aims to correct the conditional shift on the pushforward measures in latent representation space. By reformulating the empirical COD estimation, a modified principle is developed to further improve the discriminability during knowledge transfer. Generally, our contributions can be summarized as follows:
-
•
The sufficiency theory for the conditional shift framework is established for DAR settings, which shows the cross-domain conditional discrepancy on continuous label variable serves as the major term in generalization error.
-
•
A novel COD metric for characterizing conditional distribution discrepancy with continuous and infinite conditioning variable is explored, providing a feasible solution for conditional discrepancy optimization in DAR.
-
•
A COD-based representation learning model with reformulation on moment statistics is proposed, which admits discriminability on task-related knowledge and shows superior performance in extensive experiments.
2 Related Work
Domain Adaptation Classification. Based on the distribution shift assumption, most of the UDA methods can be roughly categorized into three types: methods that align marginal distribution, conditional distribution and joint distribution. Most UDA methods consider only the marginal distribution alignment. Discrepancy-based methods attempt to directly minimize the distribution discrepancy and different types of discrepancy measurement greatly enrich this type of methodology. For example, these methods adopt moment matching [28, 49] or extension under manifold framework [17, 33]. In particular, Optimal transport (OT) and Wasserstein distance are introduced to UDA as a sound measurement for domain shift, based on which a large number of methods have been proposed [9, 8, 10, 46, 24]. Zhang et al. [59] further develop both theory and methodology to RKHS and Luo et al. [31] extends Kernel Bures metric to conditional distribution alignment. Adversarial-based methods [14, 20, 21] learn domain-invariant features via two-player games. Specifically, they alternatively optimize the feature generator and the domain discriminator to achieve domain confusion. In order to obtain better performance, advanced methods have explored how to utilize the label information to achieve conditional distribution alignment [41, 45, 61, 50, 53, 3, 44, 32] or joint distribution alignment [30, 29]. However, UDA methods for shift correction are proposed for discrete and finite conditioning variables, which are inapplicable for regression.
Domain Adaptation Regression. DA for regression has received relatively little attention compared with classification. Mansour et al. [35] and Cortes et al. [7] introduce theoretical analysis for DA in regression scenarios. Zhao et al. [62] discuss the tradeoffs between accuracy and invariance in learning invariant representations in both classification and regression settings. A range of methods in the shallow regime are proposed to tackle the DAR problem. These methods can be roughly categorized into two types: importance weighting [15, 37] and learning domain-invariant representation [40, 8, 39]. Besides, some attempts have been made in deep regime to tackle regression problem [51, 47, 25, 56]. Unfortunately, most of them belong to semi-supervised DA, which means they need to use a small number of target domain labels. Recently, deep UDA methods for regression that get rid of target label are proposed [4, 38, 57, 11]. RSD [4] states that deep neural networks are less robust to feature scaling in regression problems and aligning the deep features directly will impede task performance for altering feature scale. Thus, a strategy of aligning orthogonal bases of both domains is adopted in RSD. Based on RSD, DARE-GRAM [38] aligns the inverse Gram Matrix of deep features of both domains, and ensures promising improvements in accuracy and stability. Meanwhile, several DAR methods for specific tasks have been explored [22, 55, 1, 18, 26, 27]. However, the theory and method for conditional shift correction are still unexplored for DAR scenarios, which hinders the in-depth reasoning and development for practical modeling.
3 COD: Theory and Methodology
3.1 Preliminary
Setup. In this paper, we discuss UDA method dealing with regression problems. Let X and Y be covariate and label variable taken values on and . denotes the set of distributions and subscripts represent the corresponding random variable while the superscript represents the domain, e.g. implies the joint distribution on source domain. In UDA settings, we are provided with labeled source samples and unlabeled target samples , which means the target labels are not available during training. Samples of source and target domain follow different distributions, i.e. . Denote as the representation extractor, as the predictor, and as the source and target prediction error, respectively. UDA methods aim to generalize the learner across domains and minimize target risk by mitigating the distribution shift problem. In contrast to the discrete label space in classification settings, unsupervised DAR discusses UDA problems with continuous labels, which means the number of classes is uncountable, leading to great difficulty in aligning conditional distribution . The proofs are provided in supplementary materials.
OT in RKHS. Let be a measure space with Borel field . Denote as the RKHS of , which is generated by the positive definite kernel . Elements from are mapped to via feature map , which is assumed to satisfy the reproducing properties and . The mean element in with law is given by , and the covariance operator is defined as .
For any two distributions , the Kantorovitch optimal transport in RKHS is considered on pushforward measures and :
(1) |
Zhang et al. [59] show that if the pushforward measures are Gaussian, the Kernel Gaussian Wasserstein (KGW) distance between them can be written as
(2) |
where and , are the covariance operators of and on , respectively.
Remark 1
Note that KGW consists of two terms, i.e., the Maximum Mean Discrepancy (MMD) on first-order statistics and kernel Bures metric on second-order statistics. It provides a basic innovation for exploring conditional discrepancy metric by considering the conditional statistics in RKHS, i.e., first-order statistics in literature [48] and second-order statistics in literature [13].
3.2 Generalization Error Analysis for DAR
Most of DAR methods focus on aligning the marginal distribution . However, Zhao et al. [60] have shown that in the presence of label shift, only aligning the marginal distribution does not guarantee satisfying generalization performance on target domain. In fact, [60, 6] have proven the following theorem (3.1) for classification problems:
Theorem 3.1 ([60])
For representation variable , suppose inequality holds, then for predictor , we have
(3) |
where denotes the Jensen-Shannon divergence.
Assuming the label distributions differ between source and target domain, i.e., , the lower bound shows that good alignment of representation distributions leads to bad joint error. In other words, when label shift exists, which is rather common in realistic scenarios, only aligning the marginal distribution is not enough for low target error.
To deal with the insufficiency problem shown in the lower bound analysis, it is intuitive to introduce label information into generalization analysis, e.g., the balanced error rate for classification scenarios [6]. Analogously, for the continuous regression scenarios, we first define the continuous balanced error rate for quantifying maximum conditional risk in DAR.
Definition 1
The continuous balanced error rate of predictor on distribution is defined as:
(4) |
Intuitively, the continuous balanced error rate can be regarded as the maximum potential risk for predicting sample with label . Based on and conditional shift correction with representation transformation , a sufficient condition for DAR can be induced as follows.
Theorem 3.2
For representation variable and , if satisfies conditional invariant property, i.e.,
(5) |
then for any predictor , we have
(6) |
Therefore, the key for DA, no matter for classification or regression problems, is to achieve conditional distribution alignment. In classification settings, conditional alignment can be achieved by conducting class-wise marginal distribution alignment with the help of target pseudo label. However, in regression scenarios, the label variable is continuous, which means previous methods correcting conditional shift in classification settings are no longer applicable. Obviously, it is impossible to align the for every single when is a continuous variable and the possible number of y is infinite. Thus, it is important and meaningful to explore a new framework that is capable of conditional distribution alignment for continuous label variable.
3.3 COD metric for DAR
Theory for COD. Due to the continuity of label variable, it is impractical to correct conditional shift by aligning marginal distribution of for every single . For this inevitable obstacle, an intuitive idea is can we align all as a whole? i.e., , rather than align one by one? It is more than attractive that if we can characterize with a well-defined discrepancy, then all can be aligned by aligning the whole .
In kernel embedding theory, a distribution can be characterized by a point in RKHS. Then can be seen as a point set in RKHS in which every element corresponds to a distribution for a fixed . From another perspective, we can consider as the distribution in RKHS and measure the cross-domain conditional discrepancy by defining the COD distance on their statistical moments in RKHS. Following the definitions of conditional statistics in pioneer works, i.e., the conditional mean operator as [48] and conditional covariance operator as [13], we present the definition of COD as follows.
Definition 2 (COD)
Given conditional distributions and , denote and as their corresponding covariance operators. The COD is defined as
(7) |
where .
Theoretically, it can be proved that COD indeed admits the metric property on conditional distributions, i.e., two conditional distributions are the same if and only if the COD metric between them is zero. An intuitive illustration of COD is shown in Fig. 2. Formally, COD admits two key properties.
Proposition 1
(a) COD defines a metric between Gaussian measures.
(b) Let be the locally compact and Hausdorff measurable space and k be -universal kernel.
Assuming that is a Gaussian random variable in .
For any , we have
(8) |
Empirical Estimation of COD. Based on the above properties, we can perform conditional distribution alignment by minimizing the COD metric between source and target domain. To do this, we shall derive the empirical estimation of COD, which can be obtained with the help of the kernel trick.
Let and be two set of samples drawn i.i.d. from source and target domain. For simplicity, and are both set to . In kernel method, samples are mapped to RKHS by the implicit feature map . Denote the feature map matrices by and , the explicit kernel matrices , are computed as , , respectively. And so as , and . Let be the n-dimensional identity matrix, be the n-dimensional vector with all elements equal to 1. The -dimensional centering matrix can be defined as . Then the centralized kernel matrix is defined as .
With above notations, the covariance operator can be empirically estimated as , then the conditional moment statistics can be estimated as
(9) |
where satisfies that and . Based on these estimations, the closed-form empirical estimation of the COD metric can be derived as follows.
Proposition 2
The empirical Conditional Operator Discrepancy distance is
(10) | ||||
where is the nuclear norm. Empirically, is approximated by the regularized formulation .
Discriminability of empirical COD. As discussed above, the first term of COD measures the distance of the first-order statistic between conditional distributions in RKHS. However, recent study [5, 54] shows that the mean matching may reduce the discriminability when bringing the two distributions close, which undoubtedly degrades the performance of the algorithm. Therefore, it is worth making an in-depth analysis of the discriminability of COD as well.
Without loss of generality, we first consider Kronechker Delta kernel on conditioning variable , i.e., . More explicitly, equals to if or otherwise. For empirical scenarios with finite samples, the numbers of samples and observed labels are finite, which implies the number of distinct label will be obviously no more than sample size . For convenience, we call two samples are in the same class when their label values are the same. Consequently, the first term in COD can be reformulated as follows.
Proposition 3
Under the conditions mentioned above, the empirical estimation of can be written as
(11) | ||||
where denotes the sample-size of -th label such that , denotes the -th sample of -th label.
Eq. (11) contains three terms. The third term characterizes the cross-domain intra-class similarity. When Eq. (11) is minimized, the third term is maximized so that the cross-domain sample with the same label will be aligned, leading to conditional alignment as expected. However, the first two terms of the equation represent the intra-class similarity of both domains. Minimizing them will decrease the intra-class similarity, which means intra-class samples will be pushed away from each other and the discriminability of representations is degraded.
Remark 2
Note the Kronechker Delta kernel is defined as
(12) |
When it comes to the Gaussian kernel for empirical modeling, the case of is the same; for other cases, the kernel values can be arbitrarily close to zero, i.e., for any , there always width , such that
(13) |
Thus, it is generally reasonable to use Gaussian kernel, which admits a similar property to Kronechker Delta kernel, for empirical modeling.
Remark 3
Note that although we treat the number of distinct labels as finite numbers in mini-batch training, it does not mean class-wise matching can be conducted. In fact, even though the pseudo target label has finite range in mini-batch, it still admits the continuous property, which means we can not cluster samples as usually done in classification methods. When two samples have predicted labels with little numerical difference, they can be regarded as samples of the same class in classification settings. Nonetheless, this kind of clustering is infeasible in regression settings since the labels are continuous. Therefore, class-wise alignment is not practical even in mini-batch training.
With these observation, it is reasonable to reformulate Eq. (11) to promote the discriminability of representations:
(14) | ||||
Now minimizing Eq. (14) will maximize intra-class similarity regardless of domain, yielding conditional matching with great discriminability. Then the empirical COD is modified as
(15) | ||||
3.4 COD-based DAR Modeling
According to Theorem 3.2 , when the conditional distributions and are aligned, a well-trained source predictor can gain promising performance on target domain. However, when the shift is significant, it is difficult for predictor to produce high-quality pseudo labels at the beginning. For this reason, the model is likely to miss the optimal optimization direction in the early training stage and thus fall into sub-optimal solutions. Therefore, the marginal alignment can improve the reliability of initial pseudo labels, and further benefit the conditional alignment. Overall, the learning objective of COD can be formulated as
(16) |
where , are the trade-off parameters. For regression task, the source risk is commonly set as Mean Square Error (MSE) over continuous outputs:
(17) |
where is the predicted value of the -th source sample. Note that the marginal alignment term can be replaced by any other discrepancy metric, while we adopt KGW here to preserve the consistency with OT framework.
4 Experiments
We evaluate our method with several state-of-the-art domain adaptation methods on three regression benchmark datasets, implementation details and additional illustrations are provided in supplementary material.
dSprites [19] is a standard 2D synthetic dataset for deep representation learning, which contains three domains each with 737,280 images: Color (C), Noisy (N) and Scream (S). Following [4], we consider three factors for regression tasks: scale and two plane coordinates, while the orientation factor is excluded for its complexity. We evaluate all methods on six transfer tasks: , , , , and . Following previous works [4, 38], the sum of Mean Absolute Error (MAE) on all three sub-regression tasks is reported as the evaluation metric.
Biwi kinect [12] is a real-world dataset containing two domains according to gender: Female (F) with 5874 images and Male (M) with 9804 images. The three factors that can be employed for regression tasks are pitch, yaw and roll. We evaluate all methods on two transfer tasks: and . The sum of MAE on three sub-regression tasks is reported.
MPI3D [16] is a simulation-to-real dataset of 3D objects which consist of three different domain: Toy (T), RealistiC (RC) and ReaL (RL). Each domain contains 1,036,800 images. There are two factors in MPI3D that can be employed for regression tasks: a rotation about a vertical axis and a second rotation about a horizontal axis. We evaluate all methods on six transfer tasks: , , , , and . The sum of MAE on two sub-regression tasks is reported.
Comparison methods. SOTA methods for UDA and DAR are selected: TCA [40], MCD [45], DAN [28], DANN [14], JDOT [8], AFN [58], RSD [4], DARE-GRAM [38]. Following previous works [4, 38], Mean Absolute Error (MAE) is used as our evaluation metric across all regression tasks. In comparison experiment, the proposed DAR model in Eq. (16) is denoted as COD for convenience.
4.1 Results and Analysis
Comparison on dSprites. As shown in Tab. 1, COD achieves the best performance among all competing methods in nearly all tasks of dSprites. In and , in which the Resnet-18 and UDA methods exhibit terrible performance because of the significant domain gap. Although SOTA DAR methods have greatly boosted the performance compared with classification methods, COD still achieves a significant improvement, reducing the error to only of that produced by SOTA methods. These results demonstrate that the conditional invariant representations learned by COD indeed ensure better discriminability.
Comparison on Biwi Kinect. Since Biwi Kinect is the closest to real-world scenarios among the three benchmark datasets, the performance improvement of model is more challenging. In LABEL:{tab:result_BiwiKinect}, the performance gap between UDA methods and DAR methods is relatively smaller, which implies the SOTA DAR methods with marginal alignment indeed show limitations in the difficult transfer tasks. In such a scenario, the sufficiency of condition alignment is directly validated, where the MAE of COD is significantly lower than other SOTA methods. Thus, for real-world regression applications with complex shift, the COD model indeed shows superiority in both theoretical and methodological aspects.
Comparison on MPI3D. In MPI3D, the resolution remains the same with dSprites, while the main challenge is the large sample size. In Tab. 3, the MAE of COD is competitive with the SOTA method DARE-GRAM in the first four tasks, while higher in the last two tasks. However, note that COD still achieves the second-best result in averaged MAE, and obtains the lowest MAE in task RLT. In conclusion, the overall MAE of COD on three benchmarks is still lower, which demonstrates COD is generally superior to SOTA methods.
Method | C N | C S | N C | N S | S C | S N | Avg. |
---|---|---|---|---|---|---|---|
Resnet-18 | 0.94 | 0.90 | 0.16 | 0.65 | 0.08 | 0.26 | 0.498 |
TCA | 0.94 | 0.87 | 0.19 | 0.66 | 0.10 | 0.23 | 0.498 |
MCD | 0.81 | 0.81 | 0.17 | 0.65 | 0.07 | 0.19 | 0.450 |
JDOT | 0.86 | 0.79 | 0.19 | 0.64 | 0.10 | 0.23 | 0.468 |
AFN | 1.00 | 0.96 | 0.16 | 0.62 | 0.08 | 0.32 | 0.523 |
DAN | 0.70 | 0.77 | 0.12 | 0.50 | 0.06 | 0.11 | 0.377 |
DANN | 0.47 | 0.46 | 0.16 | 0.65 | 0.05 | 0.10 | 0.315 |
RSD | 0.31 | 0.31 | 0.12 | 0.53 | 0.07 | 0.08 | 0.237 |
DARE-GRAM | 0.30 | 0.20 | 0.11 | 0.25 | 0.05 | 0.07 | 0.164 |
COD | 0.12 | 0.16 | 0.10 | 0.23 | 0.08 | 0.12 | 0.134 |
Method | M F | F M | Avg. |
---|---|---|---|
Resnet-18 | 0.29 | 0.38 | 0.335 |
TCA | 0.31 | 0.39 | 0.350 |
MCD | 0.31 | 0.37 | 0.340 |
JDOT | 0.29 | 0.39 | 0.340 |
AFN | 0.32 | 0.41 | 0.365 |
DAN | 0.28 | 0.37 | 0.325 |
DANN | 0.30 | 0.37 | 0.335 |
RSD | 0.26 | 0.30 | 0.280 |
DARE-GRAM | 0.23 | 0.29 | 0.260 |
COD | 0.20 | 0.21 | 0.205 |
Method | RL RC | RL T | RC RL | RC T | T RL | T RC | Avg. |
---|---|---|---|---|---|---|---|
Resnet-18 | 0.17 | 0.44 | 0.19 | 0.45 | 0.51 | 0.50 | 0.377 |
TCA | 0.17 | 0.42 | 0.19 | 0.42 | 0.50 | 0.50 | 0.373 |
MCD | 0.13 | 0.40 | 0.15 | 0.45 | 0.52 | 0.50 | 0.358 |
JDOT | 0.16 | 0.41 | 0.16 | 0.41 | 0.47 | 0.47 | 0.353 |
AFN | 0.18 | 0.45 | 0.20 | 0.46 | 0.53 | 0.53 | 0.390 |
DAN | 0.12 | 0.35 | 0.12 | 0.27 | 0.40 | 0.41 | 0.278 |
DANN | 0.09 | 0.24 | 0.11 | 0.41 | 0.48 | 0.37 | 0.283 |
RSD | 0.09 | 0.19 | 0.08 | 0.15 | 0.36 | 0.36 | 0.205 |
DARE-GRAM | 0.09 | 0.15 | 0.10 | 0.14 | 0.24 | 0.24 | 0.160 |
COD | 0.10 | 0.11 | 0.13 | 0.15 | 0.37 | 0.29 | 0.192 |
Objectives | dSprites | Biwi Kinect | MPI3D | ||||||
---|---|---|---|---|---|---|---|---|---|
MSE | C S | N S | T RL | T RC | M F | F M | |||
0.90 | 0.65 | 0.29 | 0.38 | 0.51 | 0.50 | ||||
0.18 | 0.26 | 0.21 | 0.25 | 0.41 | 0.34 | ||||
0.26 | 0.45 | 0.21 | 0.22 | 0.40 | 0.31 | ||||
0.17 | 0.25 | 0.21 | 0.22 | 0.41 | 0.29 | ||||
0.16 | 0.23 | 0.20 | 0.21 | 0.37 | 0.29 |
Ablation study. The ablation experiment was conducted on the most challenging tasks from all three datasets: and from dSprites, and from MPI3D, and both and from Biwi Kinect. The major components of proposed method, i.e., MSE objective , KGW distance , COD distance and modified COD , are evaluated, where the results are shown in Tab. 4.
From the 2nd and 3rd rows, it can be observed that both OT-based metrics show promising results on DAR datasets, where the conditional alignment with COD shows better performance than marginal alignment with KGW on MPI3D and Biwi Kinect datasets. On the other hand, since dSprites induce more difficult transfer problems, the baseline performance is generally lower, and the pseudo labels for conditional alignment are less reliable. Therefore, the combination of KGW and COD is necessary to ensure higher performance on challenging tasks, where the results in the 4th row validate the mutually beneficial relation between these two objectives. Finally, the 5th row shows the effectiveness of rethinking the discriminability of COD, which implies the modifications on the moment statistics indeed ensure lower MAE values on all datasets. Overall, these results demonstrate that conditional alignment is indeed crucial for successful DAR, and the theoretical results and proposed method are generally valid.
Feature Visualization. t-SNE [34] is employed to visualize the 2-D features of different alignments on dSprites CN task. (a) Before adaptation, distributions of source and target domain differ severely, as shown in Fig. 3(a), which implies predictor is infeasible for the target samples with a significant domain gap. (b) After marginal distribution alignment via the SOTA DARE-GRAM method, source and target representations are aligned globally, and the cross-domain distributions are overlapped on the whole. However, there are still misaligned local patterns where source and target samples of different colors are matched. Therefore, it is hard to fit clear level sets in Fig. 3 (b). (c) After conditional distribution alignment via COD, source and target distributions are aligned not only globally but also locally. As shown in Fig. 3 (c), representations are matched according to label values so the change of color shows a clear gradient and level sets suitable for both domains can be fitted.
Hyper-parameter. We investigate the sensitivity of hyper-parameters on dSprites CN. MAE values by varying and , i.e., parameters of modified COD and KGW, are shown in Fig. 4. The results show that the performance of the COD-based DAR model is generally robust to the different choice of parameters. In fact, the MAE values of the COD-based model are stable in random experiments, which implies the proposed method is both robust from the view of randomness and parameter setting. In conclusion, the stable performance validates that the proposed model is also empirically reliable.
5 Conclusion
In this work, we studied the limitations of existing DAR research, i.e., the misaligned intrinsic discriminant structure and negative transfer of marginal distribution matching framework. To deal with the challenges of conditional shift with continuous output space, we provide feasible solutions from both theoretical and methodological views, where the main results show that: 1) the cross-domain generalization regression error can be sufficiently bounded by the conditional discrepancy on continuous labels; 2) the proposed COD serves as a well-defined metric for conditional discrepancy measures and empirical modeling. With these guarantees, a COD-based DAR method is proposed with a discriminability enhancement mechanism. Numerical validations on standard DAR datasets validate the superiority of COD.
Acknowledgements
This work is supported in part by National Natural Science Foundation of China (Grant No. 62376291), in part by Guangdong Basic and Applied Basic Research Foundation (2023B1515020004), in part by Science and Technology Program of Guangzhou (2024A04J6413), in part by the Fundamental Research Funds for the Central Universities, Sun Yat-sen University (24xkjc013), in part by Guangdong Province Key Laboratory of Computational Science at Sun Yat-sen University (2020B1212060032), and in part by Key Laboratory of Machine Intelligence and Advanced Computing, Ministry of Education.
References
- [1] Bao, Y., Liu, Y., Wang, H., Lu, F.: Generalizing gaze estimation with rotation consistency. In: IEEE Conf. Comput. Vis. Pattern Recog. pp. 4207–4216 (2022)
- [2] Ben-David, S., Blitzer, J., Crammer, K., Kulesza, A., Pereira, F., Vaughan, J.W.: A theory of learning from different domains. Mach. Learn. 79, 151–175 (2010)
- [3] Chen, L., Chen, H., Wei, Z., Jin, X., Tan, X., Jin, Y., Chen, E.: Reusing the task-specific classifier as a discriminator: Discriminator-free adversarial domain adaptation. In: IEEE Conf. Comput. Vis. Pattern Recog. pp. 7181–7190 (2022)
- [4] Chen, X., Wang, S., Wang, J., Long, M.: Representation subspace distance for domain adaptation regression. In: Int. Conf. Mach. Learn. pp. 1749–1759 (2021)
- [5] Chen, Y., Song, S., Li, S., Wu, C.: A graph embedding framework for maximum mean discrepancy-based domain adaptation algorithms. IEEE Trans. Image Process. 29, 199–213 (2019)
- [6] Tachet des Combes, R., Zhao, H., Wang, Y.X., Gordon, G.J.: Domain adaptation with conditional distribution matching and generalized label shift. In: Adv. Neural Inform. Process. Syst. vol. 33, pp. 19276–19289 (2020)
- [7] Cortes, C., Mohri, M.: Domain adaptation in regression. In: ICALT. pp. 308–323 (2011)
- [8] Courty, N., Flamary, R., Habrard, A., Rakotomamonjy, A.: Joint distribution optimal transportation for domain adaptation. Adv. Neural Inform. Process. Syst. 30 (2017)
- [9] Courty, N., Flamary, R., Tuia, D.: Domain adaptation with regularized optimal transport. In: ECML PKDD. pp. 274–289 (2014)
- [10] Damodaran, B.B., Kellenberger, B., Flamary, R., Tuia, D., Courty, N.: Deepjdot: Deep joint distribution optimal transport for unsupervised domain adaptation. In: Eur. Conf. Comput. Vis. pp. 447–463 (2018)
- [11] Dhaini, M., Berar, M., Honeine, P., Van Exem, A.: Unsupervised domain adaptation for regression using dictionary learning. Knowl.-Based Syst. 267, 110439 (2023)
- [12] Fanelli, G., Dantone, M., Gall, J., Fossati, A., Van Gool, L.: Random forests for real time 3d face analysis. Int. J. Comput. Vis. 101, 437–458 (2013)
- [13] Fukumizu, K., Bach, F.R., Jordan, M.I.: Kernel dimension reduction in regression. Ann. Stat. 37(4), 1871–1905 (2009)
- [14] Ganin, Y., Ustinova, E., Ajakan, H., Germain, P., Larochelle, H., Laviolette, F., March, M., Lempitsky, V.: Domain-adversarial training of neural networks. J. Mach. Learn. Res. 17(59), 1–35 (2016)
- [15] Geng, X., Zhou, Z.H., Smith-Miles, K.: Automatic age estimation based on facial aging patterns. IEEE Trans. Pattern Anal. Mach. Intell. 29(12), 2234–2240 (2007)
- [16] Gondal, M.W., Wuthrich, M., Miladinovic, D., Locatello, F., Breidt, M., Volchkov, V., Akpo, J., Bachem, O., Schölkopf, B., Bauer, S.: On the transfer of inductive bias from simulation to the real world: a new disentanglement dataset. Adv. Neural Inform. Process. Syst. 32 (2019)
- [17] Gong, B., Shi, Y., Sha, F., Grauman, K.: Geodesic flow kernel for unsupervised domain adaptation. In: IEEE Conf. Comput. Vis. Pattern Recog. pp. 2066–2073 (2012)
- [18] Goswami, S., Kontolati, K., Shields, M.D., Karniadakis, G.E.: Deep transfer operator learning for partial differential equations under conditional shift. Nat. Mach. Intell. 4(12), 1155–1164 (2022)
- [19] Higgins, I., Matthey, L., Pal, A., Burgess, C., Glorot, X., Botvinick, M., Mohamed, S., Lerchner, A.: beta-vae: Learning basic visual concepts with a constrained variational framework. In: Int. Conf. Learn. Represent. (2016)
- [20] Hoffman, J., Tzeng, E., Park, T., Zhu, J.Y., Isola, P., Saenko, K., Efros, A., Darrell, T.: Cycada: Cycle-consistent adversarial domain adaptation. In: Int. Conf. Mach. Learn. pp. 1989–1998 (2018)
- [21] Hu, J., Zhong, H., Yang, F., Gong, S., Wu, G., Yan, J.: Learning unbiased transferability for domain adaptation by uncertainty modeling. In: Eur. Conf. Comput. Vis. pp. 223–241 (2022)
- [22] Jiang, J., Ji, Y., Wang, X., Liu, Y., Wang, J., Long, M.: Regressive domain adaptation for unsupervised keypoint detection. In: IEEE Conf. Comput. Vis. Pattern Recog. pp. 6780–6789 (2021)
- [23] Kirchmeyer, M., Rakotomamonjy, A., de Bezenac, E., Gallinari, P.: Mapping conditional distributions for domain adaptation under generalized target shift. In: Int. Conf. Learn. Represent. (2022)
- [24] Lee, C.Y., Batra, T., Baig, M.H., Ulbricht, D.: Sliced wasserstein discrepancy for unsupervised domain adaptation. In: IEEE Conf. Comput. Vis. Pattern Recog. pp. 10285–10295 (2019)
- [25] Li, B., Wang, Y., Zhang, S., Li, D., Keutzer, K., Darrell, T., Zhao, H.: Learning invariant representations and risks for semi-supervised domain adaptation. In: IEEE Conf. Comput. Vis. Pattern Recog. pp. 1104–1113 (2021)
- [26] Li, X., Li, J., Zuo, L., Zhu, L., Shen, H.T.: Domain adaptive remaining useful life prediction with transformer. IEEE Trans. Instrum. 71, 1–13 (2022)
- [27] Li, Z., Zhang, K., Liu, Y., Zou, Y., Ding, G.: A novel remaining useful life transfer prediction method of rolling bearings based on working conditions common benchmark. IEEE Trans. Instrum. 71, 1–9 (2022)
- [28] Long, M., Cao, Y., Wang, J., Jordan, M.: Learning transferable features with deep adaptation networks. In: Int. Conf. Mach. Learn. pp. 97–105 (2015)
- [29] Long, M., Cao, Z., Wang, J., Jordan, M.I.: Conditional adversarial domain adaptation. Adv. Neural Inform. Process. Syst. 31 (2018)
- [30] Long, M., Zhu, H., Wang, J., Jordan, M.I.: Deep transfer learning with joint adaptation networks. In: Int. Conf. Mach. Learn. pp. 2208–2217 (2017)
- [31] Luo, Y.W., Ren, C.X.: Conditional bures metric for domain adaptation. In: IEEE Conf. Comput. Vis. Pattern Recog. pp. 13989–13998 (2021)
- [32] Luo, Y.W., Ren, C.X.: Mot: Masked optimal transport for partial domain adaptation. In: IEEE Conf. Comput. Vis. Pattern Recog. pp. 3531–3540 (2023)
- [33] Luo, Y.W., Ren, C.X., Dai, D.Q., Yan, H.: Unsupervised domain adaptation via discriminative manifold propagation. IEEE Trans. Pattern Anal. Mach. Intell. 44(3), 1653–1669 (2022)
- [34] Van der Maaten, L., Hinton, G.: Visualizing data using t-sne. J. Mach. Learn. Res. 9(11) (2008)
- [35] Mansour, Y., Mohri, M., Rostamizadeh, A.: Domain adaptation: Learning bounds and algorithms. arXiv preprint arXiv:0902.3430 (2009)
- [36] Mao, W., Ge, Y., Shen, C., Tian, Z., Wang, X., Wang, Z., den Hengel, A.v.: Poseur: Direct human pose regression with transformers. In: Eur. Conf. Comput. Vis. pp. 72–88 (2022)
- [37] de Mathelin, A., Richard, G., Deheeger, F., Mougeot, M., Vayatis, N.: Adversarial weighting for domain adaptation in regression. In: ICTAI. pp. 49–56 (2021)
- [38] Nejjar, I., Wang, Q., Fink, O.: Dare-gram: Unsupervised domain adaptation regression by aligning inverse gram matrices. In: IEEE Conf. Comput. Vis. Pattern Recog. pp. 11744–11754 (2023)
- [39] Nikzad-Langerodi, R., Zellinger, W., Saminger-Platz, S., Moser, B.A.: Domain adaptation for regression under beer–lambert’s law. Knowl.-Based Syst. 210, 106447 (2020)
- [40] Pan, S.J., Tsang, I.W., Kwok, J.T., Yang, Q.: Domain adaptation via transfer component analysis. IEEE Trans. Neural Netw. 22(2), 199–210 (2010)
- [41] Pei, Z., Cao, Z., Long, M., Wang, J.: Multi-adversarial domain adaptation. In: AAAI. vol. 32 (2018)
- [42] Peng, R., Wang, R., Wang, Z., Lai, Y., Wang, R.: Rethinking depth estimation for multi-view stereo: A unified representation. In: IEEE Conf. Comput. Vis. Pattern Recog. pp. 8645–8654 (2022)
- [43] Quinonero-Candela, J., Sugiyama, M., Schwaighofer, A., Lawrence, N.D.: Dataset shift in machine learning. Mit Press (2008)
- [44] Ren, C.X., Luo, Y.W., Dai, D.Q.: Buresnet: Conditional bures metric for transferable representation learning. IEEE Trans. Pattern Anal. Mach. Intell. 45(4), 4198–4213 (2023)
- [45] Saito, K., Watanabe, K., Ushiku, Y., Harada, T.: Maximum classifier discrepancy for unsupervised domain adaptation. In: IEEE Conf. Comput. Vis. Pattern Recog. pp. 3723–3732 (2018)
- [46] Shen, J., Qu, Y., Zhang, W., Yu, Y.: Wasserstein distance guided representation learning for domain adaptation. In: AAAI. vol. 32 (2018)
- [47] Singh, A., Chakraborty, S.: Deep domain adaptation for regression. Development and Analysis of Deep Learning Architectures pp. 91–115 (2020)
- [48] Song, L., Huang, J., Smola, A., Fukumizu, K.: Hilbert space embeddings of conditional distributions with applications to dynamical systems. In: Int. Conf. Mach. Learn. pp. 961–968 (2009)
- [49] Sun, B., Feng, J., Saenko, K.: Return of frustratingly easy domain adaptation. In: AAAI. vol. 30 (2016)
- [50] Tang, H., Jia, K.: Discriminative adversarial domain adaptation. In: AAAI. vol. 34, pp. 5940–5947 (2020)
- [51] Teshima, T., Sato, I., Sugiyama, M.: Few-shot domain adaptation by causal mechanism transfer. In: Int. Conf. Mach. Learn. pp. 9458–9469 (2020)
- [52] Tzeng, E., Hoffman, J., Saenko, K., Darrell, T.: Adversarial discriminative domain adaptation. In: IEEE Conf. Comput. Vis. Pattern Recog. pp. 7167–7176 (2017)
- [53] Wang, H., Shen, T., Zhang, W., Duan, L.Y., Mei, T.: Classes matter: A fine-grained adversarial approach to cross-domain semantic segmentation. In: Eur. Conf. Comput. Vis. pp. 642–659 (2020)
- [54] Wang, W., Li, H., Ding, Z., Nie, F., Chen, J., Dong, X., Wang, Z.: Rethinking maximum mean discrepancy for visual domain adaptation. IEEE Trans. Neural Netw. Learn. Syst. (2021)
- [55] Wang, Y., Jiang, Y., Li, J., Ni, B., Dai, W., Li, C., Xiong, H., Li, T.: Contrastive regression for domain adaptation on gaze estimation. In: IEEE Conf. Comput. Vis. Pattern Recog. pp. 19376–19385 (2022)
- [56] Wei, P., Ke, Y., Ong, Y.S., Ma, Z.: Adaptive transfer kernel learning for transfer gaussian process regression. IEEE Trans. Pattern Anal. Mach. Intell. (2022)
- [57] Wu, J., He, J., Wang, S., Guan, K., Ainsworth, E.: Distribution-informed neural networks for domain adaptation regression. Adv. Neural Inform. Process. Syst. 35, 10040–10054 (2022)
- [58] Xu, R., Li, G., Yang, J., Lin, L.: Larger norm more transferable: An adaptive feature norm approach for unsupervised domain adaptation. In: Int. Conf. Comput. Vis. pp. 1426–1435 (2019)
- [59] Zhang, Z., Wang, M., Nehorai, A.: Optimal transport in reproducing kernel hilbert spaces: Theory and applications. IEEE Trans. Pattern Anal. Mach. Intell. 42(7), 1741–1754 (2019)
- [60] Zhao, H., Combes, R.T.D., Zhang, K., Gordon, G.: On learning invariant representations for domain adaptation. In: Int. Conf. Mach. Learn. pp. 7523–7532 (2019)
- [61] Zhao, H., Coston, A., Adel, T., Gordon, G.J.: Conditional learning of fair representations. In: Int. Conf. Learn. Represent. (2020)
- [62] Zhao, H., Dan, C., Aragam, B., Jaakkola, T.S., Gordon, G.J., Ravikumar, P.: Fundamental limits and tradeoffs in invariant representation learning. J. Mach. Learn. Res. 23(340), 1–49 (2022)