
nice_flow
Diffusion and generative64 ops19.2M params
Additive coupling normalizing flow with a trivial inverse and exact log-likelihood training.
Diffusion and generative · 154 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}