Probabilistic Inverse Optimal Transport

Wei-Ting Chiu, Pei Wang, Patrick Shafto

Introduction

Optimal Transport (OT) has become a cornerstone in data science for finding efficient mappings between distributions. However, in many real-world scenarios—such as international migration or matching markets—we observe the resulting "coupling" (the movement of mass) but lack knowledge of the underlying "costs" or affinities that drove those decisions. This inverse problem, known as Inverse Optimal Transport (IOT), is fundamentally ill-posed: multiple distinct cost structures can often produce the exact same observed coupling.

This paper introduces a Probabilistic Inverse Optimal Transport (PIOT) framework. Rather than seeking a single point estimate for the cost matrix, PIOT characterizes the entire geometric manifold of possible costs and provides a robust probabilistic distribution over them, accounting for noise and ambiguity in real-world data.

The Geometry of Cost Manifolds

A key contribution of this work is the formal mathematical characterization of the IOT solution space. The authors leverage Entropy-regularized Optimal Transport (EOT) and prove that the set of all cost matrices capable of producing a specific coupling forms a hyperplane (a flat subspace) within the cost space.

Visualization of the cost manifold and probability distribution under the PIOT framework.

To define this manifold, the authors identify "cross-ratios" (e.g., $\frac{t_{ik}t_{jl}}{t_{il}t_{jk}}$) as the fundamental algebraic invariants of a coupling. Two cost matrices are considered equivalent if they share the same cross-ratios, as they will yield the identical optimal coupling under Sinkhorn scaling. This geometric simplicity—a hyperplane of dimension $m+n-1$—allows for efficient exploration of the cost space.

Probabilistic Inference via MCMC

Building on this geometric foundation, the PIOT framework defines a posterior distribution $P(C|T)$ over cost matrices $C$ given an observed coupling $T$. To sample from this distribution, the authors developed two specialized Markov Chain Monte Carlo (MCMC) algorithms:

  1. MetroMC: A sampler designed to traverse the support manifold of valid costs precisely.
  2. MHMC (Metropolis-Hastings Monte Carlo): A flexible sampler that incorporates prior distributions (such as Dirichlet priors) to handle uncertainty and noise.

By using priors as "soft constraints," the model can suggest likely properties (like symmetry) without forcing them, making the inference significantly more robust to perturbations than previous "hard projection" methods.

Experimental Results and Validation

The framework was validated using both synthetic data and a real-world dataset of European migration flows between nine countries (2002–2007).

Posterior density distributions generated by the MCMC samplers, showing convergence to ground-truth values.

Key Findings:

  • Robustness to Noise: In simulations with perturbed costs, PIOT achieved relative errors between $10^{-3}$ and $10^{-4}$, outperforming existing state-of-the-art methods by an order of magnitude.
  • Predictive Power: On the migration dataset, the model successfully recovered missing flow values with an estimation error of less than 35%, even when using weak priors. This demonstrates the model's ability to infer latent structures from incomplete observations.
  • Scalability: The inference process maintains a linear computational complexity of $O(mn)$ relative to the size of the coupling matrix, ensuring it can scale to larger datasets.

Conclusion

By shifting the focus from finding a single "correct" cost to characterizing the entire manifold of possibilities, the PIOT framework provides a mathematically rigorous and practically robust solution to the inverse optimal transport problem. Future work aims to extend these discrete geometric insights into the realm of continuous probability measures and automated prior selection.

Summary updated

BibTeX
@inproceedings{chiu2022probabilistic,
  author = {Wei-Ting Chiu and Pei Wang and Patrick Shafto},
  title = {{Probabilistic Inverse Optimal Transport}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=dQALw9kDjo},
}
Figure