GXTNet: Balancing Accuracy and Cost for Molecular Dynamics

Hongjun Yang, Sung Moon Ko, Sehui Han, Changyoung Park

TL;DR

Simulating how atoms move over time—molecular dynamics (MD)—requires evaluating forces millions of times in sequence, meaning even tiny per-step delays quickly become a bottleneck. GXTNet is a new machine learning interatomic potential (MLIP) that pairs fast local graph convolutions with a single recurrent "graph token" for global communication. Trained on MPtrj, it achieves the best accuracy-cost balance among conservative models on the Dyna-Mat benchmark and scales cleanly to systems of 50,000 atoms on a single GPU.

What Problem Does This Paper Address?

Machine learning interatomic potentials (MLIPs) promise quantum-mechanical accuracy at a fraction of the computational cost. However, most benchmarks evaluate these models on static snapshots—predicting the energy of a frozen atomic configuration. In real-world molecular dynamics (MD), a model must predict forces millions of times in a row (for example, a 1-nanosecond simulation at 1-femtosecond steps requires $10^6$ sequential calls).

Two design choices in modern MLIPs make this especially expensive:

  1. Equivariant representations and angular tensor products, which boost accuracy by respecting 3D rotational symmetry but add heavy per-edge computation and memory overhead.
  2. Conservative force fields, where forces are computed by differentiating a predicted scalar energy with respect to atomic positions. While this guarantees energy conservation and keeps long simulations stable, automatic differentiation retains large intermediate states in memory.

As a result, many accurate models are too slow or memory-hungry for long trajectories or large systems. GXTNet is designed to bridge this gap: delivering high MD fidelity and stability while keeping end-to-end inference fast.

Methods

GXTNet (Graph-X-Transformer Network) is a GraphGPS-style architecture that predicts a scalar energy $E$ (with forces and stress obtained via automatic differentiation). Each of its four blocks updates the atomic graph in three steps:

  1. Local Graph Convolution: A GINE (Graph Isomorphism Network with Edge features) update resolves local chemistry over a 6 Å cutoff neighborhood, updating both edge and atom states.
  2. Graph Token Construction: A single global "graph token" is built by mean-pooling the local atom states and combining them with a projected version of the token from the previous block.
  3. Graph Token-Mediated Attention (GTMA): Every atom attends jointly over its local cutoff neighbors and the global graph token under a single softmax. Because the token has no physical position, it connects to each atom via just $2N$ virtual edges (atom-to-token and token-to-atom), giving the model cell-wide context at $O(N)$ cost rather than $O(N^2)$.
Figure 3: Architecture of GXTNet. Middle: the pipeline, with the block repeated four times. Left: GINE message passing with edge update. Top right: the graph token gb, pooled over all atoms plus a projection of the previous token. Bottom right: GTMA over the cutoff edges and the 2N token edges (pattern A); only local edges carry distance and edge biases.

Unlike strictly equivariant models, GXTNet only injects angular information once at the start (via radial basis functions and real spherical harmonics) and then operates on ordinary dense features.

Datasets

  • Training: Exclusively trained on the MPtrj dataset, allowing a strictly controlled comparison against other MPtrj-trained conservative models.
  • MD Evaluation: Evaluated on the Dyna-Mat benchmark (17 benchmark systems) under the Matbench Discovery protocol, which measures both MD-rollout fidelity and wall-clock speed.
  • Static Evaluation: Static accuracy is measured via the Matbench Discovery CPS score (combining F1, $\kappa_{\text{SRME}}$, and RMSD).
  • Large-System Scaling: Beyond Dyna-Mat's 500-atom limit, the authors periodically replicated the 500-atom Dyna-Mat reference cell to measure end-to-end ASE (Atomic Simulation Environment) force-evaluation times up to each model's memory limit on a single NVIDIA H200 GPU.

Key Insights and Ideas

  • Static accuracy doesn't guarantee MD efficiency: GXTNet is mid-ranked on static Matbench Discovery tasks (CPS of 0.707, fifth out of eight models), yet it dominates the MD accuracy-cost Pareto front. Optimizing for rollout speed and stability matters more for practical simulations than static benchmarks alone.
  • Global context doesn't need $O(N^2)$ attention: By routing global communication through a single recurrent graph token, GXTNet captures cell-wide interactions at linear cost—and because the token has no physical coordinates, the predicted energy remains independent of supercell choices or periodic re-wrapping.
  • Conservative models can still be fast: Rather than sacrificing energy conservation for speed (as direct-force models do), GXTNet keeps conservative forces and still outperforms all tested conservative baselines in end-to-end ASE latency.

Key Results

  • Pareto-Optimal MD Performance: On Dyna-Mat, GXTNet achieves a Combined MD Score (CMDS) of $0.747 \pm 0.007$ (averaged over five seeds)—the highest among all eight MPtrj-trained conservative models. Its summed rollout time of 9,811 s is the lowest in the group, while models with higher raw CMDS accuracy cost at least $5.5\times$ more.
Figure 1: CMDS accuracy versus rollout cost (one H200) for MLIPs trained only on MPtrj; baseline times from Matbench Discovery. Filled: conservative; open: direct force. Dashed: Pareto front of the conservative models; dotted: constant CMDS. Ours: mean ± s.d. over five MD seeds.
  • Large-System Scaling: Across every tested system size from 48 to 50,000 atoms, GXTNet has the lowest end-to-end ASE force-evaluation cost among all 12 conservative baselines (only the non-conservative, direct-force ORB v2 MPtrj is faster at some sizes). At 10,000 atoms, GXTNet takes 19.7 µs/atom, and its per-atom cost stays nearly flat from 4,000 atoms up to its memory limit of 64,500 atoms.
Figure 2: Full ASE force-evaluation cost per MD step (with stress) on one H200 for GXTNet and seven baselines (all 13 in Table 4). Below 500 atoms: Dyna-Mat configurations; above: replicas of the 500-atom one. Dashed: direct-force ORB v2 MPtrj. Curves end at each model’s memory limit (App. C).

Limitations and Future Work

  • Single-corpus training: GXTNet was trained only on MPtrj; whether its accuracy-cost balance holds on larger, more diverse training corpora remains untested.
  • Scaling test scope: The large-system experiments only measured ASE force-evaluation speed and memory limits, not rollout accuracy or stability at 50,000 atoms.
  • Approximate rotational symmetry: Because GXTNet is non-equivariant, it does not enforce exact rotational symmetry and exhibits some residual rotational sensitivity.

Summary updated

BibTeX
@inproceedings{yang2026gxtnet,
  author = {Hongjun Yang and Sung Moon Ko and Sehui Han and Changyoung Park},
  title = {{GXTNet: Balancing Accuracy and Cost for Molecular Dynamics}},
  booktitle = {AI4Mat @ NeurIPS},
  year = {2026},
  url = {https://openreview.net/forum?id=a7V0RFClGu},
}
Figure