Scalable Stellar Parameter Inference Using Python-based LASP: From CPU Optimization to GPU Acceleration
arXiv:2512.24840 · doi:10.3847/1538-4357/ae1446
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 \dataset[DOI: 10.12149/101679]{https://doi.org/10.12149/101679} and \dataset[DOI: 10.12149/101675]{https://doi.org/10.12149/101675}, respectively.
References in corpus (36)
- SciPy 1.0--Fundamental Algorithms for Scientific Computing in Python
- Array Programming with NumPy
- The Astropy Project: Sustaining and Growing a Community-oriented Open-source Project and the Latest Major Release (v5.0) of the Core Package
- Gaia Data Release 3: Summary of the content and survey properties
- The Apache Point Observatory Galactic Evolution Experiment (APOGEE)
- Sloan Digital Sky Survey IV: Mapping the Milky Way, Nearby Galaxies, and the Distant Universe
- Improving the full spectrum fitting method: accurate convolution with Gauss-Hermite functions
- SEGUE: A Spectroscopic Survey of 240,000 stars with g=14-20
- The Radial Velocity Experiment (RAVE): first data release
- The First Data Release (DR1) of the LAMOST general survey
- The GALAH Survey: Scientific Motivation
- ASPCAP: The Apogee Stellar Parameter and Chemical Abundances Pipeline
- APOGEE Data and Spectral Analysis from SDSS Data Release 16: Seven Years of Observations Including First Results from APOGEE-South
- ULySS: A Full Spectrum Fitting Package
- The Cannon: A data-driven approach to stellar label determination
- The GALAH Survey: Second Data Release
- Cosmology from the Chinese Space Station Optical Survey (CSS-OS)
- The ELODIE archive
- The Eighteenth Data Release of the Sloan Digital Sky Surveys: Targeting and First Spectra from SDSS-V
- Gaia Data Release 3: Analysis of RVS spectra using the General Stellar Parametriser from spectroscopy
- The Payne: self-consistent ab initio fitting of stellar spectra
- Automatic Determination of Stellar Atmospheric Parameters and Construction of Stellar Spectral Templates of the Guoshoujing Telescope (LAMOST)
- The GALAH Survey: Observational Overview and Gaia DR1 companion
- Coude-feed stellar spectral library - atmospheric parameters
- The wide-field, multiplexed, spectroscopic facility WEAVE: Survey design, overview, and simulated implementation
- The Robotic Multi-Object Focal Plane System of the Dark Energy Spectroscopic Instrument (DESI)
- The atmospheric parameters and spectral interpolator for the stars of MILES
- The APOGEE Data Release 16 Spectral Line List
- Overview of the DESI Milky Way Survey
- Formation and Evolution of Dwarf Elliptical Galaxies - II. Spatially resolved star-formation histories
- Stellar population models in the UV: I. Characterisation of the New Generation Stellar Library
- New atmospheric parameters and spectral interpolator for the MILES cool stars
- The value-added catalogue for LAMOST DR8 low-resolution spectra
- Stellar parametrization of LAMOST M dwarf stars
- DESI Early Data Release Milky Way Survey Value-Added Catalogue
- Physical Parameters of Stars in NGC 6397 Using ANN-Based Interpolation and Full Spectrum Fitting