Abstract

We describe a new algorithm called Frequent Directions for deterministic matrix sketching in the row-updates model. The algorithm is presented an arbitrary input matrix A∈Rn×dA \in R^{n \times d} one row at a time. It performed O(d×ℓ)O(d \times \ell) operations per row and maintains a sketch matrix B∈Rℓ×dB \in R^{\ell \times d} such that for any k<ℓk < \ell ∥ATA−BTB∥2≤∥A−Ak∥F2/(ℓ−k)\|A^TA - B^TB \|_2 \leq \|A - A_k\|_F^2 / (\ell-k) and ∥A−πBk(A)∥F2≤(1+kℓ−k)∥A−Ak∥F2\|A - π_{B_k}(A)\|_F^2 \leq \big(1 + \frac{k}{\ell-k}\big) \|A-A_k\|_F^2 . Here, AkA_k stands for the minimizer of ∥A−Ak∥F\|A - A_k\|_F over all rank kk matrices (similarly BkB_k) and πBk(A)π_{B_k}(A) is the rank kk matrix resulting from projecting AA on the row span of BkB_k. We show both of these bounds are the best possible for the space allowed. The summary is mergeable, and hence trivially parallelizable. Moreover, Frequent Directions outperforms exemplar implementations of existing streaming algorithms in the space-error tradeoff.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.