All models

zuko_nice

Additive coupling normalizing flow with a trivial inverse and exact log-likelihood training.

Diffusion and generative · 154 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 (7 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
154
Framework
PyTorch
Recurrent
No
Published
ICLR 2015 workshop
Cited by
1,493 (as of 19 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
m11587
Graph hash
031d97ec5c3956beba0b0844842d2ac8de22f41ee4a309be7016e0fa663c1715
Skeleton hash
13b585c05a93b54a90f2e950fe0dfae37d96a05cee9729d4fc89c5d696ef6675
Architecture hash
405519a0044c2b16980f62a1bbe2e12e69d1ea707029e760e3fff2af3f2b0dcb
Diagram SHA-256
e3b2de6b52fc9c8a23178292ef0d672b1f408303585c87bb297aa53a166837d8
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

NICE, short for Non-linear Independent Components Estimation, is a deep learning framework for modeling complex high-dimensional densities. It rests on the idea that a good representation is one in which the data has a distribution that is easy to model, so the network learns a deterministic, invertible map to a latent space where the variables are independent. The map is parameterized so that computing the Jacobian determinant and the inverse is trivial, and training maximizes the exact log-likelihood.

The building block is the additive coupling layer, which leaves part of its input unchanged and adds to the rest a function of that unchanged part, so the inverse costs no more than the forward pass. The authors chose additive coupling for numerical stability. Alternating layers swap which half stays fixed, at least three coupling layers are needed for all dimensions to influence one another, and the authors generally use four. Since each additive layer has a unit Jacobian determinant and preserves volume, a diagonal scaling matrix is added as the top layer.

The flow on this page takes 784-dimensional vectors, the size of a flattened MNIST image, with four coupling layers as in the paper's MNIST model. In the paper each coupling function is a deep rectified network with five hidden layers of 1000 units for MNIST. The paper reports a test log-likelihood of 1980.50 on MNIST, 5514.71 on TFD, 11496.55 on SVHN and 5371.78 on CIFAR-10.

Key idea. NICE learns an invertible map to independent latent variables with additive coupling layers whose Jacobian determinant and inverse are trivial, trained by exact log-likelihood.

  • nice
  • non-linear independent components estimation
  • normalizing flow
  • additive coupling
  • density estimation
  • coupling layer
  • invertible network
  • zuko

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