When Unsupervised Domain Adaptation Meets Tensor Representations

Hao Lu, Lei Zhang, Zhiguo Cao, Wei Wei, Ke Xian, Chunhua Shen, Anton van den Hengel

Abstract

Unsupervised Domain Adaptation (DA) is critical for deploying machine learning models across heterogeneous datasets. However, conventional DA techniques typically rely on vectorizing structured data, which discards vital spatial information and incurs significant computational costs due to the "curse of dimensionality." This paper introduces Tensor-Aligned Invariant Subspace Learning (TAISL), a novel framework that operates directly on tensor representations. By leveraging Tucker decomposition and a mode-wise alignment strategy, TAISL preserves the multi-linear structure of data while learning a shared invariant subspace. Experimental results on benchmark datasets demonstrate that TAISL achieves superior accuracy and order-of-magnitude speedups compared to state-of-the-art vector-based methods.

Introduction: The Challenge of Domain Mismatch

In real-world machine learning applications, a common hurdle is "domain mismatch," where a model trained on a source dataset fails to generalize to a target dataset with different statistical properties. Unsupervised Domain Adaptation (DA) seeks to bridge this gap by identifying a shared "invariant subspace" where both domains are aligned.

A significant limitation of current DA methods is their reliance on vector-based representations. When dealing with structured data, such as the 3D feature maps (tensors) generated by Convolutional Neural Networks (CNNs), these methods require "vectorization"—flattening the tensor into a high-dimensional vector. This process is problematic for two primary reasons:

  1. Structural Loss: Flattening ignores the spatial and multi-linear correlations inherent in the data.
  2. The Curse of Dimensionality: A relatively small tensor becomes a massive vector, making the estimation of relationships (like covariance matrices) computationally expensive and prone to noise.

Methodology

The proposed TAISL framework addresses these issues by treating data as tensors throughout the entire adaptation process.

Key Components

  • Tucker Decomposition: TAISL utilizes Tucker decomposition to represent high-dimensional tensors as a compact "core" tensor multiplied by factor matrices along each dimension (mode). This representation captures the essential structure of the data efficiently.
  • Alignment Matrices: The core innovation lies in the use of alignment matrices ($M$) that linearly transform the source tensor to align it with the target domain's subspace.
  • Joint Optimization: TAISL solves a joint optimization problem, simultaneously learning the optimal alignment matrices and the shared tensor subspace.
  • Alternating Minimization: Due to the coupling of variables, an iterative alternating minimization scheme is employed. The algorithm fixes the subspace to update the alignment, then fixes the alignment to update the subspace, typically converging within 10 iterations.

Unlike holistic vector-based methods, TAISL performs mode-wise adaptation. By adapting each dimension of the tensor separately, it maintains a low parameter count and high computational efficiency.

Conceptual comparison of holistic alignment (top) vs. mode-wise tensor alignment (bottom).

Experimental Setup

The authors evaluated TAISL on several major benchmarks:

  • Office–Caltech10 (OC10): A standard DA dataset comprising images from Amazon, DSLR, Webcam, and Caltech-256 across 10 categories.
  • ImageNet–VOC2007 (IV): A challenging cross-dataset task involving knowledge transfer from ImageNet to the multi-label scenes of PASCAL VOC 2007.
  • Feature Representations: The primary focus was on CONV5_3 activations from VGG-16 (represented as $6 \times 6 \times 512$ tensors), though HOG and VGG-M features were also tested to demonstrate generality.

Results and Discussion

TAISL demonstrated significant improvements in both accuracy and efficiency. On the Office-Caltech10 benchmark, TAISL achieved a mean accuracy of 86.9%, substantially outperforming vector-based methods like Subspace Alignment (74.3%) and Correlation Alignment (72.0%). Furthermore, TAISL is remarkably efficient; in an Amazon-to-Caltech trial, it achieved a 16x speedup over the vector-based CORAL method (0.92 minutes vs. 14.81 minutes).

Preserving Discriminative Power

A critical insight from the study is TAISL's ability to avoid "over-adaptation." Some vector-based methods align domains so aggressively that they lose the discriminative boundaries between classes, causing them to overlap in the feature space. As shown in the t-SNE visualizations below, TAISL preserves the class-separability of the source domain while achieving alignment, whereas methods like CORAL can cause distinct classes to merge.

t-SNE visualizations showing that TAISL (d) maintains better class separation compared to methods like CORAL (b), which can lead to class overlap.

Additionally, TAISL proved robust to label noise in the source domain and performed exceptionally well in small-sample or "one-shot" scenarios where only a few examples per category are available for adaptation.

Conclusion

TAISL represents a significant step forward in domain adaptation by embracing the natural tensor structure of modern deep learning features. While currently limited to source and target domains with identical tensor dimensions, future work aims to extend this framework to heterogeneous dimensions and further integrate source label information into the subspace learning process.

Summary updated

BibTeX
@inproceedings{lu2017when,
  author = {Hao Lu and Lei Zhang and Zhiguo Cao and Wei Wei and Ke Xian and Chunhua Shen and Anton van den Hengel},
  title = {{When Unsupervised Domain Adaptation Meets Tensor Representations}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  doi = {10.1109/iccv.2017.72},
}
Figure