Variational Wasserstein Model on Riemannian Manifolds for Image Segmentation

Jisui Huang, Yue Wu, Ke Chen, Na LeiNeurIPS 2026

TL;DR

Segmenting medical images is notoriously tricky when the organ or tumor you want to isolate has the exact same color and brightness as the surrounding tissue. This paper upgrades Optimal Transport (OT)—a mathematical framework for comparing distributions—by moving it onto a curved "feature manifold." By measuring distances along the curves of this manifold rather than in flat space, the model simultaneously sees pixel brightness, spatial location, and sharp image boundaries, allowing it to cleanly separate visually identical structures without getting stuck in bad local minima.

What Problem Does This Paper Address?

Imagine trying to outline a dark gray tumor against a dark gray background in an ultrasound, or separating the left ventricle of the heart from the right when both are filled with identical-looking blood.

Classical variational segmentation methods look at local pixel intensities, which fails when lighting or contrast is uneven. Newer methods use Optimal Transport (OT)—intuitively, calculating the minimum "work" required to shovel one pile of dirt (your predicted foreground pixels) until it matches another pile (reference foreground pixels). However, existing OT models typically operate only in color space. If a pixel inside a circle and a pixel outside a circle have the exact same shade, color-based OT considers the distance between them to be zero.

Even if you naively tack on spatial $(x, y)$ coordinates to Euclidean OT, the math just draws a straight line right through object boundaries. Furthermore, traditional discrete OT requires storing massive, memory-hogging "transport plans" (tracking how every pixel moves to every other pixel) and lacks clean derivatives for easy optimization.

Figure 1: Comparison of different OT models. 1a: Original image. 1b: The PR model only compares color histograms, yielding zero OT cost in this case, and thus cannot distinguish the two different regions. 1c: Using Euclidean cost in PR’s OT can partially distinguish the regions, but still ignores the slope of the image boundary. 1d: Geodesic distance on the feature manifold as OT’s cost function incorporates spatial, color and boundary information, which can significantly improve the segmentation performance over the PR model.

Methods

Instead of treating an image as a flat grid or a simple bag of colors, the authors map the image onto a smooth, curved surface—a Riemannian manifold—embedded in a higher-dimensional space combining spatial coordinates and smoothed image intensities. Think of bright edges in an image as tall mountain ridges on a topographic map.

  • What’s new: The authors define the OT cost using the squared geodesic distance (the shortest path along the curved surface) rather than straight-line Euclidean distance. Now, for a background pixel to match a foreground marker on the other side of an organ wall, it has to "hike" up and over the intensity ridge, incurring a high cost.
  • Differentiable & Memory-Efficient: Because this is formulated on a smooth manifold, a unique transport map exists. This unlocks closed-form Fréchet derivatives (essentially gradients for functions), letting the authors ditch memory-heavy transport matrices.
  • Optimization: A user clicks a few foreground and background marker points (modeled as Dirac delta spikes). This turns the math into semi-discrete OT, solved efficiently by partitioning the manifold into weighted Voronoi cells and combining gradient ascent with a standard primal-dual Total Variation (TV) regularizer.
Figure 2: The schematic diagram of the proposed model. The data fidelity term aims to minimize OT distance between the model prediction and the user markers. The model alternately minimizes OT terms and the total variation term in a primal-dual optimization framework.

Datasets

This is a purely variational optimization method—no neural network training required! It was evaluated on four 3D medical segmentation tasks across three public benchmarks (with user markers drawn on just one or two 2D slices per 3D volume):

  • BraTS (Brain Tumor Segmentation): First 50 cases, evaluating both tumor core and whole tumor tasks.
  • ACDC (Automated Cardiac Diagnosis Challenge): First 50 cases (end-diastolic phase), segmenting the left ventricle.
  • RESECT: All 23 cases of brain ultrasound images for tumor segmentation, where tumors and backgrounds are notoriously similar in dark intensity.

Key Insights and Ideas

  • Why flat space breaks calculus here: You might wonder why we need a curved Riemannian manifold instead of just doing standard Euclidean OT on combined $(x, y, \text{color})$ vectors. Here is the mathematical "aha!" moment: a 2D grayscale image forms a thin 2D sheet floating inside 3D $(x, y, \text{intensity})$ space. Because a 2D sheet has zero volume in 3D space, standard Euclidean OT loses its guarantee of a unique transport map, breaking the clean gradient formulas! Working intrinsically on the manifold rescues the calculus.
  • Bulletproof Optimization: Unlike classic active contour models that fail miserably if you draw your starting circle in the wrong spot, the authors prove their energy functional is convex. Any local minimum is a global minimum, and small tweaks to hyperparameters won't cause the segmentation to suddenly explode.

Key Results

Across all four tasks, the proposed model outperformed three variational baselines and MedSAM (a popular prompt-based deep learning model, which was given tight 2D bounding boxes on every slice, whereas the authors' method only needed sparse scribbles on 1–2 slices of the 3D volume):

  • RESECT (Ultrasound): Color-only OT completely collapsed here, scoring a Dice Similarity Coefficient (DSC) of 0.05 because the tumor and background share the same black intensity. The Riemannian OT model achieved 0.91 DSC (beating MedSAM's 0.90) and slashed the Hausdorff Distance (HD, measuring worst-case boundary error) to 11.83 vs. MedSAM's 47.23.
  • ACDC (Heart): Successfully separated the identically colored left and right ventricles, hitting 0.90 DSC compared to color-OT's 0.75 and MedSAM's 0.88.
  • BraTS: Achieved 0.90 DSC on both tumor core and whole tumor, improving over the best baselines (0.84 and 0.88, respectively).

Limitations and Future Work

  • Time and Memory Overhead: Computing geodesic distances and $c$-transforms on a manifold isn't free; storing pairwise geodesic distances eats up memory, and computing transforms adds runtime overhead. The authors plan to train a neural network to directly predict the OT Fréchet derivatives, hiding the heavy geometry inside a fast black box.
  • Simple Features: Raw pixel intensity isn't always enough for complex semantic objects. Because the mathematical proofs hold regardless of ambient dimension, future work will swap raw intensities for high-dimensional (e.g., 1024-D) deep learning features—creating a 3D manifold embedded in 1027-D space.

Summary updated

BibTeX
@inproceedings{huang2026variational,
  author = {Jisui Huang and Yue Wu and Ke Chen and Na Lei},
  title = {{Variational Wasserstein Model on Riemannian Manifolds for Image Segmentation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ywA5LS4EJj},
}
Figure