Papers › SpectraFM: Tuning into Stellar Foundation Models

SpectraFM: Tuning into Stellar Foundation Models

7 Nov 2024arXiv:2411.04750links table onlyarchive 2025-07-28

Nolan Koblischke, 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.

Machine learning models in astrophysics are often limited in scope and cannot adapt to data from new instruments or tasks. We introduce SpectraFM, a Transformer-based foundation model architecture that can be pre-trained on stellar spectra from any wavelength range and instrument. SpectraFM excels in generalization by combining flexibility with knowledge transfer from pre-training, allowing it to outperform traditional machine learning methods, especially in scenarios with limited training data. Our model is pre-trained on approximately 90k examples of synthetic spectra to predict the chemical abundances (Fe, Mg, O), temperature, and specific gravity of stars. We then fine-tune the model on real spectra to adapt it to observational data before fine-tuning it further on a restricted 100-star training set in a different wavelength range to predict iron abundance. Despite a small iron-rich training set of real spectra, transfer learning from the synthetic spectra pre-training enables the model to perform well on iron-poor stars. In contrast, a neural network trained from scratch fails at this task. We investigate the Transformer attention mechanism and find that the wavelengths receiving attention carry physical information about chemical composition. By leveraging the knowledge from pre-training and its ability to handle non-spectra inputs, SpectraFM reduces the need for large training datasets and enables cross-instrument and cross-domain research. Its adaptability makes it well-suited for tackling emerging challenges in astrophysics, like extracting insights from multi-modal datasets.

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="2411.04750")

Code

Syntology Ran 0 of 17 code samples harvested from 1 repository linked to this paper; 17 have no recorded run.

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

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

17 samples harvested; 0 ran; 0 honoured the contract we drafted; 17 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.

17unverified

Licence: 17 of the 17 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 NolanKoblischke/SpectraFM_NeurIPS_FM4Science. “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.

crop_xp NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/utils/gaia_utils.py official repository unverified no licence file found · pointer only · f1fb55e3900659cb · report
estimate_bprp NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/utils/empirical_utils.py official repository unverified no licence file found · pointer only · 0916108f810a8280 · report
estimate_logg_from_teff_MS NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/utils/empirical_utils.py official repository unverified no licence file found · pointer only · f11021746c757675 · report
estimate_teff_from_logg_rgb NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/utils/empirical_utils.py official repository unverified no licence file found · pointer only · 7b7fe2d763e1898f · report
get_activation NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/stellarperceptron/layers.py official repository unverified no licence file found · pointer only · 6b0d532c134d64b5 · report
get_initializer NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/stellarperceptron/layers.py official repository unverified no licence file found · pointer only · b76ac4984902fcc3 · report
mag_to_flux NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/utils/gaia_utils.py official repository unverified no licence file found · pointer only · db139f93c836329b · report
mean_squared_error NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/stellarperceptron/nn_utils.py official repository unverified no licence file found · pointer only · ac32065953e99b32 · report
prepare_labels_and_ids NolanKoblischke/SpectraFM_NeurIPS_FM4Science/dataset/create_dataset.py official repository unverified no licence file found · pointer only · 5b7c19850d0160ea · report
random_choice NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/utils/data_utils.py official repository unverified no licence file found · pointer only · 6b321439c20994fb · report
robust_mean_squared_error NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/stellarperceptron/nn_utils.py official repository unverified no licence file found · pointer only · 9aea7c675f1b3865 · report
run NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/stellarperceptron/torch_utils_collect_env.py official repository unverified no licence file found · pointer only · 078edcdd035127f0 · report
run_and_parse_first_match NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/stellarperceptron/torch_utils_collect_env.py official repository unverified no licence file found · pointer only · ab7aeddfa9e9fb2e · report
run_and_read_all NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/stellarperceptron/torch_utils_collect_env.py official repository unverified no licence file found · pointer only · 84905132fbc263e3 · report
shuffle_row NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/utils/data_utils.py official repository unverified no licence file found · pointer only · 63e230bcdbaee56a · report
top_cbar NolanKoblischke/SpectraFM_NeurIPS_FM4Science/model_core/utils/plotting_utils.py official repository unverified no licence file found · pointer only · 150b30062b840abc · report
train_test_split_data NolanKoblischke/SpectraFM_NeurIPS_FM4Science/dataset/create_dataset.py official repository unverified no licence file found · pointer only · f2870f53793379c6 · 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