A Grid Efficient Transport Optimization Model for the Wasserstein Barycenter Problem

Gennaro Auricchio, Massimiliano Ghiotto, Stefano GualandiNeurIPS 2026

TL;DR

If you try to average two images pixel-by-pixel, you get a blurry ghost; Optimal Transport fixes this by sliding "mass" across space to find a sharp geometric average called a Wasserstein barycenter. Computing this exact average on grids usually triggers a memory explosion, forcing researchers to rely on blurry approximations. This paper introduces GETO-LP, a clever mathematical reformulation that slashes the memory footprint of exact solvers—making sharp, bias-free geometric averaging fast and practical even in up to nine dimensions.

What Problem Does This Paper Address?

Imagine you have three histograms—say, 2D shapes, 3D color palettes, or multi-dimensional medical cell measurements—and you want to find their "average." Standard Euclidean averaging ignores spatial geometry. The Wasserstein barycenter solves this by finding a distribution that minimizes the work required to transport mass to each input distribution.

When your data lives on a fixed grid with $N$ total points (like image pixels), finding the Fixed-Support barycenter of $M$ distributions can be written as a Linear Programming (LP) problem. Here’s the catch: standard LP formulations track how much mass moves from every grid point to every other grid point, requiring $O(MN^2)$ variables. Double the resolution of a 3D grid, and $N^2$ multiplies by 64. Your RAM evaporates.

To survive this curse of dimensionality, the community largely pivoted to entropic regularization (like the Sinkhorn algorithm), which adds a smoothing penalty to make computation fast. However, this requires finicky hyperparameter tuning and introduces bias—turning crisp averages into blurry approximations. Other shortcuts, like Network Flow (NF) models, only work properly for linear distances (like $\ell_1$) and distort standard squared-Euclidean ($\ell_2^2$) geometry.

Methods

The authors introduce GETO-LP (Grid Efficient Transport Optimization Linear Programming). Instead of computing giant $N \times N$ transport plans all at once, GETO-LP exploits two common properties of grid data: regular grid structure and separable transport costs (for instance, squared Euclidean distance is just the sum of squared 1D distances along each axis: $\Delta x^2 + \Delta y^2 + \dots$).

Because the cost separates cleanly by coordinate, you don't need to teleport mass diagonally across $d$-dimensional space in one giant leap. Instead, GETO-LP decomposes the transport into $d$ sequential stages—sliding mass along axis 1, then axis 2, all the way to axis $d$, while enforcing flow-conservation constraints between stages.

  • What’s standard: Solving the resulting linear program with an off-the-shelf barrier solver (like Gurobi).
  • What’s new: Replacing $M$ massive $N \times N$ matrices with $d \times M$ staged flow tensors, dropping the variable count from $O(MN^2)$ down to $O(dMN^{1 + 1/d})$. Even better, this formulation is 100% exact—no approximations, no tuning parameters—and the authors provide closed-form routines (including DomainExpansion, which maximizes coordinate correlation) to reconstruct the full, sparse optimal transport plans without solving another optimization problem.

Datasets

The authors test GETO-LP across synthetic and real-world benchmarks:

  • DOTmark: A standard 2D image benchmark of geometric shapes ($16\times16$ up to $128\times128$) used to compare exact LP solvers.
  • Synthetic 4D Gaussian Mixtures: Newly constructed sparse histograms on $n^4$ grids ($n$ up to 32) to stress-test memory scaling and multi-distribution scaling ($M$ up to 128).
  • iNaturalist Bird Images: Used for 3D RGB color palette averaging and transfer ($16^3$ color bins).
  • Flow Cytometry Data: Real-world clinical laser measurements of cells across 7 biological markers, augmented with 2 noisy linear-combination channels to test high-dimensional grids ($4^d$ points for $d \in \{3, \dots, 9\}$).

Key Insights and Ideas

  • Higher dimensions help the compression ratio: Reducing variables from $O(MN^2)$ to $O(dMN^{1+1/d})$ means the savings actually grow more dramatic as dimension $d$ increases, directly pushing back against the curse of dimensionality.
  • Implicit deduplication: Many different full transport plans move mass along the exact same coordinate flows. Standard LPs wastefully explore all of them; GETO-LP implicitly collapses redundant plans into a single flow representation.
  • Exact can beat approximate: Conventional wisdom says exact LPs are too slow and memory-hungry compared to Sinkhorn/entropic methods. On multi-dimensional grids, Sinkhorn still has to materialize massive structures in memory unless heavily customized, whereas GETO-LP's compact footprint lets an exact solver win on both speed and memory—with zero regularization blur.
Visual comparison of exact LP solvers on 2D DOTmark shapes

Key Results

  • Massive speedup over standard LP: On $64 \times 64$ DOTmark shapes (above), GETO-LP produces the exact same crisp barycenters as the standard Bipartite LP, but finishes in 174.9 seconds vs. 5,561.4 seconds (~32x faster). Meanwhile, Network Flow introduces a 26.87% cost error and visual artifacts because it relaxes $\ell_2^2$ geometry into $\ell_1$.
  • Surviving memory limits in 4D: On 4D Gaussian grids (below), entropic baselines (POT Sinkhorn and FastIBP) crash out-of-memory (OOM) at resolution $n=16$. GETO-LP breezes through $n=16$ in 61.3 seconds, $n=24$ in ~8 minutes, and solves $n=32$ ($>1$ million grid points) with 0.00% error.
Table 1: Performance on sparse 4D Gaussian histograms (M “ 3 marginals) for different resolutions n. For each n we report the wall-clock time in seconds (Time) and the relative error in percent (Err.), averaged over 5 random instances. OOM denotes out-of-memory. Bold: fastest method for each n. :The 5 h time limit was reached on some instances (1 of 5 for FastIBP, 2 of 5 for POT); the average is taken over the completed runs.
  • 9D Medical Data: On flow cytometry grids ($4^d$), every baseline runs out of memory by $d=8$ (and entropic methods suffer up to 66% relative error from compounding regularization bias at $d=7$). GETO-LP computes exact barycenters all the way up to $d=9$ ($262,144$ grid points) in about 22 minutes.

Limitations and Future Work

GETO-LP relies on two structural pillars: regular grids and coordinate-separable transport costs (like $\ell_p^p$ distances). If your data lives on an irregular point cloud (free-support barycenters) or uses a non-separable metric, this exact decomposition doesn't directly apply. For future work, the authors suggest extending GETO-LP to non-regular grids and adding entropic regularization on top of the GETO-LP structure—opening the door to ultra-fast, localized Sinkhorn-style iterations.

Summary updated

Abstract

We propose the Grid Efficient Transport Optimization Linear Programming (GETO-LP) model, a novel formulation of the Fixed-Support Wasserstein barycenter problem for $M$ probability distributions supported on $d$-dimensional grids. While standard LP models require $O(MN^2)$ variables, the GETO-LP model requires only $O(dMN^{1+\frac{1}{d}})$, with $N$ being the total number of points in the grid support. Despite the reduced number of variables, our formulation is \emph{exact}, meaning that its solution fully characterizes both the barycenter $\nu$ and the optimal transport plans between $\nu$ and each of the $M$ input distributions without additional optimization steps. We validate the GETO-LP model via extensive comparisons with classical and entropic regularization solvers, demonstrating its effectiveness on both synthetic data and real-world applications such as color palette manipulation and medical data averaging. Overall, our approach provides an effective formulation for the Wasserstein barycenter problem, offering a memory-efficient alternative that naturally integrates with other existing computational frameworks.
BibTeX
@inproceedings{auricchio2026grid,
  author = {Gennaro Auricchio and Massimiliano Ghiotto and Stefano Gualandi},
  title = {{A Grid Efficient Transport Optimization Model for the Wasserstein Barycenter Problem}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=KcRsOQnPQQ},
}
Figure