Contrastive divergence is a stochastic approximation technique for estimating a generative model’s log-likelihood gradient. It makes Boltzmann learning more practical by replacing its computationally expensive basic procedure with a faster approximation. section 8.8.2 section 8.9.1
A contrastive-divergence update follows this pattern:
- Start with a sample from the visible layer. section 8.9.1
- Use Gibbs sampling to update the hidden layer and then the visible layer iteratively. section 8.9.1
- Use the resulting stochastic estimate to adjust weights toward modeling the input-data distribution. section 8.9.1
Layer-wise RBM pretraining
During DBN pretraining, train each RBM independently with contrastive divergence. Earlier layers capture low-level features, while later layers learn increasingly abstract representations without labeled data. section 8.9.1
