Outlier Detection in the DESI Bright Galaxy Survey

Yan Liang, P. Melchior, ChangHoon Hahn, Jeff Shen, Andy D. Goulding, Charlotte Ward

Abstract: We present an unsupervised search for outliers in the Bright Galaxy Survey (BGS) dataset from the DESI Early Data Release. This analysis utilizes an autoencoder to compress galaxy spectra into a compact, redshift-invariant latent space, and a normalizing flow to identify low-probability objects. The most prominent outliers show distinctive spectral features such as irregular or double-peaked emission lines, or originate from galaxy mergers, blended sources, and rare quasar types, including one previously unknown Broad Absorption Line system. A significant portion of the BGS outliers are stars spectroscopically misclassified as galaxies. By building our own star model trained on spectra from the DESI Milky Way Survey, we have determined that the misclassification likely stems from the Principle Component Analysis of stars in the DESI pipeline. To aid follow-up studies, we make the full probability catalog of all BGS objects and our pre-trained models publicly available.

Introduction

Modern spectroscopic surveys like the Dark Energy Spectroscopic Instrument (DESI) are firehoses of data, capturing millions of spectra. To process this immense volume, astronomers typically rely on "template matching"—comparing observed light to a library of known galaxy and star types. While efficient for identifying "known knowns," this approach often fails to detect "unknown unknowns." Rare astrophysical phenomena, instrumental glitches, or objects that deviate from standard physical models are frequently shoehorned into incorrect categories or ignored. This study introduces an unsupervised machine learning pipeline designed to act as a safety net, automatically flagging these rare and unusual objects without prior instruction on what to look for.

Methodology

The researchers employed a two-stage unsupervised architecture to process approximately 250,000 spectra from the DESI Bright Galaxy Survey (BGS).

  1. The Autoencoder (spender): This neural network compresses complex galaxy spectra into a 6-dimensional "latent space." A critical design feature is its redshift invariance. By learning to reconstruct the "rest-frame" version of a galaxy, the model focuses on intrinsic physical properties rather than the object's recessional velocity. This ensures that detected outliers are unique due to their physical makeup, not merely their distance.
  2. The Normalizing Flow (NF): Once mapped into the 6D latent space, a Masked Autoregressive Flow (MAF) models the probability distribution of the entire dataset. By calculating the probability density ($p_{galaxy}$), the system assigns an "outlier score" ($-\log p_{galaxy}$). Objects residing in low-probability regions of this space are flagged as the most unusual.
The unsupervised pipeline combines a redshift-invariant autoencoder with a normalizing flow to evaluate object probability.

Key Results and Discovery of Rare Objects

The search successfully identified a diverse array of rare astrophysical phenomena. Among the top outliers were galaxy mergers, blended sources (where two distinct objects fall within a single fiber), and rare quasar types. Notably, the pipeline discovered a previously unknown Broad Absorption Line (BAL) system and galaxies exhibiting "blue-skewing" emission lines, which indicate high-velocity gas outflows.

Examples of detected outliers, showing unusual spectral features and corresponding imaging of mergers and exotic sources.

Beyond exotic galaxies, the pipeline uncovered a systematic issue within the standard DESI pipeline (Redrock). A significant number of high-confidence outliers were actually stars misclassified as galaxies. The authors traced this back to the Principal Component Analysis (PCA) templates used for stars, which appeared to be "polluted" by an overabundance of M-dwarf stars during training. By developing a secondary "StarAE" trained on the Milky Way Survey, the researchers demonstrated superior modeling of stellar spectra, avoiding the systematic residuals found in the official pipeline.

Discussion and Future Work

The synergy between non-linear compression (Autoencoder) and density estimation (Normalizing Flow) proved highly effective. The autoencoder achieved high fidelity with a reduced chi-square ($\chi^2$) value of 0.77, capturing the vast majority of spectral features accurately. However, the authors note that the method remains sensitive to the "purity" of the training set; if a specific artifact is sufficiently common, the model may learn to treat it as normal.

Looking forward, this unsupervised approach could be integrated into real-time survey pipelines to serve as an automated quality control system. Furthermore, running spectra through both Galaxy-NF and Star-NF models could lead to a more robust classification system based on relative likelihoods, significantly reducing misclassification rates in future "Big Data" astronomical surveys.

Reference: Liang, Y., Melchior, P., et al. (2023). Outlier Detection in the DESI Bright Galaxy Survey. arXiv:2307.07664v1.

Summary updated

BibTeX
@article{liang2023outlier,
  author = {Yan Liang and P. Melchior and ChangHoon Hahn and Jeff Shen and Andy D. Goulding and Charlotte Ward},
  title = {{Outlier Detection in the DESI Bright Galaxy Survey}},
  journal = {The Astrophysical Journal Letters},
  year = {2023},
  doi = {10.3847/2041-8213/acfa03},
}
Figure