Scalable Stellar Parameter Inference Using Python-based LASP: From CPU Optimization to GPU Acceleration
Open Access
- 31 December 2025
- journal article
- Published by American Astronomical Society in The Astrophysical Journal
- Vol. 996 (1) , 97
Abstract
To enhance the efficiency, scalability, and cross-survey applicability of stellar parameter inference in large spectroscopic datasets, we present a modular, parallelized Python framework with automated error estimation, built on the LAMOST Atmospheric Parameter Pipeline (LASP) originally implemented in IDL. Rather than a direct code translation, this framework refactors LASP with two complementary modules: LASP-CurveFit, a new implementation of the LASP fitting procedure that runs on a CPU, preserving legacy logic while improving data I/O and multithreaded execution efficiency; and LASP-Adam-GPU, a GPU-accelerated method that introduces grouped optimization by constructing a joint residual function over multiple observed and model spectra, enabling high-throughput parameter inference across tens of millions of spectra. Applied to 10 million LAMOST spectra, the framework reduces runtime from 84 to 48 hr on the same CPU platform and to 7 hr on an NVIDIA A100 GPU, while producing results consistent with those from the original pipeline. The inferred errors agree well with the parameter variations from repeat observations of the same target (excluding radial velocities), while the official empirical errors used in LASP are more conservative. When applied to DESI DR1, our effective temperatures and surface gravities agree better with APOGEE than those from the DESI pipeline, particularly for cool giants, while the latter performs slightly better in radial velocity and metallicity. These results suggest that the framework delivers reliable accuracy, efficiency, and transferability, offering a practical approach to parameter inference in large spectroscopic surveys. The code and DESI-based catalog are available via DOI: 10.12149/101679 and DOI: 10.12149/101675 , respectively.Keywords
All Related Versions
Funding Information
- CAS ∣ National Astronomical Observatories, Chinese Academy of Sciences (E4ZR0516)
- MOST ∣ National Natural Science Foundation of China (12273075)
- MOST ∣ National Natural Science Foundation of China (12273078)
- MOST ∣ National Natural Science Foundation of China (12411530071)
This publication has 56 references indexed in Scilit:
- The GALAH survey: Data release 4Publications of the Astronomical Society of Australia, 2025
- Physical parameters of stars in NGC 6397 using ANN-based interpolation and full spectrum fittingNew Astronomy, 2025
- Array programming with NumPyNature, 2020
- SciPy 1.0: fundamental algorithms for scientific computing in PythonNature Methods, 2020
- Automatic stellar spectral parameterization pipeline for LAMOST surveyProceedings of the International Astronomical Union, 2014
- Coudé-feed stellar spectral library – atmospheric parametersAstronomy & Astrophysics, 2010
- ULySS: a full spectrum fitting packageAstronomy & Astrophysics, 2009
- Dealing with Uncertainties2009
- Confidence region estimation techniques for nonlinear regression in groundwater flow: Three case studiesWater Resources Research, 2007
- Numerical Optimization2006