Skip to main content
QUICK REVIEW

[Paper Review] Low Rank Approximation and Regression in Input Sparsity Time

Kenneth L. Clarkson, David P. Woodruff|arXiv (Cornell University)|Jul 26, 2012
Sparse and Compressive Sensing TechniquesEngineering51 references22 citations
TL;DR

This paper introduces sparse embedding matrices that enable input-sparsity-time algorithms for low-rank approximation, regression, and leverage score estimation. By constructing a subspace embedding in O(nnz(A)) time, it achieves optimal or near-optimal running times for overconstrained regression, low-rank approximation, and ℓp-regression, significantly improving upon prior methods that required Ω(nd log d) time for similar guarantees.

ABSTRACT

We design a new distribution over $\poly(r \eps^{-1}) imes n$ matrices $S$ so that for any fixed $n imes d$ matrix $A$ of rank $r$, with probability at least 9/10, $ orm{SAx}_2 = (1 \pm \eps) orm{Ax}_2$ simultaneously for all $x \in \mathbb{R}^d$. Such a matrix $S$ is called a \emph{subspace embedding}. Furthermore, $SA$ can be computed in $ nz(A) + \poly(d \eps^{-1})$ time, where $ nz(A)$ is the number of non-zero entries of $A$. This improves over all previous subspace embeddings, which required at least $Ω(nd \log d)$ time to achieve this property. We call our matrices $S$ \emph{sparse embedding matrices}. Using our sparse embedding matrices, we obtain the fastest known algorithms for $(1+\eps)$-approximation for overconstrained least-squares regression, low-rank approximation, approximating all leverage scores, and $\ell_p$-regression. The leading order term in the time complexity of our algorithms is $O( nz(A))$ or $O( nz(A)\log n)$. We optimize the low-order $\poly(d/\eps)$ terms in our running times (or for rank-$k$ approximation, the $n*\poly(k/eps)$ term), and show various tradeoffs. For instance, we also use our methods to design new preconditioners that improve the dependence on $\eps$ in least squares regression to $\log 1/\eps$. Finally, we provide preliminary experimental results which suggest that our algorithms are competitive in practice.

Motivation & Objective

  • To design a fast, sparse embedding matrix S that preserves ℓ2 norms of all Ax for x ∈ ℝ^d with high probability.
  • To achieve overconstrained least-squares regression in O(nnz(A)) + Õ(d³ε⁻²) time, improving over prior Ω(nd log d) bounds.
  • To enable low-rank approximation of n×n matrices in O(nnz(A)) + Õ(nk²ε⁻⁴ + k³ε⁻⁵) time, with (1+ε)-approximation to the best rank-k solution.
  • To compute all leverage scores of an n×d matrix with constant relative error in O(nnz(A) log n) + Õ(r³) time.
  • To solve ℓp-regression for any constant p ∈ [1, ∞) in O(nnz(A) log n) + poly(rε⁻¹) time, with (1+ε)-relative error.

Proposed method

  • Design a distribution over sparse matrices S of size poly(rε⁻¹) × n that acts as a subspace embedding with high probability.
  • Use S to compute SA in O(nnz(A)) time, preserving ||SAx||₂ ≈ (1±ε)||Ax||₂ for all x ∈ ℝ^d.
  • Apply sparse embedding matrices in combination with leverage score sampling and randomized Hadamard transforms to accelerate low-rank approximation.
  • Use a two-stage sampling process: first estimate row norms via a random projection Π₂, then sample rows based on these estimates for ℓp-regression.
  • Leverage the well-conditioned basis framework from prior work, adapting it to sparse embeddings to reduce sample complexity and running time.
  • Optimize polynomial factors in running time and explore tradeoffs between accuracy and efficiency in the algorithms.

Experimental results

Research questions

  • RQ1Can we construct a subspace embedding matrix S in input-sparsity time O(nnz(A)) that preserves ℓ2 norms of all Ax with high probability?
  • RQ2Can we achieve (1+ε)-approximate solutions to overconstrained least-squares regression in O(nnz(A)) + Õ(d³ε⁻²) time?
  • RQ3Can we compute a (1+ε)-approximate low-rank decomposition of an n×n matrix in O(nnz(A)) + Õ(nk²ε⁻⁴ + k³ε⁻⁵) time?
  • RQ4Can we compute all leverage scores of an n×d matrix with constant relative error in O(nnz(A) log n) + Õ(r³) time?
  • RQ5Can we solve ℓp-regression for any constant p ∈ [1, ∞) in O(nnz(A) log n) + poly(rε⁻¹) time with (1+ε)-relative error?

Key findings

  • The proposed sparse embedding matrices allow SA to be computed in O(nnz(A)) time while preserving ||SAx||₂ ≈ (1±ε)||Ax||₂ for all x ∈ ℝ^d with probability at least 9/10.
  • An algorithm for overconstrained ℓ2-regression runs in O(nnz(A)) + Õ(d³ε⁻²) time, improving over prior Ω(nd log d) bounds.
  • For low-rank approximation, the algorithm runs in O(nnz(A)) + Õ(nk²ε⁻⁴ + k³ε⁻⁵) time, achieving (1+ε)-approximation to the best rank-k solution.
  • All leverage scores of an n×d matrix can be approximated with constant relative error in O(nnz(A) log n) + Õ(r³) time.
  • An ℓp-regression algorithm runs in O(nnz(A) log n) + poly(rε⁻¹) time for any constant p ∈ [1, ∞), achieving (1+ε)-relative error.
  • Preliminary experiments suggest the algorithms perform well in practice, with low-rank approximation error close to the best rank-k approximation even with reduced sampling.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.