Auditable Path-Integral Simulations on Untrusted Compute

Simulations of light atoms such as hydrogen must treat nuclei as quantum objects. Each atom is replaced by a "ring polymer," a necklace of $P$ copies joined by springs, so every timestep needs $P$ expensive electronic-structure force calls. That cost pushes groups to rent cloud or shared compute. Once forces come back from machines the scientist does not control, nothing in the standard software checks that they were computed honestly. A remote worker could quietly use a cheaper physical model, fewer copies, or fabricated summary numbers, and the published quantum observables would inherit the error.

We propose a cheap audit for such runs. The worker runs the simulation normally in floating point. It commits to a fixed-point record of every bead position and force using a pairing-based vector commitment, which is a short cryptographic fingerprint that is hard to forge and can be opened at individual entries. It then proves with a pairing argument that the reported quantum observables are exactly the claimed quadratic functions of that committed record. The verifier also re-runs a handful of randomly chosen force calls against the agreed physical model. The core claim is that binding these two checks to one commitment closes a loophole that neither closes alone, at a cost far below re-running the simulation.

Why this matters, and why the obvious version fails

The threat is concrete. Quantum fluctuations and isotope effects in ab initio descriptions of water shows that path-integral water run with the cheap PBE functional gives a liquid–vapor isotope fractionation ($10^3 \ln\alpha$) of −17 at 300 K. Hybrid functionals approach the experimental 73. A worker that swaps in PBE to save compute therefore flips the sign of the headline result. The resulting trajectory is still physically smooth and thermally equilibrated, so generic sanity checks will not flag it. Similarly, Nuclear quantum effects in ab initio dynamics: Theory and experiments for lithium imide reports a proton kinetic energy equivalent to 858 K at 300 K ambient. A worker that collapses the ring polymer to fewer beads would bias exactly this quantity.

The infrastructure has no defense. i-PI cleanly separates a path-integral server from force "clients" over plain sockets. That design is what makes outsourcing easy, and it also means returned forces are trusted blindly.

The obvious cryptographic fix would prove every force evaluation in zero knowledge. That is a nonstarter. General pairing-based verifiable computation in the line of Pinocchio and Geppetto requires rewriting the computation as finite-field arithmetic circuits. The research file describes this as a $10^3$–$10^6\times$ prover slowdown, applied to $10^5$–$10^7$ floating-point timesteps. Running the dynamics themselves in integer arithmetic would also threaten energy conservation, a tension the research file notes explicitly.

Our design avoids both problems. Nothing about the dynamics is ever proven step by step. Proofs cover only the final aggregation from trajectory to observable. Dynamics are checked by sampling.

Core Claim

The quantities scientists actually report from path-integral runs are mostly bilinear in the stored data, meaning each is a sum of products of one stored quantity with another. The ring-polymer spring energy is $q^\top L q$, where $q$ stacks all bead positions and $L$ is the ring's neighbor-difference matrix. The radius of gyration, a measure of how spread out the quantum "cloud" of each atom is, is a similar quadratic form. The centroid-virial kinetic energy estimator, which is the quantity behind the lithium-imide 858 K figure and the water isotope effects, is

$$K_{cv} = \frac{3N}{2}k_B T - \frac{1}{2P}\sum_{j=1}^{P}(q_j - \bar q)\cdot f_j .$$

Here $N$ is the number of atoms, $T$ the temperature, $k_B$ Boltzmann's constant, $q_j$ and $f_j$ the positions and forces of bead $j$, and $\bar q$ the bead average (the centroid). This estimator is an inner product between committed positions and committed forces.

Pairings multiply two hidden values, which is precisely what verifying such inner products requires. Dualmatrix supplies the method. It builds pairing-based commitments and a transparent inner-pairing-product argument, where "transparent" means no secret setup parameters. The prover's cost is linear in the number of entries and the verifier's cost is logarithmic.

We claim that combining three pieces yields an audit whose detection power against realistic cheats exceeds that of hash-based sampling at matched verifier cost. The pieces are (i) exact proofs that reported observables equal these forms on the committed trace, (ii) random openings of the same commitment, and (iii) recomputation of the opened forces with the reference potential. The audit's total cost should be a small fraction of the simulation it certifies.

Research Program

The worker runs i-PI unchanged. A logging client quantizes each bead position and force to fixed point, using about 26 bits so that pairwise products stay within the 52-bit envelope that DualMatrix's implementation tolerates. It accumulates a two-tier commitment over steps, beads, and atoms. Quantization affects only the audited record, never the integration.

At the end of the run, the worker publishes the commitment, the reported observables, and pairing proofs that each observable equals its quadratic or bilinear form on the committed data. The verifier then derives random challenge indices from the commitment. It requests openings of positions and forces at those (step, bead) pairs, recomputes forces with the reference model, and checks agreement within a floating-point tolerance. It also checks one integrator step forward between consecutive opened frames.

The reference model is the agreed one: a public machine-learned force field such as sGDML or the deep potential of Isotope effects in liquid water via deep potential molecular dynamics, or a few hybrid-DFT calls.

The analysis has three components. The first is detection probability as a function of the tampered fraction $f$ and the number of spot checks $k$, which for independent samples is $1-(1-f)^k$. The second is the effect of 26-bit quantization on each observable relative to its statistical error bar. The third is prover and verifier wall-clock time relative to the simulation itself.

One limitation must be stated plainly. The radial distribution function is a histogram, not a quadratic form, so it lies outside the exact-proof part. It is covered only by sampling.

Baselines

The naive reference point is trusting the worker. We report the attack success rate under it, which by construction is total, to calibrate every other row.

The strongest simple competitor is a Merkle-tree hash commitment of the same fixed-point trace plus random sampling. The verifier opens $k$ frames, recomputes their forces, and estimates each observable from the sample. It is strongest because it shares our dynamics check and is far cheaper to produce. We run it on identical trajectories, with the same $k$, the same reference model, and the same attack suite. We beat it if it misses aggregate-level cheats that we catch at equal verifier time. The key case is a worker that runs honestly but reports a shifted observable, or one that biases the estimator subtly across many frames. The virial estimator fluctuates strongly frame to frame, so sampled estimates carry wide error bars that a cheater can hide inside.

Redundant execution assigns each bead's work to two independent workers and compares results. It doubles compute but needs no cryptography. We beat it if our total overhead is well under 100% while matching its detection of functional substitution. Redundant execution also fails against colluding or identically misconfigured workers.

Full per-step verifiable computation is not run end to end. We report a measured per-force-call proving cost for a small force field, extrapolated to a full run. No reported result was found on Lacuna for proving MLFF or DFT force evaluations.

For the aggregate proofs, the cost reference is DualMatrix's reported prover time of 150.84 s and verifier time of 0.56 s for a dense matrix with about one billion entries (Dualmatrix). A 64-water, $P=8$, $10^5$-step trace has roughly $4.6\times10^8$ coordinates, which is the same order.

Two ablations isolate the key ingredient. The first removes aggregate proofs and keeps spot checks only. The second removes spot checks and keeps aggregate proofs only. Each should fail against a specific attack class that the combined system catches.

Why not just…?

Why not just use hashes and sampling, without pairings? This is the real threat to the proposal, and it is the primary baseline. Hash sampling verifies the dynamics just as well. It cannot certify an aggregate without opening every frame, which amounts to downloading the trajectory. If our experiments show that sampled estimates of $K_{cv}$ and the fractionation ratio already pin observables within physically meaningful tolerances at small $k$, the pairing layer is unnecessary. We will report that outcome honestly and narrow the contribution to the sampling protocol.

Why not just run everything twice? Path-integral runs are already $P$ times costlier than classical simulation, so doubling them is the expense users are outsourcing to avoid. Duplication also catches nothing when both replicas share a misconfiguration, such as both using PBE. The comparison will show the cost and coverage gap directly.

Why not just check physics? One could test whether spring energies obey equipartition and whether total energy is conserved. These checks catch broken dynamics but not a worker that ran consistent, smooth physics on the wrong potential. The PBE substitution in Quantum fluctuations and isotope effects in ab initio descriptions of water produces a fully equilibrated liquid with the wrong sign of the isotope effect. We include physics checks as a baseline row to show that they miss this attack.

Why not just functional encryption? Simple and Efficient FE for Quadratic Functions evaluates quadratics on encrypted data, but decryption requires a discrete-logarithm search over a small integer output range. That is ill-suited to continuous energies, and the scheme addresses privacy rather than correctness. We set it aside.

Proposed Experiments

The first experiment uses H₂O and D₂O at 300 K with a PBE0-level deep potential and PIGLET (a colored-noise thermostat that lets path-integral runs converge with only 6–8 beads). The target is the fractionation ratio, with the experimental value of 73. The attacks are substitution of a PBE-level model, bead reduction to $P=1$ and $P=2$, a reported-value shift, and tampering with a fraction $f\in\{0.01,0.05,0.2\}$ of steps.

The second experiment uses lithium imide's proton kinetic energy (858 K equivalent) to test the virial-estimator proof on a solid.

The third uses supercritical water at 750 K and 10 GPa, where i-PI found ionized species enhanced by over an order of magnitude. This tests a regime where only sampling covers the reported quantity, because ion counts are not quadratic.

The decisive check has two parts. First, at a verifier budget of under 1% of simulation cost, the combined audit must detect every attack class with probability above 0.99, while Merkle sampling misses the reported-value-shift and distributed-bias attacks. Second, quantization must move every audited observable by less than its statistical error bar. If either part fails, the method does not justify its pairing machinery.