Neural Sinkhorn Gradient Flow

Huminhao Zhu, Fangyikang Wang, Chao Zhang, Hanbin Zhao, Hui Qian · Submission to ICLR 2024 · Rejected

TL;DR

The authors introduce Neural Sinkhorn Gradient Flow (NSGF), a generative modeling framework that steers a source distribution toward a target distribution along the steepest descent path of the Sinkhorn divergence. By fitting a neural network to the analytical velocity field of discrete Sinkhorn potentials, NSGF generates high-quality samples in fewer steps and sets a new benchmark among neural Wasserstein gradient flow methods.

What Problem Does This Paper Address?

Generative modeling can be framed as transporting a simple prior (like Gaussian noise) to an unknown data distribution. One mathematically elegant way to do this is via Wasserstein Gradient Flows (WGF), which push probability mass along the steepest descent direction of a chosen divergence metric.

Existing WGF methods, however, suffer from key practical limitations:

  1. $f$-divergences (e.g., KL or Jensen-Shannon) require overlapping supports. Approximating them with finite samples leads to severe density-ratio estimation errors or unstable adversarial min-max games.
  2. Kernel-based divergences (e.g., Maximum Mean Discrepancy) work across disjoint supports but are fragile, heavily dependent on kernel bandwidth choice, and prone to poor local minima.
  3. Input Convex Neural Networks (ICNNs) used to parameterize transport maps often lack expressiveness in high dimensions.

NSGF replaces these unstable objectives with the Sinkhorn divergence—an entropy-regularized optimal transport metric that is well-defined across non-overlapping supports, avoids fragile kernel tuning, and admits a tractable, analytical gradient flow.

Methods

Rather than relying on adversarial min-max games or density ratios, NSGF learns the continuous velocity field that governs particle movement:

  • Sinkhorn First Variation: By evaluating the first variation of the Sinkhorn divergence, the authors derive the exact steepest-descent velocity field: $$\mathbf{v}_{\mu_t}^{F_\varepsilon} = \nabla f_{\mu_t, \mu_t} - \nabla f_{\mu_t, \mu^*}$$ where $f_{\mu_t, \mu_t}$ and $f_{\mu_t, \mu^*}$ are the dual Sinkhorn potentials.

  • Particle Trajectory Pool (Experience Replay): To train the model efficiently, the authors first simulate empirical particle trajectories using discrete Sinkhorn solvers (via GPU-accelerated GeomLoss) and store particle–velocity pairs $(\tilde{X}_t, \hat{\mathbf{v}}_t)$ into a replay pool.

  • Velocity Field Matching: A time-dependent neural network $v^\theta(x, t)$ is trained via standard mean squared error (MSE) regression to match the empirical velocity vectors sampled from this pool.
  • Inference: New samples are generated by sampling from the prior and rolling out the learned ordinary differential equation (ODE) using first-order explicit Euler steps.
  • Theoretical Guarantee: The authors prove a mean-field limit theorem showing that as the number of simulated particles $M \to \infty$, the discrete empirical particle paths weakly converge to the true continuous Sinkhorn gradient flow.

Datasets

The authors evaluate NSGF on both low-dimensional and image benchmarks:

  • 2D Synthetic Manifolds: Adapted from density-learning literature, including 8gaussians, moons, scurve, checkerboard, and a cross-distribution transport task (8gaussians-to-moons).
  • Image Datasets: Standard benchmarks MNIST ($28\times 28$) and CIFAR-10 ($32\times 32$).

No new datasets were introduced.

Key Insights and Ideas

  • Steepest Descent vs. Linear Noise Schedules: Unlike standard diffusion and flow-matching models that reduce noise roughly linearly over time, NSGF has an extremely high initial velocity. It rapidly maps samples into the coarse multi-modal target structure early in the trajectory, spending subsequent steps progressively refining fine details.
  • No Kernels, No Density Ratios: The Sinkhorn divergence interpolates smoothly between optimal transport (as regularization $\varepsilon \to 0$) and Maximum Mean Discrepancy ($\varepsilon \to \infty$). NSGF leverages this property to achieve stable, single-stage regression training without tuning kernel bandwidths or stabilizing adversarial critics.
  • Decoupled Training Stability: Decoupling the Sinkhorn potential trajectory generation from the neural network optimization avoids error accumulation during training, functioning similarly to reinforcement learning's experience replay.

Key Results

  • 2D Distributions: In 10-step Euler integration settings, NSGF outperforms prior flow and diffusion methods across all five synthetic 2D datasets in 2-Wasserstein distance (e.g., 0.077 on moons and 0.252 on checkerboard, compared to 0.088 and 0.253 for Optimal Transport Conditioned Flow Matching).
  • CIFAR-10 Generation:
  • NSGF achieves a Fréchet Inception Distance (FID) of 21.6 and an Inception Score (IS) of 7.56 within 100 function evaluations (NFE).
  • This significantly outperforms prior neural WGF models: JKO-Flow (FID 23.7, >150 steps), DGGF (FID 28.12, 110 steps), and EPT (FID 46.63, 10,000 steps).

Limitations and Future Work

  • Gap to State-of-the-Art Diffusion Models: While NSGF surpasses previous Wasserstein gradient flow baselines, its CIFAR-10 FID (21.6) trails highly tuned diffusion/flow-matching approaches such as Rectified Flow (FID 2.58–3.96).
  • Heuristic Discretization: The paper relies on simple first-order explicit Euler discretization; exploring higher-order Runge-Kutta or adaptive ODE solvers remains future work.
  • Computational Cost of Potentials: Calculating discrete Sinkhorn potentials across batches is computationally heavier than purely analytic linear diffusion paths during the trajectory-building phase.
  • Standard Training Tricks Omitted: The authors acknowledge that modern training refinements—such as exponential moving averages (EMA), learning rate warmup, and advanced architectures—were not implemented and could further improve performance.

Summary updated

BibTeX
@misc{zhu2024neural,
  author = {Huminhao Zhu and Fangyikang Wang and Chao Zhang and Hanbin Zhao and Hui Qian},
  title = {{Neural Sinkhorn Gradient Flow}},
  year = {2024},
  eprint = {2401.14069},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.14069},
}

Loading related content...

Figure