All models

freia_sequenceinn_allinoneblock

A normalizing flow of stacked FrEIA blocks, each combining actnorm, a permutation and affine coupling.

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 (28 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
1.4M
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
m5090
Graph hash
27b7a6bf78f4ffff126928b80c61d16dbf434c75c4819408d5b018711a867ddd
Skeleton hash
f19739d46e68a292563aa62f00682ec9b6b1a6f630825a54bb894827f91cd43a
Architecture hash
e3f1bd064336e7b5651233e5d3e41dc265da8c495c53afcd79970f6e62c77d27
Diagram SHA-256
f4c01de58012a9af1886905fc9c3fe4a707a6cde8a5becc11f20a5910651ac78
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 invertible blocks built with FrEIA, a framework for constructing invertible neural networks from simple invertible building blocks. A sequence of invertible transformations like this is called a normalizing flow. The block design comes from Glow, where each step of flow consists of actnorm, then an invertible 1×1 convolution, then a coupling layer.

Actnorm is an affine transformation with a scale and bias parameter per channel, initialized so that its outputs have zero mean and unit variance on an initial minibatch of data. The affine coupling layer is the piece for which the forward function, the reverse function and the log-determinant are all computationally efficient. Between couplings the variables are permuted so that, after enough steps, each dimension can affect every other dimension. Earlier flows used a fixed permutation that reverses the ordering of the channels; Glow proposes replacing it with a learned invertible 1×1 convolution.

The paper describes flow-based generative models as attractive for the tractability of the exact log-likelihood and of exact latent-variable inference. In the paper's CIFAR-10 comparison of a channel reversal, a fixed random permutation and the 1×1 convolution, the 1×1 convolution achieved a lower negative log-likelihood and converged faster. The paper puts the added wall-clock time of the 1×1 convolution at about 7%.

Key idea. Glow defines a step of flow made of actnorm, an invertible 1×1 convolution and a coupling layer, and the paper reports improved log-likelihood on standard benchmarks.

  • allinoneblock
  • freia
  • glow
  • normalizing flow
  • affine coupling
  • actnorm
  • invertible neural network
  • sequenceinn
  • flow-based generative model

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