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

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

28 May 2021NeurIPS 2021 12arXiv:2105.13889archive 2025-07-28

Aurélien Decelle, Cyril Furtlehner, Beatriz Seoane

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. 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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2105.13889")

Code

Syntology Ran 0 of 21 code samples harvested from 1 repository linked to this paper; 21 have no recorded run.

By repository: official repository: 21 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

AurelienDecelle/TorchRBM officialpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

21 samples harvested; 0 ran; 0 honoured the contract we drafted; 21 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

21unverified

Licence: 0 of the 21 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from AurelienDecelle/TorchRBM. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_U AurelienDecelle/TorchRBM/rbm/custom_fn.py official repository unverified MIT (permissive) · b72a6e53e13acc13 · report
compute_energy AurelienDecelle/TorchRBM/rbm/binary/functions.py official repository unverified MIT (permissive) · 988ee22a5cfe4623 · report
compute_gradient AurelienDecelle/TorchRBM/rbm/binary/grad.py official repository unverified MIT (permissive) · 7c0b3558a3e52f2f · report
decode_sequence AurelienDecelle/TorchRBM/rbm/fasta_utils.py official repository unverified MIT (permissive) · e663927a1fd4a268 · report
encode_sequence AurelienDecelle/TorchRBM/rbm/fasta_utils.py official repository unverified MIT (permissive) · 1a53c80144c46b56 · report
get_checkpoints AurelienDecelle/TorchRBM/rbm/train_rbm.py official repository unverified MIT (permissive) · 382f6ab51c407594 · report
get_checkpoints AurelienDecelle/TorchRBM/rbm/utils.py official repository unverified MIT (permissive) · 07cd4647fea9a351 · report
get_correlation_two_points AurelienDecelle/TorchRBM/rbm/potts/analysis.py official repository unverified MIT (permissive) · ca76906ffea7ac52 · report
get_eigenvalues_history AurelienDecelle/TorchRBM/rbm/utils.py official repository unverified MIT (permissive) · e9494c740da5d283 · report
get_freq_single_point AurelienDecelle/TorchRBM/rbm/potts/analysis.py official repository unverified MIT (permissive) · fc6d84a6b04c2cdb · report
get_freq_two_points AurelienDecelle/TorchRBM/rbm/potts/analysis.py official repository unverified MIT (permissive) · 655fe87a7cd34456 · report
get_ortho AurelienDecelle/TorchRBM/rbm/custom_fn.py official repository unverified MIT (permissive) · c051bc08d750fbf0 · report
get_tokens AurelienDecelle/TorchRBM/rbm/fasta_utils.py official repository unverified MIT (permissive) · 7eff798ee21e285c · report
init_chains AurelienDecelle/TorchRBM/rbm/binary/functions.py official repository unverified MIT (permissive) · 62543dbc3abecc1b · report
init_parameters AurelienDecelle/TorchRBM/rbm/binary/functions.py official repository unverified MIT (permissive) · 57a08ed97ab994a1 · report
load_model AurelienDecelle/TorchRBM/rbm/io.py official repository unverified MIT (permissive) · 5119b421a1e356a4 · report
load_params AurelienDecelle/TorchRBM/rbm/io.py official repository unverified MIT (permissive) · 326a513148daf652 · report
one_hot AurelienDecelle/TorchRBM/rbm/custom_fn.py official repository unverified MIT (permissive) · f2786712ec765b2c · report
sample_hiddens AurelienDecelle/TorchRBM/rbm/binary/sampling.py official repository unverified MIT (permissive) · cc2b7a54dbdbf7fd · report
sample_state AurelienDecelle/TorchRBM/rbm/binary/sampling.py official repository unverified MIT (permissive) · 14fbad21f76df895 · report
sample_visibles AurelienDecelle/TorchRBM/rbm/binary/sampling.py official repository unverified MIT (permissive) · f328caf2bd83dfaa · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections