Almost Optimal Tensor Sketch
Data Structures and Algorithms
2019-09-05 v1 Machine Learning
Probability
Machine Learning
Abstract
We construct a matrix M∈Rm⊗dc with just m=O(cλε−2polylog1/εδ) rows, which preserves the norm ∥Mx∥2=(1±ε)∥x∥2 of all x in any given λ dimensional subspace of Rd with probability at least 1−δ. This matrix can be applied to tensors x(1)⊗⋯⊗x(c)∈Rdc in O(cmmin{d,m}) time -- hence the name "Tensor Sketch". (Here x⊗y=asvec(xyT)=[x1y1,x1y2,…,x1ym,x2y1,…,xnym]∈Rnm.) This improves upon earlier Tensor Sketch constructions by Pagh and Pham~[TOCT 2013, SIGKDD 2013] and Avron et al.~[NIPS 2014] which require m=Ω(3cλ2δ−1) rows for the same guarantees. The factors of λ, ε−2 and log1/δ can all be shown to be necessary making our sketch optimal up to log factors. With another construction we get λ times more rows m=O~(cλ2ε−2(log1/δ)3), but the matrix can be applied to any vector x(1)⊗⋯⊗x(c)∈Rdc in just O~(c(d+m)) time. This matches the application time of Tensor Sketch while still improving the exponential dependencies in c and log1/δ. Technically, we show two main lemmas: (1) For many Johnson Lindenstrauss (JL) constructions, if Q,Q′∈Rm×d are independent JL matrices, the element-wise product Qx∘Q′y equals M(x⊗y) for some M∈Rm×d2 which is itself a JL matrix. (2) If M(i)∈Rm×md are independent JL matrices, then M(1)(x⊗(M(2)y⊗…))=M(x⊗y⊗…) for some M∈Rm×dc which is itself a JL matrix. Combining these two results give an efficient sketch for tensors of any size.
Cite
@article{arxiv.1909.01821,
title = {Almost Optimal Tensor Sketch},
author = {Thomas D. Ahle and Jakob B. T. Knudsen},
journal= {arXiv preprint arXiv:1909.01821},
year = {2019}
}