NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

4D-TEMPO: Differentiable 4D-STEM ptychography via fast Physics Optimizers

Ramani Duraiswami, Yichao ZhangarXiv 2026

TL;DR

4D-TEMPO is a new differentiable physical renderer that reconstructs atomic structures from 4D-STEM data by fitting atoms and microscope parameters directly to raw electron counts. Unlike traditional methods that produce pixelated images, it outputs a list of atoms with precise 3D positions, thermal widths, and—for the first time—statistically grounded per-atom error bars.

What Problem Does This Paper Address?

In the world of atomic-scale imaging, electron ptychography is the gold standard for recovering structure from 4D-STEM (Scanning Transmission Electron Microscopy) data. However, existing approaches have two major drawbacks. First, they typically reconstruct a grid of pixels (an image) from which researchers must manually "pick" atoms. This post-hoc process is prone to error and provides no measure of how certain we are about an atom's position. Second, these methods are often computationally expensive and struggle with "depth" resolution—the ability to tell how deep an atom is within a sample.

As we move toward imaging beam-sensitive biological materials or dynamic processes, we need a way to make every electron count. We need to know the precision of our measurements and reconstruct them fast enough to react to changes in the sample.

Methods

The authors propose 4D-TEMPO (Differentiable 4D-STEM ptychography via fast Physics Optimizers). Instead of pixels, 4D-TEMPO treats the specimen as a collection of Gaussian primitives (atoms).

Key technical innovations include:

  • Differentiable Multislice Renderer: A forward physical model that maps atom positions ($r_a, z_a$) and thermal widths ($U_a$) to expected electron counts on a detector. Because it is differentiable, the system can use standard optimization tools (like Adam and L-BFGS) to "wiggle" the atoms until the predicted diffraction patterns match the measured ones.
  • Poisson Likelihood: Rather than using standard $L_1$ or $L_2$ losses, the model optimizes for a Poisson likelihood, which is the correct statistical description for discrete electron counts.
  • Fisher Information (FI): This is the "secret sauce." By calculating the Fisher Information matrix, the researchers can derive model-conditional error bars for every single atom. This also helps the solver converge faster by properly scaling the parameters.
The 4D-TEMPO workflow: from measurement to a model-based fit that yields atoms with error bars.

Datasets

The paper evaluates 4D-TEMPO on several challenging datasets:

  • Simulated $WSe_2$ (Tungsten Diselenide) bilayer: Used to establish ground-truth accuracy and depth resolution.
  • Experimental $WSe_2$ bilayer: Real-world data from an aberration-corrected microscope.
  • $PrScO_3$ (Praseodymium Scandium Oxide) crystal: A "thick" benchmark (21 nm) to test the limits of the multislice model.
  • $PZT$ (Lead Zirconate Titanate) film: Another thick specimen (20 nm) used for cross-code comparison.
  • $PdH$ (Palladium Hydride) nanoparticle: Testing the model on non-layered structures.

Key Insights and Ideas

  • Atoms over Pixels: For thin specimens, pixels are redundant. By fitting atoms directly, the model uses far fewer parameters, making the inversion more stable and physically meaningful.
  • The Power of the Dark Field: The authors found that depth information ($z$-position) is primarily contained in the "dark field"—the faint electron counts scattered far outside the direct beam. 4D-TEMPO's Poisson likelihood gives these sparse counts the statistical weight they deserve.
  • Calibration vs. Imaging: The Fisher Information allows researchers to separate instrument calibration (fitting lens aberrations with a high dose) from actual imaging (fitting atom positions with a low dose). This paves the way for "low-dose" imaging of fragile samples.
The Fisher Information helps determine which parameters are well-defined by the data and how much dose is required for a target precision.

Key Results

4D-TEMPO demonstrates significant gains in both precision and speed:

  • Superior Accuracy: On simulated $WSe_2$, it reduced in-plane position errors by a third (3.2 pm vs. 4.8 pm) and depth errors by up to 61% compared to previous state-of-the-art peaks.
  • Massive Speedups: It matched the best results of existing codes like fold_slice in just 5 minutes, compared to over 20 hours. On $PrScO_3$, it was 180x faster than the torchslice baseline.
  • Calibrated Error Bars: In well-specified models, 69% of the fitted coordinates fell within the predicted $1\sigma$ error bars, confirming that the uncertainties are statistically reliable.
Reconstruction of a real $WSe_2$ bilayer showing fitted atoms (dots) and their magnified error ellipses.

Limitations and Future Work

While 4D-TEMPO is a leap forward, the authors note several areas for improvement:

  • Model Mismatch: The error bars are "model-conditional." If the physical model (e.g., how it handles diffuse scattering or partial coherence) is slightly off, the error bars will be too small.
  • Thick Specimens: In samples tens of nanometers thick, a single column can contain dozens of atoms. Fitting every individual atom in such a "forest" remains a massive computational and mathematical challenge.
  • Joint Parameterization: Future work will look at parameterizing atoms jointly (e.g., as a lattice with displacements) to handle thicker samples where individual atom depths are poorly constrained by the data.

Summary updated

Abstract

Electron ptychography recovers atomic structure from 4D-STEM data: diffraction patterns at multiple positions of a scanned probe. Current codes reconstruct an image and read atoms off it, or fit atoms under an $L_1$ loss; neither gives per-atom uncertainty. We propose 4D-TEMPO, a differentiable physical renderer that fits the atoms, the microscope, and the detector directly to the recorded electron counts under a Poisson likelihood. The output is a list of atoms, each a Gaussian primitive with a 3D position, a thermal width, and a model-conditional error bar from the Fisher information. The Fisher information also conditions the solver, gives the dose (electrons per Å$^2$) each parameter needs, and separates calibration from imaging. On a simulated WSe$_2$ bilayer, starting from the published reconstruction, fitted atoms cut in-plane error by a third (3.2 vs. 4.8 pm) and depth error by 40-61% against its 3D peaks. Depth comes from multiple scattering into the dark field, the faint counts outside the direct beam. The two layers, $10\times$ closer than the depth of field, separate; per-atom depth then follows the layer geometry. When the model is well specified, the bars are calibrated (69% of position coordinates within $1σ$). On experimental WSe$_2$, fitted atoms predict held-out patterns better than the three published codes we test. With free probe modes where atoms are incomplete, the same likelihood predicts best on all three held-out benchmarks, matches every WSe$_2$ baseline in 5 min against up to 20.5 h, and passes torchslice at its released setting 180$\times$ sooner on PrScO$_3$. Per-atom error bars, planned doses, and fast reconstruction point to low-dose, real-time 3D imaging of beam-sensitive and dynamic materials.
BibTeX
@misc{duraiswami2026d,
  author = {Ramani Duraiswami and Yichao Zhang},
  title = {{4D-TEMPO: Differentiable 4D-STEM ptychography via fast Physics Optimizers}},
  year = {2026},
  eprint = {2611.24776},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.24776},
}

Loading related content...

Figure