When Is Zero Kelvin Good Enough? A Tolerant Test for Anharmonicity in Crystals

Computational materials discovery ranks millions of hypothetical crystals by their energy at absolute zero, where atoms are treated as motionless. Real materials are made and used at finite temperature. Each atom jiggles, and the free energy (energy minus temperature times entropy) decides which structure survives. The usual compromise is to model each atom as a tiny spring around its zero-kelvin position, the harmonic approximation. That is cheap, but it is sometimes badly wrong: free-energy calculations show static estimates overestimating the iron vacancy formation energy by about 60% and the nickel stacking-fault energy by nearly 300% near melting (Computing the absolute Gibbs free energy in atomistic simulations). The exact fix, thermodynamic integration (a chain of simulations that slowly morphs a reference crystal into the real one), is far too expensive to run on every candidate.

We propose a cheap statistical triage that answers one yes/no question per crystal and temperature. Is the real thermal distribution of atomic positions close enough to the spring-model distribution that harmonic (zero-kelvin-anchored) screening is safe? Or is it far enough away that the expensive calculation is needed? This is a tolerant distribution test: a test that accepts when two distributions are within a small distance $\epsilon_1$, rejects when they are farther than $\epsilon_2$, and is allowed either answer in between. The distance we test has a direct physical reading, in meV per atom, as the uncertainty in the anharmonic free-energy correction. The test also gives a concrete workload on which to check, for the first time, whether the theory of tolerant testing predicts practical sample costs.

Core Claim

Let $U$ be the potential energy surface given by a universal machine-learned interatomic potential such as CHGNet (CHGNet as a pretrained universal neural network potential). Let $U_h$ be its harmonic expansion around the relaxed structure, and $\Delta U = U - U_h$. At temperature $T$, the true Boltzmann distribution $P \propto e^{-U/k_BT}$ can be sampled by molecular dynamics. The harmonic distribution $Q \propto e^{-U_h/k_BT}$ is an exactly known multivariate Gaussian that we can sample and evaluate directly. A classical identity, which follows from expanding both Kullback–Leibler divergences, ties the two together:

$$\langle \Delta U\rangle_Q - \langle \Delta U\rangle_P \;=\; k_BT\,\big[\mathrm{KL}(Q\|P)+\mathrm{KL}(P\|Q)\big] \;\equiv\; W,$$

The anharmonic free-energy correction $\Delta F = F_P - F_Q$ always lies inside the interval $[\langle\Delta U\rangle_P,\ \langle\Delta U\rangle_Q]$, the Gibbs–Bogoliubov bracket. Its width $W$ is therefore at once a symmetric divergence between the thermal and harmonic ensembles and a bound on how wrong any harmonic free energy can be. Our tolerant test decides, from correlated molecular-dynamics samples and Gaussian samples, between $w = W/N \le \epsilon_1$ and $w \ge \epsilon_2$ per atom, where $N$ is the number of atoms. On acceptance, the harmonic answer is certified to within $\epsilon_1$. On rejection, the crystal is sent to thermodynamic integration.

The testing problem has three features that make it new. It uses density-evaluation access, of the kind Efficient Distance Approximation for Structured High-Dimensional Distributions via Learning exploits, but the density of $P$ is known only up to its normalizing constant. Its samples are time-correlated rather than independent. And its variance shrinks with the distance itself.

That last feature gives a falsifiable prediction. A second-order expansion in small anharmonicity gives $\mathrm{Var}[\Delta U] \approx 2k_BT\,W$ per side. The effective sample cost of separating $\epsilon_1$ from $\epsilon_2$ should therefore scale roughly as $k_BT\,\epsilon_1/(\epsilon_2-\epsilon_1)^2$ divided by $N$. This mirrors the $\epsilon_1/\epsilon_2^2$ "price of tolerance" that The Price of Tolerance in Distribution Testing proved for discrete domains but never measured. In practice, nearly harmonic crystals should be certified after very short trajectories, and the computing budget should go to the borderline cases.

Research Program

The first component is the estimator and the test. We sample $Q$ directly from the dynamical matrix, with translations projected out. We sample $P$ from short independent molecular-dynamics replicas started from $Q$ draws, which makes the samples close to independent across replicas. Within a replica we account for time correlation using batch means. A sequential stopping rule then keeps adding molecular-dynamics time until the confidence interval for $w$ falls clearly below $\epsilon_1$ or clearly above $\epsilon_2$, using the buffer zone to stop early.

A structure with imaginary phonon modes, the failure that PhononBench counts, has no valid $Q$. Such structures are rejected automatically. A quasi-harmonic variant re-expands $U_h$ at the thermally expanded volume.

The second component is theory-meets-practice. We measure the actual sample and runtime costs against the predicted tolerance scaling, across temperatures, cell sizes and $(\epsilon_1,\epsilon_2)$ grids. This directly addresses the missing empirical evaluation of the discrete and density-evaluation tolerant-testing theory.

The third component is deployment. We run the triage on stability-screened crystals and report how often finite-temperature corrections change their ranking. This is the question that zero-kelvin benchmarks such as Matbench Discovery explicitly leave out.

Baselines

The do-nothing reference is the status quo: accept every crystal that passes a harmonic phonon check, as in PhononBench using MatterSim and Phonopy, and use harmonic free energies throughout. Its error rate against ground truth is what triage must improve.

The strongest existing generic tester is the norm-adaptive kernel closeness test (NAMMD) of A Kernel Distribution Closeness Testing, applied to molecular-dynamics samples versus Gaussian samples of displacements. Its reported strength is test power 0.931 on MNIST at closeness 0.1, against 0.715 for a total-variation baseline. No reported result was found on Lacuna for NAMMD, or for any closeness tester, on atomistic or thermodynamic distributions. NAMMD assumes independent samples, which Are Two Datasets Close Enough With Statistical Significance? lists as a limitation. To keep the comparison fair, it receives exactly the same thinned samples, the same molecular-dynamics budget, and kernel bandwidths tuned on a held-out set of systems. Its kernel distance threshold is calibrated to the same meV-per-atom targets. Beating it means higher decision accuracy against thermodynamic-integration ground truth at equal or lower molecular-dynamics cost.

The key ablation is a one-sided estimator that uses only $\langle\Delta U\rangle_Q$, which needs no molecular dynamics at all. It isolates whether sampling the true ensemble is worth paying for.

A fixed-cost variant, which runs the full trajectory without sequential stopping, isolates what the tolerance buffer saves.

For ground truth we follow the thermodynamic-integration procedure of Cheng and Ceriotti, run under the same machine-learned potential. This means the test is judged on the harmonic-versus-anharmonic question, not on how accurate the potential is.

Why not just…?

Why not just run harmonic phonon checks? Phonon checks test the curvature at the zero-kelvin minimum. They cannot see anharmonicity in a crystal whose phonon modes are all real. Cheng and Ceriotti's 60% and 300% errors arise in exactly such dynamically stable systems. Our baseline comparison measures how many phonon-stable crystals the triage rejects, and whether thermodynamic integration confirms those rejections.

Why not just run thermodynamic integration on everything? It needs a custom reversible path, temperature integration and ensemble switching for each structure, which is impractical for the roughly 215,000 crystals in the WBM set. Our claim is not that we replace it. We claim to route only a minority of structures to it. The experiment reports the fraction routed and the cost saved at fixed error.

Why not just evaluate $\langle\Delta U\rangle_Q$ from Gaussian samples, with no dynamics? This is a real threat because it is nearly free. It upper-bounds $\Delta F$ but is blind to where the real ensemble goes beyond the Gaussian: hopping, rotational disorder, and the entropic stabilization that sustains high-enthalpy polymorphs (Predicting polymorphism in molecular crystals using orientational entropy; Exploring polymorphism: the case of benzene). In such cases $\Delta F$ is strongly negative while the one-sided estimate looks small. If the ablation matches the full test on our benchmark, we will report that and recommend the cheaper method.

Why not just widen the hull cutoff to 50–100 meV/atom? A scalar buffer ignores that the uncertainty differs for each crystal and temperature. It also lands in Matbench Discovery's "Triangle of Peril", the region near the stability boundary where model error exceeds the distance to that boundary. Our test instead gives each structure its own certified bound.

Proposed Experiments

The calibration systems are the BCC iron vacancy and FCC stacking faults (nickel, iron, cobalt) from Cheng and Ceriotti, where large anharmonic effects are documented. We add simple metals, ionic compounds, and alloys from the PtCoM chemical-ordering study (Unraveling disorder-to-order transitions). The potentials are CHGNet and MACE, both trained on the Materials Project trajectory data. Temperatures run from 300 K to near melting.

We sweep $\epsilon_1$ and $\epsilon_2$ between a few meV/atom and about 50 meV/atom. These choices are anchored to the noise floors reported in OQMD: 0.096 eV/atom for DFT versus experiment, and 0.082 eV/atom between experimental databases. The anharmonic correction only matters for decisions when it is comparable to these noise floors.

The evaluation set is a stratified subset of a few hundred structures with thermodynamic-integration ground truth, drawn from WBM candidates near the hull and from PhononBench's phonon-stable crystals. For context, the top Matbench Discovery model, EquiformerV2 + DeNS, reaches F1 0.815 at zero kelvin. That number scores zero-kelvin stability classification; it is not a baseline for this anharmonicity question.

The metrics are four:

  • the decision error rate on structures outside the buffer zone, split into false accepts and false rejects;
  • empirical Type-I error under correlated samples;
  • molecular-dynamics steps consumed per decision;
  • the fraction of near-hull candidates whose stability ranking at temperature $T$ flips once the routed structures receive full free energies.

Three outcomes would be decisive.

First, the full test must keep false-accept rates at the nominal level while NAMMD and the one-sided ablation exceed it on entropically stabilized cases.

Second, measured sample costs must follow the predicted $\epsilon_1/(\epsilon_2-\epsilon_1)^2$ scaling within a constant factor that we report. Failure here would be an informative negative result for the empirical relevance of tolerant-testing theory.

Third, the triage must reproduce thermodynamic-integration-level conclusions on the near-hull subset while running thermodynamic integration on only a minority of structures. If no zero-kelvin ranking near the hull ever flips, the case for moving beyond zero kelvin in benchmarks is weakened, and we would say so.