English

Frequent Directions : Simple and Deterministic Matrix Sketching

Data Structures and Algorithms 2015-04-22 v2

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 ARn×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 BR×dB \in R^{\ell \times d} such that for any k<k < \ell ATABTB2AAkF2/(k)\|A^TA - B^TB \|_2 \leq \|A - A_k\|_F^2 / (\ell-k) and AπBk(A)F2(1+kk)AAkF2\|A - \pi_{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 AAkF\|A - A_k\|_F over all rank kk matrices (similarly BkB_k) and πBk(A)\pi_{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.

Keywords

Cite

@article{arxiv.1501.01711,
  title  = {Frequent Directions : Simple and Deterministic Matrix Sketching},
  author = {Mina Ghashami and Edo Liberty and Jeff M. Phillips and David P. Woodruff},
  journal= {arXiv preprint arXiv:1501.01711},
  year   = {2015}
}

Comments

28 pages , This paper contains Frequent Directions algorithm (see arXiv:1206.0594) and relative error bound on it (see arXiv:1307.7454)

R2 v1 2026-06-22T07:54:33.261Z