zuko_realnvp
Invertible non-volume preserving flow with exact log-likelihood, sampling and latent inference.
Diffusion and generative · 144 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.
At a glance
- Parameters
- 14.2K
- Operations
- 144
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2017
- Cited by
- 2,066 (as of 19 October 2026)
- Authors
- Laurent Dinh, Jascha Sohl-Dickstein, Samy Bengio
- Source
- zuko 1.6.0
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m11588
- Graph hash
- 7f470f8e8963e16c8d41373a55bad758cb2fc19b0998ef12eaff3cc095ba4c78
- Skeleton hash
- 44d41d9255f6f4076a41dac9b6b84573c7d4a9c2b6c75c7bd26f154779f3131a
- Architecture hash
- 6391fdaa810639c0d6bf9581010703f18163b7f7ba43c2f48c24f98c915977b8
- Diagram SHA-256
- 11df678514a192188208ae06c6d2793ab7b50638b0c1cc902f70f7610dba8c91
- 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
Real NVP is a normalizing flow, an invertible neural network whose log-likelihood can be computed exactly, so density estimation becomes a sequence of learnable transformations. The name stands for real-valued non-volume preserving transformations. Because every step is invertible, the same network gives exact sampling, exact inference of latent variables and an interpretable latent space. The paper demonstrates the approach on natural images from four datasets through sampling, log-likelihood evaluation and latent variable manipulations.
The authors' TensorFlow release trains the image model on Imagenet at 32x32 and 64x64, CelebA and LSUN. That release describes the model as decomposing images into hierarchical features ranging from high-level concepts to low-resolution details.
The flow on this page is the RealNVP class from Zuko, a Python package that implements normalizing flows in PyTorch. In Zuko, feeding a context to a flow returns a conditional distribution that can be evaluated and sampled from.
Key idea. Real NVP builds density estimators from invertible non-volume preserving transformations that allow exact log-likelihood, exact sampling and exact inference of latent variables.
- realnvp
- real nvp
- real-valued non-volume preserving
- normalizing flow
- affine coupling
- density estimation
- invertible network
- zuko
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@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},
}