Abstract: Wasserstein Gradient Flows (WGF) with respect to specific functionals have been widely used in the machine learning literature. Recently, neural networks have been adopted to approximate certain intractable parts of the underlying Wasserstein gradient flow and result in efficient inference procedures. In this paper, we introduce the Neural Sinkhorn Gradient Flow (NSGF) model, which parametrizes the time-varying velocity field of the Wasserstein gradient flow w.r.t. the Sinkhorn divergence to the target distribution starting a given source distribution. We utilize the velocity field matching training scheme in NSGF, which only requires samples from the source and target distribution to compute an empirical velocity field approximation. Our theoretical analyses show that as the sample size increases to infinity, the mean-field limit of the empirical approximation converges to the true underlying velocity field. To further enhance model efficiency on high-dimensional tasks, a two-phase NSGF++ model is devised, which first follows the Sinkhorn flow to approach the image manifold quickly ($\le 5$ NFEs) and then refines the samples along a simple straight flow. Numerical experiments with synthetic and real-world benchmark datasets support our theoretical results and demonstrate the effectiveness of the proposed methods.
Introduction
Generative modeling aims to transform a simple prior distribution, such as Gaussian noise, into a complex target distribution representing real-world data. Wasserstein Gradient Flows (WGF) provide a mathematically rigorous framework for this by moving probability mass along the path of steepest descent toward the target. However, existing WGF methods often struggle with a "Goldilocks" problem: $f$-divergence methods (like KL divergence) can be unstable in high dimensions, while kernel-based methods (like MMD) often fail to capture complex structural details. Diffusion models, while successful, often require hundreds of function evaluations (NFEs) because their paths are not always the most direct.
Methodology: Neural Sinkhorn Gradient Flow
The proposed Neural Sinkhorn Gradient Flow (NSGF) addresses these challenges by utilizing the Sinkhorn divergence—an entropy-regularized version of the Wasserstein distance. Sinkhorn divergence acts as a "sweet spot," interpolating between the geometrically meaningful Wasserstein distance and the computationally efficient MMD.
Instead of learning a direct mapping, NSGF learns a velocity field that directs points toward the target distribution. The authors employ a Velocity Field Matching scheme, calculating empirical Sinkhorn potentials from samples to train a neural network. To stabilize training, a "trajectory pool" (similar to experience replay) stores pre-calculated flows.
The NSGF++ Two-Phase Strategy
To scale to high-dimensional image data, the authors introduced NSGF++, a hybrid approach designed for maximum efficiency:
- Phase 1 (Sinkhorn Sprint): The model follows the Sinkhorn flow for a very small number of steps ($\le 5$ NFEs) to rapidly reach the data manifold.
- Phase 2 (Straight Flow Refinement): Once near the manifold, the samples are refined using a Neural Straight Flow (NSF), which moves points along simple linear trajectories.
A dedicated Phase-Transition Predictor (a small auxiliary CNN) is trained to determine the optimal moment to switch from the Sinkhorn phase to the refinement phase.
Experimental Results
The effectiveness of NSGF and NSGF++ was evaluated on synthetic 2D datasets (e.g., moons, checkerboard) and standard image benchmarks like MNIST and CIFAR-10.
Efficiency and Quality
NSGF++ demonstrates a significant leap in efficiency compared to prior gradient-flow methods. On the CIFAR-10 dataset, NSGF++ achieved a Frechet Inception Distance (FID) of 5.55 using only 59 NFEs. In comparison, the previous state-of-the-art method, EPT, required 10,000 NFEs to reach an FID of 46.63.
Visual analysis of the generation paths shows that NSGF++ reaches a recognizable image structure much faster than standard Flow Matching (FM). At $t=0.5$, NSGF++ samples already resemble the target objects, whereas FM samples remain largely noisy.
Conclusion and Future Work
NSGF provides a robust framework for generative modeling by combining the geometric awareness of optimal transport with the efficiency of neural velocity field matching. While the current implementation relies on a trajectory pool that requires significant storage, the model's ability to achieve high-quality results in under 60 steps marks a major improvement for gradient-flow architectures. Future work may involve integrating higher-order numerical solvers and standard diffusion training enhancements, such as Exponential Moving Averages (EMA), to further push the boundaries of image quality and sampling speed.
Summary updated