All models

nice_flow

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

Diffusion and generative · 64 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 (17 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
19.2M
Operations
64
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
m7737
Graph hash
b4790787a72869935736369c1321873c6dd26a60c34787542971ab98008a2a13
Skeleton hash
4fb3a79dabcfadba995e02cb5d95ad9b193dd3fe71e4bf3df1aeca8ce81b2d5d
Architecture hash
7c970da2fc175e0e7b50d5efbc53f52cf5c297f84d60208c11bc1f2bf53c5f64
Diagram SHA-256
b01206dca5e9ebdc29a4c16e91d2171a548a34e95d7199849845c70b921d612d
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 the full NICE transformation: additive coupling layers followed by a diagonal scaling matrix as the top layer.

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