Learning representations that are closed-form Monge mapping optimal with application to domain adaptation

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

Abstract

Optimal transport (OT) is a powerful geometric tool used to compare and align probability measures following the least effort principle. Despite its widespread use in machine learning (ML), OT problems still bear a significant computational burden and suffer from the curse of dimensionality in high-dimensional spaces. We propose LaOT (Linearly Alignable Optimal Transport), a framework that learns an embedding space where input measures become alignable via a simple affine mapping that can be calculated efficiently in closed-form. Our approach achieves results comparable to standard OT solvers on transfer learning tasks while significantly reducing computational overhead in both homogeneous and heterogeneous domain adaptation (DA) settings.

Introduction: The OT Bottleneck

Optimal Transport is mathematically elegant for aligning distributions by finding the "least effort" path. However, real-world application is hindered by two primary factors:

  1. Computational Complexity: Standard solvers typically scale at $O(n^3)$, making them impractical for large-scale datasets.
  2. Curse of Dimensionality: Estimating OT maps in high-dimensional spaces requires an exponential number of samples to maintain accuracy.

While closed-form solutions exist for specific cases—such as Gaussian distributions or variables linked by an affine transformation—real-world data is rarely so well-behaved. LaOT addresses this by shifting the perspective: instead of struggling with a hard OT problem in the original space, it learns a representation space where the problem becomes easy.

Methodology: Linearly Alignable Optimal Transport (LaOT)

The core idea of LaOT is to use a coupled autoencoder architecture to find a latent space where the Monge mapping (the function that aligns the distributions) is a simple affine transformation: $z^t = Az^s + b$.

The LaOT framework learns a source embedding $z^s$ that can be mapped to the target latent space $z^t$ via a simple affine transformation.

The Loss Function

The model optimizes a joint objective function consisting of two main parts:

  • Data Fidelity (Reconstruction Loss): A standard autoencoder loss ensuring the learned embeddings preserve the information of the original input.
  • Alignability Criterion: This novel term uses the Wasserstein distance between the source embeddings (pushed through the linear map) and the target embeddings.

By including this in the training loop, the neural network is forced to "warp" the data into a shape where a simple linear shift and rotation are enough to align the source and target perfectly.

Key Insights

  • Representation Learning as a Solver: The paper shifts the focus from solving complex math problems on raw data to transforming the data so the math problem is already solved.
  • Dimension-Free Complexity: Because linear Monge map estimation is essentially dimension-free in terms of sample complexity, LaOT effectively dodges the curse of dimensionality.
  • Unified Domain Adaptation: LaOT handles both homogeneous (same input space) and heterogeneous (different input spaces) DA naturally by using different encoders that map to a shared latent space.
Visualization of aligned distributions in the learned latent space.

Experimental Results

LaOT was evaluated across several benchmarks, including Office/Caltech10, VisDA-2017, and digit datasets (MNIST, USPS, SVHN).

  • Accuracy: On the Office/Caltech10 UDA task, LaOT achieved a mean accuracy of 93.82%, outperforming complex deep learning baselines like WGRL (92.74%).
  • Efficiency: In large-scale tests ($n=20,000$), LaOT computed the OT map in 0.23 seconds, while the standard Kantorovich OT solver took 138.53 seconds—a massive speedup.
  • Heterogeneous DA: The model showed significant gains in settings where source and target features were from different spaces, proving the robustness of the learned linear alignment.

Conclusion and Future Work

LaOT demonstrates that learning "alignable" representations is a viable path toward scalable and efficient Optimal Transport. While it effectively bypasses traditional computational hurdles, future work remains in "lifting" these optimal mappings back to the original high-dimensional input space and addressing sensitivity to hyperparameters like embedding dimensionality.

Summary updated

BibTeX
@article{struckmeier2023learning,
  author = {Oliver Struckmeier and Ievgen Redko and Anton Mallasto and Karol Arndt and Markus Heinonen and Ville Kyrki},
  title = {{Learning representations that are closed-form Monge mapping optimal with application to domain adaptation}},
  journal = {Accepted by TMLR},
  year = {2023},
  url = {https://openreview.net/forum?id=nOIGfQnFZm},
}
Figure