Structured Optimal Transport

David Alvarez-Melis, Tommi S. Jaakkola, Stefanie Jegelka

Abstract

Standard Optimal Transport (OT) frameworks treat data points as independent entities, often failing to preserve inherent structural relationships such as groups, hierarchies, or sequences. This paper introduces Structured Optimal Transport (SOT), a nonlinear generalization of OT that utilizes submodular cost functions to encourage the collective movement of related data points. By leveraging the Lovász extension and saddle-point optimization, SOT provides a computationally efficient method for structure-aware alignment. Experimental results across domain adaptation and natural language processing tasks demonstrate that SOT significantly outperforms traditional linear OT methods by maintaining the integrity of data clusters during transport.

Introduction

Optimal Transport (OT) has become a foundational tool in machine learning for tasks ranging from dataset alignment to generative modeling. However, the standard formulation of OT, such as the Earth Mover’s Distance (EMD), is inherently "structure-blind." It calculates the cost of moving mass between distributions based on a separable ground metric, meaning the cost of moving one point is independent of the movement of its neighbors.

In many real-world applications, this independence is a liability. For instance, in domain adaptation, we expect clusters of related data (e.g., all images of a specific digit) to move together. Standard OT may fragment these clusters if it is marginally cheaper to map individual points to disparate regions. To address this, we propose Structured Optimal Transport (SOT), a framework that allows for the integration of complex structural priors directly into the transport plan.

Methodology

Submodularity as a Structural Prior

The core innovation of SOT is the replacement of the standard linear cost function with a submodular set function. Submodular functions naturally encode the principle of "diminishing returns." In the context of OT, this means that once a subset of points from a specific group is moved to a target region, the marginal cost of moving additional points from that same group to that same region decreases. This "bulk discount" encourages the transport plan to favor coherent, block-diagonal structures over fragmented ones.

The Lovász Extension and Optimization

Because submodular functions are discrete, they cannot be directly applied to the continuous probability distributions used in OT. SOT bridges this gap using the Lovász extension, a mathematical tool that transforms discrete set functions into convex continuous ones.

The resulting optimization problem is framed as a saddle-point (min-max) game. One player seeks the optimal transport plan, while a virtual adversary selects the most challenging cost matrix from a submodular base polytope. To solve this efficiently, the authors developed the Saddle-Point Mirror Prox (SP-MP) algorithm. This approach combines the speed of Sinkhorn iterations with specialized $O(n \log n)$ projections, ensuring the framework can scale to practical dataset sizes.

Experimental Evaluation

Domain Adaptation

The framework was tested on the unsupervised domain adaptation task of mapping MNIST digits to the USPS dataset. Standard EMD often fails here because it lacks the incentive to keep digit classes together, achieving only 37.72% accuracy. In contrast, SOT achieved 62.97% accuracy, outperforming other regularized methods like Group-Lasso (57.12%). The resulting transport maps were qualitatively cleaner, showing distinct clusters rather than noisy, fragmented assignments.

Natural Language Processing

In NLP, the Word Mover’s Distance (WMD) is a popular OT-based metric for sentence similarity, but it typically operates as a "bag-of-words" model. By defining submodular groups based on n-grams (local word sequences), the authors created a Syntax-Aware WMD. When tested on the SICK (Sentences Involving Compositional Knowledge) dataset, SOT showed a higher correlation with human similarity scores (Spearman’s $\rho$ of 0.75 vs. 0.71 for standard WMD) and a lower Mean Squared Error (0.59 vs. 0.67).

Discussion and Conclusion

Structured Optimal Transport successfully addresses the "structure-blindness" of traditional OT by introducing submodular costs. This allows the model to respect the collective identity of data points, whether they are defined by class labels, spatial proximity, or linguistic syntax.

While SOT offers a significant performance leap, it currently requires the user to manually specify the submodular function that defines the structure. Future research may focus on automatically learning these structural priors from the data itself. Additionally, while the SP-MP algorithm is efficient for many submodular functions, further optimization may be required for highly complex combinatorial structures in massive-scale datasets. Nonetheless, SOT represents a major step forward in making Optimal Transport a more expressive and context-aware tool for modern machine learning.

Summary updated

BibTeX
@inproceedings{alvarezmelis2018structured,
  author = {David Alvarez-Melis and Tommi S. Jaakkola and Stefanie Jegelka},
  title = {{Structured Optimal Transport}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2018},
  url = {https://openreview.net/forum?id=eVNQPxX2hz},
}
Figure