All models

zuko_NSF

A normalizing flow: invertible transformations that reshape a simple density into a complex one.

Diffusion and generative · 409 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 (7 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
50.1K
Operations
409
Framework
PyTorch
Recurrent
No
Published
ICML 2015
Cited by
1,913 (as of 23 October 2026)
Authors
Danilo Jimenez Rezende, Shakir Mohamed
License
MIT
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
m11581
Graph hash
95356dd6300406ecc4c2156edcdeaeca511f1635fbef5f801850397ea32cf914
Skeleton hash
cf0aed85857194f6d8b3efa5c9a7f1b03836b5e6b5c31fb19cf5eac275a17918
Architecture hash
954ec2c97b1977af738cbc105260fd9251ca2a2a0bd67f5da88ae18d59936ca6
Diagram SHA-256
87502b252e8a53bac507288e9e1e2c20a5e9c7ae07944c99cf8b754641c87255
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 normalizing flow turns a simple probability density into a more complex one by passing it through a sequence of invertible transformations. Each step applies the rule for change of variables, so the end of the sequence is still a valid probability distribution.

The paper Variational Inference with Normalizing Flows uses this idea to specify flexible approximate posterior distributions for variational inference. Such flows need transformations whose Jacobian determinant is cheap to compute. The paper proposes two: planar flows, which apply contractions and expansions perpendicular to a hyperplane, and radial flows, which apply them around a reference point.

Masked Autoregressive Flow (MAF) is a flow for density estimation that stacks autoregressive models, each modelling the random numbers of the next model in the stack. MAF computes the density of a data point in one pass through the model, while sampling from it requires D sequential passes, where D is the dimensionality of the data. The MAF paper describes Real NVP, a flow obtained by stacking coupling layers, as able to both generate data and estimate densities with one forward pass.

Key idea. The paper builds flexible approximate posteriors by transforming a simple initial density through a sequence of invertible transformations, a normalizing flow.

  • normalizing flow
  • normalizing flows
  • masked autoregressive flow
  • maf
  • planar flow
  • radial flow
  • density estimation
  • variational inference
  • invertible neural network
  • coupling flow

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

Cite the paper

@misc{rezende2016variationalinferencenormalizingflows,
      title={Variational Inference with Normalizing Flows}, 
      author={Danilo Jimenez Rezende and Shakir Mohamed},
      year={2016},
      eprint={1505.05770},
      archivePrefix={arXiv},
      primaryClass={stat.ML},
      url={https://arxiv.org/abs/1505.05770}, 
}