Abstract This paper addresses the fundamental question of how many matrix-vector products are required to approximate a matrix $A$ with a fixed sparsity pattern $S$. We present a simple randomized sketching algorithm that achieves a $(1+\epsilon)$ approximation in the Frobenius norm using $O(s/\epsilon)$ queries, where $s$ is the maximum row sparsity of the pattern. We further prove a matching lower bound, establishing that this query complexity is optimal even for adaptive algorithms.
Introduction
In many areas of science and engineering—from training neural networks to solving partial differential equations (PDEs)—we often deal with matrices that are "matrix-free." This means we cannot directly access the individual entries of a matrix $A$; instead, we interact with it by providing a vector $x$ and receiving the product $Ax$.
A common task in this setting is to find the best approximation of $A$ that fits a specific structure, such as a diagonal, banded, or block-diagonal matrix. This is known as fixed-sparsity matrix approximation. While algorithms for specific cases like diagonal estimation have existed for decades, the absolute minimum number of queries required for a general sparsity pattern remained unknown. This paper closes that gap, determining the definitive query complexity of the problem.
Methodology
The authors analyze a straightforward randomized algorithm based on sketching and least-squares recovery:
- Sketching: Generate a $d \times m$ matrix $G$ with independent Gaussian entries.
- Querying: Compute the "sketch" $Z = AG$ using $m$ matrix-vector products.
- Solving: For each row of the desired approximation $\tilde{A}$, solve a small least-squares problem. Specifically, for each row $i$, the algorithm finds the entries that minimize the difference between the observed sketch $Z$ and the predicted sketch, constrained to the allowed sparsity pattern $S$.
While the algorithm draws on standard ideas from compressed sensing, the core contribution is the rigorous analysis. The authors prove that this non-adaptive approach (where all query vectors are chosen at once) is just as powerful as any complex adaptive strategy that picks queries based on previous results. To ensure reliability, they introduce a "boosted" version that runs the process multiple times and uses a high-dimensional median to guarantee success with very high probability.
Theoretical Results
The paper establishes the optimality of the randomized approach through two primary theorems:
- Upper Bound (Theorem 1): The basic sketching algorithm returns an estimate $\tilde{A}$ such that the expected squared error is at most $\frac{s}{m-s-1}$ times the best possible error (the error of the projection onto the sparsity pattern).
- Lower Bound (Theorem 2): For any algorithm (even adaptive ones), achieving a $(1+\epsilon)$ approximation requires at least $\Omega(s/\epsilon)$ queries in the worst case.
Remarkably, the number of queries required does not depend on the total size of the matrix ($n$ or $d$), only on the local sparsity ($s$) and the desired accuracy ($\epsilon$). This result settles the complexity for the well-studied case of diagonal estimation ($s=1$), confirming that $O(1/\epsilon)$ queries are both necessary and sufficient.
Empirical Evaluation
As a theoretical work, the paper evaluates the algorithm on structured "model problems" to validate the query complexity bounds:
- Model PDE Problem: The inverse of a tridiagonal matrix ($A = M^{-1}$ where $M = \text{tridiag}(-1, 4, -1)$). This matrix has entries that decay exponentially away from the diagonal, making it a classic test case for sparse approximation.
- Trefethen Primes Matrix: A $1000 \times 1000$ matrix with a complex, multi-banded structure based on prime numbers, used to test the algorithm's performance on non-trivial sparsity patterns.
Key Insights and Limitations
One of the most significant findings is the comparison between Coloring vs. Randomization. Traditionally, researchers used graph coloring to recover sparse matrices; if a matrix can be colored with $k$ colors, it can be recovered in $k$ queries. However, the authors show that for certain "doubly sparse" matrices, coloring requires $O(s^2)$ queries, while their randomized approach still only needs $O(s)$.
Despite its optimality in the Frobenius norm, the authors note several limitations and areas for future work:
- Norm Sensitivity: The current results apply specifically to the Frobenius norm. For other norms, like the Spectral (Operator) norm, the "best" sparse approximation might not be a simple entry-wise projection, making the problem significantly harder.
- Noise Robustness: While randomized algorithms are optimal for general cases, coloring-based methods can sometimes ignore "off-sparsity" noise more effectively. Hybrid algorithms combining both approaches could be beneficial.
- Richer Structures: The paper focuses on fixed sparsity, but many real-world matrices are "sparse + low-rank" or have hierarchical structures. Extending these optimal bounds to those richer classes remains an open challenge.
Summary updated