Noise-contrastive estimation, A new estimation principle for unnormalized statistical models — Gutmann, Hyvärinen
The idea of noise contrastive estimation, or NCE, is to run a logistic regression to differentiate the target data from noise . Note that a logit (log-odds) can be used to say the logit of a sample being from the target data distribution instead of the noise distribution :
From here, we can convert logits into probabilities with sigmoid, and apply cross-entropy loss, giving us the loss function:
You will notice this loss is defined a little differently than the others, where it is defined in terms of probabilities rather than distances. NCE is used to estimate the parameters of the modeled data distribution that distinguishes true samples from artificially generated noise samples . When the classifier is optimized, the corresponding gives the desired data distribution.
Follow-up work has incorporated multiple negative samples, instead of only one positive and one negative pair.
Ranking NCE
- Multi-class extension of distinguishing real data from generated nosie
- for a conditioned model , where
But this now has the intractable partition function in it
We replace the expectation with the average over the K available negative samples which are drawn from .
Plugging that into our probability calculation:
Final Ranking NCE loss is the average estimated log-probability over set of all observed true samples.
References
Noise-contrastive estimation, A new estimation principle for unnormalized statistical models