NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Certified Low-Rank Optimal Transport in Linear Memory

Optimal transport (OT) matches one cloud of points to another at the least total moving cost. It is the tool single-cell biologists use to follow cells across time and tissue sections. At the scale of those datasets, which run past a million cells, the only solvers that fit in memory are low-rank ones. These route all mass through a small number $r$ of shared "hub" clusters, so they store $O(nr)$ numbers instead of an $n \times n$ plan. The catch is that these solvers optimize a non-convex objective and come with no guarantee. A user cannot tell whether the returned plan is near-optimal or stuck in a bad local minimum.

The one method with a provable guarantee, Transport Clustering, buys it by first solving a full-size OT problem, and that first step costs quadratic memory. This note proposes to resolve that tension with the oldest trick from exact algorithm design: store less and recompute more. We replace the full-size registration step with a hierarchical, block-local solver whose block size is an explicit knob trading time for quality. We then attach a certificate computed by streaming over all point pairs in $O(n)$ memory, which bounds how far the final low-rank plan can be from optimal. The deliverable is a low-rank OT solver for million-point problems that reports, alongside its answer, a proven upper bound on its own suboptimality.

Core Claim

Provable low-rank OT does not need a stored full-size transport plan. It needs two things, both obtainable in linear memory. The first is a good one-to-one matching (a "Monge map", a permutation pairing each source point with one target point) to register the cost. The second is a pair of feasible dual potentials, meaning per-point prices that give a lower bound on the optimal cost. The matching can be built by coarse hierarchical splitting followed by exact solves inside blocks of size $b$. That costs $O(nb)$ time and $O(n + b^2)$ memory. The dual lower bound can be made valid by a single tiled pass that recomputes costs on the fly. That pass costs $O(n^2)$ arithmetic but only $O(n)$ memory. Sweeping $b$ traces a time–quality curve, in the same way that Fast Low-Space Algorithms for Subset Sum trades $O((n+t)k)$ time for $O(t/k)$ space. The certificate tells the user where on that curve they have landed.

Where This Sits

Three lines of prior work motivate the proposal.

  • Low-rank solvers. Low-Rank Sinkhorn Factorization restricts the plan to rank $r$ and runs in linear time using the rank-$(d+2)$ structure of squared-Euclidean costs. Low-Rank Optimal Transport through Factor Relaxation with Latent Coupling (FRLC) adds a non-diagonal latent coupling that lets clusters split mass. Unbalanced Low-rank Optimal Transport Solvers relaxes the requirement that total mass match exactly. All three are local, initialization-sensitive methods with no a posteriori bound, and we keep their parameterization while adding one.
  • The guarantee. Transport Clustering proves that low-rank OT reduces to generalized K-means once the cost has been registered by an optimal full-rank matching. For negative-type metrics this yields a $(1+\gamma)$ approximation. The paper itself flags the full-rank step as its scalability bottleneck.
  • The matching without a stored plan. Hierarchical Refinement (HiRef) recursively co-clusters points with low-rank subproblems until it reaches a bijection, in $O(n \log n)$ time and $O(n)$ space. It inherits the lack of guarantees from its non-convex sub-solvers.

The method draws on two further sources.

  • Recompute-don't-store. FlashSinkhorn computes squared-Euclidean costs tile by tile in fast on-chip memory, keeping $O(n)$ memory at $O(n^2)$ arithmetic. We reuse this tiling pattern, but for a one-shot certificate pass rather than for every iteration of Sinkhorn.
  • Exact algorithm design. Counting Paths and Packings in Halves and the subset-sum work supply the design stance. When a table is too large to keep, restructure the computation so each term is recomputed and folded into a running accumulator. The minimum inside our certificate is exactly such an accumulator.

What we do not do is also clear. We do not try to beat FlashSinkhorn's constants, and we do not claim subquadratic certification.

Research Program

Block-local registration. Run HiRef-style co-clustering to depth $\ell$, stopping when blocks reach size $b$. Then solve each block exactly by network simplex or small-$\epsilon$ Sinkhorn and round to a permutation. Setting $b = n$ recovers Transport Clustering's registration. Setting $b = 1$ recovers HiRef. The exact block solves also return block-local dual potentials.

Streaming certificate. Given potentials $g_j$ on the target points, repair them into globally feasible potentials by a c-transform over all pairs: $$f_i = \min_j \big(C_{ij} - g_j\big).$$ Here $C_{ij}$ is the cost between source point $i$ and target point $j$. We compute this in tiles, keeping only a running minimum per row, as in FlashSinkhorn. By weak duality, with uniform weights on $n$ points each, the optimal full-rank cost satisfies $$\mathrm{OT} \ \ge\ \tfrac{1}{n}\textstyle\sum_i f_i + \tfrac{1}{n}\sum_j g_j \ =:\ L.$$ Because a rank-$r$ plan can never beat the full-rank optimum, the ratio of the final low-rank plan's cost to $L$ is a valid, if conservative, certificate of its suboptimality relative to the true rank-$r$ optimum. We will also report the ratio between the registration matching's cost and $L$, since that is the quantity the theory below consumes. If the certificate is too loose, the user refines by increasing $b$ in the blocks with the largest local duality gaps.

Theory. We will try to prove that Transport Clustering's guarantee degrades gracefully when the registration is suboptimal. The target statement is: if the registration matching is within a factor $(1+\delta)$ of the optimal full-rank matching, the final low-rank plan is within roughly $(1+\gamma)(1+\delta)$ of the rank-$r$ optimum, for negative-type costs. This is a conjecture, not a result. If only a weaker additive form holds, the computed certificate still stands on its own, because weak duality does not depend on the conjecture.

Scope. We cover balanced, squared-Euclidean OT first, since that is where the tiling applies. Unbalanced and Gromov–Wasserstein extensions are stretch goals, and we name them rather than claim them.

Baselines

Naive references. - LOT from random initialization. Run Low-Rank Sinkhorn Factorization at the same rank $r$, reporting the best of five restarts. Any gain we report must exceed restart variance. - Uniform subsampling. Subsample to the largest $k$ that fits our memory budget, run Transport Clustering on the subsample, and extend to all points by nearest neighbors. Our method must reach lower full-data transport cost at equal peak memory. Streaming Sliced Optimal Transport found subsampling an order of magnitude worse in a related setting (0.0003 versus 0.003 error on MNIST), but that was for sliced distances, so we test it directly here.

Strongest non-certified low-rank solvers. - FRLC. It reported lower transport cost than LOT at every tested rank and about a 2× speedup on Two Moons. - HiRef. It reported gene-expression transfer "twice as accurate" (cosine similarity) as LOT and FRLC on MERFISH mouse brain.

No absolute cosine value for this comparison was found on Lacuna, so we will rerun HiRef ourselves. Both methods get the same rank grid, the same number of wall-clock-matched restarts, and the same hardware as our method.

Strongest guaranteed method. Transport Clustering with exact full-rank registration, run with its released code (GitHub schmidt73/transport-clustering) at sizes where it fits in memory. On shifted Gaussians it reports a 23% average cost improvement over the next best method. Our method beats it if it matches its cost within 2% while using at least 10× less peak memory, and if it continues to run past the size where Transport Clustering runs out of memory.

Real competitor. Transport Clustering registered with FlashSinkhorn followed by rounding to a permutation. This also runs in $O(n)$ memory. It is compared at matched wall-clock budgets.

Ablations. Four variants isolate the key ingredients:

  • a fixed block size $b$ with no certificate-guided refinement;
  • block size $b=1$, which is HiRef registration alone;
  • certificate reported but never used;
  • random rather than HiRef partitioning into blocks.

Together these separate the effect of hierarchical partitioning from the effect of exact local solves.

Why not just…?

Why not just subsample and solve exactly? Subsampling bounds memory but discards the fine structure that registration needs. Nearest-neighbor extension also yields no guarantee on the full problem. Our matched-memory comparison measures the cost gap directly. The certificate can even be computed for the subsampled solution's extension, giving an apples-to-apples bound for both methods.

Why not just run Transport Clustering with FlashSinkhorn as the registration step? This is the real threat. It already lives in linear memory. Its weaknesses are cost and output type. Small $\epsilon$ is needed to approximate a permutation, and Sinkhorn iteration counts grow as $\epsilon$ shrinks, each iteration costing $O(n^2)$. The rounded plan also carries no bound. Our design spends $O(n^2)$ arithmetic once, on the certificate, and $O(nb)$ on registration. If FlashSinkhorn-registered Transport Clustering matches our cost and wall-clock at a million points, our contribution reduces to the certificate. That would still be worth having, but it is smaller, and we will report it as such.

Why not just use HiRef or FRLC with more restarts? Restarts reduce variance but cannot tell you when to stop. The ablation that uses HiRef registration alone ($b=1$), set against growing $b$, shows whether exact local solves actually improve registration. The certificate turns "more restarts" into a measurable question.

Proposed Experiments

Datasets. We use four:

  • shifted Gaussians and Two Moons, where exact OT is available up to $n \approx 10^4$ so true suboptimality can be computed;
  • CIFAR-10 and ImageNet embeddings, with HiRef reaching 1.28M points on the latter;
  • MERFISH mouse brain, for expression transfer;
  • the mouse embryo atlas, with more than 1.3M cells as used by Transport Clustering.

Metrics. We report five: transport cost; certified ratio (final cost over $L$); true ratio where exact OT is computable; peak GPU memory; and wall-clock time. On MERFISH we add expression-transfer cosine similarity.

Decisive checks. The work stands or falls on three results.

  1. Certificate tightness. On small instances, the certified ratio must be within 10% of the true ratio. A certificate that is valid but vacuous would sink the idea.
  2. Time–quality curve. As $b$ grows, cost must fall and certificate tightness must rise monotonically, approaching exact-registration Transport Clustering at $b = n$.
  3. Scale. At one million points, the method must fit in a single GPU's memory. Its certified ratio must stay below 1.2 within a wall-clock budget comparable to FlashSinkhorn-registered Transport Clustering.