All models

FFJORD_repo

A normalizing flow whose transform is an ODE, with Hutchinson's trace trick freeing the architecture.

Diffusion and generative · 156 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (81 KB)

Open in a new tab

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.

At a glance

Parameters
1.4K
Operations
156
Framework
PyTorch
Recurrent
Yes
Published
2018
Cited by
828 (as of 15 November 2026)
Authors
Will Grathwohl, Ricky T. Q. Chen, Jesse Bettencourt and others
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m11627
Graph hash
d56e500dd8ca480ac143b83cf7353698a4b1a153bc973344cdeb3c8b42ba686c
Skeleton hash
723820ecb93ca5d28bfdada2357d674eddbf4cf4830793eed775cf1f11a0cba8
Architecture hash
5371e7dcb1fa94154a6a42151a147f877c681b6ecf23a011881de8dea73bf034
Diagram SHA-256
0d0a30564eeb56af91cc1a7907b6ea8e61ef0b112e80ab399b6fac4c6eb4a886
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

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.

  • ffjord
  • continuous normalizing flow
  • cnf
  • neural ode
  • free-form jacobian
  • reversible generative model
  • density estimation
  • torchdyn

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}