Abstract
Spectral sparsification is a fundamental tool for compressing large matrices while preserving their essential spectral properties. In the online setting, where rows arrive sequentially, existing methods often suffer from an additive error or require prior knowledge of the matrix's spectrum. This paper introduces a new online algorithm that achieves a pure $(1 \pm \epsilon)$-spectral approximation by utilizing pseudo-determinants to eliminate additive error. Furthermore, the authors investigate the random-order streaming model, proposing a block-based algorithm that is both computationally efficient and memory-optimal. Their results include a new theoretical lower bound, demonstrating that the proposed random-order algorithm is nearly optimal in terms of memory usage.
Introduction
Spectral sparsification aims to approximate a dense positive semidefinite (PSD) matrix $\mathbf{A}$ (such as a graph Laplacian) with a sparse matrix $\tilde{\mathbf{A}}$ such that for all vectors $x$, the quadratic form $x^\top \tilde{\mathbf{A}} x$ is within a $(1 \pm \epsilon)$ factor of $x^\top \mathbf{A} x$. Traditionally, this process relies on "leverage scores," which quantify the importance of each row. However, computing these scores typically requires access to the full matrix.
In the online setting, rows arrive one by one, and the algorithm must decide whether to keep or discard a row immediately and irrevocably. Previous state-of-the-art approaches, such as those by Cohen et al. (2016), achieved an $(\epsilon, \delta)$-spectral approximation, which included an undesirable additive error $\delta$. Removing this error previously required knowing the matrix's smallest non-zero singular value in advance. Additionally, in adversarial streams, an algorithm might be forced to store a large number of rows if each new arrival is orthogonal to previous ones. This paper addresses these challenges by removing the additive error and exploiting the properties of random-order streams to improve efficiency.
Overcoming Additive Error in Adversarial Streams
To achieve a pure $(1 \pm \epsilon)$-spectral approximation without prior knowledge of the matrix's spectrum, the authors introduce the use of relative leverage scores.
In prior work, regularization (adding an identity matrix) was used to stabilize leverage score calculations, which directly resulted in the additive error $\delta$. The authors bypass this by computing scores directly on the singular matrix. To provide a rigorous analysis of this approach, they employ the pseudo-determinant—the product of a matrix's non-zero eigenvalues. By using the pseudo-determinant to measure the "volume" of the matrix's span as it evolves, the algorithm can maintain a pure approximation from the moment the first row arrives (rank 0), effectively eliminating the need for artificial regularization.
Efficiency in Random Order Streams
While adversarial streams present worst-case scenarios, many real-world data streams can be modeled as arriving in a random order. The authors demonstrate that this assumption allows for significantly more efficient sparsification.
Block-Based Sampling
The random-order algorithm divides the incoming stream into exponentially growing blocks. In a random stream, a small initial sample is likely to be representative of the whole. Instead of the computationally expensive task of computing the Moore-Penrose pseudo-inverse for every incoming row, the algorithm uses the spectral approximation of the previous block to estimate leverage scores for the current block. This "delayed update" strategy significantly reduces the computational overhead while maintaining valid sampling probabilities.
Semi-Streaming Integration
To further optimize working memory, the authors integrate a known semi-streaming sparsification algorithm. This parallel process maintains a constant-factor approximation of the matrix, which provides a sufficiently accurate baseline for computing sampling probabilities for new rows. This integration allows the algorithm to operate with a tiny working memory of only $O(d \log d)$ rows.
Key Results and Theoretical Bounds
The paper establishes several significant bounds for online spectral approximation:
- Pure Online Approximation: The proposed adversarial algorithm achieves a $(1 \pm \epsilon)$-approximation with a size of $O((r \log \mu(\mathbf{A}) + r + \log d) \epsilon^{-2} \log d)$, where $r$ is the rank and $\mu(\mathbf{A})$ relates to the condition number. This removes the additive error $\delta$ without requiring prior knowledge.
- Random Order Performance: The block-based algorithm produces an approximation of size $O(d \epsilon^{-2} \log n \log d)$. Notably, this size is independent of the matrix's condition number $\mu(\mathbf{A})$.
- Computational Complexity: The random-order algorithm is highly efficient, running in $O(\text{nnz}(\mathbf{A}) \log n + \text{poly}(d, \log n))$ time.
- Optimality: The authors prove a theoretical lower bound showing that any algorithm in the random-order setting must store at least $\Omega(d \epsilon^{-2} \log n)$ rows. This confirms that their algorithm is asymptotically optimal within a single $\log d$ factor.
Conclusion
This work advances the field of online matrix sketching by providing the first pure $(1 \pm \epsilon)$-spectral approximation algorithm for adversarial streams and a nearly optimal, highly efficient algorithm for random-order streams. By utilizing pseudo-determinants and block-based sampling, the authors bridge the gap between theoretical guarantees and practical streaming requirements. Future work may focus on closing the remaining $\log d$ gap between the current efficient upper bound and the proven lower bound.
Summary updated