Papers › Towards an astronomical foundation model for stars with a Transformer-based model

Towards an astronomical foundation model for stars with a Transformer-based model

21 Aug 2023arXiv:2308.10944links table onlyarchive 2025-07-28

Henry W. Leung, Jo Bovy

The archive published only this paper's code-link row. Authors, date and abstract are from arXiv's metadata (CC0), read from the Kaggle arXiv metadata snapshot of 2026-09-12 where its title matched the archive's; the title is the archive's.

Rapid strides are currently being made in the field of artificial intelligence using Transformer-based models like Large Language Models (LLMs). The potential of these methods for creating a single, large, versatile model in astronomy has not yet been explored. In this work, we propose a framework for data-driven astronomy that uses the same core techniques and architecture as used by LLMs. Using a variety of observations and labels of stars as an example, we build a Transformer-based model and train it in a self-supervised manner with cross-survey data sets to perform a variety of inference tasks. In particular, we demonstrate that a single model can perform both discriminative and generative tasks even if the model was not trained or fine-tuned to do any specific task. For example, on the discriminative task of deriving stellar parameters from Gaia XP spectra, we achieve an accuracy of 47 K in T_(eff), 0.11 dex in logg, and 0.07 dex in [M/H], outperforming an expert XGBoost model in the same setting. But the same model can also generate XP spectra from stellar parameters, inpaint unobserved spectral regions, extract empirical stellar loci, and even determine the interstellar extinction curve. Our framework demonstrates that building and training a single foundation model without fine-tuning using data and parameters from multiple surveys to predict unmeasured observations and parameters is well within reach. Such "Large Astronomy Models" trained on large quantities of observational data will play a large role in the analysis of current and future large surveys.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.10944")

Code

Syntology Ran 1 of 12 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 1 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

henrysky/astronn_stars_foundation officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 1 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran
11unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from henrysky/astronn_stars_foundation. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

robust_mean_squared_error henrysky/astronn_stars_foundation/stellarperceptron/nn_utils.py official repository ran fingerprinted MIT (permissive) · 00ed7823bf5bae82 · report
crop_xp henrysky/astronn_stars_foundation/utils/gaia_utils.py official repository unverified MIT (permissive) · f1fb55e3900659cb · report
estimate_bprp henrysky/astronn_stars_foundation/utils/empirical_utils.py official repository unverified MIT (permissive) · 0916108f810a8280 · report
estimate_logg_from_teff_MS henrysky/astronn_stars_foundation/utils/empirical_utils.py official repository unverified MIT (permissive) · f11021746c757675 · report
estimate_teff_from_logg_rgb henrysky/astronn_stars_foundation/utils/empirical_utils.py official repository unverified MIT (permissive) · 7b7fe2d763e1898f · report
get_activation henrysky/astronn_stars_foundation/stellarperceptron/layers.py official repository unverified MIT (permissive) · 6b0d532c134d64b5 · report
get_initializer henrysky/astronn_stars_foundation/stellarperceptron/layers.py official repository unverified MIT (permissive) · b76ac4984902fcc3 · report
mag_to_flux henrysky/astronn_stars_foundation/utils/gaia_utils.py official repository unverified MIT (permissive) · db139f93c836329b · report
mean_squared_error henrysky/astronn_stars_foundation/stellarperceptron/nn_utils.py official repository unverified MIT (permissive) · ac32065953e99b32 · report
random_choice henrysky/astronn_stars_foundation/utils/data_utils.py official repository unverified MIT (permissive) · 6b321439c20994fb · report
shuffle_row henrysky/astronn_stars_foundation/utils/data_utils.py official repository unverified MIT (permissive) · 63e230bcdbaee56a · report
top_cbar henrysky/astronn_stars_foundation/utils/plotting_utils.py official repository unverified MIT (permissive) · 150b30062b840abc · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections