Abstract
Random sampling has become a critical tool in solving massive matrix problems. For linear regression, a small, manageable set of data rows can be randomly selected to approximate a tall, skinny data matrix, improving processing time significantly. For theoretical performance guarantees, each row must be sampled with probability proportional to its statistical leverage score. Unfortunately, leverage scores are difficult to compute. A simple alternative is to sample rows uniformly at random. While this often works, uniform sampling will eliminate critical row information for many natural instances. We take a fresh look at uniform sampling by examining what information it does preserve. Specifically, we show that uniform sampling yields a matrix that, in some sense, well approximates a large fraction of the original. While this weak form of approximation is not enough for solving linear regression directly, it is enough to compute a better approximation. This observation leads to simple iterative row sampling algorithms for matrix approximation that run in input-sparsity time and preserve row structure and sparsity at all intermediate steps. In addition to an improved understanding of uniform sampling, our main proof introduces a structural result of independent interest: we show that every matrix can be made to have low coherence by reweighting a small subset of its rows.
1. Introduction
In modern data science, we frequently encounter "tall and skinny" matrices—datasets characterized by millions of observations ($n$) but a relatively small number of features ($d$). Solving fundamental problems like linear regression on these datasets is computationally intensive. To mitigate this, researchers utilize spectral approximation, a technique that identifies a small subset of rows to represent the entire matrix.
Currently, two dominant paradigms exist for this task. Leverage Score Sampling provides optimal theoretical guarantees by sampling rows based on their "importance," but calculating these scores is often as computationally expensive as the original regression problem. Conversely, Random Projections (such as the Johnson-Lindenstrauss transform) offer high speed by "smearing" rows together. However, projections destroy the inherent structure and sparsity of the data, making the resulting approximation difficult to interpret and potentially memory-intensive.
This paper explores a third, more intuitive path: Uniform Sampling. While traditionally viewed as unreliable due to its tendency to miss high-leverage (highly unique) rows, we demonstrate that uniform sampling can serve as the foundation for a robust, iterative approximation framework.
2. The Coherence Problem and the "Whack-a-Mole" Insight
The primary risk of uniform sampling is "coherence." If a matrix contains a few critical rows that carry the bulk of the spectral information, a random uniform draw will likely miss them, leading to a poor approximation.
Our research provides a new structural insight into this problem. We introduce a result (Lemma 1) showing that any matrix can be transformed into a "low coherence" state—where no single row is disproportionately important—by reweighting or removing only a small subset of rows ($O(d/\alpha)$). This suggests that the "bad" components of a matrix that break uniform sampling are always limited in number. We colloquially refer to our approach as the "Whack-a-Mole" method: even if uniform sampling misses some critical rows, it captures enough information to act as a "lens," allowing us to identify and account for those missing rows in subsequent iterations.
3. Iterative Sampling Algorithms
Instead of attempting a perfect spectral approximation in a single pass, we propose two iterative routines that refine uniform samples into high-quality approximations:
- Repeated Halving: A recursive algorithm that samples half of the rows at each step, using the reduced set to estimate leverage scores for the next level of the recursion.
- Refinement Sampling: An iterative process that begins with uniform weights and progressively refines them. This method continues until the weights converge on accurate leverage score estimates.
Crucially, these algorithms preserve the original row structure. Because we never "mix" rows, any sparsity present in the original data is maintained throughout the approximation process, providing significant advantages for memory management and secondary processing.
4. Theoretical Results
Our analysis yields several key theoretical contributions:
- Input-Sparsity Runtime: The proposed iterative algorithms achieve a runtime of $O(\text{nnz}(A) + \text{poly}(d))$. This matches the state-of-the-art speed, where the computational cost is proportional to the number of non-zero entries in the matrix.
- Optimal Sample Size: We prove that our iterative method eventually produces a spectral approximation using only $O(d \log d)$ rows, reaching the theoretical gold standard for sample efficiency.
- Theorem 1 (Expectation Bound): We provide a mathematical proof showing that the sum of leverage score estimates derived from a uniform sample is bounded by $nd/m$. This provides the formal justification for using uniform sampling as a starting point for complex spectral estimations.
5. Conclusion
By re-evaluating the utility of uniform sampling, we have shown that it is possible to achieve optimal spectral approximations without sacrificing data structure or incurring the high costs of traditional leverage score computation. While this work is primarily theoretical, it establishes a new foundation for developing fast, sparsity-preserving algorithms for massive datasets. Future work will focus on practical implementations and evaluating "wall-clock" performance against existing projection-based libraries.
Summary updated