Exploiting Numerical Sparsity for Efficient Learning : Faster Eigenvector Computation and Regression

Neha Gupta, Aaron Sidford

Introduction

Regression and top eigenvector computation are foundational tools in data analysis and machine learning. To solve these problems on massive datasets, researchers typically frame them as finite-sum optimization problems and use iterative algorithms like Stochastic Variance Reduced Gradient (SVRG).

Historically, the fastest runtimes for these algorithms depended heavily on the exact sparsity (the $\ell_0$ norm, or the exact number of non-zero entries) of the data matrix. However, exact sparsity is a brittle metric. Real-world data is often noisy; a row vector like [100, 0.001, 0.001, 0.001] is technically dense (no zeros), but functionally it behaves like a sparse vector.

This paper introduces faster algorithms for these two fundamental tasks by exploiting numerical sparsity—where a vector's mathematical mass is concentrated in a few coordinates, even if it lacks literal zeros. By doing so, the authors achieve new, nearly linear-time algorithms that outperform previous methods relying on strict zero/non-zero counts.

Methods: Subsampling and SVRG

The core engine of the authors' approach is SVRG. However, instead of using entire rows of the data matrix to compute gradient steps, they introduce a novel coordinate subsampling scheme.

Their methodology relies on three key pillars:

  1. Importance Sampling: To approximate a row vector, they sample its coordinates with a probability proportional to their absolute value. To approximate a dot product, they sample based on the squared values of the coordinates.
  2. Isolating the Heavy Hitters: To control the variance introduced by sampling, they exactly compute the dot product for the largest coordinates of a row, and only randomly sample from the remaining smaller coordinates.
  3. Acceleration: They wrap these SVRG estimators in advanced optimization frameworks, specifically the Approximate Proximal Point (Catalyst) method, to further accelerate convergence. For eigenvector computation, they combine this with shift-and-invert preconditioning.

By doing this, they prove that the variance of their gradient estimates is bounded not by the number of non-zero elements, but by the numerical sparsity ($s = \|a\|_1^2 / \|a\|_2^2$).

Key Insights

  • Numerical Sparsity is Superior to Exact Sparsity: The numerical sparsity $s$ of a vector is always less than or equal to its exact number of non-zero elements ($d$). By rewriting algorithmic complexity in terms of $s$, the authors guarantee runtimes that are always as good as previous methods, and strictly better for matrices that are dense but numerically sparse.
  • Sublinear Iteration Costs: By intelligently subsampling row entries, the algorithm can take steps in the direction of the negative gradient without looking at the whole row. This drastically reduces the computational cost per iteration.
  • Overcoming $\ell_2$ Error Penalties: Subsampling gradients introduces $\ell_2$ error. Previous methods struggled with this because bounding $\ell_2$ error in terms of the actual function error is mathematically expensive. The authors' hybrid approach—calculating the "heavy" coordinates exactly and sampling the rest—successfully mitigates this variance.

Key Results

The authors provide rigorous theoretical bounds showing significant speedups in specific parameter regimes. Assuming uniform row norms and uniform numerical sparsity ($s$) for simplicity, they demonstrate strict improvements over prior state-of-the-art methods.

Regression Runtimes
  • Regression: The authors achieved an unaccelerated runtime of $\tilde{O}(\text{nnz}(A) + \kappa^{3/2}\sqrt{s})$, where $\kappa$ is the condition number. This improves upon the previous best of $\tilde{O}(\text{nnz}(A) + \kappa d)$. This effectively expands the regime where regression can be solved in nearly linear time.
Eigenvector Runtimes
  • Top Eigenvector Computation: They achieved an unaccelerated runtime of $\tilde{O}(\text{nnz}(A) + \frac{sr}{\text{gap}^2}(\sqrt{s} + \sqrt{sr})\sqrt{s})$, where $sr$ is the stable rank of the matrix. This improves upon previous runtimes that scaled linearly with the full dimension $d$ instead of the much smaller numerical sparsity $s$.
  • Accelerated Runtimes: They also provide accelerated versions of both algorithms, yielding strictly better theoretical bounds than prior methods when the condition number $\kappa$ is relatively small compared to $d^2$.

Limitations and Future Work

As a purely theoretical computer science paper focused on algorithmic complexity and mathematical proofs, no empirical benchmarks or datasets were evaluated. The authors note a few limitations and directions for future work:

  • The $\ell_2$ Error Bottleneck: While the authors successfully mitigated the $\ell_2$ error introduced by subsampling, completely avoiding this issue remains an open problem. Solving it could lead to even tighter runtimes.
  • Parameter Estimation: For the regression sampling scheme to work, the algorithm requires a constant factor approximation of the smallest eigenvalue ($\lambda_d$). While this can be found via binary search, it adds a logarithmic overhead.
  • Lack of Empirical Validation: Testing these algorithms in practice is a clear next step. Real-world hardware performance is often complicated by memory access patterns and cache locality, which can impact theoretical sampling speedups.

Summary updated

BibTeX
@inproceedings{gupta2018exploiting,
  author = {Neha Gupta and Aaron Sidford},
  title = {{Exploiting Numerical Sparsity for Efficient Learning : Faster Eigenvector Computation and Regression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure