A Specialized Semismooth Newton Method for Kernel-Based Optimal Transport

Tianyi Lin, Marco Cuturi, Michael I. Jordan

A Specialized Semismooth Newton Method for Kernel-Based Optimal Transport

Abstract

Kernel-based optimal transport (OT) estimators offer superior statistical efficiency in high-dimensional settings compared to standard plug-in methods, yet their adoption has been hindered by significant computational costs. We present a specialized semismooth Newton (SSN) method designed to solve these problems efficiently. By leveraging the unique block structure of the Jacobian through a Schur complement reduction, our approach achieves local quadratic convergence and substantial speedups over traditional interior-point methods. Empirical evaluations on synthetic and single-cell biological datasets demonstrate that our solver makes high-performance kernel OT estimators practical for real-world applications, particularly when data is sparse.

Introduction

Optimal Transport (OT) is a powerful tool for comparing probability distributions, but it famously suffers from the "curse of dimensionality." Standard "plug-in" estimators, such as those based on linear programming, require an astronomical number of samples to accurately represent high-dimensional data.

Kernel-based OT estimators offer a promising alternative; they are more sample-efficient in high dimensions because they leverage smoothness assumptions. However, they come with a steep computational price. Until now, solving them relied on short-step interior-point methods (SSIPM), which are notoriously slow and do not scale well as the number of samples ($n$) grows. This paper bridges that gap, providing a solver that is both statistically efficient and computationally fast.

Methodology

The kernel-based OT problem can be reformulated into a nonsmooth fixed-point model. Instead of treating it as a standard constrained optimization problem, we look for the root of a specific nonsmooth equation, $R(w) = 0$.

Key technical contributions include:

  • Specialized SSN Updates: The core challenge in Newton methods is solving a massive linear system (the Jacobian) at each step. For this problem, the system size is $(n^2 + n) \times (n^2 + n)$. We use a clever Schur complement trick to reduce this to a much more manageable $n \times n$ symmetric system.
  • Hybrid Safeguarding: To ensure global convergence, the algorithm alternates between fast SSN steps and more stable extragradient (EG) steps.
  • Theoretical Guarantees: The authors prove a local quadratic convergence rate, meaning the error vanishes extremely quickly once the solver gets close to the optimal solution.
Comparison of the inferred dual potential function (left) versus the true potential function (right). The algorithm aims to minimize the difference between these states to recover the optimal transport map.

Key Results

The method was evaluated on synthetic Gaussian mixtures and real-world single-cell data (the 4i datasets).

  • Computational Speedups: In experiments, the specialized SSN method was significantly faster than the baseline SSIPM. As the number of samples increased, the performance gap widened, especially in higher dimensions.
  • Superior Performance on Sparse Data: On single-cell drug perturbation datasets, the kernel-based estimator outperformed popular entropic maps in several cases, particularly excelling when training data was sparse.
  • Visual Accuracy: The inferred transport map and potential functions rapidly converge to the "true" map as the sample size $n$ increases, validating the estimator's statistical efficiency.
Visualization of the OT map convergence as sample size $n$ increases from 50 to 200. The top row shows the inferred map (red) approaching the true map (dashed black). The bottom row shows the convergence of the dual potential functions toward the optimal state.

Discussion and Conclusion

By exploiting the mathematical structure of the kernel OT problem, we have developed a solver that moves the statistical-computational frontier. This work shows that we do not have to sacrifice statistical power for speed in high-dimensional OT, making these high-performance estimators practical for the first time in fields like biological and medical research. Future directions include further optimizing the implementation by exploring the potential sparsity of the matrices involved and scaling to even larger datasets.

Summary updated

BibTeX
@inproceedings{lin2024specialized,
  author = {Tianyi Lin and Marco Cuturi and Michael I. Jordan},
  title = {{A Specialized Semismooth Newton Method for Kernel-Based Optimal Transport}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
}
Figure