All models

glow_realnvp_freia

A stack of Glow-style affine coupling blocks forming an invertible flow over 2-D points.

Diffusion and generative · 233 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 (25 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
32.8K
Operations
233
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2018
Cited by
825 (as of 23 October 2026)
Authors
Diederik P. Kingma, Prafulla Dhariwal
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
m5209
Graph hash
c71c6139492c70b1657dbb5b88480a7c18bf768b025b7776653f9973da5453f4
Skeleton hash
d698213999784d0ce088b3f7df926ad5e966f8be705d574676284307018ab441
Architecture hash
b7e70fab8a944a08d424ebcc4745e7196a22e9192c2854e5e088553ed68888ab
Diagram SHA-256
e8b65aad41ba20fab7d71d02363ef640166f71e419045cf6d0d9e167a537c042
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 stack of Glow-style affine coupling blocks, the reversible layer used in flow-based generative models. An affine coupling layer splits its input in two; a neural network reads one half and outputs a scale and a shift that are applied to the other half, and the two halves are concatenated again. The forward function, the reverse function and the log-determinant of such a layer are all computationally efficient.

The coupling layer is one part of Glow, a flow that builds on the NICE and RealNVP flows. In Glow each step of flow consists of actnorm, then an invertible 1 × 1 convolution, then a coupling layer; this model keeps only the coupling blocks and applies them to 2-D points. It is built with FrEIA, a framework for constructing invertible neural networks from simple invertible building blocks.

The Glow paper lists exact latent-variable inference and log-likelihood evaluation among the merits of flow-based generative models. An additive coupling layer is the special case with a scale of 1 and a log-determinant of 0. In the paper's CIFAR-10 comparison, the affine coupling models converged faster than the additive coupling models.

Key idea. The Glow paper proposes a generative flow whose steps chain actnorm, an invertible 1 × 1 convolution and a coupling layer, building on NICE and RealNVP.

  • glow coupling block
  • glowcouplingblock
  • affine coupling layer
  • coupling flow
  • normalizing flow
  • invertible neural network
  • flow-based generative model
  • freia

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{kingma2018glowgenerativeflowinvertible,
      title={Glow: Generative Flow with Invertible 1x1 Convolutions}, 
      author={Diederik P. Kingma and Prafulla Dhariwal},
      year={2018},
      eprint={1807.03039},
      archivePrefix={arXiv},
      primaryClass={stat.ML},
      url={https://arxiv.org/abs/1807.03039}, 
}