Pre-training vision models for the classification of alerts from wide-field time-domain surveys

Nabeel Rehemtulla, Adam A. Miller, Mike Walmsley, Ved G. Shah, Theophile Jegou du Laz, Michael W. Coughlin, Argyro Sasli, Joshua Bloom, Christoffer Fremling, Matthew J. Graham, Steven L. Groom, David Hale, Ashish A. Mahabal, Daniel A. Perley, Josiah Purdum, Ben Rusholme, Jesper Sollerman, Mansi M. KasliwalarXiv 2025 · DOI

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:

  1. Architectures: A baseline custom CNN is compared against ConvNeXt (a modern fully-convolutional model) and MaxViT (a hybrid Vision Transformer utilizing attention mechanisms).
  2. 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).
  3. 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).
The experimental pipeline comparing pre-training regimens, model architectures, and fine-tuning datasets.

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.

ROC AUC performance comparison across different pre-training strategies and architectures for ZTF Alert Cutouts and Legacy Survey Images.

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

BibTeX
@misc{rehemtulla2025pre,
  author = {Nabeel Rehemtulla and Adam A. Miller and Mike Walmsley and Ved G. Shah and Theophile Jegou du Laz and Michael W. Coughlin and Argyro Sasli and Joshua Bloom and Christoffer Fremling and Matthew J. Graham and Steven L. Groom and David Hale and Ashish A. Mahabal and Daniel A. Perley and Josiah Purdum and Ben Rusholme and Jesper Sollerman and Mansi M. Kasliwal},
  title = {{Pre-training vision models for the classification of alerts from wide-field time-domain surveys}},
  year = {2025},
  eprint = {2512.11957},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.11957},
}
Figure