Restricted Boltzmann machine
In brief. The RBM is a two-layer network whose hidden layer can be summed analytically, giving the closed form
. Its accuracy is controlled by one integer, the hidden-unit density . Weight sharing over lattice translations makes it a one-layer convolutional network; complex parameters give it a phase. It is the ansatz of the founding paper and still the baseline against which new architectures are measured.
Notation follows the conventions page.
The restricted Boltzmann machine (RBM) is the ansatz with which Carleo and Troyer introduced neural quantum states (arXiv:1606.02318). Two layers, one analytic marginalization, a closed-form log-amplitude, and a parameter count that interpolates between a Jastrow factor and an arbitrarily expressive variational state through
Definition
For
Because the hidden units do not interact with one another, the sum over
The parameters
Log-amplitude form
With the hidden-layer pre-activations
a single-hidden-layer network with input
- Ratios for the local energy and Metropolis. For a configuration
differing from on a set of flipped sites , . Caching the vector makes each ratio cost instead of , so the full Heisenberg local energy on a lattice with bonds costs , the same as one forward pass. - Log-derivatives. The quantities entering the gradient and the SR matrix are elementary:
- Expansion in visible correlations. Expanding
in powers of shows that each hidden unit generates all even-order products of spins weighted by (and odd orders through ). A Jastrow factor is recovered exactly in the limit of small weights with large; an RBM with strictly contains it.
Symmetric RBM
For a translation-invariant Hamiltonian the weights can be tied so that the ansatz is manifestly invariant. The hidden units are grouped into
so that
Each feature is a convolution filter of the full lattice size, and the sum over translations is a global pooling, so the symmetric RBM is a one-layer convolutional network with
Complex parameters and sign structure
An RBM with real parameters is strictly positive, so it can only represent states that are positive in the chosen basis, i.e. stoquastic ground states after a suitable basis rotation. The Marshall sign rule makes the Heisenberg model on a bipartite lattice such a case: rotating the spins on one sublattice by
Everything else needs a phase, which is produced in one of these ways:
- Complex parameters
, the original choice. is holomorphic, the gradient is and without real parts (see optimization). Amplitude and phase share parameters, which couples their optimization. - Two real networks,
and , each an RBM or a different architecture. Decouples the two problems and allows a phase network that outputs a discrete sign; the price is that the phase network is trained through only, which is a weak signal when the sign structure is wrong almost everywhere. - A fixed sign prior times a positive RBM, for example the Marshall sign for the J₁–J₂ model at small
, or a Gutzwiller-projected fermionic sign (Nomura et al., arXiv:1709.06475; Ferrari, Becca, Carrasquilla, arXiv:1906.00463). The network then only corrects the prior.
The sign structure, not the amplitudes, is what limits RBMs on frustrated magnets. Szabó and Castelnovo (arXiv:2002.04613) showed that an RBM supplied with the exact sign structure reaches high accuracy where the same RBM asked to learn the signs stalls; Westerhout et al. (arXiv:1907.08186) showed that the learned sign structure generalizes poorly to configurations not seen during training. The J₁–J₂ model near
What an RBM can represent
- Any state with a polynomial number of nonzero amplitudes, and many with exponentially many: cluster states, graph states, and the toric code ground state have exact RBM representations with
of order one (Deng, Li, Das Sarma, arXiv:1701.04844). - Volume-law entanglement with
hidden units when the weights are long-ranged; short-range RBMs (each hidden unit connected to a local patch) are area-law and are exactly equivalent to a class of string-bond and entangled-plaquette states (Chen et al., arXiv:1701.04831; Glasser et al., arXiv:1710.04045). - Exact representations of a class of models obtained by a deterministic construction rather than optimization, including a deep-Boltzmann-machine form for imaginary-time evolution (Carleo, Nomura, Imada, arXiv:1802.09558).
Expressivity theorems say what is representable, not what is reachable by stochastic optimization from a random start. In practice the reachable accuracy on a given model is a function of
Original 2017 results
Carleo and Troyer optimized translation-symmetric complex RBMs with stochastic reconfiguration on three models with periodic boundaries: the transverse-field Ising chain of 80 spins at
The result that defined the field is the systematic decrease of
What was absent is as telling as what was present: no frustrated model appears, and the limitation of the RBM on frustrated lattices was identified in the following years as a problem of sign structure rather than of amplitude expressivity.
Variants
- RBM + pair product (RBM+pp): multiply the RBM by a Pfaffian or determinant of a pair-product state, giving a fermionic sign prior with a neural correlator (Nomura, Darmawan, Yamaji, Imada, arXiv:1709.06475). With quantum-number projection and a few Lanczos steps this remains among the most accurate ansätze for the square-lattice J₁–J₂ model (Nomura and Imada, arXiv:2005.14142).
- Deep Boltzmann machines: a second hidden layer makes the marginalization intractable in general but exact for specific constructions (arXiv:1802.09558); sampling the hidden layer jointly with the visible one restores tractability at the price of a larger state space.
- Convolutional generalizations: replacing the single
layer by a stack of convolutional layers with a final pooling gives the convolutional and group-convolutional NQS (Choo, Neupert, Carleo, arXiv:1903.06713; Roth, Szabó, MacDonald, arXiv:2211.07749), with the hidden-unit density reappearing as the channel count.
References
- G. Carleo, M. Troyer, Solving the quantum many-body problem with artificial neural networks, arXiv:1606.02318 (2016). The complex symmetric RBM, its optimization, and the results discussed above.
- R. G. Melko, G. Carleo, J. Carrasquilla, J. I. Cirac, Restricted Boltzmann machines in quantum physics, Nature Physics 15, 887 (2019). Review of RBMs as quantum states.
- A. W. Sandvik, Finite-size scaling of the ground-state parameters of the two-dimensional Heisenberg model, arXiv:cond-mat/9707123 (1997). Reference energies for the square-lattice Heisenberg model.
- D.-L. Deng, X. Li, S. Das Sarma, Quantum entanglement in neural network states, arXiv:1701.04844 (2017). Entanglement of RBM states; exact representations of topological states.
- J. Chen, S. Cheng, H. Xie, L. Wang, T. Xiang, Equivalence of restricted Boltzmann machines and tensor network states, arXiv:1701.04831 (2017).
- I. Glasser, N. Pancotti, M. August, I. D. Rodriguez, J. I. Cirac, Neural-network quantum states, string-bond states, and chiral topological states, arXiv:1710.04045 (2017).
- G. Carleo, Y. Nomura, M. Imada, Constructing exact representations of quantum many-body systems with deep neural networks, arXiv:1802.09558 (2018).
- Y. Nomura, A. S. Darmawan, Y. Yamaji, M. Imada, Restricted Boltzmann machine learning for solving strongly correlated quantum systems, arXiv:1709.06475 (2017). RBM times pair-product states.
- Y. Nomura, M. Imada, Dirac-type nodal spin liquid revealed by refined quantum many-body solver using neural-network wave function, correlation ratio, and level spectroscopy, arXiv:2005.14142 (2020).
- F. Ferrari, F. Becca, J. Carrasquilla, Neural Gutzwiller-projected variational wave functions, arXiv:1906.00463 (2019).
- A. Szabó, C. Castelnovo, Neural network wave functions and the sign problem, arXiv:2002.04613 (2020).
- T. Westerhout, N. Astrakhantsev, K. S. Tikhonov, M. I. Katsnelson, A. A. Bagrov, Neural quantum states of frustrated magnets: generalization and sign structure, arXiv:1907.08186 (2019).
- K. Choo, T. Neupert, G. Carleo, Study of the two-dimensional frustrated J₁–J₂ model with neural network quantum states, arXiv:1903.06713 (2019).
- C. Roth, A. Szabó, A. H. MacDonald, High-accuracy variational Monte Carlo for frustrated magnets with deep neural networks, arXiv:2211.07749 (2022).