Deformation Theory of Boltzmann Distributions

Bálint Máté, François FleuretarXiv 2022 · OpenReview

Abstract: Consider a one-parameter family of Boltzmann distributions $p_t(x) = \tfrac{1}{Z_t}e^{-S_t(x)}$. This work studies the problem of sampling from $p_{t_0}$ by first sampling from $p_{t_1}$ and then applying a transformation $\Psi_{t_1}^{t_0}$ so that the transformed samples follow $p_{t_0}$. We derive an equation relating $\Psi$ and the corresponding family of unnormalized log-likelihoods $S_t$. The utility of this idea is demonstrated on the $\phi^4$ lattice field theory by extending its defining action $S_0$ to a family of actions $S_t$ and finding a $\tau$ such that normalizing flows perform better at learning the Boltzmann distribution $p_\tau$ than at learning $p_0$.

Introduction

Sampling from complex physical systems is often a bottleneck in scientific computing. In fields like statistical physics and quantum chemistry, researchers frequently need to sample from Boltzmann distributions, where the probability of a state is $p(x) \propto e^{-S(x)}$. While the "action" $S(x)$ (the energy) is typically known, the normalizing constant (the partition function) is not, making direct sampling nearly impossible.

Normalizing flows (NFs) have emerged as a powerful solution, using neural networks to transform a simple distribution into a complex target. However, NFs are sensitive to the parameters of the action; they may learn easily in extreme regimes but struggle in the "intermediate" regimes where interesting physics often happens. This paper introduces a systematic way to relate different distributions within a family so that "easy" versions can facilitate sampling from "hard" ones.

The Deformation Equation

The core contribution of this work is the Deformation Equation, a partial differential equation (PDE) that connects an infinitesimal change in the action ($\partial_t S_t$) to a transport vector field ($V_t$):

$$\nabla [\partial_t S_t + \langle \nabla S_t, V_t \rangle - \text{div } V_t] = 0$$

This equation dictates how to move samples along a flow so that they consistently follow a changing Boltzmann distribution. As a sanity check, the authors demonstrate that for simple Gaussian distributions, the equation yields the exact analytical transport map.

The deformation equation applied to a Gaussian distribution, showing the base distribution $N(0,1)$, the transport vector field $V_t(x)$, and the resulting target distribution $N(0, 1/t)$.

Lattice Field Theory and Results

The theory is applied to the $\phi^4$ model on a 2D lattice, a standard benchmark in high-energy physics. Instead of standard temperature scaling, the authors propose a specific deformation where the quadratic and quartic terms of the action are scaled at different rates. This "stretches" the distribution in a way that makes it more amenable to neural network optimization.

Using architectures like RealNVP and Continuous Normalizing Flows, the authors observed significant improvements in sampling efficiency. The models achieved higher Effective Sample Size (ESS) and MCMC acceptance rates compared to baselines. Furthermore, performance metrics climbed much faster during training when the deformation was applied, suggesting the "deformed" target is easier for gradient descent to navigate.

Performance metrics (ESS and MCMC acceptance rate) across training steps for different values of $\beta$. The plots demonstrate how learning efficiency varies across different distribution parameters.

Conclusion and Future Work

The deformation equation provides a formal mathematical bridge between physics and geometry, allowing researchers to calculate exactly how the geometry of sample space must change to accommodate physical variations. While promising, challenges remain in ensuring the model captures all modes of complex distributions and scaling the PDE solution to higher-dimensional systems like Quantum Chromodynamics.

Summary updated

Abstract

Consider a one-parameter family of Boltzmann distributions $p_t(x) = \tfrac{1}{Z_t}e^{-S_t(x)}$. This work studies the problem of sampling from $p_{t_0}$ by first sampling from $p_{t_1}$ and then applying a transformation $\Psi_{t_1}^{t_0}$ so that the transformed samples follow $p_{t_0}$. We derive an equation relating $\Psi$ and the corresponding family of unnormalized log-likelihoods $S_t$. The utility of this idea is demonstrated on the $\phi^4$ lattice field theory by extending its defining action $S_0$ to a family of actions $S_t$ and finding a $\tau$ such that normalizing flows perform better at learning the Boltzmann distribution $p_\tau$ than at learning $p_0$.
BibTeX
@misc{mate2022deformation,
  author = {Bálint Máté and François Fleuret},
  title = {{Deformation Theory of Boltzmann Distributions}},
  year = {2022},
  eprint = {2210.13772},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.13772},
}
Figure