Scalable Stellar Parameter Inference Using Python-based LASP: From CPU Optimization to GPU Acceleration
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.
Authors
- A-Li Luo (ORCID: https://orcid.org/0000-0001-7865-2648)
- Bing Du (ORCID: https://orcid.org/0000-0001-9045-2307)
- Yin-bi Li
- WU Ke-fei
- H. R. A. Jones (ORCID: https://orcid.org/0000-0003-0433-3665)
- Shuo Ye (ORCID: https://orcid.org/0000-0001-7756-8233)
- Liang Jun-chao
- Zhong Zhihua
- Xiao-Xiao Ma
- Wen Hou
- Li-Li Wang
- Fang Zuo
- Xiao Kong
- Shu-Guo Ma
- Shuo Li
- Hai-Ling Lu
Publication Details
- Journal
- The Astrophysical Journal
- Published
- 2025-12-31
- DOI
- https://doi.org/10.3847/1538-4357/ae1446
- Primary Topic
- Stellar, planetary, and galactic studies
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Science Foundation
- Smithsonian Institution
- U.S. Department of Energy
- Alfred P. Sloan Foundation
- Gordon and Betty Moore Foundation
- Yale University
- Carnegie Institution of Washington
- Vanderbilt University
- Ohio State University
- University of Utah
- University of Washington
- Johns Hopkins University
- Carnegie Mellon University
- University of Notre Dame
- University of Portsmouth
- New Mexico State University
- York University
- University of Oxford
- National Natural Science Foundation of China
- Chinese Academy of Sciences
- Ministério da Ciência, Tecnologia e Inovação
- Ministerio de Ciencia e Innovación
- Universidad Nacional Autónoma de México
- Commissariat à l'Énergie Atomique et aux Énergies Alternatives
- National Development and Reform Commission
- Max-Planck-Institut für Astrophysik
- Max-Planck-Institut für Astronomie
- Instituto de Astrofísica de Canarias
- Office of Science
- University of Colorado Boulder
- Science and Technology Facilities Council
- Leibniz-Gemeinschaft
- National Astronomical Observatories, Chinese Academy of Sciences
- Division of Astronomical Sciences
- Lawrence Berkeley National Laboratory