Introduction
Training energy-based models, such as Boltzmann Machines, presents a significant computational challenge. Maximum Likelihood (ML) learning requires calculating the gradient of the log-likelihood, a process involving an average over the model's distribution with an exponential number of terms. Traditionally, Markov Chain Monte Carlo (MCMC) methods were used to approximate this average, but their slow convergence to equilibrium often made them impractical.
In 2002, Geoffrey Hinton introduced Contrastive Divergence (CD) as a more efficient alternative. By running the Markov chain for only a few steps, CD significantly reduces computational overhead. While CD has seen widespread practical success, its theoretical properties—specifically the nature of its bias relative to the true ML solution—have remained poorly understood. This paper investigates the relationship between CD and ML to explain why this "biased" shortcut is so effective.
Methods
The study employs three primary methodologies to analyze CD's behavior:
- Fixed-Point Analysis: The authors utilize the geometry of the probability simplex to determine if the fixed points (stopping points) of the CD algorithm align with those of ML. This geometric approach helps identify where the algorithms converge in the space of possible distributions.
- Exact Numerical Experiments: To isolate algorithmic bias from sampling noise, the researchers studied small-scale models, including Fully Visible and Restricted Boltzmann Machines (RBMs). For these models, exact probability distributions and gradients can be computed, allowing for a precise measurement of CD's inherent bias.
- The CD-ML Hybrid: A hybrid training strategy is proposed where CD is used for rapid initial convergence, followed by a brief period of ML training to eliminate residual bias and fine-tune the model.
Key Insights
- Negligible Bias: While CD is mathematically biased for most real-world data distributions, empirical results show this bias is remarkably small—often accounting for less than 5% of the total modeling error.
- Optima Pairing: In complex models like RBMs with multiple local optima, ML and CD optima tend to appear in pairs. For nearly every ML solution, a corresponding CD solution exists in close proximity.
- Importance of Initialization: The choice of initial weights often has a more significant impact on final model quality than the choice between CD and ML algorithms.
- Efficiency Gains: CD effectively moves the model into the correct region of the solution space almost immediately, leaving expensive MCMC steps only for final refinement.
Key Results
The experiments, conducted on synthetic simplex data and USPS handwritten digit patches, yielded several important findings:
- Performance Parity: For Fully Visible Boltzmann Machines, the KL divergence (error) for CD was nearly indistinguishable from ML across 10,000 different data distributions.
- Speedup: The CD-ML hybrid strategy achieved ML-level accuracy with approximately a 10x speedup in the USPS digit experiments.
- Stability: Although a formal proof of convergence is still lacking, CD converged to a stable fixed point in every experimental trial.
Conclusion
This research demonstrates that while Contrastive Divergence is technically a biased estimator, its practical performance is exceptionally close to Maximum Likelihood learning. By providing a "fast-forward" to the neighborhood of the optimal solution, CD serves as a powerful tool for training energy-based models, especially when combined with a final ML fine-tuning phase. Future work will focus on scaling these exact analyses to larger models and further investigating the convergence properties of the algorithm.
Summary updated