$\texttt{HostSub_GP}$: Precise Galaxy Background Subtraction in Transient Long-slit Spectroscopy with Gaussian Processes
Chang Liu, Adam A. Miller
TL;DR
The paper tackles the challenge of removing host galaxy contamination from long-slit spectra of extragalactic transients. It introduces HostSub_GP, a GP-based framework that leverages archival multi-band galaxy images to construct a prior on the 2D galaxy background and couples it with a second GP to model spectrum deviations, enabling precise background subtraction. The method is validated on synthetic MUSE data and applied to two Keck LRIS transients (SN 2019eix and AT 2019qiz), demonstrating improved recovery of faint spectral features and yielding refined insights into progenitor properties and nuclear activity. The work provides a scalable, open-source toolkit built on JAX/tinygp that can enhance the quality of time-domain spectroscopy and support more reliable transient classifications and physical inferences.
Abstract
We present a novel host galaxy subtraction technique in long-slit spectroscopy for extragalactic transients. Unlike classic methods which generally estimate the background using a simple linear interpolation of local galaxy flux in the 2D spectrum, our approach leverages multi-band archival images of the host galaxies to model the background emission from the galaxy in the 2D spectrum. Such imaging encodes the wavelength-dependent galaxy profile along the slit, and is readily accessible through wide-field imaging surveys. We construct a smooth prior for the 2D galaxy profile with a Gaussian process (GP) based on these reference images, and use another GP to model the correlated deviations from the prior in the observed spectrum. This enables accurate inference of the galaxy flux blended with the transient. On synthetic long-slit data of a spiral galaxy extracted from a Multi Unit Spectroscopic Explorer hyper-spectral cube, the GP method remains robust as long as the host galaxy is spatially resolved and consistently outperforms classic methods. We apply the method to archival Keck spectra of two real transients, SN 2019eix and AT 2019qiz, to further demonstrate how the method uniquely recovers weak spectral features amid strong galaxy contamination, enabling refined constraints on the properties of both transients. We have released the software implementation, $\texttt{HostSub_GP}$, a scalable toolkit that leverages $\texttt{JAX}$, with an MIT license.
