An Infinite Restricted Boltzmann Machine

Marc-Alexandre Côté, Hugo Larochelle · DOI

Introduction

Restricted Boltzmann Machines (RBMs) are foundational undirected graphical models used for unsupervised learning. However, they have a significant practical drawback: the number of hidden units—the "width" of the latent layer—must be specified before training begins.

A standard Restricted Boltzmann Machine (RBM) with a fixed number of hidden units.

Choosing the correct capacity is a notorious hyperparameter headache. Too few units lead to underfitting, while too many result in overfitting or computational waste. Finding the optimal size usually requires exhaustive grid searches. While Bayesian non-parametrics have provided "infinite" versions of directed models like Dirichlet Process Mixtures, RBMs are undirected and less amenable to such treatments. This paper introduces the Infinite Restricted Boltzmann Machine (iRBM), a model that automatically determines its own capacity during training.

Methodology: From Ordered to Infinite

The authors construct the iRBM through a two-step logical progression:

1. The Ordered RBM (oRBM)

The first step is defining a finite RBM where hidden units are sensitive to their position. Unlike standard RBMs, which are permutation invariant, the oRBM introduces an ordering. A random variable $z$ represents the number of "active" hidden units for a given input. Using a unit incurs an incremental energy penalty $\beta_i$, creating a cost for complexity.

2. The Infinite Limit

By selecting the energy penalty $\beta_i$ such that the cost of adding units eventually outweighs the benefit (unless the data strongly demands it), the authors demonstrate that the limit as the number of units $K \to \infty$ is well-defined.

The Infinite RBM (iRBM) architecture, where the number of active hidden units $z$ is determined dynamically from an infinite sequence.

To ensure the infinite sum of probabilities converges, they utilize a geometric series approach. During training, a modified version of Contrastive Divergence (CD) is employed. The algorithm begins with a small set of units and "probes" the infinite space. If the model samples a value for $z$ larger than the current set of trained units, it initializes a new hidden unit and continues. This "hybrid gradient" approach uses exact gradients for active units and sampled gradients for potential units, maintaining computational efficiency.

Key Insights

  • Identifiability: By breaking permutation symmetry, the iRBM becomes more identifiable. This allows for clear visualization of learned features, which typically progress from coarse, general shapes to fine, specific strokes.
  • Adaptive Capacity: The model acts as its own regularizer. The energy penalty $\beta$ forces parsimony, ensuring the model uses only the units necessary to represent the data distribution.

Experimental Results

The iRBM was evaluated on two standard benchmarks: Binarized MNIST and CalTech101 Silhouettes. It achieved performance competitive with manually tuned RBMs:

  • MNIST: The iRBM automatically settled on 1,208 hidden units with an Average Negative Log-Likelihood (NLL) of 85.65. This is comparable to a tuned 2,000-unit RBM (85.03) and outperforms a 500-unit RBM (86.50).
  • CalTech101: The model grew to 915 units with an NLL of 121.47, performing similarly to a tuned 500-unit RBM (119.05).

Qualitatively, the filters learned by the iRBM show a clear hierarchy. Initial units capture global structures (e.g., the general loop of a digit), while subsequent units capture specific nuances and strokes.

Limitations and Future Directions

Despite its successes, the iRBM faces challenges. Gibbs sampling "mixes" more slowly in this architecture because the variable $z$ creates high dependence between states, potentially causing the Markov chain to get "stuck." Additionally, while the model eliminates the "number of units" hyperparameter, it remains sensitive to weight decay and the penalty factor $\beta$. Future work may involve extending this dynamic growth logic to more complex structures, such as tree-structured latent representations.

Summary updated

BibTeX
@article{cote2016infinite,
  author = {Marc-Alexandre Côté and Hugo Larochelle},
  title = {{An Infinite Restricted Boltzmann Machine}},
  journal = {Neural Computation},
  year = {2016},
  doi = {10.1162/neco\_a\_00848},
}
Figure