Whether helium "rains" out of hydrogen inside Jupiter and Saturn, and whether water rains out of hydrogen inside Uranus and Neptune, depends on one thermodynamic quantity. That quantity is the temperature below which the two fluids stop mixing at a given pressure. Planetary models take this demixing curve from a handful of expensive quantum-mechanical simulations, and those curves disagree with each other.
Machine-learned interatomic potentials could make these calculations cheap enough to settle the disagreement. These are neural networks trained on quantum calculations that predict atomic forces by passing messages between nearby atoms. The obstacle is that at megabar densities every atom has hundreds of neighbors inside a standard cutoff radius, so the graph of interacting atoms becomes enormous. The fix, pruning that graph adaptively as atoms move, has only ever been tested against force errors on ambient-condition molecules and materials.
This proposal argues that force error is the wrong yardstick for this use. A pruning rule is acceptable for planetary science only if it leaves the demixing curve unchanged, and demixing is sensitive to a very specific kind of error: bias that changes with composition. We will build a composition-aware dynamic cutoff and measure its speed–accuracy trade-off in units that matter to planetary modelers: kelvin on the demixing curve and helium mass fraction in Jupiter's atmosphere.
Core Claim
The relevant method is the smooth dynamic cutoff of Smooth Dynamic Cutoffs for Machine Learning Interatomic Potentials. It replaces a fixed distance cutoff with a twice-differentiable soft ranking that keeps roughly $\mu$ neighbors per atom. On MatPES, MD22 and large biomolecules it cuts edges from 677,000 to 297,000 while staying within 0.1–0.2 meV/atom in energy and showing no energy drift over 100 ps. The paper fixes $\mu$ globally (20 for molecules, 40 for materials) and notes elevated errors for large-radius atoms.
In a demixing fluid, a fixed neighbor count covers a different physical radius in a helium-rich or water-rich region than in a hydrogen-rich one. The pruning error therefore varies systematically with local composition. That is exactly the error that moves a phase boundary.
A back-of-envelope estimate shows why. A composition-independent energy offset cancels out of the free energy of mixing. Only a bias $\delta h(x)$ whose curvature in composition $x$ is nonzero shifts coexistence. Near equimolar composition, the ideal mixing entropy per atom is about $k_B \ln 2 \approx 0.06$ meV/K, so a demixing-temperature shift of
$$\delta T_{\rm demix} \approx \frac{\delta h_{\rm mix}}{s_{\rm mix}} \approx 17\ {\rm K\ per\ meV/atom}$$
follows. Here $\delta h_{\rm mix}$ is the pruning-induced error in the excess mixing enthalpy and $s_{\rm mix}$ is the mixing entropy. This is only an order-of-magnitude guide, since real H/He mixing is non-ideal.
The claim is twofold. First, the per-atom neighbor target should depend on local species composition. Second, the sparse model should be calibrated against a dense-graph teacher on excess mixing enthalpy rather than on forces alone. Together these should keep most of the reported ~2x speedup while holding the demixing curve within a stated tolerance. We define that tolerance operationally: the induced shift in predicted Jovian atmospheric helium must stay below the Galileo error bar of $\pm 0.005$ on $Y = 0.238$, as quoted in Atmospheric Helium Abundances in the Giant Planets.
Why This Matters, and What Constrains It
The planetary motivation comes from two papers.
- H/He in giant planets. Atmospheric Helium Abundances in the Giant Planets propagates three H/He phase diagrams (LHR0911, SR18, BLM21-N23) through interior adiabats. It finds that conclusions change with the diagram: purely adiabatic ice-giant models give $Y_{atm} < 0.1$, and Jupiter needs an outer stable layer under colder diagrams.
- H₂–H₂O in ice giants. H₂–H₂O demixing in Uranus and Neptune builds seven H₂–H₂O diagrams from experiments up to 4.5 GPa and theory up to 12 GPa. The water transition pressure $P_Z$ lands anywhere from 4 to 11 GPa. Fitting $J_4$ needs $P_Z \ge 10$ GPa for Uranus and $\ge 5$ GPa for Neptune.
Both papers treat the diagrams as fixed inputs. Neither generates new ones. Our work supplies a cheaper, controlled way to generate them. It does not replace their 1D modeling; it feeds it.
The cost motivation comes from the synthetic-data literature, which shows that generation, not the final model, dominates cost. Two examples: TrueTeacher needs a 540B teacher to label 1.4M examples, and UDAPDR chains cheaper generators and distills rerankers to cut this cost. We adopt the same teacher–student logic in a physical setting. A dense-cutoff potential trained on quantum data acts as the teacher and labels large numbers of mixed-composition configurations at negligible cost. A sparse student is then distilled on the mixing-energy quantity that matters.
Several dynamic-graph papers act as constraints rather than methods:
- Graph Fourier Neural ODEs achieves long stable rollouts by truncating graph-Laplacian modes, but it explicitly cannot handle changing neighbor sets. That rules it out for fluids whose neighborhoods rewire continuously.
- TRicci prunes 80% of temporal edges while keeping 97.7% of ROC-AUC. It works on discrete snapshots and has no notion of a conserved energy.
- ATOM decodes trajectories in parallel but lacks an energy-conserving head.
A coexistence simulation that must sample a free energy needs a conservative, smooth potential. This is why we build on the smooth cutoff and not on the other three.
Research Program
Stage 1: reference data. We generate density-functional molecular dynamics data for two systems:
- H/He across Jupiter- and Saturn-relevant pressure–temperature conditions at several helium fractions;
- H₂–H₂O in the 2–12 GPa window where Cano Amoros et al. report the phase diagrams diverge.
Configurations include deliberately phase-separated cells with explicit interfaces, not only homogeneous mixtures.
Stage 2: teacher potential. We train an equivariant potential (MACE, one of the architectures tested by Han et al.) with a generous fixed radius as the dense teacher.
Stage 3: sparse students. The composition-aware student replaces the global neighbor target with a per-atom target $\mu_i$. This target is a smooth function of the soft-counted local fraction of each species. It keeps the differentiability that Han et al. showed is necessary for drift-free dynamics.
Stage 4: training. The student is trained on the teacher's forces plus a distillation term. That term matches the teacher's excess mixing enthalpy on synthetic configurations spanning composition. These configurations are cheap because they are labeled by the teacher, not by quantum calculations.
Stage 5: phase diagrams. Each model produces its own demixing curve in two ways: thermodynamic integration of the Gibbs free energy of mixing, and direct large-cell two-phase coexistence runs.
Stage 6: planetary consequences. Each curve is propagated through a 1D Jupiter adiabat of the kind used by Nettelmann et al. (with one of their EOS tables, e.g. CMS19) to obtain $Y_{atm}$. The H₂–H₂O curves are propagated to the transition pressure $P_Z$ and the atmospheric water fraction $Z_{atm}$ following Cano Amoros et al.
The deliverable is a cost–accuracy frontier. Its horizontal axis is GPU-hours per phase diagram, counting quantum labels, training, and simulation. Its vertical axis is demixing-temperature error and the resulting planetary-observable error.
Baselines
Naive reference: the dense fixed-cutoff teacher. It is the most accurate model available to us and the most expensive one to run. Every sparse model is scored by its deviation from the teacher's demixing curve and $Y_{atm}$, and by its speedup over the teacher. Where density-functional coexistence points or the low-pressure H₂–H₂O experiments compiled by Cano Amoros et al. exist, the teacher is itself checked against them. This prevents a "faithful to a wrong teacher" result from masquerading as success.
Strongest simple competitor: a sweep of smaller fixed radii. This is the ordinary potential with its cutoff shrunk. It is continuous, trivially conservative, and at high, fairly uniform densities it may be enough. It is trained on identical data with the same hyperparameter-search budget. We plot it on the same frontier. No reported result on Lacuna exists for fixed-radius potentials on H/He demixing temperatures.
Strongest existing method: Han et al.'s smooth dynamic cutoff with a global neighbor target. We give it a fair tuning budget, sweeping $\mu$ per system rather than using their defaults of 20 or 40. The file reports up to 2.26x memory reduction, 2.04x faster inference, and energy errors of 0.1–0.2 meV/atom on MD22 and materials (Smooth Dynamic Cutoffs). No reported result on Lacuna exists for its effect on any phase boundary.
What counts as beating it. Our method beats it if, at matched speedup, its demixing-curve error is smaller by more than the coexistence-simulation statistical uncertainty. Equivalently, it beats it if it reaches the Galileo-bar tolerance at higher speedup.
Ablations that isolate the two ingredients. The first uses a composition-aware target without the mixing-enthalpy distillation term. The second uses a global target with that term. If the global-target-plus-distillation variant matches the full method, the composition-aware cutoff is unnecessary and we will report that.
Why not just…?
Why not just shrink the fixed cutoff radius? This is the real threat. At megabar pressures, hydrogen and helium number densities may be similar enough that a small fixed radius incurs little composition-dependent bias. The frontier comparison settles it directly. Our prediction is that the fixed radius does acceptably for H/He but worse for H₂–H₂O, where water and hydrogen densities differ strongly at a few GPa. If the fixed radius sits on the frontier in both systems, the recommended protocol is the fixed radius, and the contribution becomes the evaluation criterion plus the demixing-error budget rather than a new cutoff.
Why not just keep using the published phase diagrams and 1D models? Nettelmann et al. and Cano Amoros et al. show that the conclusions hinge on which diagram is used. Their observables ($Y_{atm}$, $P_Z$, $J_4$ fits) move by amounts that decide whether stable layers or rock cores are needed. Cheaper diagram generation is what allows diagrams to be resampled and cross-checked. The 1D models remain our downstream evaluation, not a competitor.
Why not generate the quantum data better, for example with RELAX? Benchmarking Simulacra AI's quantum synthetic data reports 15–50x cheaper variational Monte Carlo sampling, with autocorrelation time falling from above 150 to about 5–10. However, it was tested only on isolated organic molecules. It also reduces the cost of labels, whereas the dominant cost of a demixing curve is long, large-cell coexistence sampling with the fitted potential. It is complementary and could later supply higher-accuracy teacher labels. Our cost accounting will show which stage dominates.
Why not just use a dynamic-graph pruner such as TRicci or a spectral ODE? Neither yields a conservative, smooth energy on continuously rewiring particle graphs. GF-NODE's authors state that it cannot handle changing topology. Free-energy sampling without energy conservation is not meaningful, so these are excluded on principle rather than tested.
Decisive Checks
Check 1: does the bias exist? Using held-out quantum configurations across composition, we measure whether Han et al.'s global-target cutoff produces a composition-dependent mixing-enthalpy error whose curvature exceeds roughly 1 meV/atom. By the estimate above, that is the scale at which demixing curves move by tens of kelvin. If no such curvature appears in either system, the core hypothesis fails and we stop at reporting the evaluation.
Check 2: does the bias matter for planets? For each model we compute the shift in Jovian $Y_{atm}$ relative to the teacher and compare it with the Galileo $\pm 0.005$. For H₂–H₂O we compare the shift in $P_Z$ with the 5–10 GPa thresholds Cano Amoros et al. find decisive for $J_4$.
Check 3: does the compute saving survive? The composition-aware student must retain at least a substantial fraction of the reported ~2x inference speedup in large coexistence cells while staying within both tolerances.
The outcome counted as a positive result is that a global-target sparse model crosses a planetary tolerance at a speedup where the composition-aware model does not.
References
- Smooth Dynamic Cutoffs for Machine Learning Interatomic Potentials
- Atmospheric Helium Abundances in the Giant Planets
- H2–H2O demixing in Uranus and Neptune: Adiabatic structure models
- TrueTeacher: Learning Factual Consistency Evaluation with Large Language Models
- UDAPDR: Unsupervised Domain Adaptation via LLM Prompting and Distillation of Rerankers
- Graph Fourier Neural ODEs: Bridging Spatial and Temporal Multiscales in Molecular Dynamics
- Edge Sparsification via Temporal Forman-Ricci Curvature for Dynamic Graph Learning
- ATOM: A Pretrained Neural Operator for Multitask Molecular Dynamics
- Benchmarking Simulacra AI's Quantum Accurate Synthetic Data Generation for Chemical Sciences