# Poster 28814

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/28814

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi everyone, my name is Mete and I'll be telling you about our paper titled A Truncated Newton Method for Optimal Transport, which is a collaboration with my two PhD advisors Amir Massoud and Alan. In this work, we try to address the drawbacks of existing solvers for the discrete OT problem, namely that either they don't scale well with the problem size, or they don't leverage the power of modern GPUs, or they sacrifice accuracy for scalability in some way.
For example, entropic regularization helps with speed, but conversion rate of existing algorithms suffers substantially in the weak regularization regime, so that they aren't practical for estimating the optimal planning in a reasonable amount of time. So we concluded that we just need faster solvers and more accurate solvers rather than workarounds, which many works have focused on.
Let's quickly remember what the problem looks like. So we have a feasible set U of Rc, Rnc being n-dimensional probability vectors. And we're looking for a matrix with non-negative entries whose row and column sums equal to the marginals Rnc, like the matrix on the right-hand side here.
Our goal is to minimize the total cost of transportation between these red and blue particles as on the left hand side. So the optimization objective can be written as a Frobenius product between the transport plan P and the cost matrix C, minimized over our feasible set. The good news is that this is a well-studied linear program with many existing specialized solvers, but exact practical solvers have cubic complexity and theoretical solvers scale as n to the 2.5.
which isn't great. This has led to a repopularization of entropic regularization methods where the idea is to add a penalty term to favor high entropy solutions. This effectively finds the solution of a transport problem with an additional constraint on the lower bound of the transport plan's entropy as illustrated here on the right.
A specialized algorithm called Synchorn's algorithm has a GPU parallel implementation and its dependence on the problem size is quadratic. But this speedup doesn't come for free. We sacrifice the accuracy of the cost and the Synchorn iteration algorithm slows down substantially when we increase the constant gamma to compute a better approximation to the true optimum.
Let's remember the convex dual objective for the entropic regularized primal in the previous slide. It turns out that when we minimize this objective, the optimal plan has a closed form shown here. To deal with the slow convergence issue when gamma is large, several works minimize the dual while progressively increasing gamma. This is known as the temperature annealing heuristic.
In our recent work, we introduced the M dot framework where we showed that temperature annealing is a certain kind of inexact mirror descent on the unregularized OT problem. The idea behind M dot is that at each step we increase gamma by a factor of a constant Q greater than 1, then we solve the problem approximately at the new gamma and use previous solutions to extrapolate an initial guess for the next problem which is therefore warm started.
Since the dual problem becomes increasingly ill-conditioned for large gamma, our goal in this work is to develop a second -order minimizer for the convex dual that is GPU-friendly, numerically stable, and scalable with respect to n. We know that Newton's method converges quadratically in some neighborhood of the solution, so the main idea in this work is to adapt this true parameter, which controls the temperature decay rate, to initialize each problem near the quadratic conversion zone.
And then we solve the Newton system approximately at each step using a GPU parallel conjugate gradients algorithm, which is first order optimal.
Well, there's a practical issue that we need to deal with first. The Hessian of the objective has a zero eigenvalue and can be ill-conditioned, especially when gamma is large, which makes it difficult for theoretical analysis and numerical stability. So we introduce this discount factor rho, a term we borrow from reinforcement learning, which dampens the off-diagonal terms of the Hessian.
This makes the Hessian positive definite, and the idea is to solve a sequence of systems with increasing rho towards unity until the solution of the discounted system satisfies conditions for quadratic convergence.
With this, we obtain a quadratic local convergence guarantee, and combining the idea with some linear algebra tricks for efficiency and numerical stability yields orders of magnitude speed-up on 24 different problem sets. This means that in practice we reach 4 to 6 decimal precision returning a strictly feasible plan in less than a second in 4000 dimensions using an old GPU from 2018.
We also provided an example color transfer application in very high dimensions, and here is just over a million, to showcase the scalability of the method thanks to its supporting an all-n memory footprint implementation. Thank you for listening, and please feel free to reach out with any questions or comments.
