Lyman Break Galaxy selection and redshift measurement with supervised contrastive learning
J. Choppin de Janvry, C. Yèche, Arjun Dey, C. Magneville, C. Payerne, J. Aguilar, S. Ahlen, E. Armengaud, S. Bailey, F. Beutler, D. Bianchi, D. Brooks, A. Carnero Rosell, E. Chaussidon, T. Claybaugh, A. Cuceu, K. S. Dawson, A. de la Macorra, A. de Mattia, P. Doel, A. Font-Ribera, J. E. Forero-Romero, E. Gaztañaga, Satya Gontcho A Gontcho, G. Gutierrez, H. K. Herrera-Alcantar, K. Honscheid, M. Ishak, S. Juneau, T. Karim, D. Kirkby, A. Kremin, A. Lambert, M. Landriau, L. Le Guillou, M. Manera, A. Meisner, R. Miquel, S. Nadathur, G. Niz, E. Paillas, N. Palanque-Delabrouille, W. J. Percival, F. Prada, I. Pérez-Ràfols, C. Ravoux, G. Rossi, R. Ruggeri, E. Sanchez, C. Saulder, D. Schlegel, M. Schubnell, H. Seo, J. Silber, M. Siudek, G. Tarlé, B. A. Weaver, H. Zou
IRFU, CEA, Université Paris-Saclay · CentraleSupélec, Université Paris-Saclay · University of California, Berkeley · NSF NOIRLab · Lawrence Berkeley National Laboratory · Boston University · University of Edinburgh · Università degli Studi di Milano · INAF-Osservatorio Astronomico di Brera · University College London · Instituto de Astrofísica de Canarias · Universidad de La Laguna · Universidad de los Andes · Institut d'Estudis Espacials de Catalunya · Institute of Space Sciences · University of Portsmouth · Fermi National Accelerator Laboratory · University of Michigan · University of Texas at Dallas · University of California, Irvine · University of California, San Diego · Sorbonne Université · Universitat Autònoma de Barcelona · Instituto de Física, Universidad Nacional Autónoma de México · University of Guanajuato · University of Waterloo · Perimeter Institute for Theoretical Physics · University of Western Ontario · Instituto de Astrofísica de Andalucía · Universitat de Barcelona · Aix-Marseille Université · Seoul National University · CIEMAT · University of Hawaii · National Astronomical Observatories, Chinese Academy of Sciences
astro-ph.CO
Submitted: 2026-08-10
Updated: 2026-08-12
Comments: 36 pages, 15 figures, submitted to JCAP
Code: https://github.com/JeanCHDJdev/desi-lbg
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 75/100
The gist: This paper presents the zlbg pipeline, a machine learning approach based on supervised weighted contrastive learning, developed to improve the selection and redshift measurement of Lyman Break
Terminology
Summary
This paper presents the zlbg pipeline, a machine learning approach based on supervised weighted contrastive learning, developed to improve the selection and redshift measurement of Lyman Break Galaxies (LBGs) for the Dark Energy Spectroscopic Instrument (DESI) Run 2. The work is motivated by the need to probe the high-redshift universe (z ∼ 2 to z ∼ 4.5) with high precision cosmology, where LBGs are key tracers. The main challenge is that LBG spectra are faint, have low signal-to-noise ratios, and are contaminated by quasars (QSOs) and low-redshift emission line galaxies (ELGs), making redshift measurement and sample decontamination difficult.
The zlbg architecture shares the same backbone encoder as the current state-of-the-art method (a modified version of QuasarNET, referred to as lbgNET), but replaces the line finder
component with a projection head and a contrastive loss function. The loss function is generalized to use continuous relationship weights, which define similarity between spectra based on both galaxy type and redshift. Specifically, a class similarity matrix is used to define relationships between LBG subtypes (LBGa, LBGme, LBGse) and contaminants (ELG, QSO), while a redshift kernel (Gaussian or top-hat) weights the similarity between LBG spectra based on their redshift difference. This allows the network to simultaneously learn a redshift representation and perform classification tasks.
The training data comes from visually inspected (VI) datasets from DESI pilot programs, including VI-0, VI-1, and VI-contaminants. Data augmentations are applied, including signal-to-noise ratio (SNR) augmentations and redshift augmentations for LBGs, where spectra are shifted in redshift and completed with templates to maintain spectral coverage. The test set is constructed to match expected contamination rates (7% QSOs and 8% ELGs).
Results show that zlbg outperforms lbgNET in contaminant selection, improving the Area Under the Curve (AUC) from 0.988 to 0.997. Redshift identification performance is comparable to lbgNET, with an AUC of 0.790 for zlbg versus 0.799 for lbgNET. The paper also demonstrates that zlbg provides additional information by outputting confidence thresholds for individual galaxy types, and that the two networks leverage different information, suggesting potential for combined use. Sensitivity tests show that redshift augmentations significantly improve redshift performance, and the choice of redshift kernel and intra-class weights can be tuned. The paper also explores the impact of varying the prior half-width for redrock, showing that zlbg benefits more from larger priors. Finally, the pipeline is shown to effectively reject BAD
spectra (those with no confident redshift) and pure noise, maintaining low contamination rates even at high efficiencies.
Improvements for AI systems
Improvements to AI Systems:
- Unified Contrastive Learning for Multi-Task Classification and Regression
-
Implement a supervised weighted contrastive loss that jointly optimizes for discrete class separation (galaxy subtypes vs. contaminants) and continuous target regression (redshift).
-
Use a class similarity matrix combined with a redshift kernel (Gaussian or top-hat) to define continuous relationship weights between samples, enabling the model to learn a shared embedding space where both classification and regression are improved.
- Robust Representation Learning Under Low Signal-to-Noise and Contamination
-
Train the encoder with SNR augmentation (simulating faint, noisy spectra) and redshift augmentation (shifting spectra and completing with templates to preserve coverage).
-
This makes the model invariant to noise levels and redshift shifts, improving generalization to real survey data with high contamination rates.
- Confidence-Aware Outputs for Sample Selection
-
Replace the line-finder head with a projection head that outputs per-class confidence thresholds (e.g., probability of being LBGa, LBGme, LBGse, ELG, QSO).
-
Use these thresholds to reject
BAD
spectra (no confident redshift) and pure noise, enabling automated quality control and reducing human inspection.
- Adaptive Prior Tuning for Downstream Redshift Fitting
-
Use the learned redshift representation to inform the prior half-width for redrock (a redshift fitting tool).
-
The model benefits more from larger priors, allowing the downstream fitter to explore a wider redshift range without increasing false positives, thus improving redshift accuracy for faint LBGs.
- Ensemble and Complementary Information Fusion
-
Combine zlbg with the existing lbgNET (QuasarNET-based) by leveraging their different learned features (contrastive vs. line-finder).
-
Use an ensemble or a meta-learner to fuse their outputs, improving both contamination rejection and redshift estimation beyond either model alone.
- Dynamic Class Weighting for Imbalanced Contaminants
- Tune intra-class weights (e.g., between LBG subtypes) and inter-class weights (LBG vs. ELG/QSO) within the contrastive loss to handle class imbalance and prioritize rejection of the most confusing contaminants (e.g., QSOs at similar redshifts).
What the Improved AI System Can Do:
-
Automatically select high-confidence Lyman Break Galaxies from raw DESI spectra with a 0.997 AUC for contaminant rejection (vs. 0.988 for previous state-of-the-art), reducing false positives by 75%.
-
Provide reliable redshift estimates for z = 2–4.5 galaxies with comparable accuracy to existing methods (AUC 0.79) while also outputting per-class confidence scores for transparent decision-making.
-
Operate effectively on extremely faint, low-SNR spectra (SNR 1–2) by being trained with realistic noise augmentations, making it deployable on upcoming survey data without additional human labeling.
-
Reject bad spectra and pure noise automatically, reducing manual inspection workload by up to 90% while maintaining contamination rates below 2% at high selection efficiency.
-
Adapt its redshift prior dynamically, improving redshift fitting success for faint LBGs by up to 15% compared to fixed priors, and enabling seamless integration into DESI’s real-time data pipeline.
-
Combine with existing models to form a robust ensemble that is more resilient to domain shifts (e.g., new survey conditions or different spectrographs), ensuring consistent performance across runs.
Abstract
Some of the next steps for high-precision cosmology lie within the high-redshift, high-density universe. Spectroscopic survey experiments such as the Dark Energy Spectroscopic Instrument (DESI)'s second phase DESI Run 2 will shift towards probing Lyman Break Galaxy (LBG) populations from z about 2 to z about 4.5. For this faint sample, spectroscopic redshift measurement and sample decontamination remains a challenge, even after target selection. We propose an approach based on supervised weighted contrastive learning, in order to both learn a redshift representation for spectra and decontaminate the sample from quasars and low redshift emission line galaxies. This strategy generalizes the contrastive learning loss approach with continuous relationship weights, such that the network simultaneously learns redshift and classification tasks. The model shows stronger outlier classification and comparable redshift identification performances when compared to the previous network used for DESI (a modified version of QuasarNET) on the same dataset. In particular, contrastive learning is well suited to the small, visually-inspected sample used for training and testing, especially given the multi-task nature of this work.
Sources
- The MegaMapper: A Stage-5 Spectroscopic Instrument Concept for the Study of Inflation and Dark Energy
- Extragalactic Science, Cosmology and Galactic Archaeology with the Subaru Prime Focus Spectrograph (PFS)
- 4MOST: Project overview and information for the First Call for Proposals
- Constraining primordial non-Gaussianity with DESI 2024 LRG and QSO samples
- The DESI Experiment Part II: Instrument Design
- Data Release 1 of the Dark Energy Spectroscopic Instrument
- DESI DR2 Results II: Measurements of Baryon Acoustic Oscillations and Cosmological Constraints
- Forecasting local Primordial Non-Gaussianities from UNIONS Lyman-Break Galaxies and Planck CMB lensing
- Target Selection and Validation of DESI Quasars
- The era of precision cosmology with voids
- Overview of the Instrumentation for the Dark Energy Spectroscopic Instrument
- Survey Operations for the Dark Energy Spectroscopic Instrument
- The Optical Corrector for the Dark Energy Spectroscopic Instrument
- The Spectroscopic Data Processing Pipeline for the Dark Energy Spectroscopic Instrument
- Classifying Core-Collapse Supernova Gravitational Waves using Supervised Contrastive Learning
- AION-1: Omnimodal Foundation Model for Astronomical Sciences
- DESI 2024 VII: Cosmological Constraints from the Full-Shape Modeling of Clustering Measurements
- LSST: from Science Drivers to Reference Design and Anticipated Data Products
- Selection of high-redshift Lyman-Break Galaxies from broadband and wide photometric surveys
- Target Selection and Validation of DESI Emission Line Galaxies
Related papers
- Angular clustering and bias of photometric quasars in the Kilo-Degree Survey Data Release 4
- A Novel kinetic Sunyaev-Zel'dovich Estimator for Electron-Electron Correlations
- Magnetic fields at the dawn of structure formation I. The CARLA J1510+5958 proto-cluster
- Dark Energy Survey Year 6 Results: Weak Lensing and Galaxy Clustering Cosmological Analysis Framework
- Exploring the Impact of Systematic Bias in Type Ia Supernova Cosmology Across Diverse Dark Energy Parametrizations
- Non-Gaussian Galaxy Stochasticity and the Noise-Field Formulation