Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

NICE: Non-linear Independent Components Estimation

NICE learns an invertible map that makes image data easy to model

  • Problem Fitting a density to high-dimensional data with unknown structure is hard when the model must also allow exact likelihood and cheap sampling. Earlier models gave up one of these properties to keep the others.
  • Method NICE stacks additive coupling layers with unit Jacobian determinant under a factorial prior.
  • Results NICE reached a test log-likelihood of 5514.71 on TFD and 5371.78 on CIFAR-10. Deep mixtures of factor analysers scored 5250 and 3622 on those datasets, but those are variational lower bounds.

Why factorize the data with an invertible map

The modeling target is a complex data distribution whose structure is unknown, and NICE tackles it by searching for a representation in which the data becomes easy to model. Concretely, a transformation h = f(x) is learned so that the components of h are independent under a prior, which turns the density of the data into a product of simple one-dimensional terms.

The change of variables rule connects the data density to the prior density of h through the absolute Jacobian determinant of f, so the exact log-likelihood can be written down and maximized directly. The map must be invertible and must have the same dimension as the data, and the determinant and the inverse must both be cheap, because sampling runs the inverse map on prior samples.

Without a constraint, an invertible preprocessing could raise the likelihood simply by contracting the data, and the determinant term in the criterion is there to counter this effect.

Coupling layers with triangular Jacobians

The design starts from the observation that a triangular matrix has a determinant equal to the product of its diagonal entries, and that such matrices compose. Instead of constraining every weight matrix, the model uses a family of nonlinear maps whose Jacobian is triangular, so that only the diagonal needs to be easy to evaluate.

A coupling layer splits the input into two blocks, copies the first block unchanged, and transforms the second block with a coupling law that depends on the first block through a function m. Because the Jacobian then has an identity block in its upper rows, its determinant reduces to the determinant of the derivative of the transformed block with respect to itself, and the inverse only needs the copied block and the same function m.

The additive coupling law adds the output of m to the second block, so the forward map is y2 = x2 + m(x1) with y1 = x1, and the inverse subtracts m(y1) from y2. The determinant of this layer is 1, the inverse costs the same as the forward pass, and m can be any function, for example a deep network with d inputs and D-d outputs. The authors chose the additive law for numerical stability, noting that the transformation stays piecewise linear when m is a rectified network.

Stacking layers and scaling the latent space

Each additive layer leaves part of its input fixed, so the roles of the two subsets must alternate between successive layers. The authors found that at least three coupling layers are needed before every dimension can influence every other one, and they generally use four.

Since every additive layer is volume preserving, a composition of such layers would also have unit determinant, which limits how the density can be reshaped. A diagonal scaling matrix S placed as the top layer multiplies the i-th output by S_ii, so the model can give more weight to some dimensions and less to others.

With this last scaling stage, the criterion becomes a sum over dimensions of the log-prior of each transformed component plus log|S_ii|, written as \\(\\log p_X(x)=\\sum_i[\\log p_{H_i}(f_i(x))+\\log|S_{ii}|]\\). The prior term pushes S_ii toward small values, while the log-determinant term keeps S_ii from reaching zero.

The factorial prior is taken from standard families: a Gaussian, or a logistic distribution whose log-density is written as minus log(1 + exp(h)) minus log(1 + exp(-h)). The authors prefer the logistic family because it tends to give a better behaved gradient, and they use it for MNIST, SVHN and CIFAR-10, while TFD uses a standard normal prior.

For the image experiments, the odd-indexed and even-indexed input components form the two subsets, and the four coupling layers alternate the roles. Each coupling function is a deep rectified network with linear output units, with five hidden layers of 1000 units for MNIST, four hidden layers of 5000 units for TFD, and four hidden layers of 2000 units for SVHN and CIFAR-10.

Training by exact likelihood and sampling

Training maximizes the log-density of h under the prior plus the sum of the scale exponents s_i, with the diagonal scale parametrized as exp(s).

Pixel data are dequantized by adding uniform noise and rescaling into [0, 1]^D, while CIFAR-10 is rescaled into [-1, 1]^D after its own uniform noise is added. TFD is used as unlabeled data, so only the image values enter training.

Sampling is ancestral: a latent vector is drawn from the prior, and the inverse map returns the data sample, so the samples are unbiased in the sense the authors use. Unbiased samples from models trained on MNIST, TFD, SVHN and CIFAR-10 are shown in Fig. 5.

Log-likelihood on four image datasets

NICE reaches test log-likelihoods of 1980.50 on MNIST, 5514.71 on TFD, 11496.55 on SVHN and 5371.78 on CIFAR-10.

On TFD the value is 5514.71 against 5250 for deep mixtures of factor analysers, and on CIFAR-10 it is 5371.78 against 3622. Those baseline values come from prior work, and they are variational lower bounds, so the comparison does not hold a shared evaluation protocol fixed. A GRBM entry in the same comparison table gives 2413 on TFD and 2365 on CIFAR-10.

The authors make no comparison for MNIST, because generative models on continuous MNIST are usually evaluated with Parzen window estimation, which cannot be matched fairly to an exact likelihood.

Inpainting with the trained model

Observed pixels are clamped to their ground-truth values, and the masked hidden dimensions are updated by projected gradient ascent on the likelihood, with Gaussian noise added to each step so the input stays in its original range. The update is \\(x_{H,i+1}=x_{H,i}+\\alpha_i\\left(\\partial \\log p_X((x_O,x_{H,i}))/\\partial x_{H,i}+\\epsilon\\right)\\) with \\(\\epsilon\\sim\\mathcal{N}(0,I)\\), where \\(\\alpha_i\\) is a step size that depends on the iteration i.

With the middle masks almost no information about the digit remains, so those cases test the prior more than the observed pixels.

The completions look reasonable qualitatively even though the model was trained only for density estimation, but the procedure sometimes produces spurious modes.

Links to variational and autoregressive models

Their training criterion is a variational lower bound on the log-likelihood, which can be suboptimal with respect to the true log-likelihood.

The authors argue that when the transformation and its inverse form a perfect auto-encoder pair, the reconstruction term is a constant and can be dropped, leaving a prior term log p_H(f(x)) and an entropy-like term log|det(∂f(x)/∂x)|. They read the Kullback-Leibler form of the variational criterion as close to the NICE criterion, and they note that a reparametrization trick combined with two affine coupling layers yields the same structure in Appendix C.

NADE is a tractable autoregressive model with a strictly triangular adjacency matrix, which is a structure related to the triangular Jacobian used here. Its element-by-element sampling makes ancestral sampling computationally expensive and hard to parallelize on high-dimensional image data.

Limits of the evidence

The log-likelihood comparison rests on two reference values from prior work for TFD and CIFAR-10, which are variational lower bounds, and no MNIST baseline is compared.

Inpainting is assessed only qualitatively on MNIST, the model was not trained for that task, and spurious modes occasionally appear.

The reported configurations use four coupling layers on four image datasets, and the text reports no run with fewer than four layers. The variational auto-encoder connection is argued in the text and Appendix C rather than tested in experiments.

Paper info

Authors
Laurent Dinh, David Krueger, Yoshua Bengio
Venue
arXiv · Preprint
First published
2014-10-30
Added
2026-11-6
Updated
2015-4-10
Version
v6
arXiv
1410.8516
Category
cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Laurent Dinh, David Krueger, Yoshua Bengio (2014). NICE: Non-linear Independent Components Estimation. arXiv:1410.8516v6. https://arxiv.org/abs/1410.8516v6

BibTeX
@misc{dinh2014nice,
  title = {{NICE: Non-linear Independent Components Estimation}},
  author = {Laurent Dinh and David Krueger and Yoshua Bengio},
  year = {2014},
  eprint = {1410.8516},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1410.8516v6}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up