Advances in machine-learning-based sampling motivated by lattice quantum chromodynamics

Kyle Cranmer, Gurtej Kanwar, Sébastien Racanière, Danilo J. Rezende, Phiala E. ShanahanarXiv 2023 · DOI

TL;DR

This paper explores how generative machine learning, specifically normalizing flows, can revolutionize Lattice Quantum Chromodynamics (LQCD) by overcoming the massive computational bottlenecks of traditional sampling. By baking fundamental physical symmetries directly into neural network architectures, researchers are developing new tools that could make currently "intractable" first-principles physics calculations possible on next-generation supercomputers.

What Problem Does This Paper Address?

Quantum Chromodynamics (QCD) is the theory describing the strong nuclear force—the force that binds quarks and gluons into protons, neutrons, and nuclei. While we understand the fundamental laws, calculating predictions from them is notoriously difficult. At low energies, the interactions are so strong that standard "pen-and-paper" approximations fail.

Physicists turn to Lattice QCD, where spacetime is discretized into a 4D grid. To calculate physical properties, they must sample billions of "field configurations" from a complex probability distribution.

Figure 1. Depiction of a single cube within the spacetime lattice of a lattice QCD calculation. Shown are some elements Uµ(x) of the discretized gluon field (red), each associated with an edge (x,x+ ˆµ) from site x to the neighboring site in direction µ ∈{1,2,3,4}, and an element Ψ(y) of the discretized quark field (blue), associated with a site y. The value of each Uµ(x) is a complex unitary 3×3 matrix with determinant 1, that is, an SU(3) matrix, and each Ψ(y) is a 4×3 complex matrix. a is the lattice spacing between neighbouring points. The fourth dimension of the lattice is suppressed for clarity.

The standard tool for this, Hybrid Monte Carlo (HMC), faces two major hurdles as simulations become more precise (i.e., as the lattice spacing $a$ gets smaller):

  1. Critical Slowing Down: Successive samples become highly correlated, requiring more and more computation to get a single "independent" snapshot.
  2. Topological Freezing: The algorithm gets "stuck" in a specific configuration sector, failing to explore the full range of physical possibilities.

Methods

The authors propose using Normalizing Flows—a class of generative models that learns a transformation (a diffeomorphism) between a simple, easy-to-sample distribution and the complex target distribution of QCD.

Key technical innovations include:

  • Gauge-Equivariant Architectures: Unlike standard ML that might try to "learn" symmetries from data (data augmentation), these models have physical symmetries (like gauge invariance) built directly into the network's layers. This ensures the model only explores physically valid configurations.
  • Asymptotic Exactness: To satisfy the rigorous requirements of physics, the ML model is used as a "proposal" for a Metropolis-Hastings step. This guarantees that even if the ML model is imperfect, the final ensemble of samples is statistically exact and unbiased.
  • Custom Transformation Layers: The paper describes specialized layers that can handle the matrix-valued variables (SU(3) matrices) used in QCD while maintaining the mathematical properties required for normalizing flows.
Figure 2. Comparison between the sampling tasks of quantum field generation for lattice quantum chromodynamics and image generation. In addition to differences in the target and symmetries of the problems, the hierarchy of degrees of freedom (dof) per sample to number of samples is inverted for quantum field generation as compared with image generation. The action S encodes the dynamics of the theory by defining the statistical distribution p, U the gluon field, and Z is a normalizing constant. The image on the right side is reprinted from Kaggle (https://www.kaggle.com/datasets/vitaliykinakh/stable-imagenet1k) under a Creative Commons license (CC0 1.0).

Datasets

Because this is a first-principles physics application, the "data" is generated by the models themselves rather than pulled from a static database like ImageNet. The paper evaluates these methods on:

  • 2D U(1) Gauge Theory: A "toy" model used to demonstrate that flows can overcome topological freezing.
  • Small-volume 4D QCD: Early-stage tests showing the feasibility of scaling these custom architectures to the full theory of the strong force.

Key Insights and Ideas

  • The Inverted Hierarchy: LQCD is "Big Data" in reverse. While image generation models are trained on millions of small samples, LQCD models must produce a few thousand massive samples, each with up to $10^{12}$ degrees of freedom.
Comparison between the sampling tasks of quantum field generation and image generation, highlighting the massive difference in degrees of freedom per sample.
  • Symmetry as a Necessity, Not an Option: In LQCD, the symmetry group is so large (dimension $\sim 10^{11}$) that it is practically impossible for a model to "learn" it from scratch. Incorporating it by design is essential for training to converge at scale.
  • Amortization of Cost: ML models have a high upfront training cost, but once trained, they can generate independent samples almost instantly. This "amortized" approach becomes much more efficient than HMC when a large number of samples are needed.

Key Results

  • Mitigating Critical Slowing Down: In 2D toy models, flow-based sampling showed orders-of-magnitude better scaling than traditional HMC. Specifically, the "integrated autocorrelation time" (a measure of how correlated samples are) remained nearly flat as the simulation resolution increased, whereas it exploded for HMC.
  • Overcoming Topological Freezing: The flow models successfully jumped between different topological sectors that traditional algorithms were "frozen" out of.
Figure 3. Illustration of a gauge-equivariant transformation layer80,81. Here, a parametric gauge-equivariant diffeomorphism is constructed from a diffeomorphism g satisfying g(ΩUΩ†) = Ωg(U)Ω† (matrix-conjugation equivariance). To update the matrix-valued link Uµ(x) in red, this transformation first updates the plaquette Uµ(x)Γ†(x,x+ ˆµ) containing that link, before ‘pushing’ that update onto the link by assigning U′µ(x) = g(Uµ(x)Γ†(x,x+ ˆµ))Γ(x,x+ ˆµ). The output link U′µ(x) transforms appropriately under gauge transformations when Uµ(x) and Γ(x,x+ ˆµ) are transformed. See the main text for further details.

Limitations and Future Work

  • Scaling to Production: While successful at "toy" scales, the primary challenge is scaling these architectures to the massive 4D lattices used in state-of-the-art nuclear physics. This requires significant engineering to fit models onto the world's largest supercomputers.
  • Upfront Training Cost: As shown in the authors' cost sketch, the "break-even" point where ML becomes cheaper than HMC depends on the number of samples required. Reducing training time is a key area for future research.
A sketch of the upfront training costs vs. sampling costs for HMC and flow-based models.
  • Conditioning: Future models could be "conditioned" on physical parameters (like quark mass), allowing a single trained model to generate configurations for a wide range of physical scenarios.

Summary updated

BibTeX
@misc{cranmer2023advances,
  author = {Kyle Cranmer and Gurtej Kanwar and Sébastien Racanière and Danilo J. Rezende and Phiala E. Shanahan},
  title = {{Advances in machine-learning-based sampling motivated by lattice quantum chromodynamics}},
  year = {2023},
  eprint = {2309.01156},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.01156},
}
Figure