Subspace Detours: Building Transport Plans that are Optimal on Subspace Projections

Boris Muzellec, Marco Cuturi

TL;DR

High-dimensional Optimal Transport (OT) is notoriously difficult due to the "curse of dimensionality." This paper introduces Subspace Detours, a framework for building full-dimensional transport maps that are constrained to be optimal on a lower-dimensional subspace, providing a robust, efficient, and interpretable alternative to standard OT.

What Problem Does This Paper Address?

Optimal Transport is a powerful tool for finding the most efficient way to morph one probability distribution into another. The solution provides two things: a distance metric (Wasserstein distance) and a transformation function (the Monge map).

However, in high dimensions, computing these is a nightmare. Standard OT is computationally expensive and statistically unstable. A common workaround is to project data onto 1D lines (Sliced Wasserstein), but this only gives you a distance—it doesn't provide a meaningful map in the original high-dimensional space. The authors tackle this gap: How can we leverage the simplicity of low-dimensional projections to build reliable transport maps for the full-dimensional data?

Methods

The authors propose "lifting" a transport map from a $k$-dimensional subspace $E$ back to the full $d$-dimensional space. They introduce two primary constructions based on the mathematical concept of measure disintegration (breaking a measure into a marginal on a subspace and a collection of conditional measures):

  1. Monge-Independent (MI) Plans: These assume that once you've accounted for the transport on the subspace, the remaining "leftover" parts of the distributions are independent. This is particularly useful in noisy environments where the signal is concentrated in a known subspace.
  2. Monge-Knothe (MK) Transport: This is a more sophisticated "lift" that optimally couples the conditional measures. The authors prove that MK transport is a generalization of the classical Knothe-Rosenblatt transport.
Figure 1: A d = 2, k = 1 illustration. Any γ ∈ΠE(µ, ν) being supported on G(S) × (E⊥)2, all the mass from x is transported on the fiber {S(xE)} × E⊥. Different γ’s in ΠE(µ, ν) correspond to different couplings between the fibers {xE} × E⊥and {S(xE)} × E⊥.

A major contribution is the derivation of closed-form solutions for these transports when dealing with Gaussian measures. For Gaussians, the MK map results in a block-triangular matrix, which is much easier to compute than a full Monge map. They also provide Algorithm 1, a projected gradient descent method to automatically find the "best" subspace $E$ that minimizes the transport cost.

Datasets

The authors evaluated their methods across several domains:

  • Synthetic Data: Noisy, low-rank Gaussian distributions used to test how well MI and MK can recover signal from noise.
  • Elliptical Word Embeddings: Pre-trained 12x12 covariance matrices representing words, used to demonstrate "semantic mediation"—changing a word's nearest neighbors based on a specific context subspace.
  • Office Home Dataset: A standard domain adaptation benchmark featuring 15,000 images across 65 classes and 4 domains (Art, Clipart, Product, Real World), using 2048-dimensional Inception features.

Key Insights and Ideas

  • Prioritizing Features: By choosing the subspace $E$ (e.g., using PCA), you can force the transport map to prioritize matching the most important features first. This makes the resulting map more interpretable.
  • Robustness to Noise: The MI transport is exceptionally robust. Because it treats the "non-subspace" parts as independent, it effectively ignores high-dimensional noise that would otherwise derail a standard OT solver.
  • The "Elbow" Effect: In synthetic tests, both MI and MK distances show a clear "elbow" when the subspace dimension matches the true rank of the data signal, suggesting these metrics can be used for dimensionality estimation.
Figure 6: Synthetic data results showing the difference between MI/MK and the full Bures distance as a function of subspace dimension k.

Key Results

  • Massive Speedups: In color transfer experiments (mapping the palette of one image to another), the MK approach achieved a 50x speedup compared to full OT, with virtually no loss in visual quality.
  • Better Domain Adaptation: On the Office Home dataset, using MK maps with a learned subspace often yielded higher classification accuracy than using the full 2048-dimensional Bures distance. This proves that in high dimensions, "less is more"—focusing on a well-chosen subspace leads to more stable and accurate transfers.
  • Semantic Flexibility: The word embedding experiments showed that by changing the "mediating subspace," the MK distance could shift the meaning of polysemous words (like "fox" or "windows") to match different contexts (e.g., "media" vs. "hedgehog").
Figure 5: Color transfer results comparing full OT, MK, and Sliced OT. MK is significantly faster while maintaining quality.

Limitations and Future Work

  • Local Minima: The algorithm for selecting the optimal subspace is non-convex, meaning it is only guaranteed to find a local minimum.
  • Gaussian Reliance: While the theory is general, the most practical and efficient implementations currently rely on Gaussian or Gaussian Mixture Model (GMM) approximations of the data.
  • Future Directions: The authors suggest exploring these "subspace detours" in other areas of machine learning that currently rely on simple projections, such as generative modeling or trajectory reconstruction in biology.

Summary updated

Abstract

Computing optimal transport (OT) between measures in high dimensions is doomed by the curse of dimensionality. A popular approach to avoid this curse is to project input measures on lower-dimensional subspaces (1D lines in the case of sliced Wasserstein distances), solve the OT problem between these reduced measures, and settle for the Wasserstein distance between these reductions, rather than that between the original measures. This approach is however difficult to extend to the case in which one wants to compute an OT map (a Monge map) between the original measures. Since computations are carried out on lower-dimensional projections, classical map estimation techniques can only produce maps operating in these reduced dimensions. We propose in this work two methods to extrapolate, from an transport map that is optimal on a subspace, one that is nearly optimal in the entire space. We prove that the best optimal transport plan that takes such "subspace detours" is a generalization of the Knothe-Rosenblatt transport. We show that these plans can be explicitly formulated when comparing Gaussian measures (between which the Wasserstein distance is commonly referred to as the Bures or Fréchet distance). We provide an algorithm to select optimal subspaces given pairs of Gaussian measures, and study scenarios in which that mediating subspace can be selected using prior information. We consider applications to semantic mediation between elliptic word embeddings and domain adaptation with Gaussian mixture models.
BibTeX
@inproceedings{muzellec2019subspace,
  author = {Boris Muzellec and Marco Cuturi},
  title = {{Subspace Detours: Building Transport Plans that are Optimal on Subspace Projections}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure