Learning normalizing flows from Entropy-Kantorovich potentials

Chris Finlay, Augusto Gerolin, Adam M. Oberman, Aram-Alexandre PooladianarXiv 2020

Abstract

Continuous Normalizing Flows (CNFs) are typically trained by solving an Ordinary Differential Equation (ODE) at every iteration, a process that is both computationally expensive and memory-intensive. We present a dual perspective motivated by entropy-regularized optimal transport, casting CNFs as gradients of scalar potential functions. This formulation enables training via a dual objective that avoids explicit ODE computation during the training loop. After optimization, the normalizing flow is efficiently recovered from the learned potentials.

Introduction

Normalizing Flows transform simple probability distributions into complex ones through a series of invertible mappings. Continuous Normalizing Flows (CNFs) extend this by using a smooth, time-dependent transformation governed by a Neural ODE. While powerful, CNFs suffer from high computational costs during training and potential numerical instability if the learned vector fields become overly complex.

To address these challenges, we leverage Optimal Transport (OT) theory. OT provides a framework for finding the most efficient path between distributions. By incorporating entropic regularization, we can simplify the optimization landscape and derive a training method that sidesteps the need for an ODE solver during the learning phase.

Methodology: A Dual Perspective

The core of our approach is shifting from the "primal" task of learning a velocity field directly to a "dual" task of learning scalar Entropy-Kantorovich potentials, $\phi$ and $\psi$.

Entropy-Regularized Optimal Transport

We utilize a version of OT that includes an entropy term, controlled by a parameter $\epsilon$. This regularization smooths the transport plan, making it more amenable to optimization. Instead of parameterizing a high-dimensional vector field, we parameterize $\phi$ and $\psi$ as neural networks.

The Dual Objective

We derive a training objective that depends solely on these scalar potentials. Crucially, this objective is "ODE-free" during training. The velocity field $v_t$ is recovered post-training as the gradient of the difference between these potentials.

Evolution of the learned continuous normalizing flow from $t=0$ to $t=1$.

To maintain a mesh-free approach capable of scaling, we use Monte-Carlo integration to handle the heat kernels required by the theory.

Key Insights and Results

By focusing on scalar potentials, the model is naturally regularized to learn well-behaved, non-intersecting flows. The entropic parameter $\epsilon$ acts similarly to a diffusion process, helping the model handle discontinuities in data distributions, such as those found in checkerboard patterns.

Our evaluation on standard 2D toy datasets (e.g., Swissroll, Circles, Pinwheel) demonstrates that the model successfully captures intricate geometries. While entropic regularization introduces a slight "blurring" effect in density estimation, the quality of generated samples remains high, and the training process is significantly more efficient due to the removal of the ODE solver from the inner loop.

Conclusion and Future Work

Learning CNFs through Entropy-Kantorovich potentials offers a promising path toward more efficient generative modeling. By avoiding ODEs during training, we reduce the computational burden and improve stability. Future research will focus on scaling this approach to high-dimensional data like images and optimizing the trade-off between entropic smoothness and density precision.

Summary updated

BibTeX
@misc{finlay2020learning,
  author = {Chris Finlay and Augusto Gerolin and Adam M. Oberman and Aram-Alexandre Pooladian},
  title = {{Learning normalizing flows from Entropy-Kantorovich potentials}},
  year = {2020},
  eprint = {2006.06033},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.06033},
}
Figure