Equilibrium and non-Equilibrium regimes in the learning of Restricted Boltzmann Machines

Aurélien Decelle, Cyril Furtlehner, Beatriz Seoane
5/28/2021
cs.LGcond-mat.dis-nncond-mat.stat-mech

Official code: AurelienDecelle/TorchRBM (8 stars, Jupyter Notebook, MIT, last commit 2024-10-21).

Abstract

Training Restricted Boltzmann Machines (RBMs) has been challenging for a long time due to the difficulty of computing precisely the log-likelihood gradient. Over the past decades, many works have proposed more or less successful training recipes but without studying the crucial quantity of the problem: the mixing time, i.e. the number of Monte Carlo iterations needed to sample new configurations from a model.

Show full abstract

In this work, we show that this mixing time plays a crucial role in the dynamics and stability of the trained model, and that RBMs operate in two well-defined regimes, namely equilibrium and out-of-equilibrium, depending on the interplay between this mixing time of the model and the number of steps, $k$, used to approximate the gradient. We further show empirically that this mixing time increases with the learning, which often implies a transition from one regime to another as soon as $k$ becomes smaller than this time. In particular, we show that using the popular $k$ (persistent) contrastive divergence approaches, with $k$ small, the dynamics of the learned model are extremely slow and often dominated by strong out-of-equilibrium effects. On the contrary, RBMs trained in equilibrium display faster dynamics, and a smooth convergence to dataset-like configurations during the sampling. Finally we discuss how to exploit in practice both regimes depending on the task one aims to fulfill: (i) short $k$ can be used to generate convincing samples in short learning times, (ii) large $k$ (or increasingly large) is needed to learn the correct equilibrium distribution of the RBM. Finally, the existence of these two operational regimes seems to be a general property of energy based models trained via likelihood maximization.

View on arXivView PDF

Code Implementations(1)

MIT

A pytorch implementation of RBM together with some script to run

82Jupyter Notebook, PythonMay 27, 20212 years agoMIT

Similar Papers

Cite this paper

@article{decelle2021equilibrium,
  title  = {Equilibrium and non-Equilibrium regimes in the learning of Restricted Boltzmann Machines},
  author = {Aurélien Decelle and Cyril Furtlehner and Beatriz Seoane},
  year   = {2021},
  eprint = {2105.13889},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.13889}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.13889.svg)](https://codeofpaper.com/paper/2105.13889)

Discussion