All models

freia_sequenceinn_glowcouplingblock

The affine coupling block from Glow, an invertible layer for flow-based generative models, built with FrEIA.

Diffusion and generative · 32 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 (36 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
335.9K
Operations
32
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
m5092
Graph hash
8f156dd4b4c7dbfcf9760f986d01cea9be7add14bb45a767e2877125ffb76fa6
Skeleton hash
17e33f446a5af702f86f319a208503f1c38da4f7c235679e8b1efd66927e656b
Architecture hash
5544c055da0cf8e052dcce7f56402a6bdd8c0b9de69b63973ff2a37db06b4edf
Diagram SHA-256
2975504fe8572f08e9aaa5f6c1da56bc9995626e0b6014282e9b8b296ff8bebd
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 single coupling block, one of the simple invertible building blocks that FrEIA networks are constructed from.

About this model's family

This model is the affine coupling layer on its own, which in Glow, a flow-based generative model, is the last part of each step of flow, after actnorm and an invertible 1 × 1 convolution. It is assembled with FrEIA, a framework for constructing invertible neural networks from simple invertible building blocks.

The layer splits its input into two halves, runs one half through a neural network that returns a log-scale and a shift, and applies that scale and shift to the other half, while the first half passes through unchanged. The paper describes it as a reversible transformation whose forward function, reverse function and log-determinant are all computationally efficient. The log-determinant is the change in log-density that the transformation causes. An additive coupling layer is the special case with a scale of 1 and a log-determinant of 0.

Glow itself builds on the earlier NICE and RealNVP flows. In the paper's CIFAR-10 comparison, the affine coupling models converge faster than the additive coupling models.

Key idea. The paper proposes Glow, a generative flow using an invertible 1x1 convolution, in which each step of flow ends with the coupling layer this model implements.

  • glow affine coupling block
  • glowcouplingblock
  • affine coupling layer
  • coupling layer
  • glow
  • normalizing flow
  • flow-based generative model
  • invertible neural network
  • 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}, 
}