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.

Introduction: The Challenge of Domain Shift

Machine learning models are notoriously brittle: a classifier trained on professional studio photos (the "source domain") often performs poorly when tested on grainy smartphone images (the "target domain"). This phenomenon is known as domain shift.

Visual Domain Shift: Domain 1 (source) contains clean images, while Domain 2 (target) contains real-world office environments.

While supervised adaptation exists for labeled target data, real-world scenarios often present us with unlabeled target domains, necessitating Unsupervised Domain Adaptation (UDA). Most existing UDA methods are computationally heavy, involving complex manifold projections or expensive re-training of deep neural networks. This research introduces CORAL, a "frustratingly easy" alternative that is fast, requires no hyperparameter tuning, and works across different types of features.

Methodology: Correlation Alignment (CORAL)

The core idea of CORAL is to transform source features so that their distribution matches the target distribution as closely as possible by aligning their covariance matrices. The algorithm operates in two intuitive steps:

  1. Whitening: The source features are "whitened" to remove existing correlations and scale them to unit variance.
  2. Re-coloring: These whitened features are then "re-colored" using the covariance (correlation structure) of the target domain.

Mathematically, CORAL minimizes the Frobenius norm distance between the covariance of the transformed source data and the target data. Unlike manifold methods that only align eigenvectors (the "bases"), CORAL aligns both eigenvectors and eigenvalues, providing a more complete distribution match.

Experimental Evaluation

The authors evaluated CORAL on several standard benchmarks, including the Office-Caltech10, the Standard Office dataset, and the Amazon Review dataset for sentiment analysis.

Key Results

  • Superiority over Baselines: On Office-Caltech10 using traditional SURF features, CORAL achieved an average accuracy of 46.7%, outperforming established methods like GFK (43.4%) and TCA (45.7%).
  • Deep Learning Synergy: When combined with fine-tuned deep features (CORAL-FT7), it reached 69.4% average accuracy on the Office dataset, beating complex deep adaptation methods like DDC and DAN.
  • Robustness in NLP: In sentiment analysis, CORAL was the only method that consistently improved performance across all domain shifts, whereas other state-of-the-art methods sometimes performed worse than no adaptation at all.

Discussion and Insights

The success of CORAL highlights that aligning second-order statistics (the "shape" of the data) is often sufficient to bridge domains without complex non-linear mappings. Standard normalization is insufficient because two datasets can be normalized yet possess entirely different correlation structures. Furthermore, CORAL's efficiency is a major advantage; it can process thousands of high-dimensional features in less than a minute on a standard laptop.

Conclusion and Future Work

While highly effective, CORAL is a linear transformation and may struggle with extremely non-linear domain shifts. Future research could explore aligning higher-order statistics (like skewness or kurtosis), though these are harder to estimate reliably. Additionally, applying CORAL to modern deep text embeddings remains a promising direction for natural language processing tasks.

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