
freia_realnvp
Diffusion and generative297 ops4.8M params
An invertible flow of affine coupling layers with exact log-likelihood, sampling and latent inference.
Diffusion and generative · 297 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 applies the coupling blocks to flattened 784-dimensional vectors, with fully connected networks computing the scale and shift.
About this model's family
Real NVP is a generative model built from invertible transformations, which gives it exact log-likelihood computation, exact sampling and exact inference of latent variables. The name stands for real-valued non-volume preserving transformations.
The building block is the affine coupling layer. In each one, part of the input vector passes through unchanged and the rest is updated by a function that is simple to invert but depends on the unchanged part in a complex way. Inverting the layer never requires inverting the scale and shift functions s and t, so they can be arbitrarily complex networks. Because each layer leaves some components unchanged, layers are composed in an alternating pattern, so that what one layer leaves unchanged the next one updates.
For images the paper partitions the input with spatial checkerboard patterns and channel-wise masking. It uses deep residual networks with batch normalization and weight normalization for s and t. Both models in this group are sequences of such coupling blocks built with FrEIA, a framework for constructing invertible neural networks from simple invertible building blocks. The paper reports that its bits per dimension, while not improving over the Pixel RNN baseline, is competitive with other generative methods.
Key idea. Real NVP introduces real-valued non-volume preserving transformations, invertible and learnable, giving exact log-likelihood computation, exact sampling and exact inference of latent variables.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{dinh2017densityestimationusingreal,
title={Density estimation using Real NVP},
author={Laurent Dinh and Jascha Sohl-Dickstein and Samy Bengio},
year={2017},
eprint={1605.08803},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1605.08803},
}