Fast and Reliable Probabilistic Reflectometry Inversion with Prior-Amortized Neural Posterior Estimation
Vladimir Starostin, Maximilian Dax, Alexander Gerlach, Alexander Hinderhofer, Álvaro Tejero-Cantero, Frank Schreiber
TL;DR
The paper tackles the phaseless inverse problem in X-ray and neutron reflectometry by introducing PANPE, a prior-amortized neural posterior estimator that delivers fast, reliable, and multimodal Bayesian inference for thin-film structures. By combining simulation-based neural posterior estimation with adaptive, physics-informed priors and a GPU-accelerated transfer-matrix simulator, PANPE achieves coverage of the true posterior and refines estimates with likelihood-based methods, enabling real-time or high-throughput analysis. The approach demonstrates multimodal posteriors on synthetic data, accurate marginal posteriors on experimental XRR data, and effective co-refinement of neutron measurements, underscoring the importance of priors and equivariances in inverse scattering. With its adaptable priors, adaptive $q$-discretization, and capability to guide experimental decisions, PANPE offers a scalable, generalizable framework for fast, probabilistic reflectometry analysis and other complex inverse problems.
Abstract
Reconstructing the structure of thin films and multilayers from measurements of scattered X-rays or neutrons is key to progress in physics, chemistry, and biology. However, finding all structures compatible with reflectometry data is computationally prohibitive for standard algorithms, which typically results in unreliable analysis with only a single potential solution identified. We address this lack of reliability with a probabilistic deep learning method that identifies all realistic structures in seconds, setting new standards in reflectometry. Our method, Prior-Amortized Neural Posterior Estimation (PANPE), combines simulation-based inference with novel adaptive priors that inform the inference network about known structural properties and controllable experimental conditions. PANPE networks support key scenarios such as high-throughput sample characterization, real-time monitoring of evolving structures, or the co-refinement of several experimental data sets, and can be adapted to provide fast, reliable, and flexible inference across many other inverse problems.
