Skip to main content
QUICK REVIEW

[Paper Review] Correlation Alignment by Riemannian Metric for Domain Adaptation

Pietro Morerio, Vittorio Murino|arXiv (Cornell University)|May 23, 2017
Domain Adaptation and Few-Shot LearningComputer Science31 references15 citations
TL;DR

This paper proposes Log-D-Coral, an end-to-end deep domain adaptation method that replaces the Euclidean distance in Deep CORAL with a geodesic distance on the Riemannian manifold of symmetric positive definite (SPD) matrices. By leveraging the log-Euclidean Riemannian metric, the method achieves better alignment of source and target feature covariances, resulting in improved classification accuracy—specifically a 2.8% average gain over Deep CORAL on the Office benchmark.

ABSTRACT

Domain adaptation techniques address the problem of reducing the sensitivity of machine learning methods to the so-called domain shift, namely the difference between source (training) and target (test) data distributions. In particular, unsupervised domain adaptation assumes no labels are available in the target domain. To this end, aligning second order statistics (covariances) of target and source domains have proven to be an effective approach ti fill the gap between the domains. However, covariance matrices do not form a subspace of the Euclidean space, but live in a Riemannian manifold with non-positive curvature, making the usual Euclidean metric suboptimal to measure distances. In this paper, we extend the idea of training a neural network with a constraint on the covariances of the hidden layer features, by rigorously accounting for the curved structure of the manifold of symmetric positive definite matrices. The resulting loss function exploits a theoretically sound geodesic distance on such manifold. Results show indeed the suboptimal nature of the Euclidean distance. This makes us able to perform better than previous approaches on the standard Office dataset, a benchmark for domain adaptation techniques.

Motivation & Objective

  • Address the suboptimal performance of Euclidean distance in measuring differences between covariance matrices in domain adaptation.
  • Recognize that covariance matrices naturally lie on a Riemannian manifold (Sym++(n)), not in Euclidean space, and thus require manifold-aware metrics.
  • Improve deep domain adaptation by replacing the Frobenius norm in Deep CORAL with a theoretically sound Riemannian distance.
  • Enable end-to-end training with a more stable and meaningful covariance alignment loss.
  • Demonstrate that accounting for the intrinsic geometry of SPD matrices leads to better generalization and convergence behavior.

Proposed method

  • Replace the Frobenius norm-based covariance loss in Deep CORAL with a log-Euclidean Riemannian distance on the manifold of symmetric positive definite (SPD) matrices.
  • Use the log-Euclidean metric, defined as the Euclidean distance between the matrix logarithms of SPD matrices, to compute the geodesic distance.
  • Formulate a new loss function: $ \alpha \cdot \| \log \Sigma_s - \log \Sigma_t \|_F^2 $, where $ \Sigma_s $ and $ \Sigma_t $ are the covariance matrices of source and target features.
  • Integrate this Riemannian loss into an end-to-end deep neural network training pipeline, jointly optimizing with the cross-entropy classification loss.
  • Apply the method to the Office benchmark dataset, using batch-wise covariance estimates from the last fully connected layer features.
  • Tune hyperparameters $ \alpha $ and $ \lambda $ separately for each domain shift, with $ \alpha $ typically an order of magnitude larger than $ \lambda $.

Experimental results

Research questions

  • RQ1Does replacing the Euclidean distance with a Riemannian geodesic distance improve domain adaptation performance when aligning feature covariances?
  • RQ2How does the stability and convergence behavior of the Riemannian loss compare to the standard Frobenius norm loss during training?
  • RQ3Can a geodesic distance on the SPD manifold lead to better generalization than the standard CORAL loss in deep domain adaptation?
  • RQ4Is the log-Euclidean metric a computationally viable and effective alternative to more complex Riemannian metrics in large-scale domain adaptation?
  • RQ5To what extent does accounting for the intrinsic geometry of covariance matrices reduce the domain shift between source and target distributions?

Key findings

  • Log-D-Coral achieves an average accuracy of 61.4% on the Office benchmark, representing a 2.8% gain over Deep CORAL’s 60.5%.
  • The method improves performance in 3 out of 6 domain shift splits, with consistent gains across different source-target combinations.
  • The log-Euclidean loss ($ L_{\log} $) stabilizes quickly during training and shows smoother, more predictable behavior compared to the Frobenius-based $ L_{\text{CORAL}} $, which exhibits pathological linear increase and high noise.
  • The $ L_{\text{CORAL}} $ loss shows unstable oscillations and fails to stabilize even at convergence, indicating suboptimal sensitivity to weight updates.
  • The geodesic distance in the Riemannian manifold of SPD matrices provides a more meaningful and stable measure of covariance discrepancy than the Euclidean metric.
  • Empirical results confirm that treating covariances as elements of $ \mathrm{Sym}^{++}(n) $ with proper Riemannian geometry leads to better domain alignment and improved classification performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.