reLAISS : A Python Package for Flexible Similarity Searches of Supernovae and Their Host Galaxies

E. Reynolds, A. Gagliano, V. A. Villar · 2025

Read reLAISS : A Python Package for Flexible Similarity Searches of Supernovae and Their Host Galaxies by E. Reynolds, A. Gagliano, V. A. Villar (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2507-13449.txt.

Introduction

Star bursts will soon rain at a rate no crew can eye: a new sky eye may log a million a year. Reynolds, Gagliano, and Villar free a hunt tool for that rain in a 2025 study. The tool seeks like bursts for any new burst, by its light curve's shape and by its home star town's tint.

Tints are wiped of dust ere the match. Users set how many kin to fetch, and how hard burst shape weighs next to home tint. Chance runs guard the match when marks are thin. The pack ships with a stock of twenty thousand burst marks and walk through guides. One in a million odd balls is the aimed catch.

Catalog record

CREATORE. Reynolds, A. Gagliano, V. A. Villar
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE8 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2507-13449

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

reLAISS : A Python Package for Flexible Similarity Searches of Supernovae and Their Host Galaxies E. Reynolds, A. Gagliano, V. A. Villar Abstract Discovery rates of supernovae are expected to surpass one million events annually with the Vera C. Rubin Observatory. With unprecedented sample sizes of both common and rare transient types, photometric classification alone will be insufficient for finding one-in-a-million events and prioritizing the 1% of events for spectroscopic follow-up observations. Here, we present reLAISS , a modified framework for similarity searches of supernovae using extracted features of ZTF light curves and Pan-STARRS host galaxy photometry and built on the original LAISS framework. Unlike its predecessor, reLAISS couples interpretable light curve morphology features with extinction-corrected host-galaxy colors to probe both explosion physics and associated stellar populations simultaneously. The library allows users to customize the number of neighbors retrieved, the weight of host and light curve features, and the use of Monte Carlo simulations to ensure relevant matches when features are poorly constrained. We release reLAISS as a pip-installable package with an accompanying reference set of 20,000 features, and a set of tutorials that demonstrate the code’s expanded functionality. All source code can be found at the project repository . I Introduction Wide-field surveys such as the Zwicky Transient Facility ( Bellm et al. 2019 ) and the Young Supernova Experiment ( Jones et al. 2021 ) have cataloged the explosions of stars as supernovae (SNe) at unprecedented rates. The classification of SNe by spectroscopy and photometry has become an indispensable tool for understanding discovered events and coordinating follow-up observations. The suite of available algorithms now employ template matching ( Rodney & Tonry 2009 ) , feature extraction ( de Soto et al. 2024 ) , and deep learning ( Villar et al. 2020 ; Boone 2021 ) to distinguish between the explosions of old and young stars and identify energy inputs beyond 56 Ni. As sample sizes of both common and rare types continue to swell, there is increasing demand for algorithms that can identify relevant SNe directly from the observed data instead of relying exclusively on our existing taxonomy. This may include finding in-class outliers (e.g., atypically luminous Type Ia SNe) that may signify the extremes of an evolutionary pathway. Though photometry and spectroscopy offer the most direct probe of an SN’s progenitor system and underlying physics, an event’s host galaxy provides broad constraints. The observational properties of a galaxy tightens the prior on the stellar population that produced a transient where event data is minimal, and transient populations obtained from host galaxy selection cuts can facilitate comparative studies of SN sub-types ( Burgaz et al. 2025 ) . In this work, we present reLAISS ( Reynolds et al. 2025 ) , a library for supernova similarity searches. reLAISS expands upon the initial Light curve Anomaly Identification and Similarity Search ( LAISS ) library constructed by Aleo et al. 2024 and enables flexible and scalable searches of transients of interest. We outline the major modifications to the library from the initial publication and provide examples of its intended use cases in the following section. II Methodology reLAISS matches a queried transient by the observational features of its photometry and, optionally, its host galaxy. Given a transient ZTFID, reLAISS first queries the ANTARES broker 1 1 1 https://antares.noirlab.edu/ for the alert photometry in ZTF- g and ZTF- r filters (a user-provided photometry file can also be provided). In each filter, the code calculates the peak magnitude, time from first observation to peak, rise and decline times to half-flux, duration above half-flux, and the rolling variance. The g-r color at peak, mean g-r across all detections, and mean change in g-r are also calculated using linear interpolation to align observations to a consistent phase. Finally, the median local curvature of photometry in each band is calculated in the 20 days prior to peak and the 20 days following peak, where the curvature is estimated by the centered second finite difference of the magnitudes: \kappa_{i}=\frac{m_{i+1}-2m_{i}+m_{i-1}}{\left[\frac{1}{2}\left(t_{i+1}-t_{i-1}\right)\right]^{2}} (1) The above features, which replace the light-curve -calculated features originally used in LAISS ( Aleo et al. 2024 ) , strike an optimal balance between interpretability and flexibility. After extracting light curve features, reLAISS identifies the most likely host galaxy of the transient in the Pan-STARRS 3 \pi catalog using the Prost library 2 2 2 https://github.com/alexandergagliano/Prost , which replaces the GHOST host association code used by LAISS ( Gagliano et al. 2021 ) . Prost ( Gagliano et al. 2025 ) estimates the posterior probability of association using a Monte Carlo simulation over observed galaxy properties and user-defined priors for the true host’s redshift, fractional offset, and absolute magnitude. Following association, reLAISS calculates the extinction-corrected Kron magnitude of the host galaxy in Pan-STARRS griz and the g-r , r-i , and i-z colors of the galaxy (which are independently weighted to de-prioritize outliers from catastrophic failures in color estimation). As with LAISS , ANNOY 3 3 3 https://github.com/spotify/annoy is used to build an indexed space of reference features and conduct approximate nearest-neighbors searches via locality-sensitive hashing (details on the algorithms used for indexing and retrieval are given in Aleo et al. 2024 ). We provide an updated data set of 20,000 archival light curve and host galaxy features for querying. Measured uncertainties in the queried object’s extracted features can be used to re-query and re-rank retrieved neighbors. A user can choose to find neighbors by light curve properties, host properties, or both feature sets. If all properties are chosen, a weighting term can be input that allows the user to prioritize better matches along one feature set than the other. The user can define the number of neighbors to retrieve; if none are specified, the kneed package ( Satopaa et al. 2011 ) is used to determine the inflection point in neighbor distances versus number of neighbors and a number of relevant neighbors is suggested. reLAISS can be used to find similar events to an observed transient or the closest matches to a theoretical model of interest. A user can also manually specify an observed host galaxy, in cases where a theoretical model is queried and correlations with a particular stellar population are desired. We now fit a Generalized Pareto distribution to the upper-tail of the nearest-neighbor distance distribution of the reference data bank; the real-time feature probabilities associated a queried transient are converted with a sigmoid transformation to an anomaly score between 0 and 100. This replaces the previous random forest algorithm within LAISS for real-time anomaly detection. Future work will be devoted to investigating the robustness of the chosen feature set and anomaly detection method for partial-phase and low-cadence light curves, and extending the features to other photometric passbands and surveys beyond ZTF. (a) Light curve neighbors (b) Host galaxy neighbors (c) Light curve for anomaly detection (left) and calibrated anomaly score (right) Figure 1: Top: Workflow of the reLAISS library. Starting from user-provided transient coordinates or an optional light curve file, the pipeline (i) identifies the most probable Pan-STARRS host using Prost , (ii) extracts a suite of interpretable light curve and host-galaxy features, (iii) indexes and queries these features with locality‑sensitive hashing via ANNOY , and (iv) returns nearest neighbors

Read the complete text