All models

zuko_MAF

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

Diffusion and generative · 112 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
17.3K
Operations
112
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
m11578
Graph hash
7c35fb20d9650c51e6d2d31484a468e377741184616320475a73f0632526e988
Skeleton hash
43871915e376b0bd33c0a3f19ea13f24f742e2079a2cf81b5ef693082fdaefb8
Architecture hash
09d8172aa5c46c193928bf625f47ee0117e3b5bcf7528db262bc50637462f268
Diagram SHA-256
b88b62d7f43aa9a59f2ef2aa3964aae78158754a346583a76d1d029d02d3d9cf
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

This model is a Masked Autoregressive Flow, a stack of MADE layers that computes the density of a data point in one forward pass.

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