Inexact Bregman Sparse Newton Method for Efficient Optimal Transport

Jianting Pan, Ji'an Li, Sirong Dai, Ming YanNeurIPS 2026

TL;DR

Optimal Transport (OT) measures the cheapest way to morph one probability distribution into another, a fundamental tool in machine learning and computer vision. Fast modern solvers rely on mathematical shortcuts that blur the final answer, while exact solvers choke on large datasets. This paper introduces IBSN, an algorithm that computes high-accuracy, exact OT plans rapidly by combining a clever variable-reduction trick, smart matrix pruning, and "just-good-enough" intermediate steps.

What Problem Does This Paper Address?

Imagine trying to move a massive pile of dirt into a specific hole with the least effort—that is Optimal Transport. Written down, discrete OT is a straightforward linear program, but solving it directly at large scales is painfully slow.

A decade ago, researchers discovered a shortcut: add a splash of entropy ("blurriness") to smooth out the problem, allowing a fast, iterative method called the Sinkhorn algorithm to approximate the answer. The catch? You get a biased, blurry transport plan. If you dial down the blurriness ($\eta$) to get closer to the true, crisp answer, Sinkhorn grinds to a halt and suffers from severe numerical overflow and underflow.

To recover the exact OT solution without crashing your computer, researchers wrap these entropy-smoothed problems inside an outer loop called a Bregman proximal point framework, solving a sequence of subproblems that gradually zero in on the true answer. However, solving every inner subproblem to perfection is an enormous waste of compute. Existing "inexact" frameworks allow approximate inner steps, but when paired with standard first-order solvers like Sinkhorn, they hit a brutal mid-game bottleneck as accuracy requirements tighten.

Methods

The authors propose Inexact Bregman Sparse Newton (IBSN). For its outer loop, IBSN uses an established, verifiable inexact Bregman framework—meaning it relies on an easily checkable mathematical condition to know when an inner subproblem is "solved enough" to move on.

The real magic is inside the inner loop, where IBSN replaces slow first-order updates with a customized, lightning-fast second-order (Newton) solver:

  • Shrinking the Arena (Semi-Dual Formulation): Standard Newton OT solvers optimize two sets of dual variables, creating a massive $(m + n) \times (m + n)$ Hessian matrix (which maps the problem's curvature). By analytically eliminating one variable set, IBSN operates in the semi-dual space, shrinking the system to $n \times n$ and slashing memory and compute costs.
  • Adaptive Sparsification (What's New): Even an $n \times n$ matrix is costly if it is dense. Because optimal transport plans are naturally sparse, IBSN zeroes out tiny entries in the probability matrix below an adaptive threshold $\rho$, then renormalizes the rows. Crucially, the threshold is coupled to the current gradient norm: early on, when far from the answer, it prunes aggressively for speed; near the optimum, it keeps more entries for precision.
  • Warm-started Conjugate Gradient: Each inner loop starts with a few cheap Sinkhorn steps to get into the right ballpark before switching to sparse Newton updates solved via the Conjugate Gradient (CG) method.

Datasets

No new benchmarks were introduced; IBSN was evaluated on standard synthetic and real-world 2D image OT tasks:

  • Synthetic Data: Grids of sizes $1,000 \times 1,000$, $5,000 \times 5,000$, and $10,000 \times 10,000$, with cost matrices drawn from uniform distributions and squared Euclidean ($\ell_2$) distances.
  • MNIST & Fashion-MNIST: Computing transport maps between flattened $28 \times 28$ pixel intensity distributions ($m = n = 784$).
  • DOTmark: A dedicated OT benchmark suite (Shapes, ClassicImages, WhiteNoise) at $32 \times 32$ ($1,024$) and $64 \times 64$ ($4,096$) resolutions.
  • ImageNet: Pairs of real images resized to $100 \times 100$, creating large $m = n = 10,000$ transport problems.

Key Insights and Ideas

  • The "Golden Row" Trick: When pruning a matrix to make it sparse, you risk breaking its mathematical invertibility, which would cause the Newton solver to divide by zero (metaphorically speaking). The authors prove that by leaving just one specific row completely untouched—the row corresponding to the largest weight in the source distribution—the sparsified Hessian is guaranteed to remain well-behaved and invertible on the target subspace!
  • Smashing the Mid-Stage Bottleneck: First-order inexact solvers (like IBSink) start fast when tolerances are loose, stall terribly in the middle as tolerances tighten, and speed up at the end. Because IBSN enjoys quadratic local convergence (doubling the number of accurate digits per step near the solution), it breezes right through that middle bottleneck.

Key Results

Across both synthetic and real-world benchmarks, IBSN consistently reaches high-precision regimes (targeting relative KKT residuals below $10^{-11}$) much faster than first-order methods (IPOT, HOT, ExtraGrad, IBSink) and competing second-order solvers (PINS).

Performance comparison on synthetic Uniform and Square datasets across scales.

For example, on large $10,000 \times 10,000$ synthetic Uniform problems (top-right above), IBSN hits an objective gap near $10^{-9}$ in roughly 900 seconds, whereas PINS—the runner-up sparse Newton method operating on the larger two-dual system—takes over 3,300 seconds to reach comparable precision. On resized ImageNet pairs ($m=n=10,000$), IBSN achieves gaps below $10^{-7}$ well ahead of the 4,000-second mark while most first-order competitors remain stuck above $10^{-5}$.

Limitations and Future Work

While the authors defer their formal Limitations section to Appendix A (beyond the main text), two clear caveats emerge directly from their analysis:

  • Theory vs. Practice Gap: The convergence proofs assume the inner linear Newton systems are solved exactly, whereas the actual code uses an iterative Conjugate Gradient solver stopped at a finite tolerance.
  • Sensitivity to Tiny $\eta$: Their complexity analysis reveals that the cost of a single CG solve scales with $\exp(\Delta / \eta)$. If a user sets the regularization parameter $\eta$ too small, the softmax distribution sharpens dramatically, causing the matrix condition number—and the time required per Newton step—to blow up exponentially. Future work is not explicitly discussed in the main text.

Summary updated

Abstract

Computing exact optimal transport (OT) distances at large scale remains computationally challenging. Entropy-regularized OT can be solved efficiently, but its solution is biased toward the regularized problem, and small regularization parameters often lead to slow convergence and numerical instability. In this paper, we propose \emph{Inexact Bregman Sparse Newton} (IBSN), an efficient method for high-accuracy computation of the original OT problem. Building on a verifiable inexact Bregman proximal framework, IBSN develops a sparse Newton inner solver tailored to the semi-dual formulation, which yields a lower-dimensional Newton system. To accelerate the inner subproblem solves, we introduce a Hessian sparsification strategy tailored to the semi-dual formulation, which reduces the cost of Newton direction computation while preserving key spectral properties. We establish convergence guarantees for the resulting algorithm, including convergence of the inner sparse Newton iterations and global convergence of the overall method to an optimal OT solution. Numerical experiments on synthetic and real datasets show that IBSN is effective in high-accuracy regimes and compares favorably with representative first-order and second-order OT solvers.
BibTeX
@inproceedings{pan2026inexact,
  author = {Jianting Pan and Ji'an Li and Sirong Dai and Ming Yan},
  title = {{Inexact Bregman Sparse Newton Method for Efficient Optimal Transport}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=1bW1n2cWFS},
}
Figure