Abstract
We introduce Astroconformer, a Transformer-based model to analyze stellar light curves from the Kepler mission. We demonstrate that Astrconformer can robustly infer the stellar surface gravity as a supervised task. Importantly, as Transformer captures long-range information in the time series, it outperforms the state-of-the-art data-driven method in the field, and the critical role of self-attention is proved through ablation experiments. Furthermore, the attention map from Astroconformer exemplifies the long-range correlation information learned by the model, leading to a more interpretable deep learning approach for asteroseismology. Besides data from Kepler, we also show that the method can generalize to sparse cadence light curves from the Rubin Observatory, paving the way for the new era of asteroseismology, harnessing information from long-cadence ground-based observations.
Introduction
In the field of asteroseismology, researchers analyze stellar light curves—variations in brightness caused by internal oscillations and surface convection (granulation)—to determine fundamental stellar properties such as mass, radius, and surface gravity ($\log g$). Traditional methods often treat these signals as Gaussian processes, which may overlook subtle, non-Gaussian features inherent in stochastically excited and damped oscillations. While previous deep learning approaches utilized Convolutional Neural Networks (CNNs), they were limited by a "local receptive field," struggling to capture long-range temporal correlations across the entire time series.
Methodology
To address these limitations, we propose Astroconformer, a hybrid architecture that integrates Transformers and CNNs. The model is adapted from the Conformer architecture used in speech recognition, tailored for astrophysical time series.
The architecture consists of three primary stages:
- Tokenization: A 1D convolution layer transforms raw light curves into a sequence of tokens.
- Astroconformer Blocks: Three blocks interleave Multi-Head Self-Attention (MHSA) with Convolution modules. This allows the model to learn both local features and global interactions simultaneously.
- Optimization Techniques: We employ Rotary Positional Encoding to preserve relative timing, time-shifting for data augmentation, and weighted pooling to adaptively aggregate information for the final $\log g$ prediction.
Datasets
The model was trained and evaluated on two primary datasets:
- Kepler Mission Data: 14,003 high-precision light curves (~100 ppm noise) with 30-minute sampling intervals.
- Mock Rubin Observatory Data: Simulated data representing the upcoming Vera C. Rubin Observatory, characterized by sparse cadence (one observation every ~4 days) and significantly higher noise levels (4600 ppm).
Results and Discussion
Astroconformer demonstrates significant improvements over existing benchmarks. It outperforms THE SWAN, the previous state-of-the-art k-nearest neighbors method, by a factor of three in terms of Root Mean Square (RMS) error.
Ablation and Interpretability
Ablation studies confirm the necessity of the hybrid approach. Removing the attention mechanism resulted in a 30% performance decrease, highlighting the importance of long-range information. Furthermore, visualization of attention maps reveals that the model naturally identifies characteristic oscillation periods, providing a physically interpretable basis for its predictions.
Generalization to Sparse Data
The model proved remarkably robust to the degraded conditions of the simulated Rubin data. It achieved an RMS error of ~0.22 dex overall, and for giant stars ($\log g < 1$), the precision reached 0.07 dex. This performance is comparable to traditional ground-based spectroscopy, suggesting that Astroconformer can unlock asteroseismic potential in upcoming large-scale surveys.
Conclusion
Astroconformer represents a significant step forward in automated stellar analysis. By combining the local feature extraction of CNNs with the global context of Transformers, it achieves unprecedented accuracy in surface gravity inference. Future work will explore unsupervised pre-training on larger datasets and the incorporation of multi-band photometric data to further enhance the model's physical insights.
Summary updated