Paper commentary
Conditional Adversarial Domain Adaptation
Conditioning domain adversarial adaptation on classifier predictions
- Problem Adversarial domain adaptation can miss multimodal class structure, because the discriminator sees only features. Uncertain predictions also add noise when they are used for conditioning.
- Method CDAN conditions the domain discriminator on both features and classifier predictions, using a multilinear map. Entropy conditioning down-weights uncertain examples so confident predictions count for more.
- Results CDAN+E averaged 87.7 on Office-31 with ResNet-50, compared to 86.5 for GTA.
Where feature-only adversarial adaptation falls short
Domain adaptation asks a model trained on labeled source data to work on a target domain that offers only unlabeled examples. Adversarial methods tackle this by training a domain discriminator to tell the two domains apart while the feature extractor learns to fool it. The authors argue that this recipe has two weak points on classification problems.
The first weak point is that a fully confused discriminator doesn't tell you the two distributions match. Real class data often has several modes per class, and a mode the discriminator never sees can stay unmatched. Separate discriminators for features and for classes don't capture the dependency between features and classes that carries this multimodal structure.
The second weak point is that conditioning the discriminator on predictions is risky when those predictions are uncertain. Wrong or unsure predictions would then feed noise into the discriminator with the same weight as confident ones.
Conditioning the discriminator on predictions
The key idea is to give the domain discriminator the feature vector and the classifier output together, not the feature vector alone. The output g carries class information, so the discriminator can see how features and classes interact. The authors borrow this from conditional GANs, where conditioning on labels helps the matched distributions line up.
Simple concatenation of f and g treats the two as independent, so it misses their multiplicative interactions. The multilinear map f ⊗ g keeps those products, and with one-hot labels its mean splits into one mean per class. Its dimension is d_f × d_g, which is too large for deep networks, so the authors use a randomized version of much smaller dimension d.
They define it as \[ T_{\odot}(f,g)=\frac{1}{\sqrt{d}}\,(R_f f)\odot(R_g g) \] where R_f and R_g are random matrices sampled once and held fixed in training. The full map is used when d_f × d_g is at most 4096, and the randomized map is used otherwise.
Entropy conditioning addresses the second weak point by measuring how uncertain each prediction is. The entropy is \(H(g)=-\sum_{c=1}^{C} g_c\log g_c\), summed over the C classes. Each example's term in the discriminator objective is weighted by an entropy-aware weight, so confident examples count for more.
How one training pass runs
At run time the network produces a feature vector f and a prediction g for each input. The source classifier minimizes its cross-entropy loss on labeled source examples. The discriminator learns to separate source from target on the conditioned input, while the feature extractor and classifier are trained to make that separation harder.
The authors combine these terms into a minimax problem with a trade-off weight λ between source risk and the adversarial term. The experiments fix λ at 1, and a progressive schedule ramps the adversarial weight up during training.
For CDAN+E the same loop uses the entropy-weighted terms inside the discriminator objective. As a rule of thumb, f is the last feature layer and g is the classifier layer.
Why the bound should hold
The argument follows the domain adaptation bound, in which target risk is bounded by source risk plus a discrepancy term. That discrepancy is measured by a ∆-distance over a difference hypothesis space, so shrinking it narrows the gap. The authors show that the domain discrepancy is upper-bounded by the ∆-distance.
To link this to the discriminator, they assume its hypothesis family contains the difference hypothesis space. The authors consider this realistic, since the discriminator family can be chosen freely, for example as multilayer perceptrons. They also state that the supremum over discriminators is attained when the optimal discriminator is trained, which gives an upper bound on the ∆-distance.
Theorem 1 says the randomized map is an unbiased estimate of the inner product of the full multilinear map. Its variance depends only on fourth-order moments of the random matrices, which are constants for Gaussian and uniform distributions with unit variance. The authors add that normalizing the features can further reduce the approximation error, and the proof is in the supplemental material.
Office-31, ImageCLEF-DA and Office-Home results
On Office-31 with AlexNet, CDAN averaged 77.0, compared to 76.0 for JAN, and CDAN+E averaged 77.7. With ResNet-50 the averages were 86.6 for CDAN and 87.7 for CDAN+E, compared to 86.5 for GTA. The gains are larger on harder transfers such as A to W, where CDAN scored 93.1, compared to 85.4 for JAN. The authors expect larger gains where the source and target differ most, and A to W and A to D are such tasks.
On ImageCLEF-DA the margins are smaller. With ResNet-50, CDAN+E averaged 87.7, compared to 85.8 for JAN. The authors explain this by the three ImageCLEF-DA domains being of equal size and visually more similar than Office-31.
Office-Home has 65 classes across four domains, and the gains there are larger. With ResNet-50, CDAN+E averaged 65.8, compared to 58.3 for JAN and 63.8 for CDAN. The authors attribute the larger boost to the four domains having more categories and being more dissimilar from each other. The comparisons don't vary the number of categories on their own, so that explanation remains the authors' interpretation.
Digits and synthetic-to-real results
On the digits tasks, CDAN+E averaged 94.3, compared to 94.2 for CyCADA and 93.4 for UNIT. Plain CDAN averaged 93.1, and its S to M score of 88.5 sat below CyCADA's 90.4.
On the synthetic-to-real VisDA-2017 task, CDAN+E scored 70.0, compared to 69.5 for GTA and 61.6 for JAN. The authors say UNIT, CyCADA and GTA are tailored to digits and synthetic-to-real tasks, which explains why JAN does weakly there.
What the ablations and diagnostics show
The random matrices were sampled once from a Gaussian or a uniform distribution and compared with no random sampling. The no-sampling variant averaged 87.7, compared to 87.0 for uniform sampling and 86.4 for Gaussian sampling. The authors note that uniform sampling performed best among the randomized variants.
CDAN+E averaged 77.7 on Office-31 with AlexNet, compared to 77.0 for CDAN, so the entropy term helps in that comparison. Concatenation fails in the authors' experiments, which they tie to the missing cross-covariance term. Figure 2(b) shows the entropy weight per example, and the weight sits near one for correct predictions and is much smaller for incorrect ones on task A to W with ResNet-50.
The A-distance on CDAN features is smaller than on ResNet and DANN features for tasks A to W and W to D. The authors read this as CDAN reducing the domain gap more effectively. On A to W, CDAN converges faster than DANN, and CDAN (M) converges faster than CDAN (RM). CDAN (M) costs more because its map is high-dimensional, while CDAN (RM) has roughly the cost of DANN.
Limitations
The headline claims rest on five benchmarks, averaged over three random experiments. λ is fixed at 1 for all experiments, and the other hyperparameters are chosen by importance-weighted cross-validation. The ImageCLEF-DA margins are small, and plain CDAN trails CyCADA on S to M.
The random-sampling ablation uses Office-31 with ResNet, and the convergence curve covers only task A to W. The entropy-weight diagnostic covers a single task, and the A-distance comparison covers two. The text prints the weight as 1+e^{-H(g)}, while the diagnostic plots e^{-H(g)}, so the exact weighting needs checking.
The theory assumes the discriminator family contains the difference hypothesis space, and the experiments don't measure that assumption directly. The explanation for the Office-Home gains, more categories and more dissimilar domains, is not isolated by a separate experiment.
Paper info
- Authors
- Mingsheng Long, Zhangjie Cao, Jianmin Wang, Michael I. Jordan
- Venue
- arXiv · Preprint
- First published
- 2017-5-26
- Added
- 2026-11-12
- Updated
- 2018-12-29
- Version
- v4
- arXiv
- 1705.10667
- Category
- cs.LG
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Mingsheng Long, Zhangjie Cao, Jianmin Wang, Michael I. Jordan (2017). Conditional Adversarial Domain Adaptation. arXiv:1705.10667v4. https://arxiv.org/abs/1705.10667v4
BibTeX
@misc{long2017conditional,
title = {{Conditional Adversarial Domain Adaptation}},
author = {Mingsheng Long and Zhangjie Cao and Jianmin Wang and Michael I. Jordan},
year = {2017},
eprint = {1705.10667},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1705.10667v4}
}