Solving Statistical Mechanics Using Variational Autoregressive Networks

Dian Wu, Lei Wang, Pan Zhang
9/27/2018
cond-mat.stat-mechcond-mat.dis-nncs.LG

Official code: wdphy16/stat-mech-van (105 stars, MIT, PyTorch, last commit 2026-07-17). 1 more implementation below.

Abstract

We propose a general framework for solving statistical mechanics of systems with finite size. The approach extends the celebrated variational mean-field approaches using autoregressive neural networks, which support direct sampling and exact calculation of normalized probability of configurations. It computes variational free energy, estimates physical quantities such as entropy, magnetizations and correlations, and generates uncorrelated samples all at once. Training of the network employs the policy gradient approach in reinforcement learning, which unbiasedly estimates the gradient of variational parameters. We apply our approach to several classic systems, including 2D Ising models, the Hopfield model, the Sherrington-Kirkpatrick model, and the inverse Ising model, for demonstrating its advantages over existing variational mean-field methods. Our approach sheds light on solving statistical physics problems using modern deep generative neural networks.

View on arXivView PDF

Code Implementations(2)

PyTorchMIT

Code for 'Solving Statistical Mechanics using Variational Autoregressive Networks'.

10529Shell, PythonSep 20, 20183 months agoMIT
autoregressive-neural-networkspytorchscientific-computingstatistical-physicsvariational-monte-carlo
wangleiphy/VAN.jlOfficial100%
MIT

Variational Autoregressive Network in Julia

101JuliaOct 14, 20194 years agoMIT
autoregressive-neural-networks

Similar Papers

Cite this paper

@article{wu2018solving,
  title  = {Solving Statistical Mechanics Using Variational Autoregressive Networks},
  author = {Dian Wu and Lei Wang and Pan Zhang},
  year   = {2018},
  eprint = {1809.10606},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1809.10606}
}

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/1809.10606.svg)](https://codeofpaper.com/paper/1809.10606)

Discussion