
zuko_MAF_conditional
Diffusion and generative123 ops18.1K params
A normalizing flow: invertible transformations that reshape a simple density into a complex one.
Diffusion and generative · 112 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.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}