{\sc ampere}: A tool to fit heterogeneous observations consistently
P. Scicluna, S. Zeegers, J. P. Marshall, F. Kemper, S. Srinivasan T. E. Dharmawardena, L. Fanciullo, O. Morata, A. Trejo-Cruz
TL;DR
ampere tackles the problem of Bayesian inference with expensive and potentially misspecified forward models in astronomy by introducing a flexible likelihood framework that absorbs structured residuals into a kernel-based covariance, enabling self-consistent inference from heterogeneous data. Its modular architecture separates models, data, and inference, and wraps multiple backends including MCMC, nested sampling, and likelihood-free methods (SBI/NPE) to balance exactness and efficiency; it also supports amortized inference to accelerate analysis over large samples. The paper demonstrates ampere on diverse problems—modified blackbody fitting, stellar parameter inference from photometry and spectroscopy, star-plus-dust systems, mineralogy of carbon-star envelopes, and carbonate detection in NGC 6302—showing accurate parameter recovery and often more realistic uncertainty estimates than prior analyses. This framework is positioned to scale to large surveys (e.g., JWST, SPHEREx) and can be extended to additional data types and accelerated with JAX, enabling widespread, robust interpretation of complex astronomical observations.
Abstract
As astronomy advances and data becomes more complex, models and inference also become more expensive and complex. In this paper we present {\sc ampere}, which aims to solve this problem using modern inference techniques such as flexible likelihood functions and likelihood-free inference. {\sc ampere}\ can be used to do Bayesian inference even with very expensive models (hours of CPU time per model) that do not include all the features of the observations (e.g. missing lines, incomplete descriptions of PSFs, etc). We demonstrate the power of \ampere\ using a number of simple models, including inferring the posterior mineralogy of circumstellar dust using a Monte Carlo Radiative Transfer model. {\sc ampere}\ reproduces the input parameters well in all cases, and shows that some past studies have tended to underestimate the uncertainties that should be attached to the parameters. {\sc ampere}\ can be applied to a wide range of problems, and is particularly well-suited to using expensive models to interpret data.
