All models

normflows_multiscale_flow

One-level multiscale Glow flow that scores 4x4 two-channel images by negative log-likelihood.

Diffusion and generative · 63 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 (7 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
744
Operations
63
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2018
Cited by
825 (as of 19 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
m7768
Graph hash
b5bd118e368f06d751fc34362dcb5c9c5fc34c816d09d5ee22d1c51ff9f21962
Skeleton hash
288854f5e8ab1ae20b489635d8c8953b92b79465be465ecea959102c178582cb
Architecture hash
995d2dcf73168c21601f7bea84407376d16fd02ca796cfea8bf483d38f575957
Diagram SHA-256
f61baa132cf66bb1d2f48e3aa9f509839fbb2cf7efa9a0d901266799be3708d0
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

Glow is a flow-based generative model, a class the paper values for exact log-likelihood, exact latent-variable inference and parallel training and synthesis. This model is a small multiscale flow from the normflows package with a single Glow level, scored by the negative log-likelihood of 4x4 two-channel images.

Each step of flow in Glow is an actnorm layer, then an invertible 1x1 convolution, then a coupling layer. Actnorm applies a per-channel scale and bias, initialized on a first minibatch so that activations start with zero mean and unit variance. The invertible 1x1 convolution replaces the fixed channel permutation of earlier flows with a learned one, initialized as a random rotation matrix. Glow splits only along the channel dimension, dropping the checkerboard spatial split of RealNVP. Steps are stacked in the multi-scale architecture of RealNVP, with a depth of flow K and a number of levels L.

On CIFAR-10 the paper reports that the invertible 1x1 convolution reaches a lower negative log-likelihood and converges faster than a reversing or a fixed random permutation. The paper's larger claim is that a model optimized only for log-likelihood can synthesize and manipulate large, realistic-looking images. The authors' TensorFlow code is archived and ships a pretrained CelebA-HQ model with an interactive demo.

Key idea. Glow replaces the fixed channel permutation in flow steps with a learned invertible 1x1 convolution and adds actnorm, improving log-likelihood on standard benchmarks.

  • glow
  • generative flow
  • normalizing flow
  • invertible 1x1 convolution
  • actnorm
  • affine coupling
  • multiscale flow
  • normflows
  • density estimation
  • image generation

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