Abstract
This paper introduces Monge-Ampère flow, a novel framework for building flow-based generative models by drawing deep connections between optimal transport theory, fluid dynamics, and deep learning. By parameterizing a scalar potential function rather than a vector-valued map, the model simplifies density calculations and makes it significantly easier to incorporate physical symmetries. The proposed method achieves state-of-the-art density estimation on MNIST while using an order of magnitude fewer parameters than competing models.
Introduction
Generative modeling aims to learn the joint probability distribution of high-dimensional data. Flow-based models, such as RealNVP or Glow, have become popular because they allow for exact likelihood evaluation and efficient sampling through invertible transformations. However, these models typically face a "Jacobian Tradeoff": to keep the change-of-variables calculation efficient, researchers must restrict network architectures (e.g., using coupling layers), which can limit expressive power. Furthermore, imposing physical symmetries (like rotation or translation) on standard vector-valued maps is mathematically challenging.
Methodology
The authors address these challenges by looking to Optimal Transport theory, specifically the Monge-Ampère equation, which describes the most efficient way to move one distribution to another. To make this computationally tractable for high-dimensional deep learning, they adopt a continuous-time limit, transforming the problem into a fluid dynamics simulation.
The Flow and Potential
In this framework, data points are treated as "fluid parcels" moving according to a velocity field. Instead of learning a direct mapping, the model learns a scalar potential function $\phi(x)$ using a neural network. The velocity of the data is defined as the gradient of this potential ($\nabla \phi$).
Complexity Reduction
Because the model operates in continuous time, the complex determinant of the Jacobian (which scales as $O(N^3)$) is replaced by the Laplacian ($\nabla^2 \phi$), which scales linearly ($O(N)$) with dimensionality. This allows for more flexible architectures without the usual computational bottleneck. Training is formulated as an optimal control problem, where the potential function is tuned so that the probability mass matches the target data distribution at a fixed time $T$.
Key Insights
- Symmetry for Free: Since the potential $\phi$ is a scalar, enforcing symmetry is straightforward. One can simply average the potential over the symmetry group, a much simpler task than forcing a vector-valued network to be equivariant.
- Parameter Efficiency: The ODE integrator "shares" the same potential function across all time steps, effectively acting as a weight-tied deep network. This leads to extremely lightweight models.
Experimental Results
The authors evaluated Monge-Ampère flow on two distinct problems: unsupervised density estimation on MNIST and calculating variational free energy for the 2D Ising Model in statistical physics.
MNIST Density Estimation
On the MNIST dataset, the Monge-Ampère flow achieved a negative log-likelihood (NLL) of 1255.5, significantly outperforming established models like MADE (1380.8), RealNVP (1323.2), and MAF (1300.5). Remarkably, the model achieved these results using only about one-tenth of the learnable parameters required by the MAF model.
Physics Accuracy
In the Ising model test, the flow successfully captured the physics of the critical point, where the system exhibits complex, long-range correlations. It provided an accurate variational upper bound on the free energy, matching exact analytical solutions and demonstrating the model's utility for scientific applications.
Conclusion and Future Work
Monge-Ampère flow represents a significant step forward in making flow-based models both more efficient and more physically grounded. While the current implementation uses simple feedforward networks and standard Runge-Kutta integrators, future work could explore more specialized architectures (like CNNs), time-dependent potentials $\phi(x, t)$, and memory-optimized training via the adjoint method.
Summary updated