Abstract
Low-latency gravitational-wave (GW) search pipelines, such as GstLAL, utilize low-rank factorization of template matrices via Singular Value Decomposition (SVD) to manage computational loads. However, as detector sensitivity improves, template banks are expected to grow by several orders of magnitude, rendering traditional SVD computationally prohibitive. This paper introduces a block-wise Randomized Matrix Factorization (RMF) algorithm as a scalable alternative. Furthermore, we address the often-overlooked cost of reconstructing the detection statistic by applying a Matching Pursuit (MP) algorithm to create sparse reconstruction matrices. Our results demonstrate that this dual approach significantly reduces both offline pre-processing time and online filtering costs, maintaining high detection sensitivity while enabling searches across massive parameter spaces.
Introduction
In the era of advanced gravitational-wave astronomy, the search for signals from compact binary coalescences (CBCs) relies heavily on matched filtering. This process involves comparing detector data against a vast library of theoretical waveforms known as a template bank. As detectors like LIGO, Virgo, and KAGRA achieve higher sensitivity and broader bandwidths, the number of templates required to cover the astrophysical parameter space—including binary neutron stars (BNS) and black holes (BBH)—is skyrocketing.
This growth presents a "computational wall." Current pipelines like GstLAL use SVD to compress these banks into a smaller set of basis vectors, but the SVD process itself does not scale linearly with bank size. Moreover, even after compression, the "reconstruction" step—where filtered data is mapped back to individual templates—becomes a dominant computational bottleneck. This paper presents a strategy to overcome these hurdles using randomized algorithms and sparse reconstruction.
The SVD Bottleneck and Randomized Matrix Factorization
Standard SVD is a deterministic approach that identifies the most significant components of a matrix. While effective for smaller banks, it becomes "unbearable" in terms of memory and time when dealing with the millions of templates anticipated for future observing runs.
We propose Block-wise Randomized Matrix Factorization (RMF). Unlike SVD, RMF uses random projections to identify the subspace that captures the majority of the signal's energy. The block-wise iterative nature of our algorithm allows for "Auto-Rank Determination." Instead of calculating a full decomposition and then truncating it, the algorithm processes the matrix in blocks and stops as soon as it reaches a user-defined accuracy threshold (e.g., a fractional Signal-to-Noise Ratio loss of $10^{-3}$). This ensures that computational resources are only spent on the basis vectors strictly necessary for the target sensitivity.
Sparse Reconstruction via Matching Pursuit
While RMF solves the offline problem of building the basis, the online problem of calculating the detection statistic for every template remains. In the standard LLOID (Low Latency Online Inspiral Detection) framework, this reconstruction is a dense matrix multiplication: every basis vector contributes to every template's detection statistic.
Our key insight is that while a large set of basis vectors is needed to describe a bank, any individual template can be accurately represented by only a small subset of those vectors. To exploit this, we employ the Matching Pursuit (MP) algorithm. MP is a greedy algorithm that finds a sparse representation of the templates. By forcing the reconstruction matrix to be sparse—retaining only the most significant coefficients—we transform a heavy, dense computation into a much lighter sparse operation. This significantly reduces the number of floating-point operations required during real-time analysis.
Methodology and Datasets
To validate these methods, we tested them against various simulated template banks:
- BNS and NSBH Banks: Long-duration waveforms where computational efficiency is critical due to the high number of cycles.
- BBH and IMBH Banks: Shorter waveforms representing heavier systems.
- Waveform Diversity: We utilized models including
TaylorT4(post-Newtonian),IMRPhenomD(aligned-spin), andIMRPhenomPv2(precessing-spin) to ensure the algorithms perform across the entire astrophysical range.
The algorithms were designed for a distributed computing architecture, allowing sub-banks to be processed in parallel across High-Performance Computing (HPC) clusters.
Key Results
The combination of RMF and MP yields substantial improvements in search efficiency:
- Reconstruction Speedup: In a test case involving 581 templates, using MP to select 150 coefficients out of 200 basis vectors reduced the reconstruction cost by 25%. This was achieved with a maximum error in the waveform norm of only $10^{-2}$, which is well within the tolerances required for detection.
- Memory and Accuracy: RMF successfully matched the singular value spectrum of traditional SVD with high precision. For a bank of $10^5$ templates, RMF avoids the 190 GB of memory overhead that a standard SVD might incur by focusing only on the necessary rank.
- Scalability: The block-wise approach allows the pipeline to handle template banks that were previously too large to factorize on a single node.
Conclusion
The transition from deterministic SVD to randomized and sparse methods marks a necessary evolution for low-latency gravitational-wave searches. By integrating Block-wise RMF and Matching Pursuit, we can maintain the sensitivity of current pipelines while drastically reducing the computational footprint. Future work will focus on full integration into the production GstLAL pipeline and exploring modern distributed frameworks like Apache Spark to further optimize these randomized workflows. These advancements ensure that as our detectors see further into the universe, our algorithms are capable of keeping pace with the data.
Summary updated