Using Inherent Structures to design Lean 2-layer RBMs

Abhishek Bansal, Abhinav Anand, Chiranjib Bhattacharyya

The Dark Art of Network Architecture

Historically, designing the architecture of Deep Boltzmann Machines (DBMs)—deciding how many layers to use and how many hidden units to put in each—has been a dark art driven by trial and error. While we know theoretically that a single-layer Restricted Boltzmann Machine (RBM) is a "universal approximator" capable of representing any distribution, doing so requires an exponentially massive number of hidden units.

This paper tackles the lack of theoretical metrics for comparing different DBM architectures. The authors ask a fundamental question: Is there a principled way to measure the representational power of a network? And using that measure, can we prove that a "lean" multi-layer network (where hidden units scale linearly with visible units) is more parameter-efficient than a wide single-layer network?

To answer this, the authors introduce Inherent Structure Capacity (ISC), a novel metric inspired by statistical mechanics, to quantify the representational power of RBMs. They mathematically prove that the capacity of a single-layer RBM strictly saturates as it gets wider, but adding a second layer allows "lean" DBMs to achieve the same representational power using an order of magnitude fewer parameters.

Methods: Borrowing from Statistical Mechanics

To solve the capacity measurement problem, the authors borrow the Inherent Structures (IS) formalism, a concept originally developed in 1982 to study the complex energy landscapes of spin glasses in statistical mechanics.

  1. Inherent Structure Capacity (ISC): They define ISC as a measure of the expected number of "modes" (peaks in the probability distribution) an RBM can represent, assuming its weights are drawn from a standard Gaussian prior.
  2. One-Flip Stable States: They establish a mathematical equivalence between "perfectly reconstructible" vectors in an RBM and "one-flip stable states" (local minima in the energy landscape).
  3. Bounding Capacity: Because calculating the exact ISC is computationally intractable, they derive rigorous mathematical upper and lower bounds for the expected number of these stable states for both 1-layer and 2-layer RBMs.

This approach is a significant departure from standard empirical tuning, offering a first-principles method to calculate how many modes a specific architecture can memorize.

Key Insights and Ideas

  • Single Layers Hit a Hard Wall: The most surprising finding is that the ISC of a single-layer RBM saturates at a hard limit (0.585) as the number of hidden units approaches infinity. Practically, once a single hidden layer has about 20 times the number of visible units ($m \ge 20n$), adding more units does almost nothing to help the network capture highly multimodal distributions.
  • The Mathematical Necessity of Depth: Because single layers saturate, the only way to increase the network's capacity to memorize more modes is to add a second layer. This provides a rigorous, quantitative justification for why deep networks are necessary.
  • Lean is Mean: A two-layer RBM with $O(n)$ hidden units per layer (a "lean" network) and $\Theta(n^2)$ parameters can achieve the exact same representational capacity as a single-layer RBM with infinitely many hidden units.
  • Formula-Driven Architecture: If you have a strict computational budget (e.g., you can only afford $C$ parameters), the authors' ISC corollaries provide an exact formula for how to split your hidden units between the first and second layers to maximize the network's capacity.

Key Results

The authors validated their theoretical bounds using both synthetic datasets and the classic MNIST handwritten digit dataset.

Empirical Validation of Bounds In brute-force simulations of small networks (up to $n=15$ visible units), the theoretical bounds on the expected number of modes closely matched the actual enumerated modes, confirming the math works in practice.

Theoretical bounds closely match the actual enumerated modes for small networks (n=15).

Smarter MNIST Architectures The standard, empirically tuned 2-layer DBM for MNIST uses a 784x500x1000 architecture (~894k parameters) and achieves a log-likelihood of -84.62. Using their ISC formula under the same parameter budget, the authors recommended a 784x945x161 architecture. This mathematically derived network achieved a slightly better log-likelihood of -84.29 without requiring tedious trial-and-error tuning.

Parameter Efficiency On synthetic data, lean 2-layer DBMs consistently matched or outperformed wide single-layer RBMs in test set log-likelihood while using significantly fewer parameters.

Lean 2-layer DBMs consistently outperform wide single-layer RBMs in log-likelihood.

Limitations and Future Work

While a strong theoretical step forward, the paper has a few limitations:

  • Zero-Bias Assumption: To keep the complex statistical mechanics math tractable, the primary theoretical derivations assume the network biases are zero. The authors note this can be extended to non-zero biases, but it adds complexity.
  • Computational Limits on Validation: Because counting every possible mode in a distribution scales exponentially ($2^n$), the authors could only exhaustively verify their theoretical bounds on very small networks.
  • Joint vs. Marginal Modes: For networks with 2 or more layers, the authors make a mild, unproven assumption that the modes of the joint distribution are the same as the modes of the marginal distribution.

Ultimately, this paper naturally opens the door to extending the Inherent Structures formalism to networks with more than two layers, or applying these capacity bounds to other types of modern generative models.

Summary updated

BibTeX
@inproceedings{bansal2018using,
  author = {Abhishek Bansal and Abhinav Anand and Chiranjib Bhattacharyya},
  title = {{Using Inherent Structures to design Lean 2-layer RBMs}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=r14Au2bdWS},
}
Figure