All models

FrEIA_GINCouplingBlock

FrEIA's GIN coupling block, a volume-preserving RealNVP variant for nonlinear ICA.

Diffusion and generative · 33 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
560
Operations
33
Framework
PyTorch
Recurrent
No
Published
ICLR 2020
Cited by
142 (as of 16 October 2026)
Authors
Peter Sorrenson, Carsten Rother, Ullrich Köthe
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
m1051
Graph hash
5618d136e5b15095a57ecacadd91a3659fbb3bd82f559632aa01bc37ce68fd8d
Skeleton hash
e14aa82b52f4a71af1cd12ed354241056bde61cedc7b8b5621fc965be1287cd9
Architecture hash
a4d3d93a95a51cbfdbcd22abed8c6f5f7d1e4e7701f086f9204883f0c44567a7
Diagram SHA-256
52c7399965692a4bd6658a982937440c3731572ef2d9d1312a37b377667590d8
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

A single GIN coupling block, whose Jacobian determinant is unity.

About this model's family

GIN, the General Incompressible-flow Network, is a normalizing flow built for nonlinear independent component analysis: recovering the true latent variables behind an arbitrarily complex generative process. This is the flow GIN, not the graph isomorphism network that shares its initials. The paper extends the nonlinear ICA identifiability result of Khemakhem et al. to the case of unknown intrinsic dimension, proving that in some not very restrictive cases informative latent variables separate themselves from noise. The recovered informative variables then match the true ones one to one, up to a trivial component-wise transformation.

Architecturally GIN is a variant of RealNVP that preserves volume: its Jacobian determinant is exactly one, which is why the authors borrow the word incompressible from fluid dynamics. Each coupling layer splits the input in two, passes one half through unchanged, and scales and shifts the other half by functions of the first. The trick is in the scale: the last scaling component is set to the negative sum of the others, so the log-scales sum to zero, where NICE would force them all to zero. A layer may therefore let some output dimensions grow, but only by shrinking the others in direct proportion, a constraint the authors compare to orthonormality in linear transformations. The payoff is that a latent variable's importance shows up directly in its standard deviation, which is how the informative dimensions are told apart from noise.

In the artificial-data experiment the observed data is ten-dimensional with only two informative latent variables, and GIN with 8 fully connected coupling blocks recovers both and flags the other eight as noise. On EMNIST the model extracts 22 meaningful variables, encoding both global and local features of handwritten digits. The captured members are the GINCouplingBlock from FrEIA, the authors' framework for invertible architectures, on 10-dimensional inputs: one block alone, and a SequenceINN stacking eight of them, which also returns the log-determinant. The authors' own GIN scripts require FrEIA to be installed first and were tested on CPU for the artificial data and on GPU for EMNIST.

Key idea. A volume-preserving RealNVP variant whose unit Jacobian lets nonlinear ICA recover informative latent variables and separate them from noise without knowing the intrinsic dimension.

  • gin
  • general incompressible-flow network
  • incompressible flow
  • nonlinear ica
  • disentanglement
  • normalizing flow
  • invertible neural network
  • gincouplingblock
  • freia
  • realnvp
  • nice
  • sorrenson
  • emnist

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

Cite the paper

@misc{sorrenson2020disentanglementnonlinearicageneral,
      title={Disentanglement by Nonlinear ICA with General Incompressible-flow Networks (GIN)}, 
      author={Peter Sorrenson and Carsten Rother and Ullrich Köthe},
      year={2020},
      eprint={2001.04872},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2001.04872}, 
}