Abstract
In this paper, we introduce a new domain adaptation (DA) algorithm where the source and target domains are represented by subspaces spanned by eigenvectors. Our method seeks a domain invariant feature space by learning a mapping function which aligns the source subspace with the target one. We show that the solution of the corresponding optimization problem can be obtained in a simple closed form, leading to an extremely fast algorithm. We present two approaches to determine the only hyper-parameter in our method corresponding to the size of the subspaces. In the first approach we tune the size of subspaces using a theoretical bound on the stability of the obtained result. In the second approach, we use maximum likelihood estimation to determine the subspace size, which is particularly useful for high dimensional data. Apart from PCA, we propose a subspace creation method that outperform partial least squares (PLS) and linear discriminant analysis (LDA) in domain adaptation. We test our method on various datasets and show that, despite its intrinsic simplicity, it outperforms state of the art DA methods.
Introduction
A fundamental assumption in many machine learning applications is that the training (source) and test (target) data are drawn from the same underlying distribution. However, in practical scenarios, this assumption frequently fails due to "domain shift" or "dataset bias." For instance, an object recognition model trained on high-quality studio images (source) may perform poorly when applied to low-resolution mobile phone photos (target).
Unsupervised Domain Adaptation (DA) aims to bridge this gap by adapting a model trained on a labeled source domain to an unlabeled target domain. Traditional approaches often rely on complex iterative optimizations or navigating geodesic paths on a Grassmann manifold. While effective, these methods can be computationally intensive and difficult to scale. This paper introduces Subspace Alignment (SA), a simple yet powerful alternative that achieves state-of-the-art performance with a closed-form solution.
Subspace Alignment Method
The core idea of SA is to represent each domain by a low-dimensional subspace and then learn a linear transformation to align them directly.
1. Subspace Generation
For both the source data $S$ and target data $T$, we first extract the top $d$ eigenvectors using Principal Component Analysis (PCA). Let $X_S \in \mathbb{R}^{D \times d}$ and $X_T \in \mathbb{R}^{D \times d}$ represent the source and target subspaces, respectively, where $D$ is the original feature dimension.
2. Alignment Optimization
We seek a transformation matrix $M$ that aligns $X_S$ with $X_T$ by minimizing the following objective function: $$F(M) = \|X_S M - X_T\|_F^2$$ where $\|\cdot\|_F^2$ denotes the Frobenius norm.
3. Closed-Form Solution
A key contribution of this work is demonstrating that the optimal transformation $M^*$ has a simple closed-form solution: $$M^* = X_S' X_T$$ The aligned source subspace is then defined as $X_a = X_S M^*$. This alignment effectively correlates the two sets of eigenvectors, creating a domain-invariant feature space.
4. Hyper-parameter Selection
The only hyper-parameter is the subspace dimension $d$. The authors propose two methods for its selection:
- Theoretical Bound: Using a stability bound based on the gap between eigenvalues.
- SA-MLE: Utilizing Maximum Likelihood Estimation, which is particularly efficient for high-dimensional data like Fisher Vectors.
Experimental Evaluation
The SA algorithm was evaluated against several standard benchmarks, including the Office+Caltech-10 dataset (Amazon, DSLR, Webcam, Caltech-101) and the PASCAL-VOC-2007 dataset.
Key Results
- Performance: On the Office+Caltech benchmark, SA achieved an average accuracy of 51.2%, significantly outperforming the Geodesic Flow Kernel (GFK) at 43.7%.
- Efficiency: The SA-MLE variant proved to be approximately 100 times faster than standard SA for high-dimensional features by eliminating the need for expensive cross-validation.
- Synergy with Deep Learning: When applied to deep features (e.g., DeCAF), SA provided further performance gains, indicating that subspace alignment complements the hierarchical representations learned by neural networks.
Discussion and Conclusion
The strength of Subspace Alignment lies in its simplicity. By operating on global covariance structures rather than local point constraints, the method is inherently robust to noise. Furthermore, the closed-form solution acts as an intrinsic regularizer, preventing overfitting without the need for complex tuning.
While SA assumes some degree of correlation between domains and may be sensitive to extreme class prior shifts, its efficiency and accuracy make it a highly practical tool for real-world domain adaptation. Future work involves integrating supervised metric learning constraints directly into the alignment process to further enhance discriminative power.
Summary updated