TL;DR
Generative flow models usually require dozens of slow integration steps to turn random noise into clean data—and if you try to jump there in a single step using smooth networks, basic topology forces ugly "bridges" of fake data between distinct clusters. Morphological Flow Matching (MorphoFM) solves both problems by defining the generative flow through the mathematical erosion of a sharp-cornered ReLU potential. At optimum, particle paths become straight constant-speed geodesics that tear noise cleanly into separate clusters in a single, exact step—working just as effortlessly on curved surfaces like the Earth as it does in flat space.
What Problem Does This Paper Address?
Imagine sculpting a single, connected blob of clay (Gaussian noise) into eight separate marbles (a multi-modal target distribution). If you aren't allowed to tear the clay—which is mathematically what happens when you use a standard, smooth neural network as a continuous one-step generator—you are forced to leave thin strings of clay connecting the marbles.
Standard Flow Matching (FM) gets around this by moving particles incrementally via an ordinary differential equation (ODE) over many steps, trading speed for accuracy. Even methods designed to straighten these paths (like Optimal Transport CFM or convex potentials) rely on smooth functions that still leave faint "bridges" of probability mass in empty space when forced to generate in a single step. Can we get exact, single-step generation that cleanly separates disconnected modes—and do it on curved geometries (Riemannian manifolds) too?
Methods
MorphoFM flips a classic tool from image processing—mathematical morphology—on its head. Instead of eroding a known image, the authors learn a time-independent scalar potential network $f_\theta$ and define the generative velocity field via its Hopf–Lax erosion (a formula that solves Hamilton–Jacobi partial differential equations). Intuitively, erosion probes the potential landscape with a distance-based "structuring function" to find the lowest local valley, or extremal point.
Here is how the pieces fit together:
- Non-convex ReLU Potentials: Unlike prior potential-based methods that require smooth, convex networks, MorphoFM uses standard ReLU networks. Because a ReLU function is piecewise linear, its gradient has sharp jumps—giving the one-step map $x_1 = x_0 + 2\nabla f_\theta(x_0)$ (or the exponential map on a manifold) the "tearing" power needed to separate disconnected modes.
- The Semi-Dual Loss: Standard Flow Matching loss fails here because independent noise-data pairs create crossing paths. Instead, the authors measure an "erosion optimality gap" at terminal time $t=1$. Up to a sign, this turns out to be the classical semi-dual Kantorovich objective from optimal transport.
- Tractable Inner Optimization: Computing the erosion during training requires finding a minimum for each data point. To keep this non-convex search fast and bounded, MorphoFM initializes a local solver (like L-BFGS) using candidates from the current batch plus memorized extremal points from previous epochs. Crucially, thanks to Danskin’s theorem, gradients don't need to backpropagate through this inner solver—no expensive Hessian inversions required. At test time, there is no inner solver or ODE integration: just one gradient pass.
Datasets
No new benchmarks are introduced; the authors evaluate across three standard regimes:
- 2D Synthetic ($\mathbb{R}^2$): 8 Gaussians, Two Moons, Checkerboard, and Spirals.
- Spherical Earth Data ($\mathbb{S}^2$): Four geographic datasets from prior manifold literature—Volcano, Earthquake, Flood, and Fire.
- Natural Images ($\mathbb{R}^{3072}$): CIFAR-10 ($32 \times 32$ RGB images) as a high-dimensional scalability test.
Key Insights and Ideas
- Optimal transport couplings come for free: While OT-CFM approximates optimal pairings within minibatches, minimizing MorphoFM's $t=1$ erosion gap on independent random pairs automatically cancels the flow matching residual on the true optimal transport coupling.
- Why $t=1$ is the magic timestamp: If you average the erosion gap across intermediate times ($t < 1$) under independent coupling, the math actually pulls samples inward, making generation overly concentrated. Only the terminal $t=1$ objective is immune to the coupling choice.
- Tearing beats bending: Ablations swapping ReLU for smooth activations (SiLU or Softplus) degraded performance across all 20 synthetic runs, confirming that discontinuous gradients—not convexity—are the secret to clean one-step mode separation.
- Memorizing coordinates, not images: Remembering a data point's previous extremal point gives the inner solver a massive head start in 3,072-dimensional image space, slashing CIFAR-10 FID in half without memorizing pixel data.
Key Results
- 2D Synthetic: In 1 step (NFE = 1), MorphoFM beats all baselines—including 100-step ODE integrators—on 19 out of 20 seeds, hitting the literal sampling-noise floor on Two Moons (MMD 0.058 vs. 0.060 data floor) and Spirals (0.062 vs. 0.062).
- Spherical Data ($\mathbb{S}^2$): Matches the training-data reference MMD in 1 step across all four Earth datasets (e.g., 0.073 on Fire vs. 0.145 for 100-step Riemannian Flow Matching at equal budget) while sampling ~50$\times$ faster (~1 ms for 20,000 points).
- CIFAR-10: Scales to 3,072 dimensions with a 1-step FID of 31.3, dramatically outperforming 1-step OT-CFM (231.5) and FM (350.6), and even beating their 2-step integrations (93.2 and 165.6).
Limitations and Future Work
- Training overhead & solver bottleneck: Solving the inner minimization makes each training iteration roughly $10\times$ slower than standard FM on CIFAR-10. Moreover, image quality is bottlenecked by this non-convex inner search: an FID of 31.3 is a strong proof of concept, but still far behind specialized 1-step image models like MeanFlow (FID 2.80).
- No exact likelihoods: Because the gradient of a non-convex ReLU potential is not injective (multiple noise points can land on the same output) and doesn't cover the whole space, MorphoFM cannot compute exact log-likelihoods across an entire distribution (inverting only 35–47% of test points on $\mathbb{S}^2$).
- Future directions: Developing sharper inner solvers, designing potential architectures tailored specifically for images, and extending manifold experiments beyond the 2-sphere.
Summary updated