All models

FrEIA_NICECouplingBlock

An invertible network of additive coupling layers that maps data to independent latent variables.

Diffusion and generative · 97 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 (37 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

Family
NICE
Parameters
30.3M
Operations
97
Framework
PyTorch
Recurrent
No
Published
ICLR 2015 workshop
Cited by
1,492 (as of 22 October 2026)
Authors
Laurent Dinh, David Krueger, Yoshua Bengio
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
m1055
Graph hash
40ac13768c00321f0ed16d8aa71a7b6d46dec069fb0981c0775d39ac180fae44
Skeleton hash
d0caf47ec4d1b40d09d68eaa71bb964fe7161fadf655aff7d89236c5e0992c2d
Architecture hash
7105b182927387753133c36474d63b43730241040549e98a0ddefe9d11e7ac99
Diagram SHA-256
95e2b28079ab6a663341cb94dfd9351764fdcbdec72a7670284ab2a4bef60674
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 built from the additive coupling layer, in which one part of the input is shifted by a function of the other part. It comes from FrEIA, a framework for constructing invertible neural networks from simple invertible building blocks.

About this model's family

NICE (Non-linear Independent Component Estimation) is a deep learning framework for modeling complex high-dimensional densities. It learns a non-linear deterministic transformation that maps data to a latent space where the transformed data follows a factorized distribution, so the latent variables are independent. The transformation is parametrized so that its Jacobian determinant and its inverse are trivial to compute. That makes the exact log-likelihood tractable, and it serves directly as the training criterion.

The building block is the additive coupling layer. A coupling layer leaves part of its input unchanged, so the roles of the two parts are exchanged in alternating layers. Additive coupling layers preserve volume, so the paper adds a diagonal scaling matrix as the top layer.

The architecture in the paper is a stack of four coupling layers with a diagonal positive scaling as the last stage. Each coupling function is a deep rectified network, with five hidden layers of 1000 units for MNIST. The paper reports good generative models on four image datasets and shows the approach can be used for inpainting.

Key idea. NICE learns an invertible non-linear transformation of data to independent latent variables, built so that the Jacobian determinant and inverse are trivial and the exact log-likelihood is tractable.

  • nice
  • non-linear independent components estimation
  • non-linear independent component estimation
  • additive coupling layer
  • coupling layer
  • invertible neural network
  • normalizing flow
  • density estimation
  • 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{dinh2015nicenonlinearindependentcomponents,
      title={NICE: Non-linear Independent Components Estimation}, 
      author={Laurent Dinh and David Krueger and Yoshua Bengio},
      year={2015},
      eprint={1410.8516},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1410.8516}, 
}