An efficient algorithm for entropic optimal transport under martingale-type constraints

Xun Tang, Michael Shavlovsky, Holakou Rahmanian, Tesi Xiao, Lexing Ying · DOI

Abstract

Martingale Optimal Transport (MOT) is a critical framework for applications ranging from model-free financial pricing to fair machine learning. However, its practical adoption has been hindered by computational complexity and the inherent infeasibility of exact martingale constraints in discrete settings. This paper introduces a novel "Sinkhorn-Newton-Sparse" (SNS) algorithm that leverages entropic regularization and the approximate sparsity of the Hessian matrix. The proposed framework achieves super-exponential convergence and machine-level accuracy with a per-iteration complexity of $O(n^2)$, significantly outperforming existing first-order methods.

1. Introduction

Optimal Transport (OT) provides a robust mathematical foundation for determining the most efficient transformation between probability distributions. Martingale Optimal Transport (MOT) extends this by imposing a martingale constraint—requiring the transport plan to represent a "fair game" where the expected future value equals the current value. While MOT is indispensable for establishing model-free bounds in finance (e.g., pricing exotic options) and ensuring stochastic fairness, it faces two primary obstacles: numerical infeasibility due to discretization errors and prohibitive computational costs for large-scale datasets.

2. Addressing Feasibility and Robustness

In real-world applications, data is typically represented as discrete samples. Enforcing strict martingale constraints ($PV = W$) in these settings often leads to empty feasible sets because discretization errors prevent the exact satisfaction of the martingale property.

To address this, the authors propose a relaxation of the martingale condition using an $l_1$-norm threshold: $\|PV - W\|_1 \le \epsilon$. This relaxation ensures that the optimization problem remains well-posed and stable even when dealing with noisy or discretized data. By moving from exact to approximate constraint satisfaction, the framework becomes robust enough for practical deployment in finance and e-commerce.

3. The Sinkhorn-Newton-Sparse (SNS) Algorithm

The core contribution of this work is the SNS algorithm, a hybrid approach designed to overcome the limitations of standard solvers. The algorithm operates in two distinct phases:

3.1 Entropic Regularization and Sinkhorn Iterations

The authors apply entropic regularization to the objective function, which smooths the optimization landscape. This allows the problem to be solved via its dual formulation. The algorithm begins with Sinkhorn-type iterations—alternating between scaling rows and columns and updating dual variables—to rapidly approach the neighborhood of the optimal solution.

3.2 Sparse Newton Iterations

Once the algorithm is sufficiently close to the optimum, it transitions to a Sparse Newton method. Traditionally, Newton's method is computationally expensive for large-scale OT because calculating and inverting the Hessian matrix requires $O(n^3)$ or $O(n^4)$ operations.

The authors' key insight is that the Hessian of the dual objective function inherits the sparsity of the optimal transport plan. In an optimal plan, most source points only connect to a few target points, meaning the transport matrix is sparse. By exploiting this sparsity and only calculating the most significant entries of the Hessian, the authors maintain a per-iteration complexity of $O(n^2)$. This allows for the high-precision convergence characteristic of second-order methods without the usual computational penalty.

4. Key Insights and Theoretical Results

The paper provides several critical theoretical and empirical observations:

  • Exponential Proximity: The authors demonstrate that as the regularization parameter increases, the solution to the entropic problem converges exponentially to the true Linear Programming (LP) solution.
  • Hessian Sparsity: The realization that the "second derivative" of the dual problem is approximately sparse is the technical breakthrough that enables the $O(n^2)$ complexity.
  • Super-Exponential Convergence: Numerical experiments show that the SNS algorithm reaches machine-level accuracy ($10^{-6}$ to $10^{-10}$) in far fewer iterations than traditional first-order methods like the Adaptive Primal-Dual Accelerated Gradient Descent (APDAGD).

5. Applications and Performance

The SNS algorithm was evaluated across three distinct scenarios:

  • Financial Option Pricing: Simulating asset prices under martingale conditions to find robust price bounds.
  • Resource Allocation: Solving assignment problems where products must be allocated to customers under balance constraints.
  • E-commerce Ranking: Addressing stochastic ranking problems with diversity constraints modeled as super-martingale conditions.

In these tests, the SNS algorithm was orders of magnitude faster than benchmarks in terms of wall-clock time. It successfully handled system sizes of $n=800$ (representing a coupling matrix with 640,000 entries) on standard hardware, proving its scalability.

6. Conclusion and Future Work

The SNS framework represents a significant step forward in making Martingale Optimal Transport computationally viable for large-scale applications. By combining the stability of $l_1$ relaxation with the speed of sparse second-order optimization, the authors provide a tool that is both robust and efficient.

Future research directions include providing a formal theoretical proof for the observed super-exponential convergence rate, exploring the algorithm's performance as the dimension of constraints ($d$) increases, and extending the implementation to multi-marginal MOT problems involving more than two distributions.

Summary updated

BibTeX
@misc{tang2025efficient,
  author = {Xun Tang and Michael Shavlovsky and Holakou Rahmanian and Tesi Xiao and Lexing Ying},
  title = {{An efficient algorithm for entropic optimal transport under martingale-type constraints}},
  year = {2025},
  eprint = {2508.17641},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.17641},
}
Figure