Deep generative modelling of canonical ensemble with differentiable thermal properties

Shuo-Hui Li, Yao-Wen Zhang, Ding Pan
4/29/2024
cond-mat.stat-mechcs.LG

No official code found. Best implementation: li012589/vatd (11 stars, Apache-2.0, last commit 2025-06-28).

Abstract

It is a long-standing challenge to accurately and efficiently compute thermodynamic quantities of many-body systems at thermal equilibrium. The conventional methods, e.g., Markov chain Monte Carlo, require many steps to equilibrate. The recently developed deep learning methods can perform direct sampling, but only work at a single trained temperature point and risk biased sampling. Here, we propose a variational method for canonical ensembles with differentiable temperature, which gives thermodynamic quantities as continuous functions of temperature akin to an analytical solution. The proposed method is a general framework that works with any tractable density generative model. At optimal, the model is theoretically guaranteed to be the unbiased Boltzmann distribution. We validated our method by calculating phase transitions in the Ising and XY models, demonstrating that our direct-sampling simulations are as accurate as Markov chain Monte Carlo, but more efficient. Moreover, our differentiable free energy aligns closely with the exact one to the second-order derivative, indicating that the variational model captures the subtle thermal transitions at the phase transitions. This functional dependence on external parameters is a fundamental advancement in combining the exceptional fitting ability of deep learning with rigorous physical analysis.

View on arXivView PDF

Code Implementations(1)

li012589/vatdCommunity75%
Apache-2.0

Pytorch implement of the paper Deep generative modeling of the canonical ensemble with differentiable thermal properties

113PythonJan 20, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{li2024deep,
  title  = {Deep generative modelling of canonical ensemble with differentiable thermal properties},
  author = {Shuo-Hui Li and Yao-Wen Zhang and Ding Pan},
  year   = {2024},
  eprint = {2404.18404},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.18404v2}
}

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

Discussion