Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Machine learning for lattice QCD

Machine learning can speed up lattice QCD without giving up exact results

  • Problem Lattice QCD calculations slow down sharply near the continuum limit because local-update Monte Carlo sampling gets more correlated. ML tools must also avoid biasing the unbiased estimates that first-principles work requires.
  • Method This chapter sorts exact ML methods into three roles. ML can tune algorithm parameters, transform the problem into an equivalent one, or solve a related problem and then apply a known correction.
  • Results The authors report that none of these approaches is the default in large-scale lattice QCD as of late 2025.

Why exactness constrains ML in lattice QCD

The chapter asks how ML can speed up lattice field theory without giving up the unbiased estimates that first-principles work needs. Many ML uses are model-based, such as defining order parameters or fitting data, and those can accept approximations. Lattice QCD is different, so any ML step must keep the mathematical guarantees of the conventional algorithm it replaces.

The chapter sorts exact ML acceleration into three classes: optimising existing algorithms, transforming the problem, and solving a related problem and correcting.

Infrastructure is a second brake, because ML research runs in Python toolkits such as TensorFlow, PyTorch and JAX. Lattice codes such as Chroma, CPS and QUDA are instead tuned for massively parallel execution on HPC platforms. Standard convolutional or transformer architectures don't align with the data structures or symmetries of lattice gauge theory.

The authors argue that manifest gauge (in/co)variance is worth building into the network, despite the bitter lesson's advice to skip symmetries. Symmetry-respecting networks encode gauge invariance or rotational symmetries in the architecture, which black-box networks cannot do.

Scaling such custom models across tens of thousands of nodes or GPUs requires significant re-engineering of memory and communication. Commercial ML training strategies don't map easily onto the specialized HPC workflows behind state-of-the-art lattice calculations. A model that shows promise in small-scale exploratory studies still faces algorithmic and systems-level hurdles at production scale.

Future work must both develop gauge-respecting architectures and integrate them into HPC environments with comparable scalability.

Three roles for ML that keep the answer exact

The authors sort exact ML methods into three classes by the role ML plays in the workflow. Free parameters in algebraic multigrid methods for propagator inversions can be optimized with ML techniques. Replacing stochastic optimization with automatic differentiation can also improve performance without sacrificing exactness.

The second role transforms the problem into an equivalent formulation that is easier to solve. Standard algorithms with their guarantees then run on the transformed problem. Changing variables, such as deforming the integration contour, can reduce Monte Carlo variance without altering the central value.

The third role solves a related, more accessible problem and then applies a known correction to reach the exact solution. One example learns a mapping from a low-precision to a high-precision linear system solution and corrects the bias that remains. Another example samples from a nearby probability distribution and then reweights or resamples to get the correct distribution.

This route keeps the computational method flexible while the final results remain provably exact.

Table 1 maps these roles onto the steps of the LQFT workflow, from configuration generation to observable estimation. The table is not exhaustive, so it lists examples rather than a full survey. Some of these applications are still early, while others are approaching maturity.

Why critical slowing down drives the search for new samplers

Monte Carlo cost grows in the continuum limit because the integrated autocorrelation time of local-update MCMC keeps increasing. That time measures how strongly successive field configurations in the Markov chain are correlated with each other. For topological observables the exponent z is particularly large, a effect the authors call topological freezing.

The authors stress that this is a problem of Monte Carlo algorithms based on local updates, not of the observables themselves.

Sampling algorithms that avoid or modify traditional MCMC aim to counter the rapid growth of costs in Eq. (10). A new sampler only beats traditional MCMC in a regime set by its total start-up time and its cost Cs per independent sample. Figure 1 gives a qualitative picture of this cross-over in advantage.

One family changes the MCMC dynamics so the chain avoids slow-mixing modes as criticality is approached. Fourier acceleration was proposed for theories that behave like a free scalar theory, but obstacles remain for gauge theories. For statistical models where a global update is known, critical slowing down near phase transitions is mitigated.

A global update is hard to design in general, so the Self-Learning Monte Carlo method learns the couplings of an effective action from configurations of the original action. New configurations are proposed with the effective action and accepted or rejected with the original one, so exactness is kept.

Flows as a change of variables and reweighting

A learned map f pushes a simple prior distribution toward the target, so the sampler only has to handle the remaining mismatch. Changing variables to V = f^{-1}(U) turns the path integral into one with the effective action S(f(V)) minus the log of the Jacobian determinant. The map must be invertible and differentiable, so that the Jacobian is well defined.

If the effective action is constant, which means a uniform distribution, the map is called a trivializing map. Finding a general non-perturbative trivializing map is the hard part of this approach. The simulation then runs a Monte Carlo with the new effective action and flows the result back to the target distribution with f. A smaller integrated autocorrelation time may appear in MCMC, but the computational cost of an update with the new action also has to be monitored.

The flow-based importance sampling variant starts from configurations V drawn from a known, tractable distribution q0. Mapping these samples with U = f(V) gives a transformed density q(U) = q0(f^{-1}(U)) |det J|^{-1}, which is explicit and easy to evaluate. The weight w(U) = e^{-S(U)}/q(U) plays the central role, since its expectation under q is the partition function.

One option is reweighting, where the observable estimate is <O w>_q divided by <w>_q. The variance of that estimator depends on how well q overlaps with p. The effective sample size ESS = <w>_q^2 / <w^2>_q runs from 0 for vanishing overlap to 1 for perfect overlap. The other option builds a Markov chain with q samples as proposals and the Metropolis-Hastings acceptance min(1, w(U') / w(U^(i-1))).

In that case the integrated autocorrelation time measures only the overlap of q with the target.

Figure 2 uses one trivializing flow in two ways on a toy model with two widely separated modes. In the top panel the flow improves HMC mixing, while in the bottom panel it drives direct importance sampling. Traditional sampling methods freeze on this toy model, which is the problem the flow is meant to solve. Finding a transformation f with enough overlap between q and p is hard, and the next step is to ask how generative models supply it.

Figure 2: Comparison of applying a trivializing flow to improve HMC mixing time (top panel)
versus using the same trivializing flow to perform direct importanc…

Figure 2 : Comparison of applying a trivializing flow to improve HMC mixing time (top panel) versus using the same trivializing flow to perform direct importance sampling (bottom panel). The target model density is selected as a simple toy model with two widely separated modes, for which traditional sampling methods suffer from freezing.

Original paper · CC BY 4.0 · Gurtej Kanwar, Scott Lawrence, Alessandro Nada, Phiala Shanahan · Machine learning for lattice QCD · Original paper figure · Extracted the figure area from page 12 of the original PDF.

Training flows and keeping gauge symmetry

Coupling layers split the field into a frozen part and an active part, and the active part is multiplied by a group-valued function of the frozen part. The map stays invertible whatever neural network builds that group-valued function, which is why the Jacobian is triangular. For gauge theories with fermions, the paper points to coupling layers in references 65 and 70, and for gauge symmetries to references 12, 42 and 73.

Continuous flows take a different route: they integrate an ODE, and the resulting configuration at time t is written as a path-ordered exponential. The Jacobian determinant of a continuous flow comes from an analogous ODE, so the density stays computable as in the discrete case.

Training is done by minimizing a metric that measures the similarity between the model density and the target density. The most used metric in normalizing flows is the reverse Kullback–Leibler divergence, which is computed from the model's own samples. The reverse KL divergence is minimized when the model distribution equals the target, so training drives the model toward the Boltzmann distribution.

Because the metric uses the model's own samples and not samples from the target, the paper calls this a self-training procedure. Other loss functions can be used in a self-training approach, and they can change during training. A forward KL divergence trained on MCMC samples, or a mix of the two approaches, is another typical choice.

For lattice gauge theories, constraining flow models to satisfy the gauge symmetry exactly is found to help. The density of a flow is guaranteed to be invariant under a symmetry generator g when the prior density is invariant and the flow is equivariant. Several discrete and continuous flows have been built to be equivariant under gauge and other symmetries.

Gauge-equivariant transformations outside normalizing flows are a further line of work. An open question is how to balance the flexibility of the flow against the exact symmetry constraint, and non-flow methods may help.

Non-equilibrium approaches, inspired by Jarzynski's equality and Annealed Importance Sampling, build intermediate distributions between the prior and the target. Each step in these approaches is an MCMC update under an intermediate action, and the initial configuration is sampled from the prior. The paper treats this sequence as a typical non-equilibrium Monte Carlo simulation, since the system never thermalizes at each step.

Non-equilibrium and diffusion routes to the target

Figure 3 compares three ways to define the transport between the prior and the target distribution. Non-equilibrium methods build a sequence of intermediate distributions and update the configuration through them with MCMC steps. The intermediate actions S_λ(n) depend on parameters λ(n) that change throughout the process, so the system is never thermalized at each step.

The accumulated work W is the sum of action differences between successive intermediate actions, and it plays the role of the reweighting factor. Jarzynski's equality links the exponential of minus the work to the free energy difference ΔF between q_0 and p.

Figure 3: Illustrative comparison of the three transport strategies outlined in the main text

Figure 3 : Illustrative comparison of the three transport strategies outlined in the main text.

Original paper · CC BY 4.0

Stochastic normalizing flows redefine the annealing sequence by inserting invertible maps f_i between the MCMC updates. The work for this construction picks up a log detJ term for each inserted map, so the weights change accordingly. Training uses a different divergence here, because the flow density q(U) is not analytically accessible. Taking the continuous-time limit gives an annealed Langevin SDE, where the infinitesimal work is the time derivative of the action.

Samplers of this kind can have high variance when the process strays far from equilibrium. The NETS approach adds a learned velocity field b_t as an extra transport term, and in the perfect transport case the work reduces to the time derivative of −log Z_λ(t).

Diffusion models generate samples from a dataset by adding noise in a forward process and removing it in a reverse denoising process. The forward Langevin process implicitly defines a path of distributions p_t that bridges the target p_0 with a Gaussian p_T. The reverse SDE needs the score ∇log p_t, which a neural network learns approximately through score matching.

Because the learned score is only approximate, the generated samples aren't exact by themselves. Metropolis-adjusted annealed Langevin steps (MAALA) restore exactness, and diffusion models need data drawn from the target distribution for score matching. Stochastic interpolants and flow matching follow the same idea of implicit paths built from target samples.

Estimating the partition function from a trivializing map

A trivializing map gives the partition function almost for free, because Z follows from the action and the prior at one point. If the map were exact, Z comes from evaluating the prior density q0 and S◦f at the same point U0. The formula divides e to the minus S of f of U0 by q0 of U0 times the absolute Jacobian determinant to the power minus one.

Trivializing maps are usually only approximate, so Z becomes an expectation value under q instead. In that expectation, the integrand is e to the minus S of U over q0 of f inverse of U times the absolute Jacobian to the power minus one, averaged over U drawn from q.

The expectation form still works when only the unnormalized prior weight e to the minus S0 is known. In that case the same formula extracts the ratio Z/Z0, which is often the quantity of interest. For AIS and stochastic normalizing flow approaches, Jarzynski's equality gives the same ratio. There, the weight is the exponential of the work, written as the expectation of e to the minus W under the forward process.

Here Z0 is the partition function of the prior distribution q0, which the authors make explicit for notational consistency.

The control variate section that follows picks up the overfitting issue that comes with flow-based variance reduction. Control variates are an unrelated tool in this chain, so the authors note that symmetry respect is cheap insurance against overfitting.

Control variates and their overfitting problem

A control variate is an observable with zero expectation value, and subtracting it from the target observable lowers the variance. Ensuring that the control variate respects the same symmetries as the lattice action is a cheap way to alleviate overfitting. It isn't necessary for correctness, because a control variate has vanishing expectation regardless of how it behaves under lattice symmetries.

The chief obstacle to full-scale lattice QCD is overfitting, because a large family of control variates is easy to write down. Knowing which candidates are effective, however, requires an enormous quantity of training data.

Correlated ensembles generated at nearby action parameters α1 and α2 let a derivative or finite difference benefit from cancellation of statistical fluctuations. The same flow model architectures from Sec. 3 can map between theories at nearby points in parameter space to generate these correlated ensembles.

Physically meaningful applications include chiral and continuum extrapolations and matrix elements such as the chiral condensate.

Contour deformations against the sign problem

Cauchy's integral theorem lets the lattice path integral be rewritten on a deformed contour, so the expectation value of an observable can stay the same. The new contour must be homotopic to the original one, and the integrand must be holomorphic in the region between them. A practical choice maps the original contour, SU(3) to the power 4V, onto a deformed submanifold of SL(3; C) to the power 4V through a one-to-one map f_θ.

The map can be parameterized analytically, with neural networks, or with hybrid approaches. The average phase is built from integrands that are not holomorphic, so it can change with the contour, and the goal is the contour that shrinks the sign problem.

The sign problem appears as fluctuating complex phase factors, and the average phase Z/Z_PQ scales like e to the power -m4V. The loss function is the negative average sign, which is hard to evaluate because of the sign problem itself. Gradient descent doesn't need the loss value, only its derivative, and that derivative avoids the sign problem.

Only the phase-quenched partition function changes as the contour changes, and its derivatives are sign problem-free. Hybrid approaches use restricted deformations with constant or diagonal Jacobians, optimized with stochastic gradient descent. Neural networks have parameterized contours for finite-density, Hubbard-model, and real-time problems.

For a real action where the observable causes the signal-to-noise problem, the deformed observable Q keeps the original expectation value. The loss is the variance of ReQ, and minimizing it optimizes the contour parameterization. The loss and its gradient are expectation values over the original Monte Carlo samples, so no new samples are needed.

Replacing observables with surrogates and preconditioners

A surrogate observable replaces a slow observable O with a cheaper function that is approximately equal to it. If the two are exactly equal for every configuration, the replacement loses nothing. When the difference is only typically small, the expectation value is written as the surrogate mean minus the mean of the difference. The first term is the fast surrogate, and the second term corrects for the bias the replacement introduces.

Evaluating both terms on all N configurations gives no speed-up, because O still has to be evaluated N times. The gain comes from evaluating the bias-correcting term on fewer samples than the surrogate uses. When the surrogate is good, the squared error is small on average, and smaller than the variance of O itself. The number of samples needed for the correction is then about N times Var(O minus the surrogate) over Var of the surrogate, given as Eq.

(68). A surrogate with zero output would give a bias-correction variance equal to the variance of O, so it brings no gain.

When the surrogate's cost is negligible, the speed-up becomes the ratio Var(O) over Var(O minus the surrogate). This resembles a control variate, but the surrogate replaces the observable with one that is cheaper to evaluate. Such a substitution doesn't reduce sampling costs, and it only cuts the costs of post-sampling measurement. The figure of merit for a surrogate is the variance of the surrogate minus O, given as Eq.

(69). Because a neural network surrogate is smoothly parameterized, this figure of merit is differentiable and can serve as a loss in gradient descent. Surrogate observables have been applied to full-scale lattice QCD calculations only a few times, with modest success. The typical improvement saves about 20% of the total computational effort, which the paper calls insufficient to justify the human effort.

Preconditioners take the other route: they transform the linear system Dψ=η so the iterative solver converges faster. A preconditioner M turns the system into MDψ=Mη, which ideally reduces the condition number. Conventional choices include even-odd preconditioning, domain decomposition, SSOR, and adaptive multigrid with low-mode deflation.

These traditional methods exploit the algebraic and geometric structure of the lattice discretization.

Learned preconditioners aim to surpass these heuristics through data-driven optimization, though the field remains nascent. Gauge-equivariant neural networks, GENNs, have been shown to function as learned multigrid preconditioners. The GENNs keep gauge covariance under the transformation U_µ(x) to Ω(x) U_µ(x) Ω(x+µ̂)†, so they respect the symmetry of lattice QCD.

Proof-of-principle work found that preconditioners trained on small lattice volumes transfer robustly to larger volumes. The paper names even-odd and incomplete Cholesky preconditioners as the classical baselines for this comparison. Open challenges include scaling to larger lattices, keeping strict gauge covariance, and generalizing across configurations and parameters.

Limitations of ML acceleration in lattice QCD

The chapter's main limitation is that none of the ML-accelerated approaches is the default in state-of-the-art lattice QCD calculations at scale. Some applications are still in early stages of investigation, while others are approaching maturity. A large part of the gap comes from the mismatch between the standard ML workflow and the specialized LQFT infrastructure.

Most ML research runs in Python with toolkits such as TensorFlow, PyTorch, and JAX, while LQFT codes are custom-built for HPC platforms.

Cost is the second limit, because a new sampler only pays off past a crossover in the number of configurations. Training an architecture with improved scaling can cost far more than thermalization or sampling for systems not yet affected by severe autocorrelations. The chapter points to Ref. [53] for an honest comparison of training and sampling times against MCMC costs.

Its convergence limits the range of lattice spacings for which the approach is practical. Training with the reverse KL divergence uses samples from the model itself, so the forward KL with MCMC samples is an alternative the chapter mentions. The chapter doesn't settle which loss function works best across the three flow strategies it lists.

For learned preconditioners, the chapter calls the field nascent, even though early results look promising. Gauge-equivariant neural networks have worked as learned multigrid preconditioners in the cited studies. Proof-of-principle work trained on small lattice volumes shows transferability to larger volumes, but scalability is still open.

Scaling to larger lattices, strict gauge covariance, and generalization across gauge configurations remain ongoing research priorities.

Paper info

Authors
Gurtej Kanwar, Scott Lawrence, Alessandro Nada, Phiala Shanahan
Venue
arXiv · Preprint
First published
2026-11-6
Added
2026-11-9
Updated
2026-11-6
Version
v1
arXiv
2611.09817
Category
hep-lat · cs.LG
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Abstract

Machine learning (ML) methods have been explored as a means of optimizing lattice field theory calculations, with increasing interest in recent years. This chapter gives an introduction and summary to the use of ML methods to optimize lattice field theory without introducing any uncontrolled approximations. We focus on those directions which are clearly established as of late 2025, marking the 50th anniversary of the beginning of the study of lattice gauge theory. This chapter is a contribution to the online book ``Lattice QCD at 50 years,'' (LQCD@50), edited by Tanmoy Bhattacharya, Maarten Golterman, Rajan Gupta, Laurent Lellouch, and Steve Sharpe.

Quote from the paper

Gurtej Kanwar, Scott Lawrence, Alessandro Nada, Phiala Shanahan (2026). Machine learning for lattice QCD. arXiv:2611.09817v1. https://arxiv.org/abs/2611.09817v1

BibTeX
@misc{kanwar2026machine,
  title = {{Machine learning for lattice QCD}},
  author = {Gurtej Kanwar and Scott Lawrence and Alessandro Nada and Phiala Shanahan},
  year = {2026},
  eprint = {2611.09817},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.09817v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up