Stack RBMs and the tractability of §20.2 is lost — but two famous deep models result.
§20.3 Deep belief networks
A deep belief network deep belief network (dbn) A hybrid generative model: the top two layers form an undirected RBM, all lower layers are directed downward; trained greedily layer-wise. Started the 2006 deep-learning renaissance. defined in ch. 20 — open in glossary (DBN) is a hybrid: the top two layers form an undirected RBM, while every lower pair is directed downward. It is trained greedily, layer by layer — the recipe that launched the 2006 deep-learning renaissance:
11 · Train the first RBM on the data
Train an RBM to maximize E_{v∼data} log p(v) with contrastive divergence or SML. Its weights become the DBN's first (lowest) layer.
DBNs inherit the worst of both worlds: inference is intractable (explaining away in the directed layers and the undirected top pair), and so is the partition function. Its log-likelihood must be estimated with AIS. In practice the trained DBN’s weights were mainly used to initialize an MLP (eqs 20.22–23) for discriminative fine-tuning — a heuristic upward pass that ignores the model’s top-down and lateral interactions. DBNs are now largely historical, but they proved deep architectures could be trained at all.
§20.4 Deep Boltzmann machines
A deep Boltzmann machine deep boltzmann machine (dbm) A fully undirected generative model with several hidden layers (no intra-layer edges); bipartite even/odd structure → two-block Gibbs and proper mean-field inference with top-down feedback. defined in ch. 20 — open in glossary (DBM) is entirely undirected with several hidden layers and no intra-layer edges:
The DBM energy (eq 20.25, three hidden layers)
| hidden–hidden couplings between LAYERS — unlike an RBM, deeper layers interact (but never within a layer) | weight matrices | |
| each layer connects only to its neighbors → the graph is bipartite (odd layers vs even layers), just like a big RBM | bipartite |
Because the layers split into an even group (visible + even hidden) and an odd group, the DBM is bipartite — so conditioning on one group makes the other factorial, and Gibbs sampling needs just two block updates (all even, then all odd), no matter how many layers. The conditionals are the familiar RBM sigmoids, now with input from both neighboring layers (eqs 20.26–28).
§20.4.1 Why the DBM’s harder-looking model is easier to infer in
Counterintuitively, the DBM’s posterior is simpler than the DBN’s, and that simplicity permits a better approximation:
| Aspect | Deep belief network | Deep Boltzmann machine | |
|---|---|---|---|
| Directedness | graph type | hybrid: directed below, undirected top | fully undirected |
| Inference | approximating the posterior | heuristic MLP upward pass | proper mean field (optimized) |
| Top-down feedback | does inference use it? | no (upward MLP only) | yes |
| Training | how it is trained | greedy layer-wise, then MLP fine-tune | variational SML (both hard problems) |
§20.4.2 DBM mean-field inference
The DBM posterior over all hidden layers doesn’t factorize (the inter-layer weights couple them). So we approximate it with a fully factorial mean field mean field The variational approximation with a fully factorial q(h|v) = Πᵢ q(hᵢ|v); each latent is independent given v. defined in ch. 19 — open in glossary :
The mean-field fixed-point updates (eqs 20.29, 20.33–20.34)
| the factorial (mean-field) assumption: every hidden unit independent given v — parametrized by its Bernoulli mean ĥ | factorial Q | |
| bottom-up drive from the layer below (the visibles) | scalar | |
| TOP-DOWN feedback from the layer above — what the DBN's heuristic MLP omits. Iterate ĥ⁽¹⁾, ĥ⁽²⁾ to a fixed point → the optimized posterior | scalar |
Alternating and to a fixed point maximizes the variational bound — the same fixed-point mean field as §19.4.1, now with bidirectional messages. Ten iterations suffice on MNIST for a learning gradient. Replay the competition dynamics that drive it:
High alignment (overlapping weights) makes the two units compete: each inhibits the other, so cyclic updates drive one to 1 and the other to 0 — the mean-field attempt at explaining away. The true posterior is bimodal (either unit could explain v), but a factorial q can only capture one mode. Drop alignment and both stay active.
Next: how a DBM is actually trained — confronting both intractable quantities at once — and how to get it to train at all.
Check yourself — DBNs & DBMs
1.What is the structure of a deep belief network, and how is it trained?
2.Why can a deep Boltzmann machine be Gibbs-sampled in just two block updates regardless of its depth?
3.Counterintuitively, why is inference in a DBM better than in a DBN, despite the DBM looking more complex?
4.In the DBM mean-field update ĥ⁽¹⁾ⱼ = σ(Σᵢ vᵢW⁽¹⁾ᵢⱼ + Σₖ W⁽²⁾ⱼₖ ĥ⁽²⁾ₖ), what does the second sum contribute?
5.Predict the outcome — in MeanFieldLab (the DBM inference engine) you raise the alignment and iterate. What happens, and what does it illustrate about DBM inference?