Stellar Spectra Fitting with Amortized Neural Posterior Estimation and nbi

Keming Zhang, Tharindu Jayasinghe, Joshua S. Bloom
12/9/2023
astro-ph.SRastro-ph.GAastro-ph.IM

No official code found. Best implementation: kmzzhang/nbi (42 stars, last commit 2025-08-12).

Abstract

Modern surveys often deliver hundreds of thousands of stellar spectra at once, which are fit to spectral models to derive stellar parameters/labels. Therefore, the technique of Amortized Neural Posterior Estimation (ANPE) stands out as a suitable approach, which enables the inference of large number of targets as sub-linear/constant computational costs. Leveraging our new nbi software package, we train an ANPE model for the APOGEE survey and demonstrate its efficacy on both mock and real APOGEE stellar spectra. Unique to the nbi package is its out-of-the-box functionality on astronomical inverse problems with sequential data. As such, we have been able to acquire the trained model with minimal effort. We introduce an effective approach to handling the measurement noise properties inherent in spectral data, which utilizes the actual uncertainties in the observed data. This allows training data to resemble observed data, an aspect that is crucial for ANPE applications. Given the association of spectral data properties with the observing instrument, we discuss the utility of an ANPE "model zoo," where models are trained for specific instruments and distributed under the nbi framework to facilitate real-time stellar parameter inference.

View on arXivView PDF

Code Implementations(1)

kmzzhang/nbiCommunity100%

Package for Neural Posterior Estimation and Importance Sampling focused on Astronomical Applications

427PythonApr 18, 20221 years agoNOASSERTION

Similar Papers

Cite this paper

@article{zhang2023stellar,
  title  = {Stellar Spectra Fitting with Amortized Neural Posterior Estimation and nbi},
  author = {Keming Zhang and Tharindu Jayasinghe and Joshua S. Bloom},
  year   = {2023},
  eprint = {2312.05687},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.05687v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.05687.svg)](https://codeofpaper.com/paper/2312.05687)

Discussion