Gauge Informed Gating for Conservative Machine Learning Interatomic Potentials

Sung Moon Ko, Sehui HanAI4Mat @ NeurIPS 2026

TL;DR

Machine-learning interatomic potentials (MLIPs) usually predict atomic energies and forces by looking only at an atom's local neighborhood, even though quantum mechanics cares about the entire molecule or crystal at once. This paper borrows a trick from electromagnetism—Abelian gauge geometry—to build a "curvature-aware" gating mechanism that injects graph-wide structural context into a standard MLIP without breaking energy-force conservation. The result is lower energy errors on both in-distribution and external benchmarks, at the cost of about 49% more GPU compute.

What Problem Does This Paper Address?

To simulate materials and molecules at scale, researchers train neural networks to approximate expensive quantum mechanical calculations (like density functional theory, or DFT). Most modern geometric graph models rely on local message passing within a finite cutoff radius.

There is a catch: DFT computes the energy of the entire atomic system, not just isolated local pockets. If a model only sees a finite neighborhood, it can miss long-range electronic or structural context. Simply stacking more message-passing layers to widen the receptive field tends to wash out local node features, while slapping on global self-attention gives nodes a way to talk across the whole graph without any physical structure guiding what they should say.

Methods

The authors start with a conservative local-global MLIP backbone (inspired by GraphGPS) that alternates local geometric edge updates (GINE, 6 Å cutoff) with global Transformer self-attention. It predicts total energy $\hat{E}_G$, and obtains forces conservatively as the exact negative gradient of energy with respect to atomic positions ($\hat{F}_i = -\partial \hat{E}_G / \partial r_i$).

To give this backbone a physically structured nonlocal signal, they add a Gauge Curvature Module:

  1. Graph-Conditioned Connection: At each atom, a small neural network takes the atom's 3D coordinates and a pooled summary of the entire graph (mean, variance, and max of node states, plus the global state) to predict an auxiliary vector field—a spatial "connection" $A_i^\mu$.
  2. Curvature & Scalar Density: Borrowing from $U(1)$ gauge theory (the math behind electromagnetism), the model computes the analytic coordinate Jacobian of this connection, takes its antisymmetric part to get the curvature $F_{i,\mu\nu}$, and contracts it into a nonnegative scalar density $\mathcal{L}_i = F_{i,\mu\nu} F_i^{\mu\nu}$.
  3. Gating & Residuals: This curvature density modulates the backbone in two ways: through an identity-initialized edge gate ($g_{ij} = 1 + s \Delta g_{ij}$) on local messages, and through a bounded graph-level residual added to node states before global self-attention.
Figure 1: Overview of the gauge informed conservative MLIP. Atomic species and geometric edge features are encoded and processed by four local global blocks, each consisting of local GINE message passing with edge updates, global Transformer self attention, and residual fusion. The learned gauge connection is differentiated with respect to atomic coordinates to obtain a curvature derived density. This density controls an identity initialized gauge gate in the local branch and a pooled residual before global self attention. The model predicts the structure energy, while forces are obtained as exact negative energy gradients. The optional Lorenz gauge fixing term regularizes the learned connection.

The authors deliberately call this gauge informed rather than gauge equivariant: the curvature formula is formally gauge-invariant, but the full neural network isn't paired with a mathematical proof of gauge equivariance. They test two variants: Gauge gate ($s=1.0$, no extra regularization) and Gauge gate + GF ($s=0.3$, plus an optional Lorenz gauge-fixing penalty on the divergence of $A_i^\mu$ to constrain the learned field).

Datasets

  • MPTraj: 1,422,356 structures for training and 158,039 for full validation (with a deterministic 7,901-structure subset used for periodic learning curves).
  • WBM: An external energy-prediction evaluation on a deterministic 10,000-structure subset of the 215,488-structure WBM unique split (from Matbench Discovery). WBM is never used for training, though the authors note it is an external transfer set rather than strictly out-of-distribution, as both datasets trace back to Materials Project structures.

Key Insights and Ideas

  • Inductive bias over strict equivariance: You don't need a heavy, fully gauge-equivariant architecture to benefit from gauge geometry. Treating an auxiliary connection's curvature as a conditioning signal is enough to give local-global models a useful physical inductive bias.
  • Gauge fixing works as advertised—mostly: Adding the Lorenz gauge-fixing regularizer suppresses the divergence-like component of the learned connection by roughly 180x without collapsing its antisymmetric field strength.
  • Bounded, nonlinear gating: Both gauge variants operate in a strongly nonlinear regime (over 72% of underlying $\tanh$ activations saturate), yet the identity-initialized gate and bounded residual keep the updates stable.

Key Results

In a preliminary single-seed study evaluated near 267k optimizer steps:

  • MPTraj Energy MAE: Both variants beat the baseline (0.016082 eV/atom), with Gauge gate reaching 0.015629 (-2.8%) and Gauge gate + GF reaching 0.015678 (-2.5%). They also hit the 0.0165 eV/atom milestone ~24,400 steps earlier (a 10.8% reduction in steps).
  • MPTraj Force MAE: Gauge gate improves force error from 0.055375 to 0.054794 (-1.0%), while Gauge gate + GF slightly degrades to 0.055766 (+0.7%).
  • WBM External Energy MAE: Across the 251k–266k step window, both Gauge gate (0.042311, -0.51%) and Gauge gate + GF (0.042059, -1.10%) outperform the baseline (0.042528).
  • Compute Cost: Using 3 A40 GPUs for the gauge models versus 2 for the baseline kept wall-clock time per step nearly identical (~1.83–1.85 s), but increased total accelerator cost (GPU-seconds/step) by ~49%.
Figure 2: Periodic MPTraj validation curves from one seed. Lines are raw observations, not smoothed. Insets enlarge the late stage. Both gauge variants maintain lower energy MAE after 200k steps. (only the plain gauge-gated arm maintains lower force MAE)
Figure 3: External transfer and training cost. (a) Raw WBM periodic-subset observations. (b) Late-stage seconds per optimizer step and GPU-seconds per step, normalized to the baseline. The additional A40 removes a wall-clock step-time penalty but raises accelerator cost by about 49%.

Limitations and Future Work

The authors are candid about the caveats: this is a single-seed interim study, so there are no error bars across random seeds. Furthermore, the two gauge variants change gate scale, node density definition, and regularization all at once, meaning the experiments don't isolate the exact causal effect of Lorenz gauge fixing. Finally, the ~49% higher GPU cost is non-trivial.

Next up, the team is testing the framework on the larger OMAT24 dataset and exploring whether adding a dedicated virtual node connected to all atoms can give the gauge field an even richer graph-wide signal.

Summary updated

BibTeX
@inproceedings{ko2026gauge,
  author = {Sung Moon Ko and Sehui Han},
  title = {{Gauge Informed Gating for Conservative Machine Learning Interatomic Potentials}},
  booktitle = {AI4Mat @ NeurIPS},
  year = {2026},
  url = {https://openreview.net/forum?id=HHMwnXsyb1},
}
Figure