Thermodynamic Feedback for Amortized Atomic Structure Reconstruction from Microscopy

Recovering the 3D arrangement of atoms from an electron microscope image is still solved one sample at a time. The work is either hours of expert fitting or, most recently, a two-minute agent pipeline that retrieves a matching template from a library and relaxes it with a learned interatomic potential. Computer vision had the same per-scene bottleneck and largely removed it. Instead of re-optimizing 3D primitives (small Gaussian blobs) for every new scene, a network trained on many scenes predicts them in one forward pass. Recurrent versions then correct that prediction in a few learned steps driven by rendering error. The atomic version of this problem has a twist that vision does not. Several 3D structures can cast the same 2D projection. Examples are two close-packed stackings seen along certain directions, or a buckled versus flat layer. Image error alone cannot choose among them.

We propose to borrow the "thermodynamic collective variable" from molecular simulation to settle that ambiguity inside the learned refinement loop. A collective variable is a low-dimensional per-atom summary of structure used to track or drive phase changes. The thermodynamic version described by Entropy based fingerprint for local crystalline order scores each atom by a smoothed local entropy and a local enthalpy rather than by closeness to a symmetry template. The core claim is this. A feed-forward reconstructor that represents atoms as renderable primitives, and whose recurrent update receives per-atom entropy/enthalpy feedback alongside image error, will reach the correct structural basin before final relaxation more often than image-only feedback. It will also do so on polymorphs absent from training, where template retrieval breaks. It should do this in seconds rather than minutes.

Where the directions actually meet

The per-scene optimization literature supplies the method. GS-LRM shows that a transformer over image patches and camera rays can regress per-pixel Gaussians in about 0.23 s. ReSplat adds T=4 recurrent steps. At each step it renders the current Gaussians, compares against the input views, and pushes the error back to the Gaussians through global attention and nearest-neighbour update modules. It reports a 100x speedup over per-scene 3DGS and a 3.5 dB PSNR gain over DepthSplat on DL3DV. We reuse this recurrent structure almost directly. What changes is the representation (atoms instead of surface Gaussians) and the feedback signal.

The thermodynamic collective variable literature supplies the extra feedback. Piaggi and Parrinello approximate the two-body excess entropy from a smoothed per-atom radial distribution function. They find that raw per-atom values overlap badly under thermal noise, while neighbour-averaged values $\bar{s}_S$ separate liquid, BCC and FCC with no overlap at the melting point. Adding a per-atom enthalpy $\bar{s}_H$ also separates FCC from HCP, which share coordination numbers. Enhancing Entropy and Enthalpy Fluctuations to Drive Crystallization shows that biasing these quantities drives crystallization into whichever polymorph is stable, without choosing one in advance. We take from this pair the specific descriptor and the warning that un-averaged local entropy is too noisy to be useful. We do not use metadynamics. The descriptors are inputs to a learned update, not a bias potential. Surrogate Models for Vibrational Entropy proves that site entropies are spatially local with algebraic decay. That result justifies computing the feedback with a finite neighbour cutoff, which is what makes it cheap enough to run inside every refinement step.

The application regime and the strongest competitor come from AutoMat. It chains denoising, template retrieval, symmetry-constrained generation and relaxation with the MatterSim interatomic potential, with rollback-and-retry, and outputs structure files for 2D materials from STEM images in about two minutes. Its reliance on a template library is exactly where a template-free, structure-agnostic signal should help. Its rollback loop is exactly the per-sample overhead an amortized model removes.

Two bordering works are not what we do. ETGS puts heat capacity and cooling laws into Gaussians. That is macroscopic heat flow, fitted per scene, with no phase transitions and no coupling between neighbouring Gaussians. Spectral-GS uses the entropy of a single Gaussian's covariance eigenvalues to prevent needle shapes. That is a shape-conditioning statistic with no link to how atoms are arranged relative to each other. We are also not proposing to put "thermodynamics" into ordinary 3D scene reconstruction. Floaters in room-scale scenes have no free energy, and geometric priors like those in SurfSplat and LocusGS are the right tool there.

Research Program

Each atom is a primitive with a 3D position, species logits and an isotropic width. The width stands in for thermal vibration and probe blur. A differentiable forward model renders these primitives into a simulated image. For high-angle annular dark-field STEM we use incoherent projection, with contrast scaling as a power of atomic number. For bulk samples a tilt series supplies multiple views, and tilt angles play the role that camera poses play in GS-LRM.

An encoder over image patches, plus tilt-angle embeddings when present, proposes an initial set of atoms. Four recurrent steps then refine them. At each step every atom receives three kinds of input. The first is image-space error sampled at its projected location. The second is its neighbour-averaged local entropy $\bar{s}_S$, computed from a smoothed radial distribution within a fixed cutoff. The third is its local enthalpy $\bar{s}_H$, taken from per-atom MatterSim energies plus a volume share. A nearest-neighbour attention block turns these inputs into position, species and width updates. After the last step every variant, ours and all baselines, gets the same short MatterSim relaxation. The question is therefore not whether relaxation helps. It is whether the thermodynamic feedback lands the structure in the right basin for relaxation to finish.

Training data is simulated. We run finite-temperature molecular dynamics with MatterSim on 2D and bulk structures and render noisy projections at several doses. Training uses a coordinate loss after optimal atom matching plus the rendering loss. There is no loss on $\bar{s}_S$ or $\bar{s}_H$, so the network learns how to use the feedback rather than being told what value to hit.

We will also test the parameter sensitivity that the fingerprint paper flags. The cutoff radius and the smoothing width are swept, and we ask whether the learned update is robust to them. That robustness would be a practical advantage over hand-tuned collective variables in simulation.

Baselines

The strongest existing method is AutoMat AutoMat. On STEM2Mat-Bench it reports an 83.2% structure success rate, 0.11 Å projected in-plane RMSD, 321.57 meV/atom formation-energy error, and roughly 2 minutes per case. We will quote these numbers and, if the released pipeline allows, rerun it on our held-out-polymorph split. That rerun matters because template retrieval should fail when no template exists. Beating it means matching its success rate and in-plane RMSD on the standard tiers at under five seconds per sample, and exceeding it on held-out polymorphs and the hardest low-dose tier.

The naive reference is a single forward pass followed by the same MatterSim relaxation. It measures how much any refinement buys.

The closest learned competitor is a ReSplat-style recurrent refiner ReSplat that uses image error only. It has identical architecture, training data, step count and tuning budget; only the entropy and enthalpy inputs are removed. This is the ablation that isolates the proposal's key ingredient.

Three further ablations pin down which part of the signal matters. One replaces the thermodynamic inputs with geometric order parameters, meaning Steinhardt bond-orientational values and coordination numbers. This tests the specific claim that a template-free descriptor generalizes better to unseen polymorphs. One feeds enthalpy only, which asks whether entropy adds anything beyond energy. One feeds raw rather than neighbour-averaged entropy, which tests whether Piaggi and Parrinello's averaging finding carries over.

All learned variants share compute and hyperparameter search budget and are evaluated after identical relaxation.

Why not just…?

Why not just relax the single-pass prediction with MatterSim? This is the most serious threat. The enthalpy half of our signal is close to what relaxation already minimizes. Relaxation is local, though. It finishes whichever basin it starts in, and a projection-consistent wrong stacking is often a nearby local minimum. The naive baseline tests exactly this. If single-pass plus relaxation matches our model on stacking-ambiguous and held-out cases, the thermodynamic feedback is redundant and we will report that. The enthalpy-only ablation separately shows whether the entropy term contributes beyond energy.

Why not just use image-error feedback, as ReSplat does? In multi-view vision, rendering error is informative because the views disagree about wrong geometry. A single projection, or a narrow tilt range, does not disagree about stackings that project identically. AutoMat's framing of the task as ill-posed says as much. The image-only recurrent baseline, broken down by stacking-ambiguous versus unambiguous samples, shows where the gap lies. We expect no advantage on unambiguous samples, and we will say so if that holds.

Why not just use geometric order parameters or spatial anchors, which are simpler? Geometric parameters tuned to known lattices are exactly what Enhancing Entropy and Enthalpy Fluctuations argues restricts discovery. Coordination-based descriptors also cannot tell FCC from HCP Entropy based fingerprint. The Steinhardt ablation on the held-out-polymorph split decides this. If geometric features tie, the simpler choice wins.

Why not just speed up AutoMat's tools? The bottleneck is not only per-tool latency. It is the retry loop and the template library, which by construction cannot return a structure the library lacks. The held-out split addresses the second point directly.

Why not use spectral entropy of the primitives? It measures one Gaussian's aspect ratio Spectral-GS and carries no information about neighbours. It is included as a cheap feature-swap control, and we expect it to track the image-only baseline.

Proposed Experiments

The primary evaluation is STEM2Mat-Bench across its Easy, Medium and Hard tiers. We report structure success rate, projected in-plane RMSD, formation-energy error and wall-clock time per case against AutoMat's reported figures.

The second evaluation is a held-out-polymorph split. We withdraw whole structure families from training and from any template library, then test on simulated images of them. This is the setting where the structure-agnostic claim either holds or fails.

The third is a synthetic bulk tilt-series benchmark on Lennard-Jones, sodium and aluminium supercells. These are the systems in which the fingerprint was validated, and they include deliberate FCC/HCP stacking faults. There we report per-atom phase-classification accuracy and 3D RMSD as a function of tilt range. For none of these bulk tilt-series tasks did we find a reported result on Lacuna, so all numbers there will be our own runs.

The decisive check is a single comparison. On stacking-ambiguous samples, after identical relaxation, does thermodynamic feedback beat both image-only feedback and geometric-order-parameter feedback in basin-correct rate, while staying within noise of them on unambiguous samples? If yes, the thermodynamic collective variable has earned a place in amortized reconstruction. If single-pass plus relaxation closes the gap, the honest conclusion is that amortization plus a good interatomic potential is enough.