Abstract
Astronomical alert classification has traditionally relied on custom-built convolutional neural networks (CNNs) trained from scratch. This study explores a paradigm shift toward using modern, off-the-shelf architectures pre-trained on large-scale astronomical datasets. By leveraging the Galaxy Zoo dataset for pre-training, researchers achieved superior classification performance and significantly enhanced computational efficiency compared to traditional custom models, particularly when labeled data is limited.
Introduction
Modern wide-field surveys, such as the Zwicky Transient Facility (ZTF) and the upcoming Legacy Survey of Space and Time (LSST), generate millions of alerts daily. These alerts represent transient, variable, or moving phenomena identified through image differencing. Filtering "real" astrophysical transients from "bogus" artifacts is a critical task. Historically, the field has used small, custom CNNs. However, the broader computer vision community has moved toward massive, standardized architectures pre-trained on extensive datasets like ImageNet. This research investigates whether adopting these modern practices can improve alert classification in astronomy, addressing challenges like data efficiency and the distribution shift between natural and astronomical images.
Methodology
The study systematically evaluates three key dimensions of model development:
- Architectures: A baseline custom CNN is compared against ConvNeXt (a modern fully-convolutional model) and MaxViT (a hybrid Vision Transformer utilizing attention mechanisms).
- Pre-training Regimens: Models were evaluated when trained from scratch, pre-trained on ImageNet, or pre-trained on Galaxy Zoo (comprising ~842,000 galaxy images).
- Fine-tuning Datasets: Models were fine-tuned on two distinct data types: ZTF alert cutouts (Science, Reference, and Difference images) and DESI Legacy Survey color images ($grz$ bands).
Bayesian hyperparameter sweeps were employed to ensure each model reached its peak potential during evaluation.
Data Sources
The research utilized several large-scale datasets:
- Pre-training: ImageNet-1k (~1.28M images) and Galaxy Zoo (~842k annotated images from the Zoobot project).
- Fine-tuning/Evaluation:
- BTSbot dataset: 769,056 ZTF alerts covering supernovae, variable stars, AGN, and artifacts.
- DESI Legacy Survey DR10: Provided contextual $grz$ band color images corresponding to ZTF alert positions.
Results and Discussion
The experimental results highlight several critical advantages of pre-training and modern architectures:
Domain-Specific Pre-training
Pre-training on Galaxy Zoo consistently outperformed ImageNet pre-training. This indicates that learning the specific textures and noise characteristics of astronomical data is more beneficial for alert classification than learning features from natural images.
Performance and Data Efficiency
Modern architectures matched or exceeded the performance of the specialized custom CNN baseline. Notably, pre-training on Legacy Survey images provided a dramatic ROC AUC boost ($\\gtrsim 0.04$) over training from scratch, demonstrating that pre-training is highly effective when labeled data is scarce.
Computational Efficiency
Beyond accuracy, the computational gains were significant. The ConvNeXt model, despite its higher parameter count, achieved 6.4x faster CPU inference and used 5.5x less memory than the custom CNN baseline, making it ideal for high-throughput production environments.
The Role of Attention
The MaxViT model, which incorporates attention mechanisms, achieved the highest overall performance. This suggests that global relationship modeling is superior to local pixel pattern recognition for complex astronomical classification tasks.
Conclusion
While modern vision models offer substantial improvements, a "distribution shift" remains between the 3-channel images used in pre-training and the Science/Reference/Difference schema of ZTF alerts. Future research may explore self-supervised pre-training on unlabeled alert streams to further bridge this gap. Additionally, multi-modal approaches combining image data with tabular metadata remain essential for real-time astronomical operations.
Summary updated