
FFJORD_CNF
Diffusion and generative156 ops1.4K params
A normalizing flow whose transform is an ODE, with Hutchinson's trace trick freeing the architecture.
Diffusion and generative · 156 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
About this model's family
A continuous normalizing flow is a generative model that turns a simple base distribution into the target distribution by integrating learned continuous-time dynamics. The traced members follow FFJORD, which stands for Free-form Jacobian of Reversible Dynamics. Why care: likelihood-based training of reversible models normally forces restrictions on the architecture to keep Jacobian determinants cheap, and this work removes them.
A continuous normalizing flow replaces the usual warping function with an integral of continuous-time dynamics: sample a base point, then solve an ordinary differential equation to reach the data. The change in log-density follows a second differential equation, the instantaneous change of variables formula, which involves only the trace of the Jacobian. FFJORD's contribution is an unbiased estimate of that log-density with cost linear in the data dimension, using Hutchinson's trace estimator, so completely unrestricted neural network architectures can be used. A fixed noise vector is kept for the duration of each ODE solve so that the dynamics stay deterministic inside the solver. The dynamics network takes the current state and the time as input; the authors found that simply concatenating t onto z(t) at the input to every layer worked well.
On MNIST a single FFJORD flow defined by one neural network models the data as well as Glow and Real NVP, which must compose many flows for similar performance. With multiple flows in a multiscale architecture it reaches comparable performance to Glow on CIFAR10 while using less than 2% as many parameters. The approach is slower than competing methods, but the memory efficiency of the adjoint method allows much larger batch sizes. The number of function evaluations the adaptive solver needs is not fixed ahead of time; it depends on the data, the architecture and the parameters. The authors find this count tends to grow as the model trains and can become prohibitively large, even though memory stays constant with the adjoint method.
Key idea. A continuous-time invertible generative model with unbiased density estimation and one-pass sampling that allows unrestricted neural network architectures, by estimating the Jacobian trace with Hutchinson's estimator.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{grathwohl2018ffjordfreeformcontinuousdynamics,
title={FFJORD: Free-form Continuous Dynamics for Scalable Reversible Generative Models},
author={Will Grathwohl and Ricky T. Q. Chen and Jesse Bettencourt and Ilya Sutskever and David Duvenaud},
year={2018},
eprint={1810.01367},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1810.01367},
}