Abstract
Automated methods of classifying transients have become increasingly useful as spectroscopic surveys grow to tens of millions of observations. We present a convolutional neural network (CNN) designed to classify transient spectra collected by the Dark Energy Spectroscopic Instrument (DESI). We also explore a tokenized transformer architecture as an alternative, redshift-invariant approach that learns the relative positions of spectral features without depending on their absolute position. Both models are trained to classify 8 categories of spectra: Type Ia, Type II, and Type Ib/Ic supernovae (SNe), kilonovae, tidal disruption events (TDEs), stars, quasars, and galaxies. To form our training set, we injected transient spectra onto real DESI galaxy spectra and then processed them through DESI's pipelines to produce realistic simulated observations. After training, we validated both models against a sample of 1563 spectroscopically confirmed DESI transients, galaxies, quasars, and stars. Evaluated on this sample, the transformer achieved an average recall of 80% weighted across all classes and a weighted average F1-score of 79%, compared to 76% for both metrics for the CNN. When evaluated on a held-out set of simulated training data, the transformer achieved a weighted recall and F1-score of 97%, compared to 96% for the CNN. Deploying the transformer across DESI's first five years of data yielded ~580 confirmed transients, of which 318 were newly classified, comprising 167 SN Ia, 94 SN II, 56 SN Ib/c, and 1 TDE. We aim to deploy these methods as part of the DESI pipeline to identify new transient candidates nightly.