Scalable Stellar Parameter Inference Using Python-based LASP: From CPU Optimization to GPU Acceleration
Jun-Chao Liang, Yin-Bi Li ⋆, A-Li Luo ⋆, Fang Zuo, Bing Du, Shuo Li, Xiao-Xiao Ma, Shu-Guo Ma, Hai-Ling Lu, Ke-Fei Wu, Zhi-Hua Zhong, Wen Hou, Xiao Kong, Shuo Ye, Li-Li Wang, Hugh R. A. Jones · 2025
Read Scalable Stellar Parameter Inference Using Python-based LASP: From CPU Optimization to GPU Acceleration by Jun-Chao Liang, Yin-Bi Li ⋆, A-Li Luo ⋆, Fang Zuo, Bing Du, Shuo Li, Xiao-Xiao Ma, Shu-Guo Ma, Hai-Ling Lu, Ke-Fei Wu, Zhi-Hua Zhong, Wen Hou, Xiao Kong, Shuo Ye, Li-Li Wang, Hugh R. A. Jones (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2512-24840.txt.
Introduction
Jun-Chao Liang, Yin-Bi Li, A-Li Luo, and colleagues rebuild the LAMOST stellar parameter pipeline as a scalable Python framework for huge spectroscopic surveys. The original pipeline, written in an older language, needed better speed, scaling, and use across surveys. Their version is modular and parallel, with automated error estimation, rather than a direct translation.
One module refits the legacy procedure on central processors with faster input and multithreading. Another adds graphics processor acceleration with a grouped optimization method. Astronomy readers get a modern pipeline for measuring temperatures and related traits of stars from spectra at survey scale.
Catalog record
| CREATOR | Jun-Chao Liang, Yin-Bi Li ⋆, A-Li Luo ⋆, Fang Zuo, Bing Du, Shuo Li, Xiao-Xiao Ma, Shu-Guo Ma, Hai-Ling Lu, Ke-Fei Wu, Zhi-Hua Zhong, Wen Hou, Xiao Kong, Shuo Ye, Li-Li Wang, Hugh R. A. Jones |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 71 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2512-24840
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Scalable Stellar Parameter Inference Using Python-based LASP: From CPU Optimization to GPU Acceleration Jun-Chao Liang, Yin-Bi Li ⋆, A-Li Luo ⋆, Fang Zuo, Bing Du, Shuo Li, Xiao-Xiao Ma, Shu-Guo Ma, Hai-Ling Lu, Ke-Fei Wu, Zhi-Hua Zhong, Wen Hou, Xiao Kong, Shuo Ye, Li-Li Wang, Hugh R. A. Jones 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 https://doi.org/10.12149/101679 (catalog DOI: 10.12149/101679) and https://doi.org/10.12149/101675 (catalog DOI: 10.12149/101675) , respectively. I Introduction In recent years, the rapid development of large-scale spectroscopic surveys—such as the Radial Velocity Experiment ( 55 ) , the Large Sky Area Multi-object Fiber Spectroscopic Telescope (LAMOST; 66 66 ; 13 13 ; 37 37 ), the Galactic Archaeology with HERMES (GALAH; 15 15 ), the Sloan Digital Sky Survey (SDSS; 65 65 ; 38 38 ; 1 1 ), the Dark Energy Spectroscopic Instrument (DESI; 16 16 ), Gaia Radial Velocity Spectrometer ( 19 ; 50 ) , the 4.2 m William Herschel Telescope Enhanced Area Velocity Explorer ( 24 ) , the Multi-Object Optical and Near-infrared Spectrograph ( 9 ) , the upcoming the 4 m Multi-Object Spectroscopic Telescope ( 14 ) , and the Chinese Space Station Telescope (CSST; 21 ; 12 )—has provided, or is expected to provide, an unprecedented observational foundation for studies of stellar physics and Galactic structure. These datasets enable the measurement of key stellar parameters, such as radial velocity ( \mathrm{RV} ), effective temperature ( T_{\mathrm{eff}} ), surface gravity ( \log g ), metallicity ( [\mathrm{Fe}/\mathrm{H}] ), and dozens of elemental abundances. To efficiently and reliably infer these parameters, various automated pipelines have been developed, including the APOGEE Atmospheric Parameter and Chemical Abundance Pipeline (ASPCAP; 20 ), the Cannon for GALAH DR1/DR2 ( 43 ; 40 ; 4 ) , the Payne for GALAH DR4 ( 56 ; 5 ) , the General Stellar Parametriser from spectroscopy in Gaia DR3 ( 50 ) , the RVS and SP pipelines in DESI ( 11 ; 31 ; 32 ) , and the LAMOST Atmospheric Parameter Pipeline (LASP; 37 ). These pipelines have become essential tools for large-scale stellar parameter estimation, offering robust and automated solutions across diverse spectroscopic surveys. However, with increasing sample sizes and expanding parameter dimensionality, existing pipelines still leave room for improvement in terms of computational efficiency and joint-modeling capabilities. Most do not systematically exploit GPU acceleration, making it challenging to process tens of millions of spectra efficiently. Moreover, except for the Payne ( 56 ) and its extension TransformerPayne ( 51 ) , atmospheric parameters and elemental abundances are often modeled independently, limiting the ability to capture interparameter correlations in high-dimensional spaces. These limitations are particularly evident in the modular design of LASP. In the current LAMOST low-resolution survey, \mathrm{RV} , T_{\mathrm{eff}} , \log g , and [Fe/H] for AFGK-type stars are inferred using LASP, which incorporates the University of Lyon Spectroscopic analysis Software (ULySS 1 1 1 http://ulyss.univ-lyon1.fr/ ), implemented in IDL and optimized via the MPFit algorithm ( 39 ) (hereafter LASP-MPFit). In contrast, projected rotational velocity ( v\sin i ) and \alpha -element abundance ( [\alpha/\mathrm{M}] ) are inferred using two separate Python-based modules developed by 67 and W. Hou (2025, personal communication), which rely on LASP-MPFit outputs as strong priors. This modular separation prevents fully coupled multiparameter inference, which not only propagates prior errors across sequential modules but also limits the framework’s capacity to enforce joint constraints and capture parameter correlations, thereby potentially compromising both its accuracy and extensibility. Additionally, the IDL-based implementation is increasingly difficult to maintain and limits flexibility for adaptation to other surveys. Such architectural and methodological fragmentation is not unique to LASP; similar inconsistencies frequently arise when integrating stellar parameters derived from different survey pipelines. Differences in algorithmic design and modeling assumptions across surveys can introduce hard-to-quantify deviations in the resulting stellar parameters, complicating their cross-survey integration. Therefore, developing an efficient and readily implementable inference framework for high-dimensional joint optimization, with the flexibility to adapt to different surveys, will facilitate consistent analysis and integrated modeling of multisurvey data. Motivated by these challenges, we develop a new Python-based architecture for LASP 2 2 2 https://github.com/LiangJunC/PyLASP (hereafter PyLASP) that supports efficient inference, multitask joint modeling, and cross-survey compatibility. The framework incorporates two optimization strategies: LASP-CurveFit, a CPU-based implementation of the Levenberg-Marquardt algorithm ( 44 ; 60 ) , and LASP-Adam-GPU, a GPU-accelerated method based on the Adam optimizer ( 26 ) . LASP-CurveFit preserves the logic of LASP-MPFit while restructuring the codebase for improved I/O and multithreading performance using Python. LASP-Adam-GPU performs grouped optimization by minimizing a joint residual function over multiple spectra in each group, using the PyTorch library ( 45 ) to support scalable and parallel inference for large datasets and high-dimensional parameter spaces. Thanks to the flexibility of Python and its extensive scientific ecosystem, this framework is easily extensible and transferable across surveys such as DESI and CSST. Given that LASP-MPFit forms the foundation for other parameter modules in LAMOST, its IDL-based implementation has certain limitations in computational efficiency and scalability. We therefore prioritize the reimplementation of this module, which serves as the baseline method for performance and consistency evaluation in subsequent experiments. Other modules, such as v\sin i and [\alpha/\mathrm{M}] , adopt different modeling strategies and are not yet included in the current framework. Their integration will be explored in future work as part of a unified framework for high-dimensional abundance inference. This paper is organized as follows. In Section II , we introduce the overall structure of PyLASP. Section III describes the datasets used to evaluate the performance of LASP-CurveFit and LASP-Adam-GPU. In Section IV , we present results on inference efficiency, robustness, error modeling, and generalization to DESI DR 1 . Section V provides an overall summary of this work. II Methodology To support large-scale stellar parameter inference,