All models

zuko_MAF_conditional

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

Diffusion and generative · 123 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 (8 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
18.1K
Operations
123
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
m11579
Graph hash
d44be2026e222ec321f98dfc9248cb38475d65713af7c382a51e54eed38eb934
Skeleton hash
9e0a88fe6a72f6cc331232dfb3da593e189a4fa85b7ecb85c258dac02cf0d7ca
Architecture hash
cfa133703b12d8dd8189e696635da81ce26e9ea0b46c0ae55ae896a27a29ee51
Diagram SHA-256
f342e474432d6cfa3d6834103e0022bd566fc09e3129daf68cb2e2ee65a5d5d2
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 conditional Masked Autoregressive Flow, in which a conditioning vector becomes an additional input for every layer.

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