How do contrastive divergence and maximum likelihood estimation relate when training Boltzmann machines?

Quick Overview

Asks how contrastive divergence relates to maximum likelihood training of energy-based generative models such as restricted Boltzmann machines. Tests the log-likelihood gradient, the role of the partition function, block Gibbs sampling, the bias of CD-k, and persistent CD.

How do contrastive divergence and maximum likelihood estimation relate when training Boltzmann machines?

Role: Data Scientist

Category: Statistics & Math

Difficulty: hard

Interview Round: Other

How do contrastive divergence and maximum likelihood estimation relate to training generative models, and how are these techniques applied in models like Boltzmann machines? ```hint Write the gradient Write the log-likelihood of an energy-based model, normalizing constant included, and differentiate it. Which of the resulting terms is hard to compute? ``` ```hint Where the chain starts MCMC is expensive because the chain has to reach the model's distribution before its samples are useful. Think about what changes if the chain does not start from a random state. ``` ```hint Model structure Look at which conditional distributions factorize in a restricted Boltzmann machine and what that does to the cost of one sampling step. ``` ### What a Strong Answer Covers - How maximum likelihood applies to an energy-based model and where the partition function enters the gradient. - The positive and negative phases of the Boltzmann machine gradient, and why the negative phase is the expensive one. - How CD-k approximates the negative phase, and where its bias comes from. - Why the bipartite structure of an RBM makes CD practical, and how persistent CD changes the estimate. - What cannot be measured directly during training because the partition function is unknown, and other ways to fit such models. ### Follow-up Questions - How would you monitor RBM training when you cannot compute the log-likelihood? - Why does persistent CD need a smaller learning rate than CD-1 to work well? - How does training change for a general Boltzmann machine with connections inside the hidden layer? - How do noise-contrastive estimation and score matching avoid the partition function, and how do they compare with CD?

Overview: Asks how contrastive divergence relates to maximum likelihood training of energy-based generative models such as restricted Boltzmann machines. Tests the log-likelihood gradient, the role of the partition function, block Gibbs sampling, the bias of CD-k, and persistent CD.

General logo
General
Nov 24, 2026
hardData ScientistOtherStatistics & Math
0
0

How do contrastive divergence and maximum likelihood estimation relate to training generative models, and how are these techniques applied in models like Boltzmann machines?

What a Strong Answer Covers Guidance

  • How maximum likelihood applies to an energy-based model and where the partition function enters the gradient.
  • The positive and negative phases of the Boltzmann machine gradient, and why the negative phase is the expensive one.
  • How CD-k approximates the negative phase, and where its bias comes from.
  • Why the bipartite structure of an RBM makes CD practical, and how persistent CD changes the estimate.
  • What cannot be measured directly during training because the partition function is unknown, and other ways to fit such models.

Follow-up Questions Guidance

  • How would you monitor RBM training when you cannot compute the log-likelihood?
  • Why does persistent CD need a smaller learning rate than CD-1 to work well?
  • How does training change for a general Boltzmann machine with connections inside the hidden layer?
  • How do noise-contrastive estimation and score matching avoid the partition function, and how do they compare with CD?