Introduction
In machine learning, "domain shift" occurs when the distribution of data at test time (the target domain) differs from the training data (the source domain). Unsupervised Domain Adaptation (UDA) aims to mitigate this by aligning feature distributions without target labels. Traditional methods typically match low-order statistics: 1st-order (mean, e.g., Maximum Mean Discrepancy) or 2nd-order (covariance, e.g., CORAL). However, deep neural network features often exhibit complex, non-Gaussian distributions that these coarse metrics fail to capture.
The HoMM Framework
The authors propose Higher-order Moment Matching (HoMM), a unified framework that minimizes the distance between $p$-order moment tensors of the source and target domains. Mathematically, HoMM generalizes existing methods:
- $p=1$: Equivalent to MMD.
- $p=2$: Equivalent to CORAL or Gram matrix matching.
- $p \ge 3$: Captures skewness, kurtosis, and finer structural details.
As shown in the figure above, increasing the order of the moment allows the model to capture the intricate "shape" of the data distribution. While 1st and 2nd-order matching provide a rough alignment, 3rd and 4th-order moments act as a detailed "fingerprint," ensuring a much tighter fit for non-Gaussian features.
Overcoming Computational Complexity
Calculating a $p$-order tensor for a layer with $L$ neurons has a space complexity of $O(L^p)$. For deep networks, this quickly becomes intractable. For example, a 4th-order tensor for a 128-neuron layer would contain over 268 million elements.
To address this, the authors introduce two key strategies:
- Group Moment Matching: Neurons are divided into smaller groups, and tensors are matched within these groups.
- Random Sampling Matching: Instead of the full tensor, only $N$ randomly selected indices are aligned. Empirically, sampling just $N=1000$ values is sufficient for high performance.
Additionally, the authors recommend using tanh activation in the adaptation layer, as ReLU can zero out values and hinder the calculation of higher-order tensors.
Discriminative Clustering and Results
To ensure the model learns clear class boundaries, HoMM incorporates discriminative clustering via pseudo-labeling. High-confidence target samples are assigned labels and penalized based on their distance from class centers in the feature space.
The method was evaluated on standard benchmarks including Digits (MNIST, SVHN), Office-31, and Office-Home. Key findings include:
- State-of-the-Art Performance: HoMM consistently outperformed DAN, JAN, and CORAL. On the SVHN → MNIST task, HoMM achieved 99.0% accuracy.
- The Sweet Spot: Performance peaks at $p=3$ or $p=4$. Higher orders ($p \ge 5$) can become noisy and harder to estimate with standard batch sizes.
- Efficiency: HoMM converges faster and more stably than many adversarial-based methods like DANN.
Conclusion
HoMM demonstrates that matching higher-order statistics is a powerful and efficient way to handle domain shift in deep learning. By moving beyond simple mean and covariance, the framework provides a more nuanced alignment of complex feature spaces, setting a new standard for unsupervised domain adaptation.
Summary updated