Beyond invariant representation learning: linearly alignable latent spaces for efficient closed-form domain adaptation

Oliver Struckmeier, Ievgen Redko, Anton Mallasto, Karol Arndt, Markus Heinonen, Ville Kyrki · DOI

Introduction

Optimal Transport (OT) provides a principled mathematical framework for aligning probability distributions, making it a natural fit for Domain Adaptation (DA). However, traditional OT methods are often computationally prohibitive, typically scaling cubically ($O(n^3)$) with the number of samples. Furthermore, they suffer from the "curse of dimensionality," requiring an exponential number of samples to accurately estimate costs in high-dimensional spaces.

The LaOT Framework

In their paper "Beyond invariant representation learning: linearly alignable latent spaces for efficient closed-form domain adaptation," researchers from Aalto University and Huawei Noah’s Ark Lab introduce LaOT (Linearly Alignable Optimal Transport). The core innovation is to move away from the standard goal of learning invariant representations—where source and target features are forced to overlap perfectly—and instead learn linearly alignable representations.

The LaOT framework learns latent spaces $z^s$ and $z^t$ such that the optimal transport map is a simple affine transformation $z^t = Az^s + b$.

Methodology

LaOT utilizes a pair of autoencoders to map source and target data into a shared latent space. The training objective balances two key components:

  1. Data Fidelity: A reconstruction loss ensures the latent space preserves the essential structure of the input data.
  2. Linear Alignability: A specific loss term encourages the latent source and target distributions to be related by a simple affine transformation: $z^t = Az^s + b$.

By enforcing this linear relationship, the "Monge map" (the optimal transformation between distributions) admits a beautiful closed-form solution based on the means and covariances of the latent data. This allows the model to calculate the optimal alignment nearly instantaneously using matrix algebra, bypassing the need for expensive iterative solvers.

Experimental Results and Efficiency

The authors evaluated LaOT across several benchmarks, including Office/Caltech10, VisDA, and MNIST/SVHN. The results highlight two primary advantages:

  • Computational Speed: On an MNIST-SVHN task with 20,000 samples, LaOT computed the mapping in just 0.23 seconds, compared to over 138 seconds for standard Kantorovich OT. The Gromov-Wasserstein method, often used for heterogeneous tasks, was infeasible at this scale.
  • Adaptation Accuracy: LaOT achieved a mean accuracy of 93.82% on the Office/Caltech dataset, significantly outperforming deep adversarial methods like DANN (87.67%).

Furthermore, LaOT proves robust in Heterogeneous Domain Adaptation scenarios, where source and target domains have different input feature dimensions—a task where standard OT methods often struggle or fail.

Conclusion

LaOT offers a flexible alternative to invariant representation learning. By allowing domains to maintain their unique topological structures while ensuring they remain "one linear transformation away" from each other, the method achieves state-of-the-art performance with a fraction of the computational cost. Future work may explore "lifting" these latent mappings back to the original input space for applications in image-to-image translation or style transfer.

Summary updated

BibTeX
@article{struckmeier2023beyond,
  author = {Oliver Struckmeier and Ievgen Redko and Anton Mallasto and Karol Arndt and Markus Heinonen and Ville Kyrki},
  title = {{Beyond invariant representation learning: linearly alignable latent spaces for efficient closed-form domain adaptation}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=nOIGfQnFZm},
}
Figure