TL;DR
Standard moment-matching domain adaptation methods typically align feature distributions using ad-hoc Euclidean distances that ignore the underlying geometry of probability distributions. This paper proposes GeoAdapt, a method that unifies first- and second-order moments into a single symmetric positive definite (SPD) matrix via Siegel embeddings, measuring domain discrepancy using Riemannian and Hilbert projective distances. This geometrically grounded approach leads to provable generalization bounds and outperforms existing moment-matching baselines across both image denoising and classification tasks.
What Problem Does This Paper Address?
In unsupervised domain adaptation (UDA) under covariate shift, a model trained on a source domain often degrades severely when deployed on a target domain with different feature distributions. A classical way to mitigate this is moment matching: forcing the latent representations of both domains to share similar statistical moments (such as mean and covariance).
However, almost all existing moment-matching methods evaluate discrepancy using Euclidean distances (e.g., Frobenius norms between covariance matrices). This creates two problems:
- Geometric Mismatch: Covariance matrices live on a curved, non-Euclidean manifold of Symmetric Positive Definite (SPD) matrices. Naive Euclidean distances distort true differences, particularly near the manifold boundaries.
- Disjoint Alignment: Means and covariances are typically aligned separately or with heuristic weighting schemes rather than through a unified distribution metric.
Methods
The authors introduce a framework that maps empirical moments directly onto the SPD manifold and computes distances natively in that Riemannian geometry:
-
Siegel Embeddings: Given empirical mean $\mu \in \mathbb{R}^n$ and covariance $\Sigma \in \mathcal{P}(n)$, the method uses a diffeomorphic embedding $f(\mu, \Sigma) \in \mathcal{P}(n+1)$: $$f(\mu, \Sigma) = \begin{bmatrix} \Sigma + \mu\mu^\top & \mu \\ \mu^\top & 1 \end{bmatrix}$$ This embedding is an isometric mapping from the family of multivariate Gaussians equipped with the Fisher-Rao information metric into the SPD manifold endowed with the affine-invariant metric.
-
Riemannian Distances:
- Affine-Invariant Riemannian Distance (AIRD): Computes the exact geodesic distance on the SPD cone using all generalized eigenvalues of the source and target representations.
- Hilbert Projective Distance (HPD): A computationally lightweight approximation depending only on the extreme (largest and smallest) generalized eigenvalues, easily computed via iterative eigensolvers.
- Theoretical Error Bound: The authors prove that the target domain generalization error $\varepsilon_T(h)$ is upper-bounded by the source error plus a function of the Hilbert projective distance: $$\varepsilon_T(h) \le \varepsilon_S(h) + 2 \tanh\left(\frac{d_H(P_S, P_T)}{4}\right) + \gamma$$
- Numerical Invertibility: Because both metrics require inverting the source SPD matrix, the authors enforce sample-to-dimension balance ($b_S \gg n$) and adopt a two-phase training scheme: task-only warmup until the determinant of the embedding matrix exceeds a numerical threshold $\eta$, after which the adaptation loss is activated.
Datasets
The authors evaluate their approach on existing benchmark datasets (no new datasets were introduced):
- Image Denoising (Unsupervised Task): MNIST and Fashion-MNIST splits where clean images serve as the source domain and images corrupted by additive Gaussian noise ($\omega \sim \mathcal{N}(0.4, 0.7^2)$) serve as the target domain.
- Image Classification (Supervised Task):
- Office-31: Three domains (Amazon, Webcam, DSLR) across 5 standard transfer pairs.
- VisDA-2017: Large-scale synthetic-to-real transfer benchmark containing 12 object categories across synthetic 3D models and real-world images.
Key Insights and Ideas
- Unified Distribution Representation: Instead of treating mean matching (first-order) and covariance alignment (second-order) as separate optimization objectives, Siegel embedding fuses them into a single mathematical object whose Riemannian distance lower-bounds the true Fisher-Rao distance.
- Low-Dimensional Bottlenecks Outperform Full Embeddings: Standard practices often adapt the full 2048-dimensional feature space of a ResNet backbone. The authors show that lower-dimensional bottleneck layers ($n \in [32, 128]$) significantly improve performance across all baseline moment-matching methods. In high dimensions where batch size $b \ll n$, empirical covariances become rank-deficient and sit near the boundary of the SPD manifold, where Euclidean distance becomes completely misleading.
- Connection from Geometry to PAC Bounds: By leveraging recent results bounding Total Variation via the Hilbert metric, the authors link a differential-geometric metric directly to classical $\tilde{\mathcal{H}}$-divergence domain adaptation generalization bounds.
Key Results
- Denoising (Test Reconstruction MSE $\downarrow$):
- MNIST: GeoAdapt-HPD achieves 0.059 and GeoAdapt-AIRD achieves 0.061, outperforming the best higher-order baseline CMD (0.073) and HoMM (0.087).
- Fashion-MNIST: Both proposed distances achieve 0.050, markedly improving over DCORAL/MECA (0.070) and CMD (0.071).
- Classification (Target Accuracy $\uparrow$):
- Office-31 Average: GeoAdapt-AIRD attains the highest average accuracy at 78.9%, notably surpassing DDC (75.8%), DCORAL (73.6%), MECA (76.3%), and HoMM-3 (76.8%).
- VisDA-2017: GeoAdapt-AIRD reaches 74.8%, outperforming MECA (73.6%), HoMM (70.5%), and DCORAL (70.0%).
Limitations and Future Work
- Strict Invertibility Constraints: Both AIRD and HPD require full-rank covariance matrices. Consequently, the mini-batch size must substantially exceed the embedding dimensionality ($b \gg n$), precluding plug-and-play application directly to high-dimensional feature representations without dimensionality reduction or covariance shrinkage methods.
- Assumption of Negligible Label Shift: The theoretical guarantee assumes minimal conditional shift ($\gamma \approx 0$). In cases with severe target label shifts, moment alignment alone is insufficient.
- Evaluation on Simplified Architectures: Experiments were performed using ResNet-50 fine-tuning only the bottleneck/final layers to isolate the distance metric's effect; integrating GeoAdapt with full-network fine-tuning, transformer backbones, or pseudo-labeling remains for future work.
Summary updated