Elamur Research

Bounding the Test Log-Likelihood of Generative Models

Paper · 2013 · Yoshua Bengio, Li Yao and Kyunghyun Cho

Summary

A system that generates plausible images may still be hard to evaluate on an image it has never seen. To give that image a probability, the system may need to account for many underlying states that could produce it. Another obstacle is computing the constant that turns relative scores into probabilities. Some generators specify a procedure for making new examples without providing a direct expression for their probabilities. Bengio, Yao and Cho ask how much can be learned about test log-likelihood by running the generator and examining the states it visits.

Their method, conservative sampling-based log-likelihood, or CSL, uses the generator’s own conditional probability for producing the test example from each sampled hidden state. It averages those probabilities and then takes the logarithm. An earlier approach fitted a separate distribution around generated examples, with a smoothing setting to choose. CSL uses the distribution already supplied by the generator. A hidden state can contribute information about all the outputs it might produce, even if none of the actual draws from that state matches the test example.

The paper establishes two properties with different practical implications. When the sample average represents the stationary distribution of the generating chain, the estimated log-likelihood converges to the true value as the sample grows. For finite samples with the correct stationary marginals, the estimate is a lower bound in expectation. A particular run can still give a higher estimate. How well the chain moves among different regions of its distribution matters in practice. On binarized MNIST, CSL approached the exact test log-likelihood of -180.24 for a small restricted Boltzmann machine. Some larger systems showed considerable gaps between CSL and estimates from annealed importance sampling, even with 150k sampled states.

The authors also try initializing short chains at each test example. This makes it easier to find hidden states that give that example appreciable probability, at the cost of biasing the estimate upward in their experiments. The variant reproduced the performance ordering in a comparison of restricted Boltzmann machines with different hidden-layer sizes. The two procedures answer different evaluation needs. The original CSL has a conservative guarantee under its sampling assumptions. The test-initialized variant offers a cheaper comparison whose reliability has to be established empirically.

Deep dive: Bounding the Test Log-Likelihood of Generative Models

Conservative sampling-based log-likelihood estimates how much probability a generator gives unseen data and reveals how poor mixing affects the score. · about 31 minutes to read

The problem and its context

When generating an example is easier than scoring it

A generative procedure describes how to produce new observations. In the paper’s experiments an observation is a digit image, but the statistical question arises whenever a learned distribution has to account for data held aside from training. Test log-likelihood asks how much probability the learned distribution assigns to those observations. It can serve as a common criterion for comparing learning procedures, and the authors also motivate it as a way to monitor training and decide when to stop. Both uses depend on being able to obtain an informative score at a reasonable cost.

Consider a generator that produces an image through hidden features. These features are called latent variables because the test image shows their result without directly specifying their values. A test image may be compatible with many combinations of features. To find its probability, an evaluator must account for their contributions, weighting each by its probability in the generator. This operation is called marginalization. It can be costly even when the generator can draw a hidden state and then produce an image from it with relative ease. Scoring an image requires aggregating over possible explanations, whereas producing one image can proceed through whichever hidden state happens to be drawn.

A different difficulty arises when a system gives relative scores to configurations. To turn those scores into probabilities requires a normalization constant, also called the partition function. Finding that constant can require taking account of a large space of configurations. Marginalization and normalization affect different parts of the computation. A system can make a local calculation accessible, such as scoring an image given particular hidden features, while leaving the global calculation out of reach.

The authors also consider systems specified primarily by a sequence of random updates. A Markov chain is such a sequence, with the distribution of the next state determined by the current state. If its distribution settles to an invariant profile, that profile is called a stationary distribution. The chain can define a generator through its long-run behavior even when that behavior has no accessible probability formula. The paper names herding and its nonzero-temperature variant as examples of generators with this difficulty. It also discusses procedures based on contractive and denoising autoencoders, along with generative stochastic networks. For a procedure of this kind, running the updates can be the most direct way to examine the learned distribution.

These cases explain the emphasis on held-out likelihood. An analyst can look at generated images and judge whether some look plausible. The probability assigned to a held-out image also depends on how the generator distributes its attention among all the kinds of images it can make. A collection of convincing examples can come from a procedure that repeatedly visits a limited region. A quantitative evaluation therefore has to reckon with how the generator allocates its probability and how thoroughly its sampling procedure explores that allocation.

Earlier approaches to approximate evaluation

The paper describes annealed importance sampling, or AIS, as an existing approach for settings where direct calculations are intractable. The authors’ concern is that AIS can give optimistic log-likelihood estimates. If the sampling procedure used for estimation misses important regions, the resulting scoring error can favor some trained systems more than others. This matters when a score is used to decide which learning procedure is better. A consistent upward shift would leave an ordering intact. An error that changes across systems can change the ordering itself. Some implicit generators also lack the tractable probability formulation needed to apply the AIS procedure used in the paper.

An earlier line of work by Breuleux and colleagues used generated observations to fit a separate probability estimator. The procedure starts by collecting outputs from the generator. It then turns that collection into a probability function or density and uses that function to score held-out data. Each generated output contributes to the estimate. In the continuous case, the example described by the authors is a Parzen density estimator, which places a Gaussian distribution around each generated observation and averages the resulting densities.

The Gaussian gives nearby points some weight, so an exact match between a test observation and a generated observation is unnecessary. The bandwidth controls the amount of smoothing. For a narrow bandwidth, a generated observation contributes mostly near its location. For a wide bandwidth, observations farther away can affect a test score. Because the amount of smoothing changes the probability assigned to a test point, the paper describes choosing the bandwidth using likelihood on a validation set. This makes the score depend on the smoothing choice as well as on the output collection to which it is applied.

The output-based procedure also inherits the behavior of the chain that supplied the observations. A chain mixes well when it moves through the relevant regions of its distribution frequently enough to make a finite collection representative. A mode, in the sense used in the paper, is a region where the distribution concentrates probability. A chain can produce many observations in one mode and rarely visit another. If test examples lie in poorly represented regions, their estimated likelihoods can be low. The earlier work identified this dependence on mixing, and the authors retain it as part of the interpretation of CSL.

The paper also mentions a non-parametric two-sample test. This approach compares a collection of generated examples with a collection of test examples through a discrepancy that the authors describe in squared-error terms after smoothing. It addresses the question of whether the two collections look as if they came from the same distribution. The authors pursue a likelihood-based evaluation because of its connection to Kullback–Leibler divergence, a measure of discrepancy between probability distributions. In this setting, the log probability assigned to held-out data is the quantity they want to estimate. The methodological question is whether the generator can supply more information for that estimate than its finished outputs alone provide.

The method, step by step

Using the distribution associated with a hidden state

Suppose the generator has reached a particular hidden state and is about to draw a visible observation. The same state may be compatible with several possible outputs. The actual draw selects one of them. If the distribution of that draw can be evaluated, the experimenter can also ask directly how much probability it assigns to any given test image. That calculation uses the generator’s full prediction from the state for the specific image being scored.

CSL repeats the calculation for a collection of hidden states. States that make the image plausible contribute more to the average. States that make the image unlikely contribute less. A test example is scored against the collection as a whole because its marginal probability depends on all the ways the generator could have arrived at its output. The original CSL uses the same collection of hidden states to score the entire test set. A state that contributes little to the score of one image might give substantial probability to another.

The assumption is that the Markov chain alternates between latent and observed variables and that the conditional distribution of the observation given the latent state is computable. In a Gibbs sampler, an update draws variables from their conditional distribution given the others. Block Gibbs sampling updates a group of variables together. The paper uses such sampling for the restricted Boltzmann machine and for its deeper Boltzmann and belief-network examples. A denoising autoencoder or a generative stochastic network instead supplies a sampling procedure through its own updates. The requirement for scoring is the same in either case. The procedure must expose a hidden state and a way to evaluate the observation conditional on it.

How conservative sampling-based log-likelihood scores held-out data

The steps in order.

How conservative sampling-based log-likelihood scores held-out dataStep 1: Run the generator’s Markov chain1. Run the generator’s Markov chainStep 2: Collect latent states from the chain2. Collect latent states from the chainStep 3: Evaluate each test example given each state3. Evaluate each test example given each stateStep 4: Average the conditional probabilities for each example4. Average the conditional probabilities for each exampleStep 5: Take the logarithm of each average5. Take the logarithm of each averageStep 6: Average the resulting scores over the test set6. Average the resulting scores over the test set

The location of the logarithm matters. The method first asks how much probability the collection of hidden states gives an image in aggregate. It then transforms that estimated probability to a log score. Averaging the log scores from the individual states would give a different quantity. In particular, a state under which an image is very unlikely can have a large effect on the average of the logarithms even when other states readily account for the image. The marginal probability is a mixture, and combining its components on the probability scale preserves that interpretation.

The same ordering explains why the outer average over test examples comes last. Each example first gets its own marginal probability estimate. Each of those estimates is then converted to a log score, and the scores receive equal weight in the reported test average. This makes the resulting quantity comparable to an average of exact test log-likelihoods when those exact values are available. It also means that an example assigned very small probability can contribute a strongly negative score even if the other examples are well covered.

From smoothing outputs to averaging conditional probabilities

For continuous observations, the paper writes the earlier Parzen estimator as an average of Gaussian densities.

f̂(x) = mean_{x′ ∈ S} 𝒩(x; μ = x′, σI)

Here f̂(x) is the estimated density at the observation x. In this formula, S is the collection of generated visible observations, and x′ ∈ S denotes a generated observation in that collection. mean gives the components equal weight. 𝒩 is a Gaussian density evaluated at x, with its center μ set to the generated observation x′. The expression σI is the covariance as written in the paper, where σ is the bandwidth parameter and I is the identity matrix. The bandwidth is selected separately, for instance through validation likelihood.

The Parzen procedure builds its components around realized observations. If the generator has a Gaussian output distribution for a given hidden state, a visible draw can fall away from that conditional distribution’s center. The location of the Parzen component reflects that random displacement. CSL can use the Gaussian that the generator already defines for the hidden state, centered at its conditional mean and spread according to its own dispersion. This uses information about the possible visible draws before any particular draw has been selected.

The difference matters even when two generated images appear similar. In the Parzen estimator, similarity between the generated observation and test observation is evaluated using the fitted kernel. In CSL, the estimated contribution comes from the generator’s own conditional probability or density. The conditional can assign a test image substantial weight even if a particular generated observation lies some distance away. Conversely, a kernel placed around an output may spread weight according to the validation bandwidth even where the generator’s own conditional would put little. The CSL average therefore has a direct interpretation as an approximation to the generator’s marginal.

The paper attributes a reduction in variance to replacing random visible draws with their conditional distributions. Holding a hidden state fixed, a visible draw provides only one realization of what that state could produce. The conditional describes the distribution of those realizations and already integrates over that part of the random process. The mixture still depends on the hidden states the chain happens to visit. The variance benefit concerns the information obtained from a given state, and the quality of the collection remains governed by how those states were sampled.

The target and its estimate

The target is the probability of the visible observation under the stationary distribution of the generating chain. In the integral notation used by the paper, it is written as follows.

f(x) = ∫ P(h′) P(x | h′) dh′

Here f(x) is the marginal density or probability at the observed value x. The variable h′ ranges over possible hidden states, P(h′) is their stationary density or probability, and P(x | h′) is the conditional density or probability of x given that state. The integral ∫ and differential dh′ denote integration over the hidden variable. For discrete hidden states, the corresponding operation is a sum over their possible values. The expression weights the conditional contribution of a hidden state by how common that state is under the stationary distribution.

The evaluator need not calculate the stationary weight of each hidden state explicitly. When a sample represents the stationary distribution, states are encountered with the frequencies needed for the marginal. The sample mean can then stand in for the integral. This is a Monte Carlo estimate, meaning that sampled values are used to approximate an average that would be hard to compute directly. In the CSL formula the quantity averaged is the conditional probability evaluated at the test observation.

log f̂ₛ(x) = log(mean_{h′ ∈ S} P(x | h′))

Here f̂ₛ(x) is the marginal estimate at x obtained from the collection S, now a collection of hidden states. The subscript ₛ indicates its dependence on that particular collection. The index h′ ∈ S ranges over its sampled states, P(x | h′) is the generator’s conditional evaluation at the test observation, and mean divides the sum of those evaluations by the sample count. The function log is the logarithm, applied to the completed sample mean.

The algorithm implements this expression by accumulating the conditional values for each test observation and dividing by the size of the latent collection. It then adds that observation’s log score to a running total. When all test observations have been scored, it normalizes the total by the number of observations.

LL / |X| = (∑_{x ∈ X} log f̂ₛ(x)) / |X|

Here X is the test set, x ∈ X ranges over its observations, and |X| is its size. The summation sign ∑ adds the individual log scores. The running total is LL, and f̂ₛ(x) is the estimate built from the shared latent collection S. The returned value LL / |X| is the average test log-likelihood estimate. Each image is evaluated on the same distribution estimate, even though different latent states may make most of the contribution to different images.

This procedure is an evaluation of a trained generator. The substantive probabilities used to score the test set are already determined by its conditional distribution and sampling dynamics. There is no Parzen bandwidth to choose using the test data. The experimental sample count and the interval between retained states affect which latent values are available to the evaluator. They determine the quality and expense of the approximation to that fixed target.

Why the estimate is conservative in expectation

The finite-sample argument starts on the probability scale. If each retained state has the stationary marginal distribution, the average of the conditional probabilities has expectation equal to the target marginal. This step uses linearity of expectation. Dependence between states in the collection is compatible with the argument because the expectation of their average depends on the individual expectations. Dependence still matters for how far a realized average can fluctuate from its expectation.

The logarithm is concave. To see the relevance, consider estimates that sometimes fall above the target probability and sometimes below it. On the log scale, the penalty from a downward departure can outweigh the gain from an upward departure of the same size on the original scale. Jensen’s inequality states the relationship between the average log score and the log of the average probability.

Eₛ[log f̂ₛ(x)] ≤ log(Eₛ[f̂ₛ(x)])

Here Eₛ denotes expectation over repeated draws of the latent collection S. The observation x is fixed, f̂ₛ(x) is its estimated probability or density for the draw S, and log is the logarithm. The inequality ≤ places the average of the log estimates at or below the log of the average estimate. At this step, the inequality applies to the sampling procedure’s own mean for the probability estimate.

The connection to the intended target comes from the distribution of the sampled states. Under stationary sampling, the paper’s argument makes the right-hand side the true log marginal.

log(Eₛ[f̂ₛ(x)]) = log(Eₕ[P(x | H)]) = log f(x)

On the left, Eₛ again takes the expectation over latent collections and f̂ₛ(x) is the marginal estimate from one such collection. In the middle, H is a random hidden state with the stationary distribution, Eₕ averages over that distribution, and P(x | H) is the conditional evaluation given the random state. On the right, f(x) is the true stationary marginal for x, and log takes its logarithm.

Combining these relations yields the paper’s conservative guarantee.

Eₛ[log f̂ₛ(x)] ≤ log f(x)

Here Eₛ averages over sample collections, and log f̂ₛ(x) is the CSL score for the fixed observation x. The value log f(x) is the exact score under the stationary marginal. The inequality concerns an average over repeated latent collections. Averaging the inequality across a fixed test set gives the same kind of guarantee for the mean test score. The experimenter would still see a single realized score from a single collection, which can fall on either side of the exact value.

The role of stationarity is important. For a chain started in a deliberately chosen region and stopped before it can explore, the expected conditional probability can differ from the stationary marginal. Jensen’s inequality still relates the expected log score to the log of that chain procedure’s mean estimate. Identifying this mean with the target requires the stationary sampling premise or an equivalent condition on the expected conditional values. This is precisely the distinction on which the paper’s biased variant turns.

What convergence requires

The paper’s convergence argument considers latent samples taken from chains whose length grows. When their Monte Carlo averages converge to the stationary expectation, the sample mean of the conditional probabilities approaches f(x). For a test observation with positive marginal probability or density, the logarithm is continuous at that value. The log of the estimated marginal then converges to the log of the true marginal.

lim_{|S| → ∞} log f̂ₛ(x) = log f(x)

Here lim denotes the limit, |S| is the number of hidden-state samples in the collection, and the arrow to ∞ means that the sample count grows without bound. The value log f̂ₛ(x) is the score computed from that collection, and log f(x) is the exact log score for the same observation under the stationary marginal. The result also takes the underlying chain length L to grow without bound, so that the sampled states support the stationary averaging used in the proof.

The authors describe this behavior as asymptotic unbiasedness. The proof proceeds by convergence of the Monte Carlo estimate and then of its logarithm. This distinction matters for interpretation. Convergence describes where the estimate goes as the sampling procedure becomes adequate. Convergence of the expected log score also requires control over unusually low estimates. The finite-sample expectation inequality supplies the direction of the bias under stationary sampling but leaves its size to the behavior of the estimator.

The paper connects sampling efficiency to the effective sample size. This is the amount of independent information represented by a collection of potentially correlated draws. If a chain visits states in one region for a long period, many retained states may give similar conditional probabilities for a test image. They still enter the sum separately, but their values give less evidence about the full stationary average than equally many independent draws would. The authors describe the usual Monte Carlo reduction in variance with increasing sample count, qualified by this dependence. The nominal count is available directly from the experiment. Its value as evidence about the marginal depends on the transitions in the chain.

The test-initialized variant

The biased variant changes the source of the hidden states while keeping the probability average and logarithm. For each test image, it initializes a chain at that image and retains consecutive latent states from the early part of the run. In the paper’s notation the collection is Sₓ, with the subscript indicating that the states were generated specifically for the test observation x. Another image gets its own collection. The experiment runs parallel chains for each observation to obtain multiple such trajectories.

The reason for this choice is the risk of missing hidden states relevant to a particular test image. A short sample from a chain running on its own may happen to contain very little support for that image. The estimate can then be small because the collection missed the right region. Starting the chain at the image makes related hidden states available immediately. Using consecutive states keeps the computation concentrated around that starting point while the short trajectory runs.

This changes the interpretation of the average. A stationary hidden-state sample represents how often the generator reaches different regions under its own dynamics. A test-initialized sample gives extra representation to states associated with the image being evaluated. As a consequence, the paper expects biased CSL to produce optimistic log scores and observes that tendency in its comparison. The bias reflects the construction of the collection, and the same computation can be attractive for a comparison if its departures from the target preserve the ordering of systems.

The practical distinction is between spending computation on broad coverage of latent space and spending it on local coverage for each test observation. In original CSL, generating a larger shared collection can improve the estimates for many images. In biased CSL, generating a small collection for each image directs the calculation towards states that are likely to matter for that image. The paper tests whether this local approach retains enough information about comparative likelihood to be useful where an absolute estimate remains expensive.

Experiments and results

The data and trained systems

The empirical study uses binarized MNIST. Pixel values were thresholded at 0.5, so the visible observations evaluated by CSL are binary images. The architectures in the paper’s main comparison all have 784 inputs. The reported scores are test-set average log-likelihood estimates under the learned distributions. Higher values, including less negative values, indicate greater likelihood on this metric. Comparisons between estimates also depend on how each estimate was obtained.

The two generative stochastic network configurations illustrate different training setups. GSN-1 is a denoising autoencoder with a hidden layer of 2000 units using the hyperbolic tangent, or tanh, activation. Its inputs receive salt-and-pepper noise at 0.28, a corruption that replaces input values with extremes, and its hidden layer receives no noise. It uses 9-step walkback training, in which training follows a sequence of sampling transitions, with a learning rate of 0.05. Its objective is cross-entropy, and the paper lists 200 training epochs. An epoch is a pass through the training data. Generated images were inspected visually for early stopping.

GSN-2 has successive tanh layers of 1500 units each. It uses input salt-and-pepper noise at 0.4 and adds white Gaussian noise to its later hidden layer, with a standard deviation of 2.0. The first hidden layer receives no noise. Its learning rate is 0.1, its objective is cross-entropy, and the paper lists 300 epochs. The authors again used visual inspection of generated samples for early stopping. The changes in layer count, noise and training settings make these complete configurations instead of a comparison that isolates a particular architectural choice.

The deep belief network designated DBN-2 has sigmoid layers of 4000 and 1000 units. The paper describes training its first layer as a restricted Boltzmann machine using an earlier procedure and its next layer as an RBM with PCD-9. PCD stands for persistent contrastive divergence, which uses sampling chains maintained across training updates. The deep Boltzmann machine, DBM-2, has sigmoid layers of 500 and 1000 units and follows the cited deep Boltzmann machine training procedure. The full-size RBM has a single hidden layer of 4000 sigmoid units. Its training procedure uses an enhanced gradient, an adaptive learning rate and parallel tempering. The block Gibbs sampling used to collect states for CSL is an evaluation choice, separate from the sampling procedures involved in training.

Increasing the latent sample budget

For each system in the main comparison, the authors retained every 100-th sample from its generating chain. The collection size ranged from 10,000 to 150,000 latent states. The networks with their own generative updates supplied samples through those updates. The Boltzmann machines and the deep belief network used block Gibbs sampling for evaluation. The experiment asks how the CSL estimate responds to a larger collection under these particular procedures.

At the 10k budget, the MNIST test estimates for GSN-1 and GSN-2 were -142 and -108, respectively. At 50k, their scores were -126 and -101. The 100k estimates were -120 and -98. The increasing scores indicate that the larger collections assigned greater average log probability to the test images in this experiment. GSN-2 had the higher estimate at each reported budget. The paper gives no AIS comparison for either configuration, so the sample-budget pattern is the empirical evidence about convergence available for these systems.

DBN-2 moved from a test CSL estimate of -446 at 10k to -370 at 50k and -340 at 100k. DBM-2 went from -173 to -144 and then -135 at the same respective budgets. The RBM scored -233 at 10k, -192 at 50k and -177 at 100k. These results show that increasing the number of retained states can make quite a difference even though the trained parameters and test observations are fixed. They also show why a single sample budget can give an incomplete picture of a sampler’s ability to support likelihood estimation.

Binarized MNIST test log-likelihood estimates at 150k latent samples

The deeper generative stochastic network has the highest CSL estimate at the largest reported sample budget.

Binarized MNIST test log-likelihood estimates at 150k latent samplesGSN-1: -117GSN-1-117GSN-2 (this paper): -97GSN-2 (this paper)-97DBN-2: -325DBN-2-325DBM-2: -132DBM-2-132RBM: -170RBM-170
The numbers
System or settingMean test log-likelihood
GSN-1-117
GSN-2 (this paper)-97
DBN-2-325
DBM-2-132
RBM-170

For the systems with external comparison values, the paper lists an AIS-based estimate or bound of -57 for DBN-2, -76.5 for DBM-2 and -64.1 for the RBM on the MNIST test set. The largest-budget CSL estimates are lower in each case. The DBN-2 results particularly illustrate the difference between a score obtained using the available chain samples and a target suggested by AIS. DBN-2 has the highest AIS-based value among these systems and the lowest original CSL value in the main comparison. Its standing changes with the evaluation procedure.

For the authors, this divergence is evidence that a long collection of Gibbs samples can still represent a sharply concentrated learned distribution poorly. The conditional probability calculation supplies information about each sampled state, but it cannot directly supply the contributions of latent regions absent from the collection. The AIS comparison puts the size of the CSL shortfall in context for these systems. Its role is that of an approximate reference. The experiment that follows uses an exact reference to separate the question of estimator accuracy from uncertainty in AIS.

Checking CSL against exact likelihood

The authors trained a small RBM with 5 hidden units on MNIST. With that restricted hidden layer they could calculate the exact log-likelihood. This changes what can be learned from the comparison. When an estimate differs from the exact value, the difference is estimation error for that fitted distribution. With the larger systems, the AIS estimate or bound leaves more uncertainty about the exact quantity.

Binarized MNIST test log-likelihood for the small RBM

Larger CSL collections bring the estimate close to the exact reference.

Binarized MNIST test log-likelihood for the small RBMCSL with 1k samples: -188.49CSL with 1k samples-188.49CSL with 2k samples: -186.18CSL with 2k samples-186.18CSL with 5k samples: -182.26CSL with 5k samples-182.26CSL with 10k samples: -181.58CSL with 10k samples-181.58CSL with 20k samples (this paper): -180.65CSL with 20k samples (this paper)-180.65CSL with 30k samples: -180.71CSL with 30k samples-180.71Exact: -180.24Exact-180.24AIS: -180.22AIS-180.22
The numbers
System or settingMean test log-likelihood
CSL with 1k samples-188.49
CSL with 2k samples-186.18
CSL with 5k samples-182.26
CSL with 10k samples-181.58
CSL with 20k samples (this paper)-180.65
CSL with 30k samples-180.71
Exact-180.24
AIS-180.22

Every row concerns the same small RBM and the same test metric. The rows vary in how the score is calculated. The largest budgets get close to the exact value, and 20k gives the closest reported CSL result. The 30k estimate is slightly lower than the 20k estimate. A larger collection can reduce typical error while a particular experiment moves in either direction. The exact score also makes the direction of the AIS error visible in this case. Its estimate is slightly above the exact value, while the reported CSL values are below it.

The small RBM thus supplies a direct check on the estimator where the true score is accessible. The fitted distribution is held fixed as the sampling budget changes. The result is informative about how CSL behaves when the hidden-state collection adequately represents the example system. It is the large-system comparison that shows how much harder it can be to reach a similar level of agreement when using the tested Gibbs chains.

Comparing the short, test-initialized chains

The biased-CSL figure compares 12 RBMs with different numbers of latent variables. It places the biased estimates alongside AIS estimates and includes exact log probabilities for the small systems where those are tractable. Each short-chain setting uses 10 parallel Gibbs chains per test sample. The authors report a single-step setting and a longer setting. The paper gives inconsistent lengths for that longer setting, with 30 steps in the discussion and 300 steps in the figure caption.

Both biased settings gave scores that the authors describe as closely tracking the exact or AIS-based comparisons. The scores tended to overestimate the log probabilities of test observations. In spite of that upward shift, the reported ordering agreed with the reference ordering across the tested RBMs. This is the result relevant to the authors’ proposed use of biased CSL. A score can misstate absolute likelihood while still identifying which of the tested systems gives higher likelihood.

The figure supplies a visual comparison of the curves and the paper discusses their ordering. The absolute values and the strength of the correlation are described qualitatively there. The evidence is consequently different from the exact reference and sample-count table for original CSL. It concerns comparative behavior across a family of trained systems under the short-chain procedure. The paper identifies this as a reason to investigate biased CSL for generators for which no AIS comparison is readily available.

What the ablations show

Sample count and mixing affect different parts of the estimate

The paper reports sample-budget and chain-length comparisons, along with checks against alternative likelihood calculations. It does not report a matched ablation that swaps the conditional averaging in CSL for output-based Parzen smoothing while holding the trained generator and sample collection fixed. Thus the results separate some determinants of estimate quality directly and leave the conditional estimator’s variance advantage primarily to the method’s statistical argument.

The latent-budget experiment changes the amount of evidence about a fixed fitted distribution. The original CSL computation remains the same for each budget. If more states from a generator continue to improve its score, the smaller collection had missed or underrepresented states that were useful on the test set, or gave them too little weight relative to other states. The main comparison shows this budget dependence across the reported systems. Its practical consequence is that a low score at a particular budget has an ambiguous cause. The learned distribution may assign low probability to test observations, the chain may poorly represent the distribution, or both may contribute.

The use of a common retention interval gives the experiment a consistent way to count samples. It also helps expose why equal counts need not mean equal effective sample sizes. A chain that remains in one region can supply many retained states that resemble each other in their conditional probabilities. A chain covering a broader collection of relevant regions can provide a better estimate with the same count. The gap to the AIS comparison for the larger Gibbs-sampled systems is consistent with the first behavior. The experiment leaves the effective sample size itself unmeasured.

The authors explain the difficulty in terms of sharper fitted distributions. If major modes are separated by regions of very small probability, conditional Gibbs updates may spend a long time near a mode before moving elsewhere. A less sharply concentrated distribution can allow faster movement among its regions. Earlier observations cited in the paper link this behavior to how well the systems have been trained. The results here compare different fitted systems and their available evaluation scores. They illustrate the proposed explanation without a controlled experiment that changes distribution sharpness alone or tracks it at successive checkpoints of the same run.

What the exact comparison isolates

The small RBM comparison holds the object of evaluation fixed and changes how its score is obtained. This isolates the accuracy of the estimate more cleanly than contrasting CSL values across architectures. The exact result anchors the comparison, so agreement between CSL and AIS can be interpreted in light of a known target. Their agreement near the largest sample counts is supported by both being close to that reference.

This comparison also demonstrates the distinction between a finite-run result and a property of the estimator. The small decline at the last sample budget is compatible with a method whose estimates converge. Adjacent budgets involve finite collections and can yield different realized averages. The bound in expectation concerns hypothetical repetitions of each sampling procedure. Neither the shape of the budget curve nor the fact that all the reported CSL scores for this system are below the target establishes a guarantee for every realization.

The exact check and the large-system comparison answer complementary questions about reliability. The former shows that CSL can approach a known likelihood on a trained system where the experiment is tractable. The latter shows that there are regimes in which a substantial collection from the tested generator still gives a score far below the comparison value. The hidden layer in the exact experiment is much smaller than in the full-size RBM. The paper does not identify how much of the difference in behavior comes from any specific property of the distributions, their training procedures or their chain dynamics.

Test initialization and budget for local exploration

Biased CSL asks a different question about where the evaluation effort goes. The original estimator relies on a shared collection to give each test image a fair representation of the stationary mixture. The biased experiment deliberately starts near each image and checks whether very short trajectories still give the right comparative signal. Its two settings vary the length of those trajectories with the parallel chain count held fixed. The reported agreement in ranking includes the single-step setting. This shows that prolonged exploration was unnecessary for the ordering observed within the tested family.

The shift toward optimistic scores also follows the proposed explanation. Early hidden states are closely tied to the starting image, so they can give it more conditional probability than representative stationary states would on average. The experiment observes the expected direction of the bias while the relative order remains useful. These are two different aspects of the result. The direction of a scoring error alone says little about whether it changes rankings, since a large error on one system and a small error on another can still reverse a comparison.

The biased-CSL comparison varies chain length within the test-initialized procedure. It provides no matched comparison in which equally short chains start from independent, stationary states for each image. Consequently the paper’s argument for the role of initialization comes from the construction of the method and the observed optimism, together with the ranking result. The experiment establishes that this whole procedure can work on the selected RBMs. It leaves open how much each ingredient contributes or whether the same rank agreement holds for systems with different kinds of hidden variables and transition dynamics.

Limitations

Limits identified by the authors

CSL requires a generator that exposes a usable conditional distribution for the observation given its latent state. A chain that only emits finished outputs may support the earlier sample-based density estimator, but CSL needs the probability information available at an intermediate state. The method avoids a direct calculation of the full marginal and its normalization where that calculation is intractable. It does so by using the model’s own local probabilities and samples of hidden states. Access to samples alone gives only one of those inputs.

The authors emphasize that CSL reflects the sampling procedure as well as the fitted distribution. This matters for those comparing trained systems by their underlying likelihood. A poor score may arise because the generator’s distribution fits the test data poorly or because its chain omits important regions on the available budget. It also matters for those who intend to run the same chain to generate examples. In that case the sampling behavior is itself part of what they will experience. The CSL score can reflect it, while the relative contributions of distribution quality and sampling quality remain unresolved by the single score.

The distinction between the original and biased procedures limits the claims available for the latter. Test initialization deliberately gives greater weight to nearby hidden states, and the authors report overestimation. The conservative expectation result belongs to sampling with the correct mean on the probability scale. The evidence for the biased variant is a successful comparison within the experiment, rather than a proof that the bias will preserve test likelihood rankings. The authors leave more thorough evaluation of the variant on implicit generators to future work, especially on denoising autoencoders and generative stochastic networks, where a sampling-based comparison could be particularly valuable.

AIS is also an imperfect basis for assessing accuracy. The authors introduce it with a warning about optimistic likelihood estimates and report AIS estimates or bounds for some of the larger systems. A disagreement with AIS demonstrates disagreement between the procedures. Its interpretation as a shortfall from true likelihood is strongest where that likelihood is known or the reference is otherwise well established. The tractable RBM supplies the direct exact comparison in the paper. Its result cannot by itself determine the accuracy of AIS or CSL for the larger systems.

Limits of the guarantees and comparisons

The word “conservative” refers to an expectation over sampled collections. An evaluation based on one collection does not attach a confidence statement to the resulting number. Its score can be above the true value even while the expected score is below it. When scores for systems have different biases, a higher conservative estimate can also come from a system with a lower true likelihood. A loose lower bound conveys less about the ranking than a tight one. The contrast between the CSL and AIS ordering in the large-system study makes this issue concrete.

The stationarity assumption affects the guarantee as well as convergence. A finite chain that begins far from its stationary distribution may have hidden-state marginals shaped by initialization. In such a case, the expectation of the probability estimate may differ from the quantity in the proof. Keeping samples separated in time can reduce dependence in favorable conditions, but spacing by itself says little about whether the chain has traveled among important modes. The paper illustrates the practical impact of poor mixing without measuring how far the experimental state collections are from stationarity.

The convergence argument shows how an accurate stationary Monte Carlo average yields an accurate log estimate. Its force depends on the premise that the chain supports that averaging. Increasing a nominal count can leave an experiment far from the limiting regime if the chain repeatedly visits the same region. The paper gives sample-budget comparisons and a qualitative account of effective sample size. It provides no empirical rule for deciding when the score of a given system is close enough to its asymptote to rank it confidently against another system.

The scope of the empirical results is also narrower than the range of motivating applications. The reported test data are binarized MNIST. The continuous Gaussian example explains the relationship between CSL and Parzen smoothing, but the experiments do not measure that comparison on continuous data. The trained architectures cover multiple families, while evidence for biased-CSL rank agreement comes specifically from the RBM series. The good performance of that procedure on the series does not resolve whether the same strategy works when the relevant conditionals and chain dynamics differ.

The paper motivates test log-likelihood estimation partly through decisions during training. In the reported GSN setups, early stopping uses visual inspection of generated samples. The experiments score fitted systems and vary evaluation settings. They do not compare checkpoints selected by CSL with checkpoints chosen by another stopping criterion. The paper therefore offers a rationale for monitoring training this way, along with information about the cost and mixing behavior such a use would encounter. It supplies no measured early-stopping outcome.

Finally, the biased-CSL figure presents a qualitative correlation and ordering result. The paper gives conflicting lengths for its longer short-chain setting, which prevents a definite reading of the exact evaluation budget for that curve. The shared account is that an especially short setting already showed good agreement in the tested ranking. A reader can take that as evidence for the feasibility of local scoring under the studied conditions, while treating the cost and reliability of transferring the procedure as open empirical questions.

What came after

The paper ends with an open question about applying CSL to generators defined by their transitions. The biased estimator showed rank agreement on restricted Boltzmann machines, where exact calculations for small systems and AIS estimates for others gave the authors references to compare with. The proposed next investigation was whether short, test-initialized chains would preserve a useful ordering for denoising autoencoders and generative stochastic networks, where those references were unavailable in the experiments. There is no later citing study to discuss here.

Cite

Cite as Yoshua Bengio, Li Yao and Kyunghyun Cho. 2013. Bounding the Test Log-Likelihood of Generative Models. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1311.6184 · arXiv 1311.6184

@misc{bengio2013bounding,
  title = {{Bounding the Test Log-Likelihood of Generative Models}},
  author = {Yoshua Bengio, Li Yao and Kyunghyun Cho},
  year = {2013},
  doi = {10.48550/arxiv.1311.6184},
  eprint = {1311.6184},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1311.6184}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bengio-2013-bounding-test-log-likelihood-generative/