- Home
- Library
- Computational Quantum Field Theory
- Learning to Sample Field Configurations
- Fermionic Determinants and Learned Proposals
Fermionic Determinants and Learned Proposals
A learned gauge-field distribution does not by itself solve fermion sampling. The determinant changes the gauge marginal, and a joint pseudofermion proposal needs its own normalized conditional density. We construct both pieces on a small Wilson square, fit an actual conditional map, and compare it with exact matrix calculations. A deliberately limited constant-covariance model also exposes a failure: correct Metropolis ratios do not guarantee that a short chain leaves an unfavorable initial state.
Preparation: Fermion determinants and positive measures, the pseudofermion Gaussian, and normalizing-flow densities.
A determinant is the marginal of a larger positive measure
For two degenerate flavors with the required Hermiticity relation, Grassmann integration yields the positive factor
This page consistently chooses . The alternative has the same determinant but a different pseudofermion covariance; its refresh map must change accordingly.
Specify the complex measure before writing its Gaussian normalization. For complex components,
A unitary diagonalization preserves this real measure. Each complex integral is , so
Equivalently, with independent real standard normals has density . The exact map then gives covariance .
Let be the gauge measure and
The normalized joint, marginal and conditional densities are
The determinant cancels between the last two factors when reconstructing the joint density. Conversely, integrating out the auxiliary field restores it.
This is the joint-model construction of Abbott et al., §II, Eqs. (9)–(12), and §III.2, Eqs. (18)–(22). The explicit Lebesgue measure above fixes our convention. Pseudofermions are commuting auxiliary variables, not sampled Grassmann fields. A complex or signed physical determinant cannot be replaced by this positive measure without changing the problem.
A complete finite target on one open square
Reuse the open square from the determinant calculation. Tree gauge fixes three links to unity and leaves the right temporal forward link . The remaining measure is normalized Haar on . Gauge-orbit volume factors cancel from the normalized gauge-invariant integral.
In dimensionless lattice units choose
There are two spin components per site, hence . With , , and site order followed by spin,
Only edges inside the square are present. Zero Dirichlet extension leaves the diagonal at boundary sites. The adjoint on the forward-neighbor term agrees with the site's convention . There is no temporal wrapping or antiperiodic boundary factor on this open square.
A checkerboard Schur complement reduces the determinant to a two-spin determinant. Immediate retracing hops vanish because ; the remaining oriented square products have trace and determinant . Consequently,
Here , so is strictly positive for every angle. An independent edge-by-edge matrix assembly agrees with the reused Wilson kernel, and direct determinants check this polynomial.
Dropping the constant from , the gauge normalization is
Define . Expanding the polynomial gives
The numerator of follows by multiplying once more by . Its value yields
The latter omits the sea determinant and is a different measure. Dense-matrix periodic quadrature and adaptive integration of the determinant polynomial agree with the Bessel expression. This is an exact finite-model reference up to numerical evaluation, not a continuum QCD result.
Fit the marginal and the conditional
Use a normalized angle family
This is a density relative to . Its density relative to has an additional . We sample the von Mises law directly. It is a learned marginal distribution; no invertible angle-flow implementation is claimed.
For the auxiliary field, fit a complex lower-triangular map
The diagonal of is real and positive. The real Jacobian of a complex linear map is
Hence the actual normalized conditional density is
Two architectures make the role of conditioning visible. The constant model has real coefficients: eight positive diagonal entries and complex lower entries. The conditional model uses and
It has real coefficients. The conditional mean is fixed to zero by the target's global complex-phase symmetry. Both covariance models are fitted by optimization; neither is supplied with the exact or its Cholesky factor as its learned answer.
This distinction is essential. The exact map is an excellent control, but its normalized density requires the determinant. Abbott et al., §III.3, Eq. (23) and the discussion through Eq. (32), use tractable learned linear layers for precisely this reason. Their full-link architectures also enforce gauge covariance by parallel transport. Our dense triangular model is defined on the fixed tree-gauge section; it is not a gauge-equivariant network on arbitrary link configurations.
Derive the objective and its complex gradient
Train by forward joint KL. Its marginal and conditional terms separate:
The angle-dependent part of the first loss is . For circular complex Gaussians the conditional divergence is
There is no factor in this complex-Gaussian expression. It follows directly by averaging the log-density ratio using .
To differentiate, put . A variation of the loss at fixed angle is
Under , the matrix gradient is
The real, imaginary and exponential-diagonal coefficient gradients then follow by the chain rule. Independent finite differences reach scaled discrepancies below in all twelve declared conditional directions. Comparing the density with a real -dimensional Gaussian checks the factor two and the measure independently.
The finite teacher uses midpoint angles with direct determinant weights. This provides a controlled training problem, but it pays for the teacher's determinants and matrices.
The fitted densities and their remaining errors
One angle fit, one constant-covariance fit and two conditional starts use fixed budgets of iterations and evaluations. Positive diagonals and explicit coefficient bounds preserve invertibility. All bounds, initial seeds and stopping settings are retained with the coefficients.
The fitted angle parameters are , consistent with zero at roundoff. Its marginal forward KL is . The angle fit meets the requested gradient threshold. All three covariance fits stop on relative loss change instead, with maximum gradient components from to . No parameter bound is active.
| Conditional family | Conditional forward KL | Largest sampled relative covariance error |
|---|---|---|
| Constant, fitted | ||
| Fourier, start zero | ||
| Fourier, start one |
The constant optimum is independently known: . The optimized matrix differs from this reference by in relative Frobenius norm, while its loss is only above the analytic optimum. Its substantial residual KL is therefore mainly a conditional-model limitation, not a large optimization error.
Validation uses angular grids of and points offset differently from training. KL and model-moment integrals change by at most . Sampled extrema converge more slowly: the largest covariance-error estimate changes by for the constant model, and the conditional model's smallest sampled singular value changes by . All three combined refinement targets are therefore marked unmet. Sampled extrema are neither rigorous bounds over all angles nor repaired by the excellent integral agreement.
The auxiliary field gives useful checks beyond the angle distribution. Define
Components and are the same spin on the endpoints of the right temporal link. From the direct matrix entries,
Indeed , while the Gaussian refresh gives . The norm and are auxiliary-distribution diagnostics, not fermionic meson observables. The oriented phase makes gauge invariant before choosing the section.
The uncorrected constant model has exact model expectations and . It models the angle marginal well but misses the correlation between angle and auxiliary covariance. The conditional model gives and . These numbers are independent angular integrals of Gaussian moments, separate from finite draws.
The conditional fit follows the angle-dependent covariance that the constant model cannot represent. The chain comparison keeps the four cold and four hot starts separate; the trapped constant-model hot states are retained, rather than averaged into an apparent successful target estimate.
Correct density ratios do not guarantee a short burn-in
For frozen model density , use the exact joint log target
in the independence-Metropolis ratio. The unknown normalization cancels. Rejection retains the complete old angle and auxiliary field.
Each primary family produces eight independent chains, with burn proposals and retained proposals. Four start at ; four start at , . There is no retraining during sampling. Separate uncorrected draws use eight replicas of states per family.
For the constant model, cold chains accept about of retained proposals, but all four hot chains accept none during the entire run. This is a visible finite-run failure, despite the correct stationary target. The large initial importance ratio explains why escape is unlikely. For normalized ,
At the fixed hot state, , so one-step acceptance is at most . A union bound makes the probability of any acceptance in attempts at most . Remaining at the initial state is unsurprising; simply declaring the first steps “burn-in” did not remove it.
The constant model's hot group remains at and , while the cold group approaches much more reasonable values. Pooling these groups gives a biased norm mean . A small within-chain blocking error for a constant trapped history would be especially misleading. The retained group discrepancy rules out presenting this run as an equilibrated estimate.
The Fourier-conditional chains have overall acceptance and both start groups move. Their retained summaries are:
| Observable | Exact target | Eight-chain mean | Replica SE |
|---|---|---|---|
These finite results are not all close on the reported replica-error scale. The norm difference is estimated SE, but that SE has only seven variance degrees of freedom. The prespecified block-size- and diagnostics give norm SEs and , respectively; the block SEs are and . The smaller eight-replica scatter is not a reliable basis for a Gaussian “five-sigma” conclusion. We retain the discrepancy, both error diagnostics and both start groups without new draws.
Normalization mistakes change the marginal
Suppose the actual proposal is generated from the correct triangular map, but its supplied density omits the Jacobian. It then uses in the acceptance ratio. The implemented ratio becomes the independence-Metropolis ratio for
not . In the exact-control case , integrating out removes the determinant from the angle marginal, yielding the quenched law . A near-perfect conditional generator can therefore still target the wrong gauge theory if its density is misnormalized.
The finite example can inspect every determinant and solve directly. Large systems need justified solver and determinant-approximation controls, as developed for pseudofermion HMC and Dirac solvers. Nothing here removes a determinant phase at finite chemical potential or demonstrates a scaling advantage over established fermion algorithms.
Summary
A joint learned proposal must specify a normalized gauge marginal, a normalized pseudofermion conditional and the intended positive matrix. The actual conditional fit substantially improves this small target, while a constant approximation retains a severe hot-start failure. Exact correction identifies the stationary measure; density errors, inadequate support in important regions and finite-run uncertainty remain distinct problems.
Exercises
1. The Jacobian of a complex map
Let for a nonsingular complex matrix and standard complex Gaussian . Derive the real Jacobian and normalized density. What target does independence Metropolis preserve if it samples from this map but omits that Jacobian in the reported proposal density?
Solution
Writing and stacking real before imaginary components gives
After a complex similarity transformation the block matrix has diagonal blocks and , so its determinant is . It is positive for nonsingular . Thus
For , . Omitting the factor reports . The actual proposal remains , so the ratio constructed from and equals the correct ratio for . This statement assumes the modified density is normalizable.
For an angle-conditioned exact map , . The joint wrong density integrates to an angle marginal proportional to rather than . If were genuinely constant in the gauge variable, the omitted factor would cancel from the ratio; the harmful case is its field dependence.
2. The best constant covariance still misses conditioning
Average the complex Gaussian forward KL over a fixed angle distribution. Minimize it over positive constant . Then take uniform and
Find the optimum and its nonzero loss.
Solution
Let . The part depending on is . Its variation vanishes at . To establish a global minimum, put . The excess loss above is
Equality requires .
For the stated uniform example, . The trace term equals , so the remaining KL is
Use the identity for . It follows by differentiating with respect to , integrating , and fixing the constant from large . Applying it to gives
An angle-conditioned exact square root of would have zero conditional KL. The constant model reproduces the average covariance but cannot reproduce its conditional dependence. This two-component exercise is separate from the fitted eight-component Wilson example.
References
- R. Abbott et al., “Gauge-equivariant flow models for sampling in lattice field theories with pseudofermions,” Physical Review D 106 (2022), 074506, arXiv:2207.08945v3, §II, Eqs. (9)–(12), §§III.1–III.3, Eqs. (13)–(32). Our explicit Haar and complex Lebesgue measures fix the normalization used above.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.