Algorithms and Theory for Multiple-Source Adaptation

Judy Hoffman, Mehryar Mohri, Ningshan Zhang

Introduction

In many modern applications, often the learner has access to information about several source domains, including accurate predictors possibly trained and made available by others, but no direct information about a target domain for which one wishes to achieve a good performance. The target domain can typically be viewed as a combination of the source domains, that is a mixture of their joint distributions, or it may be close to such mixtures. In addition, often the learner does not have access to all source data simultaneously, for legitimate reasons such as privacy, storage limitation, etc. Thus the learner cannot simply pool all source data together to learn a predictor.

Such problems arise commonly in speech recognition where different groups of speakers (domains) yield different acoustic models and the problem is to derive an accurate acoustic model for a broader population that may be viewed as a mixture of the source groups (Liao, 2013). In object recognition, multiple image databases exist, each with its own bias and labeled categories (Torralba and Efros, 2011), but the target application may contain images which most closely resemble only a subset of the available training data. Finally, in sentiment analysis, accurate predictors may be available for sub-domains such as TVs, laptops and CD players, each previously trained on labeled data, but no labeled data or predictor may be at the learner’s disposal for the more general category of electronics, which can be modeled as a mixture of the sub-domains (Blitzer et al., 2007; Dredze et al., 2008).

The problem of transfer from a single source to a known target domain, either through unsupervised adaptation techniques (Gong et al., 2012; Long et al., 2015; Ganin and Lempitsky, 2015; Tzeng et al., 2015), or via lightly supervised ones (some amount of labeled data from the target domain) (Saenko et al., 2010; Yang et al., 2007; Hoffman et al., 2013; Girshick et al., 2014), has been extensively investigated in the past. Here, we focus on the problem of multiple-source domain adaptation and ask how the learner can combine relatively accurate predictors available for each source domain to derive an accurate predictor for any new mixture target domain? This is known as the multiple-source adaption (MSA) problem first formalized and analyzed theoretically by Mansour et al. (2008, 2009) and later studied for various applications such as object recognition (Hoffman et al., 2012; Gong et al., 2013a, b). Recently, Zhang et al. (2015) studied a causal formulation of this problem and analyzed the same combination rules of Mansour et al. (2008, 2009) for classification scenario. A closely related problem is also that of domain generalization (Pan and Yang, 2010; Muandet et al., 2013; Xu et al., 2014), where knowledge from an arbitrary number of related domains is combined to perform well on a previously unseen domain.

Mansour et al. (2008, 2009) gave strong theoretical guarantees for a distribution-weighted combination for the MSA problem, but they did not provide any algorithmic solution. Furthermore, the solution they proposed could not be used for loss functions such as cross-entropy, which require a normalized predictor. Their work also assumed a deterministic scenario (non-stochastic) with the same labeling function for all source domains.

This work makes a number of novel contributions to the MSA problem. We give new normalized solutions with strong theoretical guarantees for the cross-entropy loss and other similar losses. Our guarantees hold even when the conditional probabilities for the source domains are distinct. A by-product of our analysis is the extension of the theoretical results of Mansour et al. (2008, 2009) to the stochastic scenario, where there is a joint distribution over the input and output space.

Moreover, we give new algorithms for determining the distribution-weighted combination solution for the cross-entropy loss and other losses. We prove that the problem of determining that solution can be cast as a DC-programming (difference of convex) and prove explicit DC-decompositions for the cross-entropy loss and other losses. We also give a series of experimental results with several datasets demonstrating that our distribution-weighted combination solution is remarkably robust. Our algorithm outperforms competing approaches and performs well on any target mixture distribution.

Altogether, our theory, algorithms, and empirical results provide a full solution for the MSA problem with very practical benefits.

Problem setup

Let X\mathcal{X} denote the input space and Y\mathcal{Y} the output space. We consider a multiple-source domain adaptation (MSA) problem in the general stochastic scenario where there is a distribution over the joint input-output space, X×Y\mathcal{X}\times\mathcal{Y}. This is a more general setup than the deterministic scenario in (Mansour et al., 2008, 2009), where a target function mapping from X\mathcal{X} to Y\mathcal{Y} is assumed. This extension is needed for the analysis of the most common and realistic learning setups in practice. We will assume that X\mathcal{X} and Y\mathcal{Y} are discrete, but the predictors we consider can take real values. Our theory can be straightforwardly extended to the continuous case with summations replaced by integrals in the proofs. We will identify a domain with a distribution over X×Y\mathcal{X}\times\mathcal{Y} and consider the scenario where the learner has access to a predictor hkh_{k}, for each domain Dk{\mathscr{D}}_{k}, k=1,…,pk=1,\ldots,p.

We consider two types of predictor functions hkh_{k}, and their associated loss functions LL under the regression model (R) and the probability model (P) respectively,

We abuse the notation and write L(h,x,y)L(h,x,y) to denote the loss of a predictor hh at point (x,y)(x,y), that is L(h(x),y)L(h(x),y) in the regression model, and L(h(x,y))L(h(x,y)) in the probability model. We will denote by L(D,h)\mathcal{L}({\mathscr{D}},h) the expected loss of a predictor hh with respect to the distribution D{\mathscr{D}}:

Much of our theory only assumes that LL is convex and continuous. But, we will be particularly interested in the case where in the regression model, L(h(x),y)=(h(x)−y)2L(h(x),y)=(h(x)-y)^{2} is the squared loss, and where in the probability model, L(h(x,y))=−log⁡h(x,y)L(h(x,y))=-\log h(x,y) is the cross-entropy loss (log⁡\log-loss).

We will assume that each hkh_{k} is a relatively accurate predictor for the distribution Dk{\mathscr{D}}_{k}: there exists ϵ>0\epsilon>0 such that L(Dk,hk)≤ϵ\mathcal{L}({\mathscr{D}}_{k},h_{k})\leq\epsilon for all k∈[p]k\in[p]. We will also assume that the loss of the source hypotheses hkh_{k} is bounded, that is L(hk,x,y)≤ML(h_{k},x,y)\leq M for all (x,y)∈X×Y(x,y)\in\mathcal{X}\times\mathcal{Y} and all k∈[p]k\in[p].

In the MSA problem, the learner’s objective is to combine these predictors to design a predictor with small expected loss on a target domain that could be an arbitrary and unknown mixture of the source domains, the case we are particularly interested in, or even some other arbitrary distribution. It is worth emphasizing that the leaner has no knowledge of the target domain.

How do we combine the hkh_{k}s? Can we use a convex combination rule, ∑k=1pλkhk\sum_{k=1}^{p}\lambda_{k}h_{k}, for some λ∈Δ\lambda\in\Delta? In Appendix A (Lemmas 7 and 8) we show that no convex combination rule will perform well even in very simple MSA problems. These results generalize a previous lower bound of Mansour et al. (2008). Next, we show that the distribution-weighted combination rule is the right solution.

Extending the definition given by Mansour et al. (2008), we define the distribution-weighted combination of the functions hkh_{k}, k∈[p]k\in[p] as follows. For any z∈Δz\in\Delta, η>0\eta>0, and (x,y)∈X×Y(x,y)\in\mathcal{X}\times\mathcal{Y},

where we denote by D1(x){\mathscr{D}}^{1}(x) the marginal distribution over X\mathcal{X}: D1(x)=∑y∈YD(x,y){\mathscr{D}}^{1}(x)=\sum_{y\in\mathcal{Y}}{\mathscr{D}}(x,y), and U1(x){\mathscr{U}}^{1}(x) the uniform distribution over X\mathcal{X}. This extension may seem technically straightforward in hindsight, but the form of the predictor was not immediately clear in the stochastic case.

Theoretical analysis

In this section, we present theoretical analyses of the general multiple-source adaptation setting. We first introduce our main result for the general stochastic scenario. Next, for the probability model with cross-entropy loss, we introduce a normalized distribution weighted combination and prove that it benefits from strong theoretical guarantees.

Our theoretical results rely on the measure of divergence between distributions. The one that naturally comes up in our analysis is the Rényi Divergence (Rényi, 1961). We will denote by dα(D∥D′)=eDα(D∥D′){\mathsf{d}}_{\alpha}({\mathscr{D}}\parallel{\mathscr{D}}^{\prime})=e^{{\mathsf{D}}_{\alpha}({\mathscr{D}}\parallel{\mathscr{D}}^{\prime})} the exponential of the α\alpha-Rényi Divergence of two distributions D{\mathscr{D}} and D′{\mathscr{D}}^{\prime}. More details of the Rényi Divergence are given in Appendix F.

Let DT{\mathscr{D}}_{T} be an unknown target distribution. We will denote by DT(⋅∣x){\mathscr{D}}_{T}(\cdot|x) and Dk(⋅∣x){\mathscr{D}}_{k}(\cdot|x) the conditional probability distribution on the target and the source domain respectively. Given the same input xx, DT(⋅∣x),Dk(⋅∣x),k∈[p]{\mathscr{D}}_{T}(\cdot|x),{\mathscr{D}}_{k}(\cdot|x),k\in[p] are not necessarily the same. This is a novel extension that was not discussed in (Mansour et al., 2009), where in the deterministic scenario, exactly the same labeling function ff is assumed for all source domains.

For some choice of α>1\alpha>1, define ϵT\epsilon_{T} by

When the average divergence is small, α\alpha can be chosen to be very large and ϵT\epsilon_{T} is close to ϵ\epsilon.

Let DT{\mathscr{D}}_{T} be a mixture of source distributions, such that DT1∈D1={∑k=1pλkDk1:λ∈Δ}{\mathscr{D}}^{1}_{T}\in\mathcal{D}^{1}=\{\sum_{k=1}^{p}\lambda_{k}{\mathscr{D}}^{1}_{k}:\lambda\in\Delta\} in the regression model (R), or DT∈D={∑k=1pλkDk ⁣:λ∈Δ}{\mathscr{D}}_{T}\in\mathcal{D}=\{\sum_{k=1}^{p}\lambda_{k}{\mathscr{D}}_{k}\colon\lambda\in\Delta\} in the probability model (P).

For any δ>0\delta>0, there exists η>0\eta>0 and z∈Δz\in\Delta such that the following inequalities hold for any α>1\alpha>1:

The proof is given in Appendix B. The learning guarantees for the regression and the probability model are slightly different, since the definitions of the distribution-weighted combinations are different for the two models. Theorem 1 shows the existence of η>0\eta>0 and a mixture weight z∈Δz\in\Delta with a remarkable property: in the regression model (R), for any target distribution DT{\mathscr{D}}_{T} whose conditional probability DT(⋅∣x){\mathscr{D}}_{T}(\cdot|x) is on average not too far away from Dk(⋅∣x){\mathscr{D}}_{k}(\cdot|x) for any k∈[p]k\in[p], and DT1∈D1{\mathscr{D}}^{1}_{T}\in\mathcal{D}^{1}, the loss of hzηh_{z}^{\eta} on DT{\mathscr{D}}_{T} is small. It is even more remarkable that, in the probability model (P), the loss of hzηh_{z}^{\eta} is at most ϵ\epsilon on any target distribution DT∈D{\mathscr{D}}_{T}\in\mathcal{D}. Therefore, hzηh_{z}^{\eta} is a robust hypothesis with favorable property for any such target distribution DT{\mathscr{D}}_{T}.

In many learning tasks, it is reasonable to assume that the conditional probability of the output labels is the same for all source domains. For example, a dog picture represents a dog regardless of whether the dog appears in an individual’s personal set of pictures or in a broader database of pictures from multiple individuals. This is a straightforward extension of the assumption adopted by Mansour et al. (2008) in the deterministic scenario, where exactly the same labeling function ff is assumed for all source domains. Then DT(⋅∣x)=Dk(⋅∣x),∀k∈[p]{\mathscr{D}}_{T}(\cdot|x)={\mathscr{D}}_{k}(\cdot|x),\forall k\in[p]. By definition, dα(DT(⋅∣x)∥Dk(⋅∣x))=1{\mathsf{d}}_{\alpha}\left({\mathscr{D}}_{T}(\cdot|x)\parallel{\mathscr{D}}_{k}(\cdot|x)\right)=1. Let α→+∞\alpha\to+\infty, we recover the main result of Mansour et al. (2008).

Assume the conditional probability Dk(⋅∣x){\mathscr{D}}_{k}(\cdot|x) does not depend on kk. Let Dλ{\mathscr{D}}_{\lambda} be an arbitrary mixture of source domains, λ∈Δ\lambda\in\Delta. For any δ>0\delta>0, there exists η>0\eta>0 and z∈Δz\in\Delta, such that L(Dλ,hzη)≤ϵ+δ\mathcal{L}({\mathscr{D}}_{\lambda},h_{z}^{\eta})\leq\epsilon+\delta.

Corollary 2 shows the existence of a mixture weight z∈Δz\in\Delta and η>0\eta>0 with a remarkable property: for any δ>0\delta>0, regardless of which mixture weight λ∈Δ\lambda\in\Delta defines the target distribution, the loss of hzηh_{z}^{\eta} is at most ϵ+δ\epsilon+\delta, that is arbitrarily close to ϵ\epsilon. hzηh_{z}^{\eta} is therefore a robust hypothesis with a favorable property for any mixture target distribution.

To cover the realistic cases in applications, we further extend this result to the case where the distributions Dk{\mathscr{D}}_{k} are not directly available to the learner, and instead estimates D^k\widehat{\mathscr{D}}_{k} have been derived from data, and further to the case where the target distribution DT{\mathscr{D}}_{T} is not a mixture of source distributions (Corollary 11 in Appendix B). We will denote by h^zη\widehat{h}_{z}^{\eta} the distribution-weighted combination rule based on the estimates D^k\widehat{\mathscr{D}}_{k}. Our learning guarantee for h^zη\widehat{h}_{z}^{\eta} depends on the Rényi divergence of D^k\widehat{\mathscr{D}}_{k} and Dk{\mathscr{D}}_{k}, as well as the Rényi divergence of DT{\mathscr{D}}_{T} and the family of source mixtures.

2 Probability model with the cross-entropy loss

Next, we discuss the special case where LL coincide with the cross-entropy loss in the probability model, and present an analysis for a normalized distribution-weighted combination solution. This analysis is a complement to Theorem 1, which only works for the unnormalized hypothesis hzη(x,y)h_{z}^{\eta}(x,y).

The cross-entropy loss assumes normalized hypotheses. Thus, the source functions are normalized for every xx: ∑y∈Yhk(x,y)=1, ∀x∈X,∀k∈[p]\sum_{y\in\mathcal{Y}}h_{k}(x,y)=1,\ \forall x\in\mathcal{X},\forall k\in[p]. For any z∈Δz\in\Delta, η>0\eta>0, we define the normalized weighted combination h‾zη(x,y)\overline{h}_{z}^{\eta}(x,y) that is based on hzη(x,y)h_{z}^{\eta}(x,y) in (2):

We will first assume the conditional probability Dk(⋅∣x){\mathscr{D}}_{k}(\cdot|x) does not depend on kk.

Assume there exists μ>0\mu>0 such that Dk(x,y)≥μU(x,y){\mathscr{D}}_{k}(x,y)\geq\mu{\mathscr{U}}(x,y) for all k∈[p]k\in[p] and (x,y)∈X×Y(x,y)\in\mathcal{X}\times\mathcal{Y}. Then, for any δ>0\delta>0, there exists η>0\eta>0 and z∈Δz\in\Delta, such that L(Dλ,h‾zη)≤ϵ+δ\mathcal{L}({\mathscr{D}}_{\lambda},\overline{h}_{z}^{\eta})\leq\epsilon+\delta for any mixture parameter λ∈Δ\lambda\in\Delta.

The result of Theorem 3 admits the same favorable property as that of Corollary 2. It can also be extended to the case of arbitrary target distributions and estimated densities. When the conditional probabilities are different across the source domains, we propose a marginal distribution-weighted combination rule, which is already normalized. We can directly apply Theorem 1 to it and achieve favorable guarantees. More details are given in Appendix C.

These results are non-trivial and important, as they provide a guarantee for an accurate and robust predictor for a commonly used loss function, the cross-entropy loss.

Algorithms

We have shown that, for both the regression and the probability model, there exists a vector zz defining a distribution-weighted combination hypothesis hzηh_{z}^{\eta} that admits very favorable guarantees. But how we find a such zz? This is a key question in the MSA problem which was not addressed by Mansour et al. (2008, 2009): no algorithm was previously reported to determine the mixture parameter zz (even for the deterministic scenario). Here, we give an algorithm for determining that vector zz.

In this section, we give practical and efficient algorithms for finding the vector zz in the important cases of the squared loss in the regression model, or the cross-entropy loss in the probability model, by leveraging the differentiability of the loss functions. We first show that zz is the solution of a general optimization problem. Next, we give a DC-decomposition (difference of convex decomposition) of the objective for both models, thereby proving an explicit DC-programming formulation of the problem. This leads to an efficient DC algorithm that is guaranteed to converge to a stationary point. Additionally, we show that it is straightforward to test if the solution obtained is the global optimum. While we are not proving that the local stationary point found by our algorithm is the global optimum, empirically, we observe that that is indeed the case.

Theorem 1 shows that the hypothesis hzηh_{z}^{\eta} based on the mixture parameter zz benefits from a strong generalization guarantee. A key step in proving Theorem 1 is to show the following lemma.

For any η,η′>0\eta,\eta^{\prime}>0, there exists z∈Δz\in\Delta, with zk≠0z_{k}\neq 0 for all k∈[p]k\in[p], such that the following holds for the distribution-weighted combining rule hzηh_{z}^{\eta}:

Lemma 4 indicates that for the solution zz, hzηh_{z}^{\eta} has essentially the same loss on all source domains. Thus, our problem consists of finding a parameter zz verifying this property. This, in turn, can be formulated as a min-max problem: min⁡z∈Δmax⁡k∈[p]L(Dk,hzη)−L(Dz,hzη),\min_{z\in\Delta}\max_{k\in[p]}\mathcal{L}({\mathscr{D}}_{k},h_{z}^{\eta})-\mathcal{L}({\mathscr{D}}_{z},h_{z}^{\eta}), which can be equivalently formulated as the following optimization problem:

2 DC-decomposition

We provide explicit DC decompositions of the objective of Problem (4) for the regression model with the squared loss and the probability model with the cross-entropy loss. The full derivations are given in Appendix D.

We first rewrite hzηh^{\eta}_{z} as the division of two affine functions for the regression model (R) and the probability model (P): hz=Jz/Kzh_{z}=J_{z}/K_{z}, where

Let LL be the squared loss. Then, for any k∈[p]k\in[p], L(Dk,hzη)−L(Dz,hzη)=uk(z)−vk(z)\mathcal{L}({\mathscr{D}}_{k},h_{z}^{\eta})-\mathcal{L}({\mathscr{D}}_{z},h_{z}^{\eta})=u_{k}(z)-v_{k}(z), where uku_{k} and vkv_{k} are convex functions defined for all zz by

Let LL be the cross-entropy loss. Then, for k∈[p]k\in[p], L(Dk,hzη)−L(Dz,hzη)=uk(z)−vk(z)\mathcal{L}({\mathscr{D}}_{k},h_{z}^{\eta})-\mathcal{L}({\mathscr{D}}_{z},h_{z}^{\eta})=u_{k}(z)-v_{k}(z), where uku_{k} and vkv_{k} are convex functions:

3 DC algorithm

Our DC decompositions prove that the optimization problem (4) can be cast as the following variational form of a DC-programming problem (Tao and An, 1997, 1998; Sriperumbudur and Lanckriet, 2012):

The DC-programming algorithm works as follows. Let (zt)t(z_{t})_{t} be the sequence defined by repeatedly solving the following convex optimization problem:

where z0∈Δz_{0}\in\Delta is an arbitrary starting value. Then, (zt)t(z_{t})_{t} is guaranteed to converge to a local minimum of Problem (4) (Yuille and Rangarajan, 2003; Sriperumbudur and Lanckriet, 2012). Note that Problem (6) is a relatively simple optimization problem: uk(z)u_{k}(z) is a weighted sum of the negative logarithm of an affine function of zz, plus a weighted sum of rational functions of zz (squared loss), and all other terms appearing in the constraints are affine functions of zz.

Problem (4) seeks a parameter zz verifying L(Dk,hzη)−L(Dz,hzη)≤γ\mathcal{L}({\mathscr{D}}_{k},h_{z}^{\eta})-\mathcal{L}({\mathscr{D}}_{z},h_{z}^{\eta})\leq\gamma, for all k∈[p]k\in[p] for an arbitrarily small value of γ\gamma. Since L(Dz,hzη)=∑k=1pzkL(Dk,hzη)\mathcal{L}({\mathscr{D}}_{z},h_{z}^{\eta})=\sum_{k=1}^{p}z_{k}\mathcal{L}({\mathscr{D}}_{k},h_{z}^{\eta}) is a weighted average of the expected losses L(Dk,hzη)\mathcal{L}({\mathscr{D}}_{k},h_{z}^{\eta}), k∈[p]k\in[p], the solution γ\gamma cannot be negative. Furthermore, by Lemma 4, a parameter zz verifying that inequality exists for any γ>0\gamma>0. Thus, the global solution γ\gamma of Problem (4) must be close to zero. This provides us with a simple criterion for testing the global optimality of the solution zz we obtain using a DC-programming algorithm with a starting parameter z0z_{0}.

Experiments

This section reports the results of our experiments with our DC-programming algorithm for finding a robust domain generalization solution when using squared loss and cross-entropy loss. We first evaluate our algorithm using an artificial dataset assuming known densities where we may compare our result to the global solution and found that indeed our global objective approached the known optimum of zero (see Appendix E for more details). Next, we evaluate our DC-programming solution applied to real-world datasets: a sentiment analysis dataset (Blitzer et al., 2007) for squared loss, a visual domain adaptation benchmark dataset Office (Saenko et al., 2010), as well as a generalization of digit recognition task, for cross-entropy loss.

For all real-world datasets, the probability distributions Dk{\mathscr{D}}_{k} are not readily available to the learner. However, Corollary 11 extends the learning guarantees of our solution to the case where an estimate D^k\widehat{\mathscr{D}}_{k} is used in lieu of the ideal distribution Dk{\mathscr{D}}_{k}. Thus, we used standard density estimation methods to derive an estimate D^k\widehat{\mathscr{D}}_{k} for each k∈[p]k\in[p]. While density estimation can be a difficult task in general, for our purpose straightforward techniques are sufficient for our predictor h^zη\widehat{h}_{z}^{\eta} to achieve a high performance, since the approximate densities only serve to indicate the relative importance of each source domain. We give full details of our density estimation procedure in Appendix E.

We use the sentiment analysis dataset proposed by Blitzer et al. (2007) and used for multiple-source adaptation by Mansour et al. (2008, 2009). This dataset consists of product review text and rating labels taken from four domains: books (B), dvd (D), electronics (E), and kitchen (K), with 20002000 samples for each domain. We defined a vocabulary of 2,5002\mathord{,}500 words that occur at least twice at the intersection of the four domains. These words were used to define feature vectors, where every sample is encoded by the number of occurrences of each word. We trained our base hypotheses using support vector regression (SVR) with same hyper-parameters as in (Mansour et al., 2008, 2009).

We compare our method (DW) against each source hypothesis, hkh_{k}. We also compute a privileged baseline using the oracle λ\lambda mixing parameter, λ\lambda-comb: ∑k=1pλkhk\sum_{k=1}^{p}\lambda_{k}h_{k}. λ\lambda-comb is of course not accessible in practice since the target mixture λ\lambda is not known to the user. We also compare against a previously proposed domain adaptation algorithm (Huang et al., 2006) known as KMM. It is important to note that the KMM model requires access to the unlabeled target data during adaptation and learns a new predictor for every target domain, while DW does not use any target data. Thus KMM operates in a favorable learning setting when compared to our solution.

We first considered the same test scenario as in (Mansour et al., 2008), where the target is a mixture of two source domains. The plots of Figures 1a and 1b report the results of our experiments. They show that our distribution-weighted predictor DW outperforms all baseline predictors despite the privileged learning scenarios of λ\lambda-comb and KMM. We didn’t compare to the “weighted” predictor in empirical studies by Mansour et al. (2008) because it is not a real solution, but rather taking the unknown target mixture λ\lambda as zz to compute hzh_{z}.

Next, we compared the performance of DW with accessible baseline predictors on various target mixtures. Since λ\lambda is not accessible in practice, We replace λ\lambda-comb with the uniform combination of all hypotheses (unif), ∑k=1phk/p\sum_{k=1}^{p}h_{k}/p. Table 1 reports the mean and standard deviations of MSE over 1010 repetitions. Each column corresponds to a different target test data source. Our distribution-weighted method DW outperforms all baseline predictors across all test domains. Observe that, even when the target is a single source domain, our method successfully outperforms the predictor which is trained and tested on the same domain. Results on more target mixtures are available in Appendix E.

2 Recognition tasks for cross-entropy loss

We consider two real-world domain adaptation tasks: a generalization of digit recognition task, and a standard visual adaptation Office dataset.

For each individual domain, we train a convolutional neural network (CNN) and use the output from the softmax score layer as our base predictors hkh_{k}. We compute the uniformly weighted combination of source predictors, hunif=∑k=1phk/ph_{\texttt{unif}}=\sum_{k=1}^{p}h_{k}/p. As a privileged baseline, we also train a model on all source data combined, hjointh_{\texttt{joint}}. Note, this approach is often not feasible if independent entities contribute classifiers and densities, but not full training datasets. Thus this approach is not consistent with our scenario, and it operates in a much more favorable learning setting than our solution. Finally, our distribution weighted predictor DW is computed with hkh_{k}s, density estimates, and our learned weighting, zz. Our baselines then consists of the classifiers from hkh_{k}, hunifh_{\texttt{unif}}, hjointh_{\texttt{joint}}, and DW.

We begin our study with a generalization of digit recognition task, which consists of three digit recognition datasets: Google Street View House Numbers (SVHN), MNIST, and USPS. Dataset statistics as well as example images can be found in Table 3. We train the ConvNet (or CNN) architecture following Taigman et al. (2017) as our source models and joint model. We use the second fully-connected layer’s output as our features for density estimation, and the output from the softmax score layer as our predictors. We use the full training sets per domain to learn the source model and densities. Note, these steps are completely isolated from one another and may be performed by unique entities and in parallel. Finally, for our DC-programming algorithm we use small subset of 200 real image-label pairs from each domain to learn the parameter zz.

Our next experiment uses the standard visual adaptation Office dataset, which has 3 domains: amazon, webcam, and dslr. The dataset contains 31 recognition categories of objects commonly found in an office environment. There are 4110 images total with 2817 from amazon, 795 from webcam, and 498 from dslr. We follow the standard protocol from Saenko et al. (2010), whereby 20 labeled examples are available for training from the amazon domain and 8 labeled examples are available from both the webcam and dslr domains. The remaining examples from each domain are used for testing. We use the AlexNet Krizhevsky et al. (2012) ConvNet (CNN) architecture, and use the output from softmax score layer as our base predictors, pre-trained on ImageNet and use fc7 activations as our features for density estimation Donahue et al. (2014).

We report the performance of our method and that of baselines on the digit recognition dataset in Table 3, and report the performance on the Office dataset in Table 4. On both datasets, we evaluate on various test distributions: each individual domain, the combination of each two domains and the fully combined set. When the test distribution equals one of the source distributions, our distribution-weighted classifier successfully outperforms (webcam,dslr) or maintains performance of the classifier which is trained and tested on the same domain. For the more realistic scenario where the target domain is a mixture of any two or all three source domains, the performance of our method is comparable or marginally superior to that of the jointly trained network, despite the fact that we do not retrain any network parameters in our method and that we only use a small number of per-domain examples to learn the distribution weights – an optimization which may be solved on a single CPU in a matter of seconds for this problem. This again demonstrates the robustness of our distribution-weighted combined classifier to a varying target domain.

Conclusion

We presented practically applicable multiple-source domain adaptation algorithms for the cross-entropy loss and other similar losses. These algorithms benefit from very favorable theoretical guarantees that we extended to the stochastic setting. Our empirical results further demonstrate empirically their effectiveness and their importance in adaptation problems.

References

Appendix A Lower bounds for convex combination rules

In this section, we give lower bounds for convex combination rule, for both squared loss and cross-entropy loss. For any α∈Δ\alpha\in\Delta, define the convex combination rule for the regression and the probability model as follows:

There is a mixture adaptation problem for which the expected squared loss of gαg_{\alpha} is 14\frac{1}{4}.

Let X={a,b}\mathcal{X}=\{a,b\}, and Y={0,1}\mathcal{Y}=\{0,1\}. Consider D0(x,y)=1x=a,y=0{\mathscr{D}}_{0}(x,y)=1_{x=a,y=0}, and h0(x)=0h_{0}(x)=0; D1(x,y)=1x=b,y=1{\mathscr{D}}_{1}(x,y)=1_{x=b,y=1}, and h1(x)=1h_{1}(x)=1. Consider the target distribution DT=12D0+12D1{\mathscr{D}}_{T}=\frac{1}{2}{\mathscr{D}}_{0}+\frac{1}{2}{\mathscr{D}}_{1}. Then, for any convex combination rule gα=αh0+(1−α)h1=1−αg_{\alpha}=\alpha h_{0}+(1-\alpha)h_{1}=1-\alpha,

Note that the hypotheses h0h_{0} and h1h_{1} have zero error on their own domain, i.e. ϵ=0\epsilon=0. However, no convex combination rule will perform well on the target distribution DT{\mathscr{D}}_{T}.

There is a mixture adaptation problem for which the expected cross-entropy loss of gαg_{\alpha} is log⁡(p)\log(p).

Let X={x1,…,xk}\mathcal{X}=\{x_{1},\dots,x_{k}\}, and Y={y1,…,yk}\mathcal{Y}=\{y_{1},\dots,y_{k}\}. Consider Dk(x,y)=1x=xk,y=yk{\mathscr{D}}_{k}(x,y)=1_{x=x_{k},y=y_{k}}, and hk(x,y)=1y=ykh_{k}(x,y)=1_{y=y_{k}}. Consider the largest cross-entropy loss of gαg_{\alpha} on any target mixture Dλ(x,y){\mathscr{D}}_{\lambda}(x,y):

Choosing α∈Δ\alpha\in\Delta to minimize that adversarial loss gives

Therefore any convex combination rule gαg_{\alpha} incurs at least a loss of log⁡(p)\log(p). ∎

Again, the base hypotheses hkh_{k}s have zero error on their own domain, yet there is no convex combination rule that is robust against any target mixture.

Appendix B Theoretical analysis for the stochastic scenario

In this section, we give a series of theoretical results for the general stochastic scenario with their full proofs. We will separate the proofs for the regression model (Appendix B.1) and the probability model (Appendix B.2), since the definitions of the distribution weighted combination are different in the two models.

The proofs for the regression model (R) are presented in the following order: we first assume the conditional probabilities are the same across source domains, and prove Lemma 4; using that, we prove Corollary 2 and Corollary 11. Finally, we relax the assumption of same conditionals, and prove Theorem 12, which a stronger version of Theorem 1.

Our proofs make use of the following Fixed-Point Theorem of Brouwer.

For any η,η′>0\eta,\eta^{\prime}>0, there exists z∈Δz\in\Delta, with zk≠0z_{k}\neq 0 for all k∈[p]k\in[p], such that the following holds for the distribution-weighted combining rule hzηh_{z}^{\eta}:

Consider the mapping Φ ⁣:Δ→Δ\Phi\colon\Delta\to\Delta defined for all z∈Δz\in\Delta by

Φ\Phi is continuous since L(Dk,hzη)\mathcal{L}({\mathscr{D}}_{k},h_{z}^{\eta}) is a continuous function of zz and since the denominator is positive (η′>0\eta^{\prime}>0). Thus, by Brouwer’s Fixed Point Theorem, there exists z∈Δz\in\Delta such that Φ(z)=z\Phi(z)=z. For that zz, we can write

for all k∈[p]k\in[p]. Since η′\eta^{\prime} is positive, we must have zk≠0z_{k}\neq 0 for all kk. Dividing both sides by zkz_{k} gives L(Dk,hzη)=∑j=1pzjL(Dj,hzη)+η′−η′pzk≤∑j=1pzjL(Dj,hzη)+η′\mathcal{L}({\mathscr{D}}_{k},h_{z}^{\eta})=\sum_{j=1}^{p}z_{j}\mathcal{L}({\mathscr{D}}_{j},h_{z}^{\eta})+\eta^{\prime}-\frac{\eta^{\prime}}{pz_{k}}\leq\sum_{j=1}^{p}z_{j}\mathcal{L}({\mathscr{D}}_{j},h_{z}^{\eta})+\eta^{\prime}, which completes the proof. ∎

Assume the conditional probability Dk(y∣x){\mathscr{D}}_{k}(y|x) does not depend on kk. Let Dλ{\mathscr{D}}_{\lambda} be an arbitrary mixture of source domains, λ∈Δ\lambda\in\Delta. For any δ>0\delta>0, there exists η>0\eta>0 and z∈Δz\in\Delta, such that L(Dλ,hzη)≤ϵ+δ\mathcal{L}({\mathscr{D}}_{\lambda},h_{z}^{\eta})\leq\epsilon+\delta.

We first upper bound, for an arbitrary z∈Δz\in\Delta, the expected loss of hzηh_{z}^{\eta} with respect to the mixture distribution Dz{\mathscr{D}}_{z} defined using the same zz, that is L(Dz,hzη)=∑k=1pzkL(Dk,hzη)\mathcal{L}({\mathscr{D}}_{z},h_{z}^{\eta})=\sum_{k=1}^{p}z_{k}\mathcal{L}({\mathscr{D}}_{k},h_{z}^{\eta}). By definition of hzηh_{z}^{\eta} and Dz{\mathscr{D}}_{z}, we can write

Next, observe that Dz(y∣x)=∑k=1pzkDk1(x)Dz1(x)Dk(y∣x)=Dk(y∣x){\mathscr{D}}_{z}(y|x)=\sum_{k=1}^{p}\frac{z_{k}{\mathscr{D}}^{1}_{k}(x)}{{\mathscr{D}}^{1}_{z}(x)}{\mathscr{D}}_{k}(y|x)={\mathscr{D}}_{k}(y|x) for any k∈[p]k\in[p] since by assumption Dk(y∣x){\mathscr{D}}_{k}(y|x) does not depend on kk. Thus,

Now, choose z∈Δz\in\Delta as in the statement of Lemma 4. Then, the following holds for any mixture distribution Dλ{\mathscr{D}}_{\lambda}:

Setting η=δ2M\eta=\frac{\delta}{2M} and η′=δ2\eta^{\prime}=\frac{\delta}{2} concludes the proof. ∎

Next, we introduce a useful Corollary and give its proof.

Let DT{\mathscr{D}}_{T} be an arbitrary target distribution. For any δ>0\delta>0, there exists η>0\eta>0 and z∈Δz\in\Delta, such that the following inequality holds for any α>1\alpha>1:

For any hypothesis h ⁣:X→Yh\colon\mathcal{X}\to\mathcal{Y} and any distribution D{\mathscr{D}}, by Hölder’s inequality, the following holds:

Thus, by definition of dα{\mathsf{d}}_{\alpha}, for any hh such that L(h(x),y)≤ML(h(x),y)\leq M for all (x,y)(x,y), we can write

Now, by Corollary 2, there exists z∈Δz\in\Delta and η>0\eta>0 such that L(D,hzη)≤ϵ+δ\mathcal{L}({\mathscr{D}},h_{z}^{\eta})\leq\epsilon+\delta for any mixture distribution D∈D{\mathscr{D}}\in\mathcal{D}. Thus, in view of the previous inequality, we can write,for any D∈D{\mathscr{D}}\in\mathcal{D},

Taking the infimum of the right-hand side over all D∈D{\mathscr{D}}\in\mathcal{D} completes the proof. ∎

Let DT{\mathscr{D}}_{T} be an arbitrary target distribution. Then, for any δ>0\delta>0, there exists η>0\eta>0 and z∈Δz\in\Delta, such that the following inequality holds for any α>1\alpha>1:

where \widehat{\epsilon}=\max_{k\in[p]}\Big{[}\epsilon\,{\mathsf{d}}_{\alpha}(\widehat{\mathscr{D}}_{k}\parallel{\mathscr{D}}_{k})\Big{]}^{\frac{\alpha-1}{\alpha}}M^{\frac{1}{\alpha}}, and D^={∑k=1pλkD^k ⁣:λ∈Δ}\widehat{\mathcal{D}}=\left\{\sum_{k=1}^{p}\lambda_{k}\widehat{\mathscr{D}}_{k}\colon\lambda\in\Delta\right\}.

By the first part of the proof of Corollary 10, for any k∈[p]k\in[p] and α>1\alpha>1, the following inequality holds:

We can now apply the result of Corollary 10 (with ϵ^\widehat{\epsilon} instead of ϵ\epsilon and D^k\widehat{\mathscr{D}}_{k} instead of Dk{\mathscr{D}}_{k}). In view that, there exists η>0\eta>0 and z∈Δz\in\Delta such that

for any distribution D^\widehat{\mathscr{D}} in the family D^\widehat{\mathcal{D}}. Taking the infimum over all D^\widehat{\mathscr{D}} in D^\widehat{\mathcal{D}} completes the proof. ∎

This result shows that there exists a predictor h^zη\widehat{h}_{z}^{\eta} based on the estimate distributions D^k\widehat{\mathscr{D}}_{k} that is ϵ^\widehat{\epsilon}-accurate with respect to any target distribution DT{\mathscr{D}}_{T} whose Rényi divergence with respect to the family D^\widehat{\mathcal{D}} is not too large (dα(DT∥D^){\mathsf{d}}_{\alpha}({\mathscr{D}}_{T}\parallel\widehat{\mathcal{D}}) close to 11). Furthermore, ϵ^\widehat{\epsilon} is close to ϵ\epsilon, provided that D^k\widehat{\mathscr{D}}_{k}s are good estimates of Dk{\mathscr{D}}_{k}s (that is dα(D^k∥Dk){\mathsf{d}}_{\alpha}(\widehat{\mathscr{D}}_{k}\parallel{\mathscr{D}}_{k}) close to 11).

Corollary 11 used Rényi divergence in both directions: dα(DT∥D^){\mathsf{d}}_{\alpha}({\mathscr{D}}_{T}\parallel\widehat{\mathcal{D}}) requires Supp(DT)⊆Supp(D^)\text{Supp}({\mathscr{D}}_{T})\subseteq\text{Supp}(\widehat{\mathcal{D}}), and dα(D^k∥Dk){\mathsf{d}}_{\alpha}(\widehat{\mathscr{D}}_{k}\parallel{\mathscr{D}}_{k}) requires Supp(D^k)⊆Supp(Dk),k∈[p]\text{Supp}(\widehat{\mathscr{D}}_{k})\subseteq\text{Supp}({\mathscr{D}}_{k}),k\in[p]. In our experiments in Section 5, we used bigram language model for sentiment analysis, and kernel density estimation with a Gaussian kernel for object recognition. Both density estimation methods fulfill these requirements.

Finally we prove our main result Theorem 1 under the regression model (R). We first prove a stronger version for Theorem 1, next we show that it will coincide with Theorem 1 under the assumption that DT1∈D1{\mathscr{D}}^{1}_{T}\in\mathcal{D}^{1}.

Let DT{\mathscr{D}}_{T} be an arbitrary target distribution. Then, for any δ>0\delta>0, there exists η>0\eta>0 and z∈Δz\in\Delta such that the following inequality holds for any α>1\alpha>1:

and Dk,T(x,y)=Dk1(x)DT(y∣x){\mathscr{D}}_{k,T}(x,y)={\mathscr{D}}^{1}_{k}(x){\mathscr{D}}_{T}(y|x), {\mathscr{D}}_{P,T}=\big{\{}\sum_{k=1}^{p}\lambda_{k}{\mathscr{D}}_{k,T},\lambda\in\Delta\big{\}}.

For any domain kk, by Hölder’s inequality, the following holds:

where, for simplicity, we write dα(x;T,k)=dα(DT(⋅∣x)∥Dk(⋅∣x)){\mathsf{d}}_{\alpha}(x;T,k)={\mathsf{d}}_{\alpha}\left({\mathscr{D}}_{T}(\cdot|x)\parallel{\mathscr{D}}_{k}(\cdot|x)\right). Using the fact that the loss is bounded and Hölder’s inequality again,

We can now apply the result of Corollary 10, with ϵT\epsilon_{T} instead of ϵ\epsilon and Dk,T{\mathscr{D}}_{k,T} instead of Dk{\mathscr{D}}_{k}. This completes the proof. ∎

When DT1∈D1{\mathscr{D}}^{1}_{T}\in\mathcal{D}^{1}, DT∈DP,T{\mathscr{D}}_{T}\in{\mathscr{D}}_{P,T}, thus by the definition of Rényi divergence, dα(DT∥DP,T)=1{\mathsf{d}}_{\alpha}({\mathscr{D}}_{T}\parallel{\mathscr{D}}_{P,T})=1. Theorem 12 coincides with Theorem 1 in this case.

B.2 Probability model

In this section, we first present a series of general theoretical results for the probability model (P) in the same order as in Appendix B.1 . Many of the them are similar to those for the regression model, except that we do not assume anything about the conditional probabilities throughout the proofs. In several instances, the proofs are syntactically the same as their counterparts in the regression model (R). In such cases, we do not reproduce them.

For any η,η′>0\eta,\eta^{\prime}>0, there exists z∈Δz\in\Delta, with zk≠0z_{k}\neq 0 for all k∈[p]k\in[p], such that the following holds for the distribution-weighted combining rule hzηh_{z}^{\eta}:

The proof is syntactically the same as that for the regression model. ∎

For any δ>0\delta>0, there exists η>0\eta>0 and z∈Δz\in\Delta, such that L(Dλ,hzη)≤ϵ+δ\mathcal{L}({\mathscr{D}}_{\lambda},h_{z}^{\eta})\leq\epsilon+\delta for any mixture parameter λ∈Δ\lambda\in\Delta.

Modifying the proof of Corollary 2 for the regression model gives

Next, since Dz(x,y)Dz(x,y)+ηU(x,y)≤1\frac{{\mathscr{D}}_{z}(x,y)}{{\mathscr{D}}_{z}(x,y)+\eta{\mathscr{U}}(x,y)}\leq 1, the following holds:

Now choose z∈Δz\in\Delta as in the statement of Lemma 4a.Then, the following holds for any mixture distribution Dλ{\mathscr{D}}_{\lambda}:

Setting η=δ2M\eta=\frac{\delta}{2M} and η′=δ2\eta^{\prime}=\frac{\delta}{2} concludes the proof.

Since we do not assume the conditional probabilities are the same across domains, we can directly prove Theorem 12 for the conditional probability model (P), which coincides with Theorem 1 when DT∈D{\mathscr{D}}_{T}\in\mathcal{D}.

Let DT{\mathscr{D}}_{T} be an arbitrary target distribution. For any δ>0\delta>0, there exists η>0\eta>0 and z∈Δz\in\Delta, such that the following inequality holds for any α>1\alpha>1:

The proof is syntactically the same as that of Corollary 10 for the regression model. ∎

Let DT{\mathscr{D}}_{T} be an arbitrary target distribution. Then, for any δ>0\delta>0, there exists η>0\eta>0 and z∈Δz\in\Delta, such that the following inequality holds for any α>1\alpha>1:

where \widehat{\epsilon}=\max_{k\in[p]}\Big{[}\epsilon\,{\mathsf{d}}_{\alpha}(\widehat{\mathscr{D}}_{k}\parallel{\mathscr{D}}_{k})\Big{]}^{\frac{\alpha-1}{\alpha}}M^{\frac{1}{\alpha}}, and D^={∑k=1pλkD^k ⁣:λ∈Δ}\widehat{\mathcal{D}}=\left\{\sum_{k=1}^{p}\lambda_{k}\widehat{\mathscr{D}}_{k}\colon\lambda\in\Delta\right\}.

The proof is syntactically the same as that of Corollary 11 for the regression model. ∎

Appendix C Specific theoretical analysis for the cross-entropy loss

Next, we give a specific theoretical analysis for the case of the cross-entropy loss. This is needed since the cross-entropy loss assumes normalized hypotheses. Thus, we are giving guarantees for the performance of normalized distribution-weighted predictor.

We will first assume that the conditional probability of the output labels is the same for all source domains, that is, for any (x,y)(x,y), Dk(y∣x){\mathscr{D}}_{k}(y|x) is independent of kk.

Assume there exists μ>0\mu>0 such that Dk(x,y)≥μU(x,y){\mathscr{D}}_{k}(x,y)\geq\mu{\mathscr{U}}(x,y) for all k∈[p]k\in[p] and (x,y)∈X×Y(x,y)\in\mathcal{X}\times\mathcal{Y}. Then, for any δ>0\delta>0, there exists η>0\eta>0 and z∈Δz\in\Delta, such that L(Dλ,h‾zη)≤ϵ+δ\mathcal{L}({\mathscr{D}}_{\lambda},\overline{h}_{z}^{\eta})\leq\epsilon+\delta for any mixture parameter λ∈Δ\lambda\in\Delta.

By the proof of Corollary 2 for the probability model, for any mixture distribution Dλ{\mathscr{D}}_{\lambda}:

for some η>0,η′>0\eta>0,\eta^{\prime}>0. For any x∈Xx\in\mathcal{X},

By assumption, Dk(x,y)≥μU(x,y){\mathscr{D}}_{k}(x,y)\geq\mu{\mathscr{U}}(x,y) for any (x,y)(x,y). Therefore Dz(x,y)≥μU(x,y){\mathscr{D}}_{z}(x,y)\geq\mu{\mathscr{U}}(x,y) for any z∈Δz\in\Delta. Since 0≤hk(x,y)≤10\leq h_{k}(x,y)\leq 1, h‾zη(x)\overline{h}_{z}^{\eta}(x) is upper bounded by

Setting η=δ2(M+∣Y∣μ)\eta=\frac{\delta}{2\left(M+\frac{|\mathcal{Y}|}{\mu}\right)} and η′=δ2\eta^{\prime}=\frac{\delta}{2} concludes the proof. ∎

The analysis above depends on the key assumption that the conditional distributions Dk(y∣x){\mathscr{D}}_{k}(y|x) are independent of kk. When this assumption does not hold, we can show that there is a lower bound of log⁡(p)\log(p) on the generalization error L(Dλ,h‾zη)\mathcal{L}({\mathscr{D}}_{\lambda},\overline{h}_{z}^{\eta}). However, this lower bound coincides with that of convex combination rule (Lemma 8). In that case, one can use the following marginal distribution-weighted combination instead:

where Dk1(x){\mathscr{D}}^{1}_{k}(x) is the marginal distribution over X\mathcal{X}, Dk1(x)=∑y∈YDk(x,y){\mathscr{D}}^{1}_{k}(x)=\sum_{y\in\mathcal{Y}}{\mathscr{D}}_{k}(x,y), and U1(x){\mathscr{U}}^{1}(x) is a uniform distribution over X\mathcal{X}. Observe that h~zη(x,y)\widetilde{h}_{z}^{\eta}(x,y) is already normalized.

One can modify Theorem 12 to obtain generalization guarantees for h~zη\widetilde{h}_{z}^{\eta} under distinct conditional probabilities assumption. Let DT(x,y){\mathscr{D}}_{T}(x,y), ϵT\epsilon_{T} and DP,T{\mathscr{D}}_{P,T} be defined as before.

Let DT{\mathscr{D}}_{T} be an arbitrary target distribution. Then, for any δ>0\delta>0, there exists η>0\eta>0 and z∈Δz\in\Delta such that the following inequality holds for any α>1\alpha>1:

The proof is syntactically the same as that of Theorem 12. ∎

Finally, we can extend Theorem 3 and Theorem 13 to the case where only estimate distributions D^k\widehat{\mathscr{D}}_{k}s are available, and the predictor h^zη‾\overline{\widehat{h}_{z}^{\eta}} and h^zη~\widetilde{\widehat{h}_{z}^{\eta}} based on the estimates D^k\widehat{\mathscr{D}}_{k} still admit favorable guarantees. The results and proofs are similar to proving Corollary 11 from Corollary 10 in the regression model, thus omitted here.

Appendix D DC-decomposition

In this section we give the full proofs for the DC-decompositions presented in Section 4.2.

Let LL be the squared loss. Then, for any k∈[p]k\in[p], L(Dk,hzη)−L(Dz,hzη)=uk(z)−vk(z)\mathcal{L}({\mathscr{D}}_{k},h_{z}^{\eta})-\mathcal{L}({\mathscr{D}}_{z},h_{z}^{\eta})=u_{k}(z)-v_{k}(z), where uku_{k} and vkv_{k} are convex functions defined for all zz by

First, observe that (hzη(x)−y)2=fz(x,y)−gz(x)(h_{z}^{\eta}(x)-y)^{2}=f_{z}(x,y)-g_{z}(x), where for every (x,y)∈X×Y(x,y)\in\mathcal{X}\times\mathcal{Y}, fzf_{z} and gzg_{z} are convex functions defined for all zz:

This is true because the Hessian matrix of fzf_{z} and gzg_{z} are

where hD,zh_{D,z} is a pp-dimensional vector defined as [hD,z]k=Dk(hk+y−2hzη)[h_{D,z}]_{k}={\mathscr{D}}_{k}(h_{k}+y-2h_{z}^{\eta}) for k∈[p]k\in[p], and D=(D1,D2,…,Dp)TD=({\mathscr{D}}_{1},{\mathscr{D}}_{2},\dots,{\mathscr{D}}_{p})^{T}. Using the fact that M≥(y−hzη)2M\geq(y-h_{z}^{\eta})^{2}, HfzH_{f_{z}} and HgzH_{g_{z}} are positive semidefinite matrices, therefore fz,gzf_{z},g_{z} are convex functions of zz.

Thus, uk(z)=∑(x,y)(Dk1+ηU1)(x)Dk(y∣x)fz(x,y)u_{k}(z)=\sum_{(x,y)}({\mathscr{D}}^{1}_{k}+\eta{\mathscr{U}}^{1})(x){\mathscr{D}}_{k}(y|x)f_{z}(x,y) is convex. Similarly, we can write the second term of vk(z)v_{k}(z) as ∑x(Dk1+ηU1)(x)gz(x)\sum_{x}({\mathscr{D}}^{1}_{k}+\eta{\mathscr{U}}^{1})(x)g_{z}(x), it is convex. Using the notation previously defined, we can write the first term of vk(z)v_{k}(z) as

The Hessian matrix of Jz2/KzJ_{z}^{2}/K_{z} is

D.2 Probability model

Let LL be the cross-entropy loss. Then, for k∈[p]k\in[p], L(Dk,hzη)−L(Dz,hzη)=uk(z)−vk(z)\mathcal{L}({\mathscr{D}}_{k},h_{z}^{\eta})-\mathcal{L}({\mathscr{D}}_{z},h_{z}^{\eta})=u_{k}(z)-v_{k}(z), where uku_{k} and vkv_{k} are convex functions defined for all zz by

Using the notation previously introduced, we can now write

uku_{k} is convex since −log⁡Jz-\log J_{z} is convex as the composition of the convex function −log⁡-\log with an affine function. Similarly, −log⁡Kz-\log K_{z} is convex, which shows that the second term in the expression of vkv_{k} is a convex function. The first term can be written in terms of the unnormalized relative entropy:The unnormalized relative entropy of PP and QQ is defined by B(P∥Q)=∑x,yP(x,y)log⁡[P(x,y)Q(x,y)]+∑(x,y)(Q(x,y)−P(x,y))B(P\parallel Q)=\sum_{x,y}P(x,y)\log\left[\frac{P(x,y)}{Q(x,y)}\right]+\sum_{(x,y)}(Q(x,y)-P(x,y)).

The unnormalized relative entropy B(⋅∥⋅)B(\cdot\parallel\cdot) is jointly convex (Cover and Thomas, 2006),To be precise, it can be shown that the relative entropy is jointly convex using the so-called log-sum inequality (Cover and Thomas, 2006). The same proof using the log-sum inequality can be used to show the joint convexity of the unnormalized relative entropy. thus B(Kz∥Jz)B(K_{z}\parallel J_{z}) is convex as the composition of the unnormalized relative entropy with affine functions (for each of its two arguments). (Kz−Jz)(K_{z}-J_{z}) is an affine function of zz and is therefore convex too. ∎

Appendix E Additional experiment results

In this section we provide experiment results on artificial datasets to show that our global objective indeed approaches the known optimal of zero with DC-programming algorithm, for both squared loss and cross-entropy loss. We also provide details of our density estimation procedure on the real-world applications, as well as additional experiment results to show that our distribution-weighted predictor DW is robust across various test data mixtures.

We first evaluated our algorithm on synthetic datasets, for both squared loss and cross-entropy loss.

Consider the following multiple source domain study by Mansour et al. (2009). Let g1g_{1}, g2g_{2}, g3g_{3}, g4g_{4} denote the Gaussian distributions with means (1,1)(1,1), (−1,1)(-1,1), (−1,−1)(-1,-1), and (1,−1)(1,-1) and unit variance respectively. Each domain was generated as a uniform mixture of Gaussians: D1{\mathscr{D}}_{1} from {g1,g2,g3}\{g_{1},g_{2},g_{3}\} and D2{\mathscr{D}}_{2} from {g2,g3,g4}\{g_{2},g_{3},g_{4}\}. The labeling function is f(x1,x2)=x12+x22f(x_{1},x_{2})=x_{1}^{2}+x_{2}^{2}. We trained linear regressors for each domain to produce base hypotheses h1h_{1} and h2h_{2}. Finally, as the true distribution is known for this artificial example, we directly use the Gaussian mixture density function to generate our Dk{\mathscr{D}}_{k}s.

With this data source, we used our DC-programming solution to find the optimal mixing weights zz. Figure 2 shows the global objective value (of Problem 4) vs number of iterations with the uniform initialization z0=[1/2,1/2]z_{0}=[1/2,1/2]. Here, the overall objective approaches 0.00.0, the known global minimum. To verify the robustness of the solution, we have experimented with various initial conditions and found that the solution converges to the global solution in each case.

We next evaluate our algorithm on cross-entropy loss. Here we generate the two-dimensional dataset shown in Figure 3a, which has three domains, denoted in the colors red, green, and blue, and three categories, denoted as squares, circles, and triangles. Each domain is generated according to a Gaussian mixture model, one mixture per category, with random means. The means of each corresponding category across domains are related according to a random fixed orthonormal transformation. Finally, the covariance of each mixture is diagonal and fixed across categories. We choose covariance magnitudes of 0.05, 0.05, and 0.3 for the red, green, and blue domains, respectively. We then train a logistic regression classifier per domain to produce score functions, hkh_{k}. Finally, as the true distribution is known for this artificial example, we forgo density estimation and use the Gaussian mixture density function to generate our Dk{\mathscr{D}}_{k}s.

With this data source, we use our DC-programming solution to find the optimal mixing weights, zz. Since only each convex sub-problem is guaranteed to converge, Figure 3b reports this global loss vs iteration when initializing z0=1/pz_{0}=1/p, uniform weights. Here, the overall objective approaches 0.0, the known global minimum.To verify the robustness of the solution, we have experimented with various initial conditions and found the solution converges to the global solution from each case.

E.2 Sentiment analysis task for squared loss

We begin by detailing our density estimation method for the sentiment analysis experiment. We first used the same vocabulary defined for feature extraction to train a separate bigram statistical language model for each domain, using the OpenGrm library (Roark et al., 2012). Next, we randomly draw a sample set SkS_{k} of 10,00010\mathord{,}000 sentences from each bigram language model. We define D^k\widehat{\mathscr{D}}_{k} to be the empirical distribution of SkS_{k}, which is a very close estimate of marginal distribution of the language model, thus it is also a good estimate of Dk{\mathscr{D}}_{k}. We approximate the label of a randomly generated sample xix_{i} by taking the average of the hkh_{k}s: yi=∑{k ⁣:xi∈Sk}hk(xi)/∣{k ⁣:xi∈Sk}∣y_{i}=\sum_{\{k\colon x_{i}\in S_{k}\}}h_{k}(x_{i})/|\{k\colon x_{i}\in S_{k}\}|. These randomly drawn samples were used to find the fixed-point zz.

Note that we only use estimates of the marginal distributions (language models) to find zz and do not use any labels. We use the original product review text and rating labels for testing. Their densities D^k\widehat{\mathscr{D}}_{k} were estimated by the bigram language models directly, therefore a close estimate of Dk{\mathscr{D}}_{k}.

Next we compare DW to accessible predictors on various test mixture domains. Table 5 shows MSE on all combinations of two domains. Table 6, 7 reports MSE on additional test mixture domains. The first four target mixtures correspond to various orderings of (0.4,0.2,0.2,0.2)(0.4,0.2,0.2,0.2). The next six target mixtures correspond to various orderings of (0.3,0.3,0.2,0.2)(0.3,0.3,0.2,0.2). In column titles we bold the domain(s) with highest weight.

In all these experiments, our distribution-weighted predictor DW outperforms all competing baselines: the source only baselines for each domain, K, D, B, E, a uniform weighted predictor unif, and KMM.

E.3 Recognition tasks for cross-entropy loss

Here, we describe our density estimation technique for the object recognition task.

To estimate the per domain densities, we first extract per image features using the in-domain ConvNet model, and then estimate the marginal distribution Dk1(x){\mathscr{D}}^{1}_{k}(x) over the per domain collection of features, using non-parametric kernel density estimation with a Gaussian kernel and a cross-validated bandwidth parameter. We use estimated marginals D^k1\widehat{\mathscr{D}}^{1}_{k} instead of estimated joint distributions D^k\widehat{\mathscr{D}}_{k}, because when the conditional probabilities are the same across domains and when η→0\eta\to 0, hzη(x,y)h_{z}^{\eta}(x,y) converges to a normalized predictor h~z(x,y)=∑k=1pzkDk1(x)∑j=1pzjDj1(x)hk(x,y)\widetilde{h}_{z}(x,y)=\sum_{k=1}^{p}\frac{z_{k}{\mathscr{D}}^{1}_{k}(x)}{\sum_{j=1}^{p}z_{j}{\mathscr{D}}^{1}_{j}(x)}h_{k}(x,y). Thus in our experiments, we approximate h^zη(x,y)\widehat{h}_{z}^{\eta}(x,y) with h^z~(x,y)\widetilde{\widehat{h}_{z}}(x,y) using our estimated marginal distributions D^k1(x)\widehat{\mathscr{D}}^{1}_{k}(x).

Appendix F Rényi Divergence

The Rényi Divergence measures the divergence between two distributions. The Rényi Divergence is parameterized by α\alpha and denoted by Dα{\mathsf{D}}_{\alpha}. The α\alpha-Rényi Divergence of two distributions D{\mathscr{D}} and D′{\mathscr{D}}^{\prime} is defined by

It can be shown that the Rényi Divergence is always non-negative and that for any α>0\alpha>0, Dα(D∥D′)=0{\mathsf{D}}_{\alpha}({\mathscr{D}}\parallel{\mathscr{D}}^{\prime})=0 iff D=D′{\mathscr{D}}={\mathscr{D}}^{\prime}, (see (Arndt, 2004)). We will denote by dα(D∥D′){\mathsf{d}}_{\alpha}({\mathscr{D}}\parallel{\mathscr{D}}^{\prime}) the exponential:

Rényi divergence (and dα(D∥D′){\mathsf{d}}_{\alpha}({\mathscr{D}}\parallel{\mathscr{D}}^{\prime})) is nondecreasing as a function of α\alpha, and