[Paper Review] Stopping Criteria in Contrastive Divergence: Alternatives to the Reconstruction Error
This paper proposes two novel stopping criteria for Contrastive Divergence (CD) training in Restricted Boltzmann Machines (RBMs), based on the ratio of probabilities involving visible and hidden unit states. Unlike reconstruction error, which often fails to detect log-likelihood degradation, the better-performing criterion—using inverted hidden units—accurately tracks the true log-likelihood peak with no extra computational cost, outperforming reconstruction error in early stopping and enabling faster, more reliable training convergence.
Restricted Boltzmann Machines (RBMs) are general unsupervised learning devices to ascertain generative models of data distributions. RBMs are often trained using the Contrastive Divergence learning algorithm (CD), an approximation to the gradient of the data log-likelihood. A simple reconstruction error is often used to decide whether the approximation provided by the CD algorithm is good enough, though several authors (Schulz et al., 2010; Fischer & Igel, 2010) have raised doubts concerning the feasibility of this procedure. However, not many alternatives to the reconstruction error have been used in the literature. In this manuscript we investigate simple alternatives to the reconstruction error in order to detect as soon as possible the decrease in the log-likelihood during learning.
Motivation & Objective
- To address the unreliability of reconstruction error as a stopping criterion in CD training of RBMs.
- To develop alternative, computationally efficient metrics that better reflect actual log-likelihood behavior during training.
- To identify a stopping signal that detects the onset of likelihood degradation before it becomes irreversible.
- To evaluate whether probability-based estimators can outperform reconstruction error in detecting optimal training points.
- To assess the robustness and generalization of the proposed criteria across different CD variants and learning settings.
Proposed method
- Proposes two estimators based on the ratio of two probabilities: P(visible=1 | hidden=1) and P(visible=1 | hidden=0).
- Uses the ratio of these probabilities as a proxy for log-likelihood changes, avoiding computation of the partition function.
- Applies the estimators during CD training to monitor model quality in real time without additional sampling.
- Employs Gibbs sampling to estimate the required probabilities efficiently during each training step.
- Compares the performance of the estimators against reconstruction error and log-likelihood on synthetic and benchmark datasets (BS and LSE problems).
- Uses CD1 and CD10 to evaluate generalization across different Markov chain mixing times.
Experimental results
Research questions
- RQ1Can probability-based estimators detect the peak of the log-likelihood during RBM training more reliably than reconstruction error?
- RQ2Does replacing hidden units with their complement (1-h) improve the sensitivity of the stopping criterion to actual likelihood changes?
- RQ3How do the proposed estimators perform under different CD approximations (e.g., CD1 vs. CD10)?
- RQ4Can the new criteria prevent overfitting or divergence by stopping earlier than reconstruction error?
- RQ5Is the proposed method computationally feasible and scalable compared to existing alternatives like AIS?
Key findings
- The proposed estimator using inverted hidden units (1-h) consistently detects the log-likelihood peak earlier and more accurately than reconstruction error across multiple experiments.
- Reconstruction error consistently stabilizes to a plateau that bears little relation to the true log-likelihood behavior, making it a poor stopping signal.
- The better-performing estimator (ii) shows robustness across different learning rates and weight decay values, maintaining sensitivity to likelihood changes.
- For CD10, both proposed estimators and reconstruction error fail to detect the likelihood peak, suggesting limitations in long-chain sampling for this metric.
- The proposed method enables earlier stopping without sacrificing model quality, yielding results comparable to standard CDn training with moderate n.
- Visual samples generated from an RBM stopped using the new criterion closely resemble the training data, confirming model fidelity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.