NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Return of Frustratingly Easy Domain Adaptation

Baochen Sun, Jiashi Feng, Kate Saenko

Abstract

Unlike human learning, machine learning often fails to handle changes between training (source) and test (target) input distributions. Such domain shifts, common in practical scenarios, severely damage the performance of conventional machine learning methods. Supervised domain adaptation methods have been proposed for the case when the target data have labels, including some that perform very well despite being "frustratingly easy" to implement. However, in practice, the target domain is often unlabeled, requiring unsupervised adaptation. We propose a simple, effective, and efficient method for unsupervised domain adaptation called CORrelation ALignment (CORAL). CORAL minimizes domain shift by aligning the second-order statistics of source and target distributions, without requiring any target labels. Even though it is extraordinarily simple—it can be implemented in four lines of Matlab code—CORAL performs remarkably well in extensive evaluations on standard benchmark datasets.

The Challenge of Domain Shift

In machine learning, a fundamental assumption is that training data (the source domain) and test data (the target domain) are drawn from the same distribution. In real-world applications, this assumption frequently breaks down. For instance, a model trained on high-quality product catalog images may struggle to identify the same items in low-resolution, poorly lit consumer photos. This discrepancy, known as domain shift, can occur across various modalities, including computer vision and natural language processing.

Figure 2: Examples of visual and textual domain shifts where the underlying categories remain the same but the data distribution changes.

While supervised domain adaptation exists for scenarios with labeled target data, real-world target data is typically unlabeled. Existing unsupervised methods often rely on complex manifold projections or deep neural networks with specialized loss layers that are difficult to tune. CORAL addresses this by asking if a simpler, more direct statistical alignment can achieve comparable or superior results.

Methods: Correlation Alignment (CORAL)

The core intuition behind CORAL (CORrelation ALignment) is that domain shift manifests as differences in the "shape" of feature distributions in high-dimensional space. CORAL aligns these distributions by matching their second-order statistics (covariances) through a simple linear transformation.

The algorithm consists of two primary steps:

  1. Whitening: The source features are transformed to remove existing correlations, effectively "sphering" the distribution.
  2. Re-coloring: These whitened features are then transformed using the covariance matrix of the target domain. This process rotates and scales the source data so its distribution matches the statistical "shape" of the target data.

CORAL is remarkably efficient because it is a closed-form linear transformation. Unlike deep adaptation methods that require hours of GPU training, CORAL can process thousands of high-dimensional features in seconds on a standard CPU.

Key Insights and Results

Extensive benchmarking reveals several critical advantages of the CORAL approach:

  • Synergy with Deep Features: Surprisingly, CORAL performs even better on deep CNN features (like those from AlexNet) than on traditional shallow features. This is because deep features tend to be more strongly correlated, making covariance alignment a more powerful signal for adaptation.
  • Asymmetric Advantage: Many methods attempt to project both domains into a shared latent space. CORAL is asymmetric, transforming the source to match the target. This preserves the specific characteristics of the target domain, which is beneficial for the final classifier.
  • State-of-the-Art Performance: On the standard Office-Caltech10 benchmark, CORAL achieved an average accuracy of 69.4% when using fine-tuned features, outperforming specialized deep architectures like DAN and ReverseGrad.
Figure 6: Comparison of CORAL against various baselines and state-of-the-art methods across different domain adaptation tasks.

In sentiment analysis tasks, CORAL was the only method that consistently improved upon the "No Adaptation" baseline, whereas other popular methods like TCA and GFK sometimes degraded performance. This highlights the robustness of simple statistical alignment.

Conclusion

CORAL demonstrates that complexity is not always a prerequisite for performance in domain adaptation. By focusing on the fundamental statistical differences between domains, CORAL provides a "frustratingly easy" yet highly effective tool for bridging the gap between training and deployment environments. Future work may explore integrating CORAL as a layer-wise alignment tool within deep neural networks to handle non-linear shifts and higher-order moments.

Summary updated

BibTeX
@inproceedings{sun2016return,
  author = {Baochen Sun and Jiashi Feng and Kate Saenko},
  title = {{Return of Frustratingly Easy Domain Adaptation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2016},
  url = {https://openreview.net/forum?id=B1V5p6l_WH},
}
Figure