Paper commentary
Return of Frustratingly Easy Domain Adaptation
CORAL aligns source and target covariances to adapt classifiers without target labels
- Problem Classifiers lose accuracy when test inputs follow a different distribution than the training data. Most fixes need labelled target examples, which an unlabelled target domain does not have.
- Method CORAL whitens the source features, then re-colors them with the target covariance. Any classifier is then trained on the adjusted source features and applied to unchanged target features.
- Results CORAL averages 46.7 over twelve domain shifts on Office-Caltech10 with SURF features, against 45.9 for SA.
Why unlabelled target domains need adaptation
A classifier trained on labelled source data tends to lose accuracy when test inputs follow a different distribution, and this degradation is the problem the paper addresses. The authors cite theoretical and empirical work showing that test error grows with the gap between the training and test distributions. Most published remedies assume that some labelled target examples are available, so they cannot be used when the target is unlabelled, a situation the authors describe as common in practice.
Feature replication shows how a simple adaptation method can still depend on labels: it augments each feature vector with domain-specific and shared copies and trains a supervised classifier on the augmented data. The question the paper asks is whether the mismatch can be reduced using only unlabelled target features, by matching the second-order statistics of the two feature distributions.
Matching covariances by whitening and re-coloring
After feature normalization both domains have zero mean, so the two distributions differ mainly in their covariance matrices. CORAL therefore transforms only the training features, so that their covariance moves toward the target covariance.
The transformation has two steps: the training features are whitened with the inverse square root of their covariance, and then re-colored with the square root of the target covariance. Whitening removes the correlations of the training domain, and re-coloring gives the features the correlation structure estimated from the unlabelled target data.
Once the training features are adjusted, any base classifier can be trained on them and applied directly to the unchanged target features. For a linear classifier, the same effect can be obtained by transforming the weight vector rather than the target features, which is cheaper when there are few classifiers and many high-dimensional target examples.
Closed-form transformation from the Frobenius objective
The method searches for a matrix A such that the transformed training covariance, written as \(A^\top C_S A\), is as close as possible to the target covariance \(C_T\). Closeness is measured with the Frobenius norm, which gives the objective \[\min_A \|A^\top C_S A - C_T\|_F^2\]
When the rank of \(C_S\) is at least the rank of \(C_T\), an exact match is possible, but real features tend to lie near a lower-dimensional manifold, so both covariances are often low rank. For this general low-rank case the derivation relies on a known result: the best low-rank approximation of a matrix is obtained by keeping the largest singular values and their singular vectors from its singular value decomposition.
In both cases of the rank comparison, the best transformed covariance is the target covariance truncated to \(r=\min(\mathrm{rank}(C_S),\mathrm{rank}(C_T))\) leading components. Writing \(C_S=U_S\Sigma_S U_S^\top\) and solving for A gives the closed form \[A^*=U_S\Sigma_S^{+\,1/2}U_S^\top\,U_{T[1:r]}\Sigma_{T[1:r]}^{1/2}U_{T[1:r]}^\top\] The expression splits into a whitening factor for the source space and a re-coloring factor that carries the target covariance, which matches the two-step description of the method.
The Moore-Penrose pseudoinverse \(\Sigma_S^+\) is used so that the inverse can be taken of a rank-deficient covariance.
The practical four-line algorithm and λ
The closed form depends on an SVD of covariance matrices that may be unstable and slow to converge, so the practical version applies classical whitening and re-coloring instead. Each covariance has the identity matrix added to it, which corresponds to the regularization parameter λ set to 1 in the paper.
Figure 3 varies λ over 0, 0.001, 0.01, 0.1 and 1 on two tasks, D→A with FT6 and D→W with FT7. The authors describe the performance as similar to the analytical solution and very stable with respect to λ. Apart from λ and the C parameter of the linear SVM, the method adds no hyperparameters, and C is set by cross-validation on the source domain.
The complete procedure is four lines of MATLAB: estimate two regularized covariances, whiten the source data, and re-color it with the target covariance.
Relation to normalization, subspace and MMD methods
Standardizing each dimension to zero mean and unit variance leaves open how the dimensions are correlated with one another. In the paper's illustration, both domains are normalized and still have different distributions, because their correlations differ.
Subspace methods align only the top k eigenvectors of the two covariance matrices, so the choice of k determines what gets aligned. CORAL uses all eigenvectors and eigenvalues of the covariance, so it needs no subspace dimension to be selected. Matching eigenvectors alone is not enough, because differences between the corresponding eigenvalues can still leave the distributions apart.
MMD-based methods can be read as matching moments, and MMD with the polynomial kernel \(k(x,y)=(1+x^\top y)^d\) with \(d=2\) gives an objective similar to the CORAL objective. To the authors' knowledge, no earlier work had used this kernel for domain adaptation or derived a closed-form solution for it. MMD-based approaches usually apply one transformation to both domains, whereas CORAL transforms only the source features, and the cited work describes asymmetric transformations as more flexible.
Batch Normalization normalizes each mini-batch of activations to zero mean and unit variance in order to address internal covariate shift. The authors argue that this does not address external covariate shift, because a source point and a target point would be decorrelated differently. CORAL can be inserted after a chosen layer, such as fc6 or fc7 of AlexNet, and the paper applies it to one layer at a time.
Office-Caltech10 with SURF features
There are twelve source-to-target shifts across the four domains, and each is averaged over 20 randomized trials. Each trial samples 20 labelled source images per category, or 8 when DSLR is the source, and all unlabelled target data form the test set.
CORAL averages 46.7 over the twelve shifts, compared with 45.9 for SA, 45.7 for TCA, 43.4 for GFK, 41.0 for SVMA, 40.2 for DAM and 37.8 for the no-adaptation baseline NA. On A→D and A→W, CORAL is below SA, with 38.3 and 38.7 against 38.8 and 39.6. The largest shift gain is on D→W, where NA reaches 56.4 and CORAL reaches 85.9.
The authors note that the manifold baselines are more complicated than CORAL and require tuning of hyperparameters such as the subspace dimensionality.
AlexNet deep features on the Office dataset
CORAL is applied to AlexNet fc6 and fc7 features from the pretrained network, and to features from a network fine-tuned on the source domain. Six shifts among three domains are each evaluated over five random training and test splits. The paper uses accuracies reported by the original authors where available and otherwise runs the released source code.
CORAL-FT7 averages 69.4 over the six shifts, above CORAL-FT6 at 68.5 and CORAL-fc7 at 66.9. The corresponding no-adaptation baselines average 65.5 for NA-FT7, 64.4 for NA-fc7, 62.0 for NA-FT6 and 62.2 for NA-fc6, and CORAL-fc6 averages 64.0. Each CORAL variant has a higher average than its matching no-adaptation baseline.
Most deep-structure methods report results only on some settings, so DDC, DAN and ReverseGrad have missing entries in the table. On the shifts they report, DAN reaches 66.0 on A→W, 93.5 on D→W and 95.3 on W→D, and ReverseGrad reaches 67.3, 94.0 and 93.7. CORAL-FT7 is above both on D→W and W→D, with 96.2 and 99.5, and below both on A→W, with 61.9.
Fine-tuning alone gives 62.0 for NA-FT6 and 65.5 for NA-FT7, close to the pretrained NA-fc6 and NA-fc7 scores of 62.2 and 64.4. CORAL gains more on the fine-tuned features, with the average rising from 64.0 for CORAL-fc6 to 68.5 for CORAL-FT6. The authors suggest the pretrained network may underfit while the fine-tuned network overfits, and that aligning source features to the target reduces the overfitting problem.
Larger-scale evaluations with full training
Both experiments switch to full training, in which all source data are used instead of the subsampled sets of the earlier sections. The first uses Office-Caltech10 with SURF features to compare with Table 1, and the second uses the Cross-Dataset Testbed with DECAF-fc7 features to vary the number of classes. The Testbed uses 3847 images from Caltech256, 4000 from ImageNet and 2626 from SUN, over 40 classes.
On Office-Caltech10 under full training, CORAL averages 48.8, compared with 46.4 for GFK, 42.8 for TCA, 41.5 for SA and 41.1 for NA. On the Cross-Dataset Testbed, CORAL averages 40.2, above NA at 38.5, while GFK, TCA and SA average 31.3, 26.6 and 25.8. The authors observe that the margin is much larger on deep features than on shallow features.
With more source data the gap between NA and the adaptation methods narrows, which the authors attribute to a stronger classifier that generalizes better to other domains. Under full training on the Testbed, GFK, TCA and SA all average below NA, while CORAL does not.
Sentiment classification on Amazon reviews
The Amazon review dataset is used with the processed bag-of-words features, in which the top 400 words are kept. The dataset has four domains (kitchen appliances, DVD, books and electronics), each with 1000 positive and 1000 negative reviews, and results are averaged over 20 random training and test splits.
CORAL averages 78.0 over the four shifts, above KMM at 77.8, SCL at 76.7 and the no-adaptation baseline NA at 76.7. The margin over NA is small in this table. TCA averages 63.0, GFS 69.6 and GFK 71.7, so all three fall below NA on this task, which the authors note as an observation.
Why the gains differ across feature types
The margin over the other methods is much larger on deep features, for example 64.0 for CORAL-fc6 against 49.1 for SA-fc6, than on bag-of-words features.
Citing earlier analysis of deep representations, the authors suggest that high-level deep features behave more like parts or objects, whose components tend to co-occur more than edges do. The authors judge CORAL valuable for deep features, and they leave its application to deep text features to future work.
Limits of the evaluated settings
Deep text features were not tested, and the authors leave their application to future work. The λ sensitivity sweep covers only two tasks, D→A with FT6 and D→W with FT7. Most deep-structure methods report results only on some settings, so the deep comparison has missing entries for DDC, DAN and ReverseGrad.
Some baseline accuracies are taken from the original authors' reports, and others come from runs with the authors' source code. The full-training comparisons include only SA, GFK, TCA and NA, so they do not compare CORAL with the deep adaptation methods. Experiments cover only the Office-Caltech10, Office, Cross-Dataset Testbed and Amazon review benchmarks.
Paper info
- Authors
- Baochen Sun, Jiashi Feng, Kate Saenko
- Venue
- arXiv · Preprint
- First published
- 2015-11-17
- Added
- 2026-11-12
- Updated
- 2015-12-9
- Version
- v2
- arXiv
- 1511.05547
- Category
- cs.CV · cs.AI · cs.LG · cs.NE
- 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
Baochen Sun, Jiashi Feng, Kate Saenko (2015). Return of Frustratingly Easy Domain Adaptation. arXiv:1511.05547v2. https://arxiv.org/abs/1511.05547v2
BibTeX
@misc{sun2015return,
title = {{Return of Frustratingly Easy Domain Adaptation}},
author = {Baochen Sun and Jiashi Feng and Kate Saenko},
year = {2015},
eprint = {1511.05547},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1511.05547v2}
}