EquiFiLM: Charge-Conditioned Equivariant Force Fields via Feature-wise Linear Modulation
Summary
The paper introduces EquiFiLM, a lightweight extension that adds continuous external conditioning to equivariant foundation machine learning force fields via Feature-wise Linear Modulation, achieving significant accuracy improvements with minimal training data.
View Cached Full Text
Cached at: 07/08/26, 04:44 AM
# EquiFiLM: Charge-Conditioned Equivariant Force Fields via Feature-wise Linear Modulation
Source: [https://arxiv.org/html/2607.05559](https://arxiv.org/html/2607.05559)
Samuel Sahel\-Schackis1,2,3∗, Ken\-ichi Nomura4, Aiichiro Nakano4, Matthias F\. Kling3,5,Thomas Linker2,3
1
Department of Physics, Stanford University
2Linac Coherent Light Source, SLAC National Accelerator Laboratory
3Stanford PULSE Institute, SLAC National Accelerator Laboratory
4Collaboratory for Advanced Computing and Simulation, University of Southern California
5Department of Applied Physics, Stanford University∗samss@slac\.stanford\.edu
###### Abstract
Foundation machine learning force fields \(MLFFs\) such as MACE\-MP\-0 and UMA cover broad chemical space at near density functional theory \(DFT\) accuracy\. However, they assume equilibrium ground\-state physics and do not natively handle externally induced changes to the electronic state, such as charging, applied fields, or electronic excitation, which limits their use for driven processes such as photoexcitation and charge injection\. We propose EquiFiLM, a lightweight extension that adds continuous external conditioning to any equivariant foundation MLFF via a per\-layer Feature\-wise Linear Modulation \(FiLM\) block, learning externally driven changes to the potential energy surface from minimal training data\. The block modulates only scalar channels and preserves E\(3\)\-equivariance exactly\. We demonstrate the recipe on charged liquid water with the foundation model MACE\-MatPES as the backbone, yielding E\-MACE\. On the four training charges, E\-MACE delivers a3\.1×3\.1\\timesreduction in force RMSE \(21\.321\.3to6\.966\.96meV/Å\) and a61×61\\timesreduction in per\-atom energy RMSE \(6\.16\.1to0\.10\.1meV/atom\) over a baseline without EquiFiLM trained on the same data, at indistinguishable inference cost\. Across seven held\-out interpolation and extrapolation charges, force RMSE stays within18−6118\-61meV/Å and energy RMSE within0\.7−5\.40\.7\-5\.4meV/atom\. The model runs stable molecular dynamics across the full range tested and predicts the charge\-dependent first\-shell response of the reduced pair distribution function probed by ultrafast electron diffraction\. Adding this conditioning axis to the foundation requires only a few thousand DFT\-labeled frames, against the≈108\\approx 10^\{8\}structures of a charge\-aware foundation trained from scratch\. The recipe is backbone\- and conditioning\-agnostic: it applies without architectural change to any equivariant MLFF with scalar interaction\-layer channels\.
## 1Introduction
Atomistic simulation under continuous external control, conditioned by total charge, temperature, applied field, hydrostatic pressure or doping fraction, is central to electrochemistry, photochemistry, doped\-materials design and many other practical applications\. Foundation machine\-learning force fields \(MLFFs\) such as MACE\-MP\-0\[[2](https://arxiv.org/html/2607.05559#bib.bib2)\]and UMA\[[31](https://arxiv.org/html/2607.05559#bib.bib52)\]now reach near\-DFT accuracy across most of the periodic table, alongside other state\-of\-the\-art interatomic potentials including the strictly equivariant architectures MACE\-MatPES\[[18](https://arxiv.org/html/2607.05559#bib.bib3)\], EquiformerV3\[[22](https://arxiv.org/html/2607.05559#bib.bib53)\], eSEN\[[9](https://arxiv.org/html/2607.05559#bib.bib54)\]and SevenNet\-Omni\[[19](https://arxiv.org/html/2607.05559#bib.bib57)\], and the non\-equivariant or rotationally\-unconstrained alternatives Orb\-v3\[[29](https://arxiv.org/html/2607.05559#bib.bib56)\]and PET\-MAD\[[25](https://arxiv.org/html/2607.05559#bib.bib55)\]\. In their standard formulations, these condition exclusively on atomic positions and species\. The model has no input pathway through which a per\-graph external scalar can propagate, so two systems that share a geometry but differ in their conditioning produce bit\-identical predictions\.
Current approaches to bringing external conditioning into MLFFs trade off generalization against added architectural and training cost\. A foundation MLFF that ignores charge degrades quickly as charge is added, with force errors rising into the hundreds of meV/Å on charged liquid water \(Figure[1](https://arxiv.org/html/2607.05559#S1.F1)\)\. Per\-state specialists \(one model per charge\) reach acceptable accuracy on their training charge but cannot generalize to unseen charges \(Appendix[A](https://arxiv.org/html/2607.05559#A1)\)\. Physics\-grounded charge\-aware foundations such as MACE\-POLAR\-1\-M\[[1](https://arxiv.org/html/2607.05559#bib.bib24)\]and the broader charge\-equilibration lineage of 4G\-HDNNP\[[20](https://arxiv.org/html/2607.05559#bib.bib20)\], AIMNet2\-NSE\[[17](https://arxiv.org/html/2607.05559#bib.bib23)\], DPLR\[[32](https://arxiv.org/html/2607.05559#bib.bib27)\]and SpookyNet\[[30](https://arxiv.org/html/2607.05559#bib.bib33)\]solve the charge case by construction\. However, they do so at the steep cost of dedicated atomic\-charge supervision, explicit per\-atom Coulomb machinery or iterative charge equilibration, with foundation\-scale members of this family trained from scratch on corpora of order10810^\{8\}structures\[[1](https://arxiv.org/html/2607.05559#bib.bib24)\]\.
We proposeEquiFiLM, a lightweight per\-layer adapter that grants any equivariant foundation MLFF a continuous external\-conditioning axis\. The mechanism is a small Feature\-wise Linear Modulation block\[[27](https://arxiv.org/html/2607.05559#bib.bib34)\]whose gating parameters are produced by a per\-graph multilayer perceptron \(MLP\) from the conditioning input\. The block modulates only the scalar channels of every interaction layer, leaves the higher\-order equivariant features untouched, and preserves E\(3\)\-equivariance exactly\.
Figure 1:Per\-charge force RMSE at the four training charges for seven models across three regimes:*zero\-shot foundations*\(dashed\),*trained from scratch*\(dotted\), and*fine\-tuned on the training data*\(solid\)\. E\-MACE improves greatly on its MACE\-MatPES backbone, and reaches the accuracy of the far larger, purpose\-built charge\-aware foundation MACE\-POLAR\-1\-M fine\-tuned\.Applied to the MACE\-MatPES backbone on charged liquid water as the demonstration system, the resulting model E\-MACE matches the best per\-charge force root mean square error \(RMSE\) on the training charges of any method we compared, that of the far larger charge\-aware foundation MACE\-POLAR\-1\-M fine\-tuned, and far surpasses the unconditioned trained foundations \(Figure[1](https://arxiv.org/html/2607.05559#S1.F1)\) at inference cost statistically indistinguishable from the same backbone fine\-tuned without EquiFiLM \(Table[1](https://arxiv.org/html/2607.05559#S1.T1)\)\. It generalizes to interpolation and extrapolation charges that it never saw in training on both force and energy, and runs stable molecular dynamics across the full charge range tested\. Because the adapter is backbone\-agnostic and modulates only scalar channels, the same construction extends in principle to other equivariant MLFFs and to other continuous scalar external variables such as temperature, hydrostatic pressure or doping fraction\.
Table 1:Single\-step inference cost on a single A100 GPU for a324324\-atom cell at batch size11\. The FiLM adapter does not add a measurable per\-step cost relative to the unconditioned MACE\-MatPES backbone fine\-tuned on the same data, and is3×3\\timesfaster than MACE\-POLAR\-1\-M\.
## 2Method
### 2\.1Equivariant message passing in MACE
EquiFiLM is instantiated on top of an equivariant message\-passing backbone, specifically MACE\-MatPES\[[18](https://arxiv.org/html/2607.05559#bib.bib3)\]\. The design choices below generalize to any equivariant interatomic potential with scalar channels at its interaction layers\. Each atomiiin such a network carries a node featurehi\(t\)=⨁ℓ≥0hi\(t,ℓ\)h\_\{i\}^\{\(t\)\}=\\bigoplus\_\{\\ell\\geq 0\}h\_\{i\}^\{\(t,\\ell\)\}that decomposes into irreducible representations ofO\(3\)O\(3\)of orderℓ\\ell: scalars \(ℓ=0\\ell=0\), vectors \(ℓ=1\\ell=1\), and higher\-order tensors\. Messages between atoms are constructed from tensor products of irreducible features along edges\. MACE\[[3](https://arxiv.org/html/2607.05559#bib.bib1)\]uses higher\-body\-order messages from the Atomic Cluster Expansion\[[7](https://arxiv.org/html/2607.05559#bib.bib58)\]and reaches reference accuracy with only two interaction layers\. Each interaction layer outputs a message tensormi\(t\)=⨁ℓmi\(t,ℓ\)m\_\{i\}^\{\(t\)\}=\\bigoplus\_\{\\ell\}m\_\{i\}^\{\(t,\\ell\)\}followed by a linear projectionhi\(t\+1\)=W⋅mi\(t\)h\_\{i\}^\{\(t\+1\)\}=W\\cdot m\_\{i\}^\{\(t\)\}\.
A functionfffrom positions and features to outputs is E\(3\)\-equivariant if for any rotationR∈O\(3\)R\\in O\(3\)and translationt∈ℝ3t\\in\\mathbb\{R\}^\{3\},
f\(Rx\+t,ρin\(R\)hin\)=ρout\(R\)f\(x,hin\),f\(Rx\+t,\\;\\rho\_\{\\rm in\}\(R\)\\,h^\{\\rm in\}\)\\;=\\;\\rho\_\{\\rm out\}\(R\)\\,f\(x,\\,h^\{\\rm in\}\)\\,,\(1\)whereρℓ\(R\)\\rho\_\{\\ell\}\(R\)acts onh\(ℓ\)h^\{\(\\ell\)\}via the Wigner\-DDmatrix of orderℓ\\ell\. Equivariance is preserved under any operation that maps scalar features to scalar features and acts as the identity onℓ≥1\\ell\\geq 1channels\. Multiplying or shifting the scalar slice of a feature tensor by a function of a per\-graph scalar therefore preserves E\(3\)\-equivariance exactly, since that function is itselfO\(3\)O\(3\)\-invariant\.
### 2\.2ChargeFiLMBlock
Letc∈ℝc\\in\\mathbb\{R\}be a per\-graph conditioning scalar \(in the experiments here the total chargeqq, entered as the per\-atom densityc=q/Nc=q/NwithNNthe cell atom count\) and letNsN\_\{s\}be the number of scalar channels in interaction layertt\. Two independent two\-layer MLPs are defined, eachℝ→ℝNs\\mathbb\{R\}\\to\\mathbb\{R\}^\{N\_\{s\}\}with hidden widthhhand SiLU activation, producingγ\(c\)∈ℝNs\\gamma\(c\)\\in\\mathbb\{R\}^\{N\_\{s\}\}andβ\(c\)∈ℝNs\\beta\(c\)\\in\\mathbb\{R\}^\{N\_\{s\}\}separately\. The ChargeFiLMBlock transforms the scalar slice of every node feature in layerttas
mi′\(t,ℓ=0\)=\(𝟏\+γ\(c\)\)⊙mi\(t,ℓ=0\)\+β\(c\),mi′\(t,ℓ≥1\)=mi\(t,ℓ≥1\),m\_\{i\}^\{\\prime\\,\(t,\\ell=0\)\}\\;=\\;\\big\(\\mathbf\{1\}\+\\gamma\(c\)\\big\)\\,\\odot\\,m\_\{i\}^\{\(t,\\ell=0\)\}\\;\+\\;\\beta\(c\)\\,,\\qquad m\_\{i\}^\{\\prime\\,\(t,\\ell\\geq 1\)\}\\;=\\;m\_\{i\}^\{\(t,\\ell\\geq 1\)\}\\,,\(2\)where⊙\\odotdenotes element\-wise multiplication and𝟏\\mathbf\{1\}the vector of ones\. The block is inserted between the message tensorm\(t\)m^\{\(t\)\}and the linear projectionWW, as illustrated in Figure[2](https://arxiv.org/html/2607.05559#S2.F2)\. The gating parametersγ\\gammaandβ\\betadepend only on the per\-graph scalarccand act only on scalar channels, so the block preserves E\(3\)\-equivariance\. Atom\-permutation equivariance follows becauseccis identical for every node\.
Figure 2:ChargeFiLMBlock and its integration with MACE\.*Left*: a ChargeFiLMBlock inserted between the equivariant tensor product and the linear projection of a MACE interaction layer, applied independently at each of theK=2K=2layers\.*Right*: two small MLPs map the per\-graph scalarcctoγ\(c\)\\gamma\(c\)andβ\(c\)\\beta\(c\), which scale and shift the scalar channels of the message tensor by𝟏\+γ\(c\)\\mathbf\{1\}\+\\gamma\(c\)andβ\(c\)\\beta\(c\)while the equivariant \(ℓ≥1\\ell\\geq 1\) channels pass through unchanged\. The scalar channel countNsN\_\{s\}is128128and256256respectively for the two layers\.The output linear layers of the two gating MLPs are initialized to zero so thatγ\(c\)≡β\(c\)≡𝟎\\gamma\(c\)\\equiv\\beta\(c\)\\equiv\\mathbf\{0\}at the start of training and the block reduces to the identity, so the adapter is bit\-identical to the backbone it is attached to at the start of adapter training\. The adapter adds approximately15%15\\%parameters relative to the MACE\-MatPES backbone \(≈0\.10\\approx 0\.10M adapter vs\.≈0\.66\\approx 0\.66M backbone\) and incurs no measurable per\-step inference cost \(Table[1](https://arxiv.org/html/2607.05559#S1.T1), more details in Appendix[B](https://arxiv.org/html/2607.05559#A2)\)\.
### 2\.3Integration and training
Training labels come from ab initio molecular dynamics \(AIMD\) simulations of liquid water at four total electronic chargesq∈\{0,6e,10e,16e\}q\\in\\\{0,6e,10e,16e\\\}, whereqqdenotes the number of electrons added to a closed\-shell neutral reference cell, with energies and forces computed by VASP\[[21](https://arxiv.org/html/2607.05559#bib.bib41)\]at the r2SCAN meta\-GGA level\[[10](https://arxiv.org/html/2607.05559#bib.bib42)\]\(full DFT settings in Appendix[C](https://arxiv.org/html/2607.05559#A3)\)\. The four trajectories supply≈6,400\\approx 6,400frames\. A uniform10%10\\%random split within each trajectory is held out as a validation set and never enters any gradient update\. All training charge accuracy numbers reported below are evaluated on this split at the final stochastic\-weight\-averaging\[[16](https://arxiv.org/html/2607.05559#bib.bib39)\]epoch \(further parameters in Appendix[D](https://arxiv.org/html/2607.05559#A4)\)\.
## 3Results
### 3\.1Charge generalization
To test whether one set of weights covers the charge axis, we evaluate E\-MACE on held\-out VASP r2SCAN sets at charges never seen in training: interpolationq∈\{2e,4e,8e,12e,14e\}q\\in\\\{2e,4e,8e,12e,14e\\\}and extrapolationq∈\{18e,20e\}q\\in\\\{18e,20e\\\}\. Held\-out geometries are drawn from AIMD at a nearby trained charge and relabeled at the target charge \(Appendix[C](https://arxiv.org/html/2607.05559#A3)\), so the test measures the vertical electronic force response to a change in charge at fixed, near\-equilibrium nuclei, not full charge\-plus\-geometry generalization \(the latter is exercised only by the MD runs\)\. Figure[3](https://arxiv.org/html/2607.05559#S3.F3)reports per\-charge force and energy RMSE across all eleven charges\. On the four training charges force RMSE is5\.5−7\.55\.5\-7\.5meV/Å and per\-atom energy RMSE below0\.150\.15meV/atom\. On the seven held\-out charges force RMSE stays within18−6118\-61meV/Å and raw energy within0\.7−5\.40\.7\-5\.4meV/atom\. Errors grow withqqand with the charge distance to the source trajectory that supplied the geometries\. Among the sets relabeled2e2efrom their source \(q∈\{2e,8e,12e,18e\}q\\in\\\{2e,8e,12e,18e\\\}\) force RMSE rises from1818to4444meV/Å, the4e4e\-relabeled sets \(q∈\{4e,14e,20e\}q\\in\\\{4e,14e,20e\\\}\) sit systematically higher, and there is no qualitative break between interpolation and extrapolation\.
One set of E\-MACE weights is therefore usable at any charge in the range without retraining\. A single model, queried at the conditioning value of interest, replaces what would otherwise be a separate model per condition and provides a smooth interpolant between the labeled conditions\. Cross\-pipeline portability against an independent DFT engine \(Appendix[E](https://arxiv.org/html/2607.05559#A5)\) indicates this reflects chemistry rather than artifacts specific to the DFT engine that produced the training labels\.
Figure 3:Per\-charge RMSE against VASP r2SCAN labels; marker shape gives the split \(circle: training, square: interpolation, triangle: extrapolation\)\.*Top:*force RMSE for E\-MACE, the no\-FiLM baseline \(or equivalently fine\-tuned MACE\-MatPES\), and fine\-tuned MACE\-POLAR\-1\-M \(dashed: chemical accuracy,11kcal/mol/Å\)\.*Middle:*raw per\-atom energy vs\. the no\-FiLM baseline \(dashed: thermal energykBTk\_\{\\mathrm\{B\}\}Tat300300K\)\.*Bottom:*offset\-corrected energy vs\. fine\-tuned MACE\-POLAR\-1\-M \(per\-charge mean removed, a metric generous to MACE\-POLAR\-1\-M\)\. E\-MACE beats its MatPES backbone and matches MACE\-POLAR\-1\-M on force, stays below66meV/atom on raw energy RMSE, and beats MACE\-POLAR\-1\-M on offset\-corrected energy at every interpolation charge\.Against the unconditioned fine\-tuned MACE\-MatPES backbone, E\-MACE is about3×3\\timesbetter on the training charges \(5\.5−7\.55\.5\-7\.5vs\.16−2816\-28meV/Å\) and1\.3−2\.8×1\.3\-2\.8\\timesbetter at every held\-out charge \(18−6118\-61vs\.45−9745\-97meV/Å\)\. Without a conditioning channel, the backbone cannot modulate its output withqq, and E\-MACE’s advantage follows directly from the FiLM block supplying that mechanism\.
A stronger comparison is fine\-tuned MACE\-POLAR\-1\-M\[[1](https://arxiv.org/html/2607.05559#bib.bib24)\], a purpose\-built charge\-aware foundation about20×20\\timeslarger than E\-MACE \(15\.215\.2M vs\.0\.760\.76M parameters\) with explicit per\-atom charge machinery\. On forces the two are comparable across the whole range, held\-out charges included\. The lightweight scalar adapter matches the dedicated charge\-aware architecture without supervising any internal quantity\. Because the two use different absolute\-energy references, the offset\-corrected energies are compared \(each charge’s mean removed\)\. This metric is generous to MACE\-POLAR\-1\-M, since it scores only the within\-charge spread and not the absolute per\-charge baseline\. Even so, E\-MACE wins at every interpolation charge, by up to≈16×\\approx 16\\times\(0\.720\.72vs\.11\.811\.8meV/atom atq=12eq=12e\)\. The shape of the MACE\-POLAR\-1\-M curve has a simple origin\. Within either cell density of the dataset its energy spread is below22meV/atom at every charge, but its energy baseline at fixed charge shifts between the two cell sizes by an amount growing roughly linearly withqq, and a per\-charge offset cannot remove a cell\-size\-dependent baseline\. Its offset\-corrected error therefore grows withqqwherever the geometry pool mixes both densities, and drops to nearly zero atq∈\{16e,18e,20e\}q\\in\\\{16e,18e,20e\\\}, whose pools derive from the single\-densityq=16eq=16etrajectory \(Appendix[C](https://arxiv.org/html/2607.05559#A3)\)\. E\-MACE stays below0\.80\.8meV/atom on the same frames at every charge: the backbone reads the cell density from the geometry, so the conditioned model reconciles the two cell sizes\.
### 3\.2Data efficiency
Figure[4](https://arxiv.org/html/2607.05559#S3.F4)reports the training charge force and energy RMSE of EquiFiLM applied to MACE\-MatPES models trained on10%10\\%,25%25\\%,50%50\\%,75%75\\%and100%100\\%of the combined training set\. Energy RMSE saturates near0\.20\.2meV/atom by the25%25\\%point \(1,605 frames\)\. Force RMSE saturates by the50%50\\%point \(3,211 frames\) at≈\\approx88meV/Å\. Doubling the adapter capacity toh=128h=128at100%100\\%data \(the headline E\-MACE configuration\) drops energy RMSE further to0\.100\.10meV/atom and force RMSE from7\.127\.12to6\.966\.96meV/Å\.
Figure 4:Training charge mean force RMSE \(left axis, blue\) and energy RMSE \(right axis, red\) versus fraction of training data, for adapter widthsh=64h=64\(curves\) andh=128h=128\(stars at100%100\\%\)\. Energy saturates by25%25\\%training data\. Force saturates by50%50\\%\.This sample efficiency reflects the inductive bias of the adapter: rather than re\-discovering where the conditioning input should enter the network, EquiFiLM fixes its insertion point at every interaction layer and leaves only the per\-channel gating values to be learned\. A few thousand DFT\-labeled frames spanning the conditioning axis are therefore sufficient to add a continuous external\-conditioning channel to a foundation MLFF\.
### 3\.3Ablations
To attribute E\-MACE’s improvement to specific design choices, a sequence of variants is trained on identical data and optimizer settings \(Table[2](https://arxiv.org/html/2607.05559#S3.T2)\): the no\-FiLM baseline, a concat charge\-embedding baseline that injects charge at the input rather than through per\-layer gating, and, at fixed adapter widthh=64h=64, an additive\-only ablation that disables the multiplicative gateγ\\gamma\(keeping only the shiftβ\\beta\) and a random\-initialization variant\. A width comparison setsh=64h=64against the headlineh=128h=128\. Inference cost is measured in a single back\-to\-back session on324324\-atom water cells on one A100 GPU in float32, with9090timed trials per variant\.
The additive shiftβ\\betaalone captures most of the gain\. Ath=64h=64, disablingγ\\gammaand keeping onlyβ\\betacuts force RMSE from21\.321\.3meV/Å \(no\-FiLM\) to6\.206\.20, comparable to the fullh=64h=64adapter \(7\.127\.12meV/Å\), and energy RMSE from6\.086\.08to0\.090\.09meV/atom\. This fits a per\-atom energy response that is roughly uniform across atoms at fixedqq: each scalar feature picks up a charge\-dependent offset that the readout composes with the unmodulated higher\-rank channels to produce realistic forces\. The multiplicative gateγ\\gammawould matter more for conditioning that rescales features rather than offsets them, such as temperature or pressure\. It is kept in the default recipe because it is essentially free at inference and extends the same architecture to those axes\.
Injecting the charge as an input token is not enough\. The concat baseline concatenates a1616\-dimensional categorical charge embedding into the node features once at the input, in the spirit of SpookyNet\-style conditioning\. It reaches20\.820\.8meV/Å force and6\.086\.08meV/atom energy RMSE, statistically indistinguishable from the unconditioned no\-FiLM baseline and about3×3\\timesworse on force than any FiLM variant\. Both models have access toqq, so the gap is not access but use: per\-layer modulation lets the network adjust its internal features with charge at every depth, whereas a single input token does not\.
Table 2:EquiFiLM ablation summary: held\-out force and energy RMSE on each model’s own10%10\\%validation split \(final SWA epoch\), with per\-step inference cost\. The four FiLM variants cluster tightly, E\-MACE \(h=128h=128\) is the headline\. Two non\-FiLM baselines are shown for reference, no\-FiLM and a concatenated charge embedding: both are≈3×\\approx 3\\timesworse on force and≈60×\\approx 60\\timeson energy than any FiLM variant, and concat matches no\-FiLM\.Random\-initializing the FiLM weights rather than zero\-initializing \(bothh=64h=64\) gives6\.296\.29meV/Å and0\.100\.10meV/atom, matching the zero\-initialized adapter, and theh=128h=128headline \(6\.966\.96,0\.100\.10\) sits in the same range\. Across the four FiLM models force RMSE spans only6\.2−7\.16\.2\-7\.1meV/Å, far below the≈3×\\approx 3\\timesgap to the no\-FiLM baseline, so the gain is robust to adapter width, gating and initialization\. Zero\-initialization is kept because it makes E\-MACE a drop\-in replacement for the backbone before any gradient update, though it is not required for accuracy\. All variants sit within3%3\\%of one another in per\-step inference cost, so the FiLM head adds no measurable overhead\.
### 3\.4Applications
E\-MACE is now applied to molecular dynamics \(MD\) simulations across the full charge axis, with one set of weights driving trajectories at charges spanning training, interpolation and extrapolation\. All MD experiments in the main text use the324324\-atom training cell \(cubic, edge14\.814\.8Å\) at300300K with a0\.50\.5fs timestep, and the headline E\-MACE configuration\.
#### 3\.4\.1Energy conservation
MD integrates the equations of motion under the model’s forces\. If those forces are not the gradient of a consistent energy, as can happen when a conditioning channel introduces non\-conservative pathways, the total energy drifts and the trajectory fails to sample the correct distribution\. The standard test equilibrates in the canonical \(NVT\) ensemble and then detaches the thermostat to continue in the microcanonical \(NVE\) ensemble, where total energy must be conserved by construction\.
Over a1\.51\.5ps post\-thermostat detach NVE window the mean total\-energy drift is\+0\.004\+0\.004meV/atom atq=12eq=12e\(interpolation\) and\+0\.010\+0\.010meV/atom atq=20eq=20e\(extrapolation\), shown in Figure[5](https://arxiv.org/html/2607.05559#S3.F5)\. Because the FiLM block depends only on the per\-graph scalar and acts only on scalar channels, the conditioning channel preserves the property that forces are exact gradients of a position\-dependent energy uniformly acrossqq\. The full NVT\-NVE protocol is described in Appendix[F](https://arxiv.org/html/2607.05559#A6)\.
Figure 5:Energy conservation over1\.51\.5ps post\-thermostat detach atq=12eq=12e\(interpolation, top\) andq=20eq=20e\(extrapolation, bottom\)\.EpotE\_\{\\rm pot\}\(red\) andEkinE\_\{\\rm kin\}\(green\) exchange thermal\-scale energy of order±5\\pm 5meV/atom while their sumEtotE\_\{\\rm tot\}\(blue\) stays within an≈0\.18\\approx 0\.18meV/atom band, with mean drift below0\.010\.01meV/atom\. One set of E\-MACE weights gives stable dynamics across the full interpolation\-extrapolation range\.
#### 3\.4\.2Charge\-dependent diffraction signal
X\-ray and electron scattering probe the reduced pair distribution function \(PDF\)G\(r\)=4πrρ0\[gtot\(r\)−1\]G\(r\)=4\\pi r\\rho\_\{0\}\[g\_\{\\rm tot\}\(r\)\-1\], wheregtotg\_\{\\rm tot\}sums the O\-O, O\-H and H\-H partials weighted by their squared atomic scattering factors \(X\-ray weights0\.64/0\.32/0\.040\.64/0\.32/0\.04, so the O\-O term dominates\)\. Ultrafast electron diffraction \(UED\) of photoexcited water measures the time\-resolved differenceΔG\(r;t\)\\Delta G\(r;t\)following the perturbation\[[23](https://arxiv.org/html/2607.05559#bib.bib46)\]\. A model that runs stable MD across the charge axis predicts the corresponding equilibrium charge responseΔG\(r;q\)=G\(r;q\)−G\(r;0\)\\Delta G\(r;q\)=G\(r;q\)\-G\(r;0\)at anyqq\.
Figure 6:Equilibrium charge response of the reduced PDF,ΔG\(r;q\)=G\(r;q\)−G\(r;0\)\\Delta G\(r;q\)=G\(r;q\)\-G\(r;0\), from E\-MACE NVT trajectories atq∈\{4e,8e,14e,18e\}q\\in\\\{4e,8e,14e,18e\\\}, computed with X\-ray scattering weights\. Dashed vertical lines mark the ambient\-water O\-H, H\-H and O\-O pair distances\. This is the equilibrium charge\-response component of the reduced PDF difference that ultrafast electron diffraction and X\-ray pair\-distribution\-function analysis measure\.Figure[6](https://arxiv.org/html/2607.05559#S3.F6)showsΔG\(r;q\)\\Delta G\(r;q\)from NVT trajectories at three interpolation charges \(q∈\{4e,8e,14e\}q\\in\\\{4e,8e,14e\\\}\) and one extrapolation charge \(q=18eq=18e\)\. A trough nearr≈2\.7r\\approx 2\.7Å and a peak nearr≈3\.3r\\approx 3\.3Å mark an outward shift of the first O\-O coordination shell\. Both grow monotonically with\|q\|\|q\|, and theq=18eq=18ecurve continues the trend without discontinuity\. This is a concrete and falsifiable structural prediction for water under ionization, and one model supplies it at anyqqwithin picoseconds of MD per query\. At the highest charges the H\-H partial also grows a peak at the H2bond length of≈0\.74\\approx 0\.74Å, the signature of reductive H2formation \(H\-H panel of Figure[9](https://arxiv.org/html/2607.05559#A7.F9)in Appendix[G](https://arxiv.org/html/2607.05559#A7)\)\. This feature is already present in theq=16eq=16eAIMD training data, so the model reproduces a genuine reductive process rather than a structural artifact\. Appendix[G](https://arxiv.org/html/2607.05559#A7)also gives the per\-pair correlationsgαβ\(r;q\)g\_\{\\alpha\\beta\}\(r;q\)and the smoothing convention\.
All results above use the324324\-atom training cell\. In a2×2×22\\times 2\\times 2supercell of2,5922,592atoms, eight times larger than any configuration the model was trained on, the same set of weights continues to run stable, energy\-conserving MD across the charge range and reproduces both the per\-pair structural responses andΔG\(r;q\)\\Delta G\(r;q\)quantitatively \(Appendix[H](https://arxiv.org/html/2607.05559#A8)\)\. The charge\-conditioned dynamics therefore transfer beyond the training cell size as well as beyond the training charges\.
## 4Discussion
Charged liquid water is one instance of a capability that is general by construction\. The adapter is a small per\-graph MLP whose output gates the scalar slice of every interaction layer, nothing in this mechanism refers to charge\. Because the gating depends only on a generic continuous scalar and acts only on E\(3\)\-invariant channels, replacing total charge with another smooth external variable changes the input the gating MLP reads, not the architecture\. Natural targets include variable temperature dynamics under one set of weights, field\-response coefficients computed as energy derivatives, hydrostatic pressure conditioning, and doping fraction interpolation\. In principle, each needs only a fine\-tuning corpus spanning the relevant axis\.
The construction is equally independent of the backbone\. Any equivariant message\-passing potential with scalar interaction\-layer channels can host the block, including the MACE, NequIP\[[4](https://arxiv.org/html/2607.05559#bib.bib4)\], Allegro\[[26](https://arxiv.org/html/2607.05559#bib.bib5)\]and Equiformer families and foundations such as UMA, eSEN and SevenNet\-Omni, because the adapter never touches the higher\-rank geometric channels that distinguish these architectures\. Training a charge\-aware foundation from scratch needs corpora of order10810^\{8\}structures\. EquiFiLM adds a conditioning axis for a few thousand DFT\-labeled frames, provided the foundation already covers the chemistry\. The broader point is that conditioning a foundation MLFF is an adapter problem, just as task adaptation became one in language and vision\. Parameter\-efficient modulation of the forward pass brings a new controllable degree of freedom under the model without retraining the representation\. Wherever the backbone already covers the chemistry and a small corpus spans the axis, as in photoexcitation, electrochemical interfaces, plasma\-driven solvation or doped semiconductors, the conditioning axis can be added at adapter cost rather than foundation cost\.
EquiFiLM presupposes that the foundation backbone already covers the chemistry of interest at near\-DFT accuracy on the unconditioned baseline\. Chemistry outside that coverage reduces the recipe to standard fine\-tuning, where most of the work falls on the backbone weights rather than on the adapter\. The conditioning effect is also assumed to be smooth inccover the range of interest, and the relative loading onβ\\betaversusγ\\gammadepends on whether the conditioning acts predominantly as a baseline shift \(as for charge, Section[3\.3](https://arxiv.org/html/2607.05559#S3.SS3)\) or as a feature rescaling, the latter of which has not been validated empirically\. Beyond a single continuous scalar, conditioning on a discrete or categorical axis would require a different input embedding, and multi\-axis conditioning is untested, with no guarantee that theβ\\betaandγ\\gammaloading factorizes across axes\.
## 5Related work
EquiFiLM is a Feature\-wise Linear Modulation operator\[[27](https://arxiv.org/html/2607.05559#bib.bib34)\]applied to the scalar channels of an equivariant network\. FiLM generalizes Conditional Batch Normalization\[[6](https://arxiv.org/html/2607.05559#bib.bib35)\], where the parameters of normalization layers are produced by an auxiliary network conditioned on a side input\. The broader parameter\-efficient fine\-tuning literature, including LoRA\[[15](https://arxiv.org/html/2607.05559#bib.bib38)\], Houlsby Adapters\[[14](https://arxiv.org/html/2607.05559#bib.bib37)\]and HyperNetworks\[[13](https://arxiv.org/html/2607.05559#bib.bib36)\], establishes the same framing in language and vision: small trainable modules added to a frozen or jointly fine\-tuned backbone, with footprints orders of magnitude below full retraining\. EquiFiLM is in this terminology a conditional adapter for an equivariant atomistic network, in which the gating depends on a per\-input continuous scalar rather than being merged into the base weights at inference \(as in LoRA\) or being task\-fixed \(as in Houlsby Adapters\)\. To our knowledge it is the first such conditional adapter for an equivariant interatomic potential\.
Charge\-aware atomistic networks prior to ours fall into two families\. SpookyNet\[[30](https://arxiv.org/html/2607.05559#bib.bib33)\]injects total charge and spin as additive embeddings at the input layer of an attention\-based message\-passing architecture\. This differs operationally from per\-layer modulation of a pretrained backbone, and SpookyNet is trained from scratch rather than as an adapter on top of a foundation\. The charge\-equilibration and Wannier\-centroid family\[[1](https://arxiv.org/html/2607.05559#bib.bib24),[20](https://arxiv.org/html/2607.05559#bib.bib20),[17](https://arxiv.org/html/2607.05559#bib.bib23),[32](https://arxiv.org/html/2607.05559#bib.bib27),[33](https://arxiv.org/html/2607.05559#bib.bib22),[5](https://arxiv.org/html/2607.05559#bib.bib49),[12](https://arxiv.org/html/2607.05559#bib.bib29),[11](https://arxiv.org/html/2607.05559#bib.bib25)\]predicts per\-atom partial charges or Wannier\-centroid positions and feeds them back through an explicit Coulomb sum, sometimes with iterative equilibration, trained from scratch with dedicated charge supervision\. EquiFiLM commits only to the existence of scalar channels at every interaction layer, treats the conditioning input as a generic continuous variable, and supervises no internal physical quantity\. As a direct empirical comparison, fine\-tuning the charge\-aware foundation MACE\-POLAR\-1\-M\[[1](https://arxiv.org/html/2607.05559#bib.bib24)\]on the same data yields force accuracy competitive with E\-MACE on the training charges, despite its explicit per\-atom charge machinery and dedicated charge supervision\. The lightweight adapter matches a dedicated charge\-aware foundation on the training charges without supervising any internal quantity\. The two approaches are not mutually exclusive: an EquiFiLM adapter could in principle be combined with an explicit charge\-aware mechanism\.
## 6Conclusions
EquiFiLM extends the parameter\-efficient adapter pattern to equivariant foundation interatomic potentials\. It is demonstrated on charged liquid water with MACE\-MatPES as the backbone, calling the resulting model E\-MACE\. The same recipe applies, without architectural change, to any equivariant MLFF with scalar interaction\-layer channels and to any continuous external variable on which the energy depends smoothly\. The practical implication for machine learning in materials science is that adding a continuous control variable to a foundation MLFF, whether charge or temperature, is the same adapter problem that language and vision already solved: a small fine\-tuning corpus along the conditioning axis is enough, without retraining the foundation\.
## Data and Code Availability
The reference implementation, including the four MACE source\-file patches that introduceChargeFiLMBlock, training and evaluation example scripts, unit tests, and a reproduction walkthrough, is available at[https://github\.com/samsahsch/EquiFiLM](https://github.com/samsahsch/EquiFiLM)\. The training data \(four AIMD trajectories atq∈\{0,6e,10e,16e\}q\\in\\\{0,6e,10e,16e\\\}, each at the r2SCAN meta\-GGA level\) and the trainedE\-MACEcheckpoint are deposited at Zenodo DOI:[10\.5281/zenodo\.20067517](https://zenodo.org/records/20067517)\.
## Acknowledgments and Disclosure of Funding
This work was performed using National Energy Research Scientific Computing Center \(NERSC\), a Department of Energy User Facility under NERSC award BES\-ERCAP 0035639\. This work was supported by the AMOS program within the U\.S\. Department of Energy, Office of Science, Basic Energy Sciences, Chemical Sciences, Geosciences, and Biosciences Division\. S\.S\.S\. and T\.L\. acknowledge support by the U\.S\. Department of Energy, Office of Science, Office of Basic Energy Sciences under Contract No\. DE\-AC02\-76SF00515\. A\.N\. was supported by Office of Naval Research through a Multi\-University Research Initiative \(MURI\) grant N00014\-24\-1\-2313\.
## References
- \[1\]I\. Batatia, W\. J\. Baldwin, D\. Kuryla, J\. Hart, E\. Kasoar, A\. M\. Elena, H\. Moore, M\. J\. Gawkowski, B\. X\. Shi, V\. Kapil, P\. Kourtis, I\. Magdău, and G\. Csányi\(2026\)MACE\-POLAR\-1: a polarisable electrostatic foundation model for molecular chemistry\.arXiv preprint arXiv:2602\.19411\.Cited by:[§1](https://arxiv.org/html/2607.05559#S1.p2.1),[§3\.1](https://arxiv.org/html/2607.05559#S3.SS1.p4.13),[§5](https://arxiv.org/html/2607.05559#S5.p2.1)\.
- \[2\]\(2025\)A foundation model for atomistic materials chemistry\.The Journal of Chemical Physics\.Cited by:[§1](https://arxiv.org/html/2607.05559#S1.p1.1)\.
- \[3\]I\. Batatia, D\. P\. Kovács, G\. N\. C\. Simm, C\. Ortner, and G\. Csányi\(2022\)MACE: higher order equivariant message passing neural networks for fast and accurate force fields\.InAdvances in Neural Information Processing Systems,Cited by:[§2\.1](https://arxiv.org/html/2607.05559#S2.SS1.p1.8)\.
- \[4\]S\. Batzner\(2022\)E\(3\)\-equivariant graph neural networks for data\-efficient and accurate interatomic potentials\.Nature Communications13,pp\. 2453\.Cited by:[Appendix D](https://arxiv.org/html/2607.05559#A4.p4.1),[§4](https://arxiv.org/html/2607.05559#S4.p2.1)\.
- \[5\]M\. Calegari Andrade, R\. Car, and A\. Selloni\(2023\)Probing the self\-ionization of liquid water with ab initio deep potential molecular dynamics\.Proceedings of the National Academy of Sciences120,pp\. e2302468120\.Cited by:[§5](https://arxiv.org/html/2607.05559#S5.p2.1)\.
- \[6\]H\. de Vries, F\. Strub, J\. Mary, H\. Larochelle, O\. Pietquin, and A\. C\. Courville\(2017\)Modulating early visual processing by language\.InAdvances in Neural Information Processing Systems,Cited by:[§5](https://arxiv.org/html/2607.05559#S5.p1.1)\.
- \[7\]R\. Drautz\(2019\)Atomic cluster expansion for accurate and transferable interatomic potentials\.Physical Review B99,pp\. 014104\.Cited by:[§2\.1](https://arxiv.org/html/2607.05559#S2.SS1.p1.8)\.
- \[8\]J\. Enkovaara, C\. Rostgaard, J\. J\. Mortensen, J\. Chen, M\. Dułak, L\. Ferrighi, J\. Gavnholt, C\. Glinsvad, V\. Haikola, H\. A\. Hansen,et al\.\(2010\)Electronic structure calculations with GPAW: a real\-space implementation of the projector augmented\-wave method\.Journal of Physics: Condensed Matter22,pp\. 253202\.Cited by:[Appendix E](https://arxiv.org/html/2607.05559#A5.p1.11)\.
- \[9\]X\. Fu, B\. M\. Wood, L\. Barroso\-Luque, D\. S\. Levine, M\. Gao, M\. Dzamba, and C\. L\. Zitnick\(2025\)Learning smooth and expressive interatomic potentials for physical property prediction\.arXiv preprint arXiv:2502\.12147\.Cited by:[§1](https://arxiv.org/html/2607.05559#S1.p1.1)\.
- \[10\]J\. W\. Furness, A\. D\. Kaplan, J\. Ning, J\. P\. Perdew, and J\. Sun\(2020\)Accurate and numerically efficient r2SCAN meta\-generalized gradient approximation\.Journal of Physical Chemistry Letters11,pp\. 8208–8215\.Cited by:[Appendix C](https://arxiv.org/html/2607.05559#A3.p2.14),[§2\.3](https://arxiv.org/html/2607.05559#S2.SS3.p1.5)\.
- \[11\]R\. Gao, C\. Yam, J\. Mao, S\. Chen, G\. Chen, and Z\. Hu\(2025\)A foundation machine learning potential with polarizable long\-range interactions for materials modelling\.Nature Communications16,pp\. 10484\.Cited by:[§5](https://arxiv.org/html/2607.05559#S5.p2.1)\.
- \[12\]R\. Gao, Y\. Li, and R\. Car\(2024\)Enhanced deep potential model for fast and accurate molecular dynamics: application to the hydrated electron\.Physical Chemistry Chemical Physics26,pp\. 23080–23088\.Cited by:[§5](https://arxiv.org/html/2607.05559#S5.p2.1)\.
- \[13\]D\. Ha, A\. Dai, and Q\. V\. Le\(2017\)HyperNetworks\.InInternational Conference on Learning Representations,Cited by:[§5](https://arxiv.org/html/2607.05559#S5.p1.1)\.
- \[14\]N\. Houlsby, A\. Giurgiu, S\. Jastrzębski, B\. Morrone, Q\. de Laroussilhe, A\. Gesmundo, M\. Attariyan, and S\. Gelly\(2019\)Parameter\-efficient transfer learning for NLP\.InInternational Conference on Machine Learning,Cited by:[§5](https://arxiv.org/html/2607.05559#S5.p1.1)\.
- \[15\]E\. J\. Hu, Y\. Shen, P\. Wallis, Z\. Allen\-Zhu, Y\. Li, S\. Wang, L\. Wang, and W\. Chen\(2022\)LoRA: low\-rank adaptation of large language models\.InInternational Conference on Learning Representations,Cited by:[§5](https://arxiv.org/html/2607.05559#S5.p1.1)\.
- \[16\]P\. Izmailov, D\. Podoprikhin, T\. Garipov, D\. Vetrov, and A\. G\. Wilson\(2018\)Averaging weights leads to wider optima and better generalization\.arXiv preprint arXiv:1803\.05407\.Cited by:[Appendix D](https://arxiv.org/html/2607.05559#A4.p1.4),[§2\.3](https://arxiv.org/html/2607.05559#S2.SS3.p1.5)\.
- \[17\]B\. Kalita, R\. Zubatyuk, D\. M\. Anstine, M\. Bergeler, V\. Settels, C\. Stork, S\. Spicher, and O\. Isayev\(2025\)AIMNet2\-NSE: a transferable reactive neural network potential for open\-shell chemistry\.ChemRxiv\.External Links:[Document](https://dx.doi.org/10.26434/chemrxiv-2025-kdg6n-v2)Cited by:[§1](https://arxiv.org/html/2607.05559#S1.p2.1),[§5](https://arxiv.org/html/2607.05559#S5.p2.1)\.
- \[18\]A\. D\. Kaplan, R\. Liu, J\. Qi, T\. W\. Ko, B\. Deng, J\. Riebesell, G\. Ceder, K\. A\. Persson, and S\. P\. Ong\(2025\)A foundational potential energy surface dataset for materials\.arXiv preprint arXiv:2503\.04070\.Cited by:[Table 7](https://arxiv.org/html/2607.05559#A4.T7.5.1.1),[§1](https://arxiv.org/html/2607.05559#S1.p1.1),[§2\.1](https://arxiv.org/html/2607.05559#S2.SS1.p1.8)\.
- \[19\]J\. Kim, J\. You, Y\. Park, Y\. Lim, Y\. Kang, J\. Kim, H\. Jeon, S\. Ju, D\. Hong, S\. Y\. Lee, S\. Choi, Y\. Kim, J\. W\. Lee, and S\. Han\(2025\)Optimizing cross\-domain transfer for universal machine learning interatomic potentials\.arXiv preprint arXiv:2510\.11241\.Cited by:[§1](https://arxiv.org/html/2607.05559#S1.p1.1)\.
- \[20\]T\. W\. Ko, J\. A\. Finkler, S\. Goedecker, and J\. Behler\(2021\)A fourth\-generation high\-dimensional neural network potential with accurate electrostatics including non\-local charge transfer\.Nature Communications12,pp\. 398\.Cited by:[§1](https://arxiv.org/html/2607.05559#S1.p2.1),[§5](https://arxiv.org/html/2607.05559#S5.p2.1)\.
- \[21\]G\. Kresse and J\. Furthmüller\(1996\)Efficient iterative schemes forab initiototal\-energy calculations using a plane\-wave basis set\.Physical Review B54,pp\. 11169–11186\.Cited by:[Appendix C](https://arxiv.org/html/2607.05559#A3.p2.14),[§2\.3](https://arxiv.org/html/2607.05559#S2.SS3.p1.5)\.
- \[22\]Y\. Liao, A\. J\. Hoffman, S\. C\. Shen, A\. Duval, S\. W\. Norwood, and T\. Smidt\(2026\)EquiformerV3: scaling efficient, expressive, and general SE\(3\)\-equivariant graph attention transformers\.arXiv preprint arXiv:2604\.09130\.Cited by:[§1](https://arxiv.org/html/2607.05559#S1.p1.1)\.
- \[23\]M\. Lin, N\. Singh, S\. Liang, M\. Mo, J\. P\. F\. Nunes, K\. Ledbetter, J\. Yang, M\. Kozina, S\. Weathersby, X\. Shen,et al\.\(2021\)Imaging the short\-lived hydroxyl\-hydronium pair in ionized liquid water\.Science374,pp\. 92–95\.Cited by:[§3\.4\.2](https://arxiv.org/html/2607.05559#S3.SS4.SSS2.p1.6)\.
- \[24\]I\. Loshchilov and F\. Hutter\(2017\)Decoupled weight decay regularization\.arXiv preprint arXiv:1711\.05101\.Cited by:[Table 7](https://arxiv.org/html/2607.05559#A4.T7.13.11.1.2)\.
- \[25\]A\. Mazitov, F\. Bigi, M\. Kellner, P\. Pegolo, D\. Tisi, G\. Fraux, S\. Pozdnyakov, P\. Loche, and M\. Ceriotti\(2025\)PET\-MAD as a lightweight universal interatomic potential for advanced materials modeling\.Nature Communications16,pp\. 10653\.Cited by:[§1](https://arxiv.org/html/2607.05559#S1.p1.1)\.
- \[26\]A\. Musaelian, S\. Batzner, A\. Johansson, L\. Sun, C\. J\. Owen, M\. Kornbluth, and B\. Kozinsky\(2023\)Learning local equivariant representations for large\-scale atomistic dynamics\.Nature Communications14,pp\. 579\.Cited by:[Appendix D](https://arxiv.org/html/2607.05559#A4.p4.1),[§4](https://arxiv.org/html/2607.05559#S4.p2.1)\.
- \[27\]E\. Perez, F\. Strub, H\. de Vries, V\. Dumoulin, and A\. Courville\(2018\)FiLM: visual reasoning with a general conditioning layer\.InAAAI Conference on Artificial Intelligence,Cited by:[§1](https://arxiv.org/html/2607.05559#S1.p3.1),[§5](https://arxiv.org/html/2607.05559#S5.p1.1)\.
- \[28\]S\. J\. Reddi, S\. Kale, and S\. Kumar\(2019\)On the convergence of Adam and beyond\.arXiv preprint arXiv:1904\.09237\.Cited by:[Table 7](https://arxiv.org/html/2607.05559#A4.T7.13.11.1.2)\.
- \[29\]B\. Rhodes, S\. Vandenhaute, V\. Šimkus, J\. Gin, J\. Godwin, T\. Duignan, and M\. Neumann\(2025\)Orb\-v3: atomistic simulation at scale\.arXiv preprint arXiv:2504\.06231\.Cited by:[§1](https://arxiv.org/html/2607.05559#S1.p1.1)\.
- \[30\]O\. T\. Unke, S\. Chmiela, M\. Gastegger, K\. T\. Schütt, H\. E\. Sauceda, and K\. Müller\(2021\)SpookyNet: learning force fields with electronic degrees of freedom and nonlocal effects\.Nature Communications12,pp\. 7273\.Cited by:[§1](https://arxiv.org/html/2607.05559#S1.p2.1),[§5](https://arxiv.org/html/2607.05559#S5.p2.1)\.
- \[31\]B\. M\. Wood, M\. Dzamba, X\. Fu, M\. Gao, M\. Shuaibi, L\. Barroso\-Luque, K\. Abdelmaqsoud, V\. Gharakhanyan, J\. R\. Kitchin, D\. S\. Levine, K\. Michel, A\. Sriram, T\. Cohen, A\. Das, A\. Rizvi, S\. J\. Sahoo, Z\. W\. Ulissi, and C\. L\. Zitnick\(2025\)UMA: a family of universal models for atoms\.arXiv preprint arXiv:2506\.23971\.Cited by:[§1](https://arxiv.org/html/2607.05559#S1.p1.1)\.
- \[32\]L\. Zhang, H\. Wang, M\. C\. Muniz, A\. Z\. Panagiotopoulos, R\. Car, and W\. E\(2022\)A deep potential model with long\-range electrostatic interactions\.Journal of Chemical Physics156,pp\. 124107\.Cited by:[§1](https://arxiv.org/html/2607.05559#S1.p2.1),[§5](https://arxiv.org/html/2607.05559#S5.p2.1)\.
- \[33\]R\. Zubatyuk, J\. S\. Smith, B\. T\. Nebgen, S\. Tretiak, and O\. Isayev\(2021\)Teaching a neural network to attach and detach electrons from molecules\.Nature Communications12,pp\. 4870\.Cited by:[§5](https://arxiv.org/html/2607.05559#S5.p2.1)\.
Appendix
## Appendix APer\-state cross\-evaluation matrix
The introduction claims that per\-state MACE\-MatPES specialists trained one model per charge cannot generalize to unseen charges\. This appendix provides the supporting cross\-evaluation data, comparing four specialists \(each fine\-tuned on a single training chargeq∈\{0,6e,10e,16e\}q\\in\\\{0,6e,10e,16e\\\}\) against the foundation backbone, the unconditioned no\-FiLM MACE\-MatPES baseline, and E\-MACE\. Every model is evaluated on the same fixed validation set: a frozen10%10\\%random hold\-out of every training trajectory \(Appendix[C](https://arxiv.org/html/2607.05559#A3)\)\. Each per\-state specialist is fine\-tuned from the MACE\-MatPES backbone with the same optimizer settings and total training budget as E\-MACE \(Appendix[D](https://arxiv.org/html/2607.05559#A4)\)\. The only difference between specialists and E\-MACE is the data their gradient updates see and the absence of the FiLM adapter\.


Figure 7:Cross\-evaluation heatmaps on the four training charges\.*Top:*force RMSE in meV/Å\.*Bottom:*energy RMSE in meV/atom\. Rows are the test charge, columns the model\. The four right\-most columns are per\-state MACE\-MatPES specialists, each fine\-tuned on a single training charge\. The bright\-yellow diagonal in those columns marks each specialist’s matched training charge\. The leftmost column is the unconditioned MACE\-MatPES foundation backbone \(zero\-shot, no fine\-tuning\)\. The second column is the no\-FiLM baseline \(single MACE\-MatPES fine\-tuned on all four training charges combined, no FiLM block\)\. The third column is E\-MACE \(same backbone, same data, plus the FiLM adapter\)\.Figure[7](https://arxiv.org/html/2607.05559#A1.F7)shows the resulting force and energy heatmaps, and Table[3](https://arxiv.org/html/2607.05559#A1.T3)lists the per\-state specialist cells numerically\. Each specialist is excellent on its own charge and collapses everywhere else\. Relative to the specialist matched to the test charge, off\-diagonal cells degrade by roughly200200to3,500×3,500\\timesin energy and1010to130×130\\timesin force\. The off\-diagonal magnitude grows monotonically in\|qtrained−qtest\|\|q\_\{\\rm trained\}\-q\_\{\\rm test\}\|: the smallest off\-diagonal cells are the nearest\-charge pairs \(e\.g\.q=6eq=6especialist evaluated atq=10eq=10eat82\.582\.5meV/Å in force\), and the largest are the most\-separated pairs \(e\.g\.q=0q=0specialist evaluated atq=16eq=16eat650650meV/Å\)\. Within a fixed charge gap the matrix shows mild direction\-dependent variation at the level of a factor of two to three, and the direction is not consistent across metrics \(q=0q=0specialist onq=16eq=16egives650650meV/Å in force whileq=16eq=16especialist onq=0q=0gives192192, but on energy the asymmetry runs the other way at62\.862\.8versus104\.6104\.6meV/atom\)\. The off\-diagonal degradation is therefore set primarily by the charge gap rather than by the direction of extrapolation\. The empirical content of this matrix is that a model trained on a single charge has no representation of how the potential energy surface depends on the conditioning input: at every off\-diagonal cell, regardless of direction, accuracy drops by orders of magnitude\. This is the observation that motivates a charge\-conditioned model\.
Table 3:Per\-state specialist cross\-evaluation\. Each cell reportsenergy RMSE \(meV/atom\) / force RMSE \(meV/Å\)\. Rows: the charge the specialist was fine\-tuned on\. Columns: test charge\.The three reference columns of Figure[7](https://arxiv.org/html/2607.05559#A1.F7)show why conditioning, rather than more training data, is the missing ingredient\. The zero\-shot foundation backbone is uniformly poor and degrades further at highqq: it never specializes, so it fails everywhere\. The no\-FiLM baseline shows the complementary failure\. Trained on all four charges but given no input that distinguishes them, it can only learn a single compromise potential energy surface, so its errors are roughly uniform across charges \(1616to2828meV/Å in force\) yet remain far above every specialist diagonal\. E\-MACE removes the compromise\. With charge as a conditioning input, one set of weights reaches5\.55\.5to7\.57\.5meV/Å across the four charges, within11to22meV/Å of each specialist on its own diagonal \(4\.64\.6to6\.46\.4meV/Å\), and matches the specialist diagonals outright on energy \(0\.0560\.056to0\.110\.11vs\.0\.0300\.030to0\.120\.12meV/atom, Table[3](https://arxiv.org/html/2607.05559#A1.T3)and Figure[7](https://arxiv.org/html/2607.05559#A1.F7)\)\. One conditioned model therefore delivers near\-specialist accuracy at every charge simultaneously, which no unconditioned model in the matrix achieves at any charge\. This is the observation that motivates a charge\-conditioned model\.
## Appendix BFiLM adapter parameter and inference cost
Each ChargeFiLMBlock contains two independent two\-layer MLPs \(one forγ\\gamma, one forβ\\beta\), each mappingℝ→ℝNs\\mathbb\{R\}\\to\\mathbb\{R\}^\{N\_\{s\}\}with hidden widthh=128h=128and SiLU activation\. OneChargeFiLMBlockis attached per interaction layer, atK=2K=2sites in the MACE\-MatPES network \(interactions\.0andinteractions\.1\)\.
The two interaction layers differ in their scalar channel count due to the MACE\-MatPES hidden irreps:Ns=128N\_\{s\}=128for layer 0 andNs=256N\_\{s\}=256for layer 1\. The per\-network parameter count is\(1⋅h\+h\)\+\(hNs\+Ns\)\(1\\cdot h\+h\)\+\(hN\_\{s\}\+N\_\{s\}\)\(first linear layer:1→h1\\to hweights\+bias; second:h→Nsh\\to N\_\{s\}weights\+bias\), giving16,76816,768per network for layer 0 \(Ns=128N\_\{s\}=128\) and33,28033,280for layer 1 \(Ns=256N\_\{s\}=256\)\. Each block has two networks \(γ\\gammaandβ\\beta\), so block\-level counts are33,53633,536and66,56066,560respectively\. The total adapter footprint is therefore33,536\+66,560=100,09633,536\+66,560=100,096parameters \(≈0\.10\\approx 0\.10M\)\. Inspecting the trained checkpoint confirms the MACE\-MatPES backbone contributes655,534655,534parameters \(≈0\.66\\approx 0\.66M\), making the adapter a≈15%\\approx 15\\%overhead \(total model≈0\.76\\approx 0\.76M\)\.
The benchmark times one forward\-and\-backward pass of each model on a fixed324324\-atom liquid water cell at batch size11on a single A100 GPU, timing9090trials after1010warm\-up trials\. A forward\-and\-backward pass is what an MD step requires, since forces are obtained as the gradient of the energy with respect to atomic positions\. Two protocol details matter for a fair comparison\. First, every model is timed in the same dtype,float32, the precision used for production MD\. Timing infloat64inflates all numbers by roughly1\.3×1\.3\\timeson A100\. Second, each timed trial is run on a freshly perturbed copy of the geometry \(atomic positions jittered by10−310^\{\-3\}Å\), because the ASE calculator interface caches results for an unchanged configuration and would otherwise return the previous step’s forces without recomputation, yielding spuriously fast times\. All five rows of Table[1](https://arxiv.org/html/2607.05559#S1.T1)were measured in a single back\-to\-back session on one idle A100 under these settings, so they are directly comparable\.
Under this protocol Table[1](https://arxiv.org/html/2607.05559#S1.T1)compares five models\. E\-MACE measures193±2193\\pm 2µs per atom\-step against191±1191\\pm 1µs for the unconditioned MACE\-MatPES backbone fine\-tuned on the same data\. The two differ by≈1%\\approx 1\\%with overlapping1σ1\\sigmabars and are statistically indistinguishable, as both share the identical H/O backbone and differ only by the FiLM head\. The per\-step cost of the FiLM adapter itself is one MLP forward pass on a single scalar input plusKKelement\-wise operations on the scalar slices of the message tensor, anO\(Ns\)O\(N\_\{s\}\)contribution dominated atNN\-atom scale by the equivariant tensor products of the backbone\. The remaining two rows are not the same architecture and are included for context\. The zero\-shot MACE\-MatPES foundation measures213±3213\\pm 3µs per atom\-step\. It is slower than the fine\-tuned backbone not because of any adapter but because it is the full\-periodic\-table foundation \(9\.069\.06M parameters spanning≈89\\approx 89elements\) and carries that entire element\-embedding and readout machinery through every forward pass even on a two\-element water cell, whereas the fine\-tuned backbone is the same architecture filtered to hydrogen and oxygen \(0\.660\.66M parameters\) by the standard foundation fine\-tuning workflow \(Appendix[D](https://arxiv.org/html/2607.05559#A4)\)\. MACE\-POLAR\-1\-M and its fine\-tune measure≈578−582\\approx 578\-582µs per atom\-step, about3×3\\timesE\-MACE, reflecting the larger purpose\-built charge\-aware architecture rather than any difference in conditioning mechanism\. The two MACE\-POLAR\-1\-M rows are equal within error, as expected since fine\-tuning does not change the architecture\.
NequIP and Allegro are omitted from Table[1](https://arxiv.org/html/2607.05559#S1.T1)because their reference inference uses a different framework and a compiled, CUDA\-only kernel stack that is not directly comparable to the eager\-mode PyTorch timing of the MACE family reported here\. Measured under the same conditions, they run faster than the MACE family \(≈27\\approx 27and≈32\\approx 32μ\\mus per atom\-step, respectively\), but this reflects their smaller architectures and a different compiled runtime rather than anything about the conditioning mechanism\.
The inference column of Table[2](https://arxiv.org/html/2607.05559#S3.T2)extends the same measurement to the FiLM ablation variants\.β\\beta\-only, random initialization,h=64h=64andh=128h=128all measure193193µs per atom\-step, inside the same191−193191\-193µs band, so neither adapter width, gating, nor initialization changes the per\-step cost\.
A naive PyTorch implementation of the FiLM scalar\-slice update via in\-place index assignment,out = features\.clone\(\); out\[:, :N\_s\] = s\_film, wheres\_filmdenotes the FiLM\-transformed scalar slice of Equation[2](https://arxiv.org/html/2607.05559#S2.E2), triggers the slow IndexPut backward path during force computation, which routes through a generic strided\-write kernel rather than the contiguous concatenation operator\. Because forces require a second backward pass through the model \(gradient of energy with respect to positions\), at324324\-atom scale this routing slows a forward\-and\-backward step by roughly two orders of magnitude\. The reference implementation instead builds the output tensor in pure\-functional form,out = torch\.cat\(\[s\_film, rest\], dim=\-1\), which restores native message\-passing speed and is mathematically identical to the in\-place version\. Without this rewrite E\-MACE would be approximately100×100\\timesslower than its own backbone\.
## Appendix CDataset composition
This appendix specifies the four AIMD trajectories used as training labels, the DFT settings used to compute per\-frame energies and forces, the protocol used to sample held\-out geometries at each of the seven evaluation charges, and the fixed train/validation split\.
The training set is the union of four ab initio molecular dynamics \(AIMD\) trajectories of liquid water at total electronic chargesq∈\{0,6e,10e,16e\}q\\in\\\{0,6e,10e,16e\\\}, whereqqcounts the number of electrons added to a closed\-shell324324\-atom neutral reference cell \(108108H2O molecules under periodic boundary conditions\)\. Trajectories are propagated under VASP\[[21](https://arxiv.org/html/2607.05559#bib.bib41)\]at the r2SCAN meta\-GGA level\[[10](https://arxiv.org/html/2607.05559#bib.bib42)\]at300300K, with energies and forces written at every step\. Per\-state frame counts and the distribution across two cubic cell edge lengths \(13\.813\.8Å and14\.814\.8Å\) are listed in Table[4](https://arxiv.org/html/2607.05559#A3.T4)\. Of the6,4236,423total frames,1,5001,500are at the dense edge length and4,9234,923at the sparse edge length, an artifact of the AIMD setup \(q=16eq=16econtains no13\.813\.8Å segment\)\.
Table 4:Per\-state composition of the training AIMD trajectories\. Each frame is a324324\-atom snapshot \(108108H2O\) under periodic boundary conditions\.Energies and forces at every snapshot, both during the training trajectory AIMD and during the held\-out single\-point evaluations described below, are computed self\-consistently in VASP at the r2SCAN meta\-GGA level under the settings of Table[5](https://arxiv.org/html/2607.05559#A3.T5)\. The total electron count is set asNELECT=Nneutral\+q\\texttt\{NELECT\}=N\_\{\\rm neutral\}\+q, whereNneutralN\_\{\\rm neutral\}is the closed\-shell valence\-electron count of the neutral324324\-atom reference under the chosen PAW pseudopotentials\. By conventionq≥0q\\geq 0denotes electrons added to the cell, populating the lowest unoccupied bands of the neutral reference\. For scale, the largest training chargeq=16eq=16ecorresponds to0\.0490\.049electrons per atom, one excess electron per roughly seven water molecules, or1\.9%1\.9\\%of the valence electrons in the cell\. This jellium\-compensated setup represents the delocalized, high\-density excess electron limit relevant to ultrafast photoinjection and electron\-transfer experiments\. It does not, and a uniform neutralizing background cannot, represent a localized solvated\-electron polaron, so we use “excess electron” rather than “hydrated electron” language and restrict the plasma\-solvation analogy to the delocalized regime\.
All training and held\-out evaluation charges are even, which makes every cell closed\-shell atISPIN=1\\texttt\{ISPIN\}=1\. Odd\-qqconfigurations would require open\-shell treatment and are out of scope\. In a periodic cell the added electrons are compensated by a uniform neutralizing background \(the standard convention for charged supercells\), so the excess charge is delocalized across the cell rather than localized as a solvated electron with an explicit counter\-cation\. The conditioning variableqqtherefore controls a homogeneous excess electron density regime\. Modeling localized charge carriers or explicit counterions would require a different reference and is outside the present scope\. A charged periodic cell also carries a spurious electrostatic self\-energy between the net charge and its neutralizing background and periodic images, scaling asq2/Lq^\{2\}/Lat fixed cell size\. We apply no Makov\-Payne\-type finite\-size correction because this term is a per\-charge constant that enters the DFT label and the model prediction identically, and is absorbed into the per\-charge baseline thatβ\(q\)\\beta\(q\)learns\. Forces are insensitive to the uniform background, which is why the force\-based results are the physically robust ones\. Two numerical settings warrant a caveat at high charge\. TheΓ\\Gamma\-onlykk\-sampling under\-resolves the band dispersion of the added delocalized states, and the0\.050\.05eV occupation smearing \(≈580\\approx 580K electronic temperature\) sets the partial filling of the LUMO manifold\. Both are held fixed across the training and held\-out single\-point evaluations, so they do not bias the per\-charge comparison, but absolute high\-qqforces carry a corresponding convergence uncertainty\.
Table 5:Shared VASP r2SCAN settings\. All values apply identically to the AIMD training snapshots and to the held\-out per\-charge single\-point evaluations\.For the seven held\-out charges no AIMD trajectory is available\. For each held\-outqq, we sample geometries evenly across the AIMD trajectory at a nearby training charge and re\-evaluate them self\-consistently under the same VASP r2SCAN protocol at the newNELECT\. The per\-target\-charge source trajectories are listed in Table[6](https://arxiv.org/html/2607.05559#A3.T6)\. This protocol mirrors standard practice for generating per\-charge DFT labels in condensed\-phase systems where a full AIMD trajectory at every target charge is computationally infeasible\. Equilibrium geometries at the source charge serve as a representative pool of nuclear configurations, and the model is asked to predict the change in forces and per\-atom energy that results from perturbing the electronic state without first re\-equilibrating the nuclei\.
Table 6:Source AIMD trajectory used to sample geometries for each held\-out evaluation charge\.For every model variant we use a uniform10%10\\%random hold\-out within each training charge AIMD trajectory, fixed across variants by random seed\. This split provides the validation set during SWA and is the source of every training charge accuracy number reported in the body and in Appendix[A](https://arxiv.org/html/2607.05559#A1)\. The held\-out\-charge sets combine geometries drawn evenly from a source trajectory with a charge the model never trained on, so every geometry\-charge combination they contain is new to the model\. Evaluating familiar geometries at a new charge is what isolates the vertical electronic response of Section 3\.1\. Generalization to new geometries and new charges at once is probed by the MD simulations\.
## Appendix DHyperparameters for all trained variants
All MACE\-based variants \(E\-MACE, the no\-FiLM baseline, and the four FiLM ablations of Section[3\.3](https://arxiv.org/html/2607.05559#S3.SS3)\) share the training settings listed in Table[7](https://arxiv.org/html/2607.05559#A4.T7)\. The loss is the standard MACE per\-atom weighted sum of energy and force terms with default weights \(wE=1w\_\{E\}=1,wF=100w\_\{F\}=100\)\. Stochastic weight averaging\[[16](https://arxiv.org/html/2607.05559#bib.bib39)\]starts at epoch150150and runs to250250epochs for every variant\. The SWA\-averaged weights at the final epoch are exported as the model\.
Table 7:Settings shared across all MACE\-based training runs\. Hardware is a single NVIDIA A1004040GB GPU\. Per\-variant training takes approximately6767GPU\-hours\.All variants are fine\-tuned through MACE’s foundation\-model workflow with element filtering \(\-\-foundation\_filter\_elements\)\. The model inherits the MACE\-MatPES architecture from the releasedMACE\-MatPES\-r2scan\-omat\-ftcheckpoint \(hidden\_irreps==128x0e\+128x1o, two interaction layers, correlation order33,rmax=6r\_\{\\max\}=6Å\) and its isolated\-atom reference energies, but restricts the element set to the hydrogen and oxygen present in water\. This reduces the parameter count from the full\-periodic\-table foundation \(9\.069\.06M parameters spanning≈89\\approx 89elements\) to0\.660\.66M for the H/O backbone, onto which the0\.100\.10M EquiFiLM adapter is added for the FiLM variants \(Appendix[B](https://arxiv.org/html/2607.05559#A2)\)\. The filtering changes only the element coverage, not the message\-passing architecture, so the backbone used here is the MACE\-MatPES model specialized to the chemistry of the training system\.
Variant\-specific FiLM settings are summarized in Table[8](https://arxiv.org/html/2607.05559#A4.T8)\. The four FiLM ablations fix the adapter hidden width ath=64h=64for direct comparison at matched adapter capacity\. The headline E\-MACE configuration usesh=128h=128to test whether modest extra capacity in the gating MLP helps\. All other settings match Table[7](https://arxiv.org/html/2607.05559#A4.T7)\.
Table 8:Variant\-specific FiLM settings\. All other settings match Table[7](https://arxiv.org/html/2607.05559#A4.T7)\.VariantFiLM hiddenhhFiLM flagsNo\-FiLM baseline\-noneConcat charge embedding\-\-\-embedding\_specs\(1616\-dim categorical\)FiLM,β\\betaonly \(γ\\gammaoff\)6464\-\-charge\_film\_no\_multFiLM, random initialization6464\-\-charge\_film\_no\_zero\_initFiLM,h=64h=646464defaultFiLM,h=128h=128\(E\-MACE\)128128defaultThe four per\-state MACE\-MatPES specialists used in the cross\-evaluation matrix \(Appendix[A](https://arxiv.org/html/2607.05559#A1)\) are fine\-tuned from the same MACE\-MatPES backbone with the shared settings of Table[7](https://arxiv.org/html/2607.05559#A4.T7), but with each specialist seeing only the AIMD frames at its single training chargeq∈\{0,6e,10e,16e\}q\\in\\\{0,6e,10e,16e\\\}\. No FiLM block is attached\. The NequIP\[[4](https://arxiv.org/html/2607.05559#bib.bib4)\]and Allegro\[[26](https://arxiv.org/html/2607.05559#bib.bib5)\]baselines in Figure[1](https://arxiv.org/html/2607.05559#S1.F1)are trained from scratch on the same combined four\-charge training corpus using each architecture’s reference training pipeline\.
## Appendix ECross\-pipeline portability of the learned charge response
To test whether the charge\-dependent response E\-MACE learns from its VASP r2SCAN training labels generalizes across DFT engines, we evaluate the same model on the same atomic configurations using GPAW\[[8](https://arxiv.org/html/2607.05559#bib.bib40)\]in plane\-wave mode at a500500eV cutoff with PAW pseudopotentials and PBE exchange\-correlation\. The model has never seen any GPAW or PBE label at any charge during training\. The geometry pool is a fixed set of neutral water configurations sampled from theq=0q=0AIMD trajectory\. For each chargeq∈\{2e,4e,…,20e\}q\\in\\\{2e,4e,\\ldots,20e\\\}the response is measured on this same pool both ways\. GPAW settings:Γ\\Gamma\-point sampling on the324324\-atom cells \(edge13\.813\.8to14\.814\.8Å\)\. Gaussian smearing \(Methfessel\-Paxton order 0\) with width0\.0010\.001eV atq=0q=0\(effectively closed\-shell insulator\) and0\.050\.05eV at non\-zero charges\.
For each geometryGiG\_\{i\}in the pool and each chargeqq, the per\-atom RMS magnitude of the force change induced by the conditioning input is computed,
ΔFRMS\(q;Gi\)=⟨‖𝐅\(q;Gi\)−𝐅\(0;Gi\)‖⟩RMSoveratoms,\\Delta F\_\{\\rm RMS\}\(q;\\,G\_\{i\}\)\\;=\\;\\Big\\langle\\big\\\|\\mathbf\{F\}\(q;\\,G\_\{i\}\)\-\\mathbf\{F\}\(0;\\,G\_\{i\}\)\\big\\\|\\Big\\rangle\_\{\\rm RMS\\ over\\ atoms\},both with E\-MACE \(predicting onGiG\_\{i\}first at conditioning valueqqand then atq=0q=0\) and with two independent GPAW self\-consistent calculations onGiG\_\{i\}\(one at total chargeq=0q=0, one atqq\)\. Figure[8](https://arxiv.org/html/2607.05559#A5.F8)reports the geometry\-pool mean and standard deviation ofΔFRMS\\Delta F\_\{\\rm RMS\}at each charge, overlaid for the two pipelines\.
Across the bulk of the studied range,q∈\{6e,8e,…,20e\}q\\in\\\{6e,8e,\\ldots,20e\\\}, the two pipelines agree within geometry\-pool error bars, with the response magnitude rising smoothly from≈130\\approx 130meV/Å atq=6eq=6eto≈250\\approx 250meV/Å atq=20eq=20e\. At the smallest charges,q=2eq=2eandq=4eq=4e, E\-MACE underestimates the GPAW reference: atq=2eq=2eE\-MACE predicts≈30\\approx 30meV/Å against a GPAW value of≈73\\approx 73meV/Å, a shortfall of roughly60%60\\%, and atq=4eq=4ethe shortfall is roughly25%25\\%\. Atq∈\{14e,16e,18e\}q\\in\\\{14e,16e,18e\\\}E\-MACE sits slightly above the GPAW reference, by roughly1010to15%15\\%, with overlapping1σ1\\sigmaerror bars\. Atq=20eq=20ethe two pipelines coincide\. We hypothesize that both the small\-charge shortfall and the intermediate\-to\-high\-charge overshoot are consistent with inter\-functional differences between the r2SCAN density functional used to generate the training labels and the GPAW PBE reference\. We cannot, however, fully separate this from a genuine model limitation at small charge: the training charges are all≥6e\\geq 6e, so theq=2e,4eq=2e,4eregime is the least\-supported by the training data, and the excess electrons are most prone to localize there\. Such a localized low\-qqresponse would be under\-predicted by an r2SCAN model trained only on the delocalized high\-qqregime\. We therefore do not claim the discrepancy is purely a functional difference\.
Figure 8:Cross\-pipeline per\-atom force\-difference response on a fixed pool of neutral water geometries\. Black: independent DFT reference \(GPAW PW500500eV, PBE\)\. Blue: E\-MACE prediction\. Error bars are the geometry\-pool standard deviation\. The two pipelines agree within those error bars across most of the studied range\. At the smallest chargesq=2eq=2eandq=4eq=4e, E\-MACE underestimates the GPAW reference, while atq∈\{14e,16e,18e\}q\\in\\\{14e,16e,18e\\\}, E\-MACE sits slightly above the GPAW reference\.This experiment varies the engine \(VASP→\\toGPAW\) and the functional \(r2SCAN→\\toPBE\) simultaneously, so the agreement we report is across both axes rather than isolating either\. That E\-MACE matches the GPAW PBE reference on the per\-atom force\-difference response across more than an order of magnitude in conditioning value, having seen no label from that engine or functional at any charge during training, indicates that the conditioning channel has captured a charge\-response that transfers across DFT pipelines rather than fitting engine\- or functional\-specific artifacts of the training labels\.
## Appendix FNVE energy conservation protocol
In the canonical \(NVT\) ensemble the particle number, volume and temperature are held fixed, with a thermostat exchanging heat with the system\. In the microcanonical \(NVE\) ensemble the thermostat is removed and the total energy of the isolated system is an exact constant of motion, so any drift in the total energy exposes non\-conservative forces\. For each studied charge the324324\-atom training cell \(cubic, edge14\.814\.8Å\) is initialized at300300K with Maxwell\-Boltzmann velocities, then run0\.50\.5ps of NVT Langevin dynamics at300300K with frictionγL=50\\gamma\_\{\\rm L\}=50ps\-1, using velocity\-Verlet integration at a0\.50\.5fs time step\. The thermostat is then detached and the system continues for1\.51\.5ps in pure NVE whileEpotE\_\{\\rm pot\},EkinE\_\{\\rm kin\}, andEtotE\_\{\\rm tot\}are recorded at every step\. All forces are produced by the headline E\-MACE configuration with a single set of weights\. The interface takes the total chargeqq, which the model converts internally to the conditioning inputc=q/Nc=q/N, the per\-atom excess electron density, withN=324N=324the cell atom count\.
Figure[5](https://arxiv.org/html/2607.05559#S3.F5)of the main text shows the1\.51\.5ps post\-detach NVE segment atq=12eq=12e\(interpolation, top\) andq=20eq=20e\(extrapolation, bottom\)\. The mean total energy drift over the window is\+0\.004\+0\.004meV/atom atq=12eq=12eand\+0\.010\+0\.010meV/atom atq=20eq=20e\. The boundedEtotE\_\{\\rm tot\}band visible in Figure[5](https://arxiv.org/html/2607.05559#S3.F5), approximately0\.180\.18meV/atom wide, is the precision floor of the velocity\-Verlet integrator at the chosen time step rather than drift:EtotE\_\{\\rm tot\}oscillates around a fixed mean rather than walking away from it\. A non\-conservative force field would instead produce a sloped trace \(linear drift accumulating over the window\), not a centered band\. The centered band is observed uniformly across all studied charges\. Because the FiLM block depends only on the per\-graph scalarccand acts only on scalar channels, the conditioning input does not introduce non\-conservative pathways into the predicted energy, and forces remain exact gradients of a position\-dependent energy uniformly acrossqq\.
## Appendix GPair correlation analysis
For each chargeq∈\{0,4e,8e,14e,18e\}q\\in\\\{0,4e,8e,14e,18e\\\}the324324\-atom training cell \(cubic, edge14\.814\.8Å\) is propagated under NVT Langevin dynamics at300300K with frictionγL=50\\gamma\_\{\\rm L\}=50ps\-1and a0\.50\.5fs time step\. Pair correlations are accumulated from a multi\-picosecond production segment following a0\.50\.5ps equilibration\.
Each partial pair correlationgαβ\(r\)g\_\{\\alpha\\beta\}\(r\)is histogrammed with a0\.020\.02Å bin width and Gaussian\-smoothed inrrwithσ=0\.10\\sigma=0\.10Å\. In the single324324\-atom cell,g\(r\)g\(r\)is rigorously defined only out to the minimum\-image limitr≤L/2=7\.4r\\leq L/2=7\.4Å\. For the difference signalΔgαβ\(r;q\)\\Delta g\_\{\\alpha\\beta\}\(r;q\)the shell\-normalization and finite\-size contributions largely cancel between the two charges, but we restrict attention tor≤7r\\leq 7Å where the partial correlations are well resolved\. Experimental PDF resolution \(σ≈0\.2−0\.3\\sigma\\approx 0\.2\-0\.3Å at a reciprocal\-space cutoff of≈12\\approx 12Å\-1\) would broaden these features further while preserving the charge trends\. The reduced PDF used in the body,
G\(r;q\)=4πrρ0\[gtot\(r;q\)−1\],G\(r;q\)\\;=\\;4\\pi r\\,\\rho\_\{0\}\\,\\bigl\[g\_\{\\rm tot\}\(r;q\)\-1\\bigr\],takesgtot\(r;q\)g\_\{\\rm tot\}\(r;q\)as a weighted sum of the three partial correlationsgOO,gOH,gHHg\_\{\\rm OO\},g\_\{\\rm OH\},g\_\{\\rm HH\}with weights set by the relevant atomic scattering factors\. For water under either X\-ray or ultrafast electron probes the O\-O correlation dominates this sum\.
Figure 9:Charge\-induced structural responseΔgαβ\(r;q\)=gαβ\(r;q\)−gαβ\(r;0\)\\Delta g\_\{\\alpha\\beta\}\(r;q\)=g\_\{\\alpha\\beta\}\(r;q\)\-g\_\{\\alpha\\beta\}\(r;0\)for the three pairs O\-O \(left\), O\-H \(middle\), H\-H \(right\) atq∈\{4e,8e,14e,18e\}q\\in\\\{4e,8e,14e,18e\\\}\. The first O\-O coordination shell shifts outward \(loss at≈2\.7\\approx 2\.7Å, gain at≈3\.3\\approx 3\.3Å\)\. The O\-H and H\-H pairs show the same outward redistribution\. All features scale monotonically with\|q\|\|q\|\.Figure[9](https://arxiv.org/html/2607.05559#A7.F9)reports the partial structural responsesΔgαβ\(r;q\)=gαβ\(r;q\)−gαβ\(r;0\)\\Delta g\_\{\\alpha\\beta\}\(r;q\)=g\_\{\\alpha\\beta\}\(r;q\)\-g\_\{\\alpha\\beta\}\(r;0\)separately for the three pairs atq∈\{4e,8e,14e,18e\}q\\in\\\{4e,8e,14e,18e\\\}\. The first O\-O coordination shell loses density atr≈2\.7r\\approx 2\.7Å and gains it atr≈3\.3r\\approx 3\.3Å as charge is added, signaling an outward shift of the nearest\-neighbor O\-O distance\. The O\-H pair correlation loses weight near the inter\-molecular hydrogen bond distance \(r≈1\.7r\\approx 1\.7Å\) and gains it atr≈2\.4r\\approx 2\.4Å, and the H\-H pair shifts outward in the same direction with density redistributing fromr≈2\.0r\\approx 2\.0Å tor≈2\.8r\\approx 2\.8Å\. The amplitude of every feature grows monotonically fromq=4eq=4ethrough the extrapolation chargeq=18eq=18e, with no qualitative change of shape across that range\. The reductive H2\-formation peak in the H\-H partial grows continuously with charge and is present in theq=16eq=16eAIMD training frames, confirming a physical process rather than an extrapolation artifact\.
## Appendix HFinite\-size cross\-check in a2×2×22\\times 2\\times 2supercell
The structural responses in the main text are computed in the324324\-atom training cell, where the pair correlation is rigorously defined only to the minimum\-image limitr≤7\.4r\\leq 7\.4Å\. To confirm that the charge\-induced structure is not a finite\-size artifact and survives at larger system size, the analysis is repeated in a2×2×22\\times 2\\times 2supercell \(2,5922,592atoms, cubic edge29\.629\.6Å, valid to14\.814\.8Å\)\. The supercell is seeded by tiling a charge\-equilibrated324324\-atom frame rather than the neutral cell\. This charge\-adapted initial condition is required for MD stability at the higher charges, and even so the highest charges require sampling several Langevin seeds and retaining those that remain stable, because pure microcanonical \(NVE\) dynamics at the largest extrapolation chargeq=20eq=20ein the larger cell does not conserve energy\. Each surviving NVT trajectory uses a0\.50\.5fs time step and Langevin friction in the range50−15050\-150ps\-1, with the total charge passed asqcell=8qq\_\{\\rm cell\}=8q, which leaves the conditioning inputc=qcell/2592=q/324c=q\_\{\\rm cell\}/2592=q/324identical to training\.
The seeds that survive equilibration conserve energy over a multi\-picosecond window atq=12eq=12eandq=18eq=18e\. Figure[10](https://arxiv.org/html/2607.05559#A8.F10)shows post\-thermostat detach NVE traces atq=12eq=12e\(interpolation\) andq=18eq=18e\(extrapolation\) in the2,5922,592\-atom cell:EtotE\_\{\\rm tot\}stays bounded with mean drift below11meV/atom over a1\.41\.4ps window, reproducing the324324\-atom energy\-conservation result \(Figure[5](https://arxiv.org/html/2607.05559#S3.F5)\) at8×8\\timessystem size\.
Figure 10:Energy conservation in the2×2×22\\times 2\\times 2supercell \(2,5922,592atoms\) over a1\.41\.4ps post\-thermostat detach NVE window atq=12eq=12e\(interpolation, top\) andq=18eq=18e\(extrapolation, bottom\)\. As in the324324\-atom cell \(Figure[5](https://arxiv.org/html/2607.05559#S3.F5)\),EpotE\_\{\\rm pot\}\(red\) andEkinE\_\{\\rm kin\}\(green\) exchange thermal\-scale energy while their sumEtotE\_\{\\rm tot\}\(blue\) remains bounded with mean drift below11meV/atom\. The per\-atom fluctuation amplitude is smaller than in the324324\-atom cell by roughly1/81/\\sqrt\{8\}, as expected from the larger particle number\. One set of E\-MACE weights produces stable, energy\-conserving dynamics across the interpolation\-extrapolation range at this system size\.Turning to structure, the per\-pair decomposition in the supercell \(Figure[11](https://arxiv.org/html/2607.05559#A8.F11)\) reproduces the324324\-atom partials of Figure[9](https://arxiv.org/html/2607.05559#A7.F9): the O\-O depletion of the first shell is the dominant signal, with smaller, consistent shifts in the O\-H and H\-H partials\.
Figure 11:Per\-pair partial pair\-correlation differencesΔgαβ\(r;q\)\\Delta g\_\{\\alpha\\beta\}\(r;q\)\(O\-O, O\-H, H\-H\) in the2×2×22\\times 2\\times 2supercell \(2,5922,592atoms,8×8\\timeslarger than the main\-text cell\), decomposing the totalΔG\(r;q\)\\Delta G\(r;q\)of Figure[12](https://arxiv.org/html/2607.05559#A8.F12)into its constituent partials\. The per\-pair trends reproduce the324324\-atom result \(Figure[9](https://arxiv.org/html/2607.05559#A7.F9)\) at larger system size\.Summing the partials, Figure[12](https://arxiv.org/html/2607.05559#A8.F12)shows the reduced PDF differenceΔG\(r;q\)\\Delta G\(r;q\)in the supercell\. The first O\-O peak height decreases monotonically with charge in both cells and agrees between them within≈0\.07\\approx 0\.07across all charges \(1×\\times1×\\times1 vs\. 2×\\times2×\\times2:q=0q=0,2\.512\.51vs\.2\.462\.46;q=4eq=4e,2\.372\.37vs\.2\.442\.44;q=8eq=8e,2\.212\.21vs\.2\.272\.27;q=14eq=14e,2\.092\.09vs\.2\.082\.08;q=18eq=18e,1\.971\.97vs\.1\.971\.97\)\. The charge\-induced structural trend is therefore system\-size independent over the range studied, as expected for an equilibrium pair correlation above the correlation length\.
Figure 12:Reduced pair\-distribution\-function differenceΔG\(r;q\)\\Delta G\(r;q\)atq∈\{4e,8e,14e,18e\}q\\in\\\{4e,8e,14e,18e\\\}, overlaying the324324\-atom1×1×11\\times 1\\times 1cell \(solid\) and the2,5922,592\-atom2×2×22\\times 2\\times 2supercell \(dashed\)\. The two cell sizes track each other closely at every charge, confirming that the charge\-induced structural response reproduces at8×8\\timessystem size and is free of finite\-size artifacts\.Similar Articles
Frequency Shift Physics-Informed Extreme Learning Machine for Solving High-Frequency Partial Differential Equations
This paper proposes a Frequency Shift Physics-Informed Extreme Learning Machine (FS-PIELM) that uses an additive weight initialization mechanism to overcome spectral bias in solving high-frequency PDEs. The method achieves up to five orders of magnitude improvement over existing PIELM variants on benchmark problems.
FeatCal: Feature Calibration for Post-Merging Models
FeatCal is a calibration method that reduces performance gaps in post-merging models by layer-wise weight updates without gradient descent, achieving superior results on CLIP and GLUE benchmarks with high sample efficiency.
Improvise, Adapt, Overcome: An On-The-Fly Multifidelity Algorithm for Efficient Machine Learning
This paper introduces an adaptive on-the-fly multifidelity machine learning algorithm for quantum chemistry that autonomously determines training data composition across fidelities, reducing data generation costs by up to 30x compared to single-fidelity methods and up to 5x compared to standard multifidelity methods.
M$^2$FedAQI: Multimodal Federated Learning for Air Quality Prediction on Heterogeneous Edge Devices
Proposes M²FedAQI, a lightweight multimodal federated learning framework for air quality prediction across heterogeneous edge devices, achieving significant improvements over baselines on benchmark datasets.
Continual Learning with Elastic Regularization and Synthetic Replay for Federated MLLM Fine-Tuning
Proposes FedCMM, a framework for federated continual learning of multimodal LLMs that uses modality-aware elastic weight consolidation, local generative replay, and task-similarity-aware gradient aggregation to mitigate catastrophic forgetting.