Almost Optimal Tensor Sketch

Thomas D. Ahle, Jakob Bæk Tejs KnudsenarXiv 2019

Abstract

This paper presents a novel "Tensor Sketch" construction that achieves nearly optimal bounds for the dimensionality reduction of high-order tensors. By leveraging a recursive sketching strategy and introducing a "Strong Johnson-Lindenstrauss (JL) Moment Property," the authors successfully eliminate the exponential dependencies on tensor order and failure probability that have historically limited the efficiency of high-order kernel methods. The resulting sketch provides a linear dependency on the tensor order and a logarithmic dependency on the failure probability, significantly advancing the state-of-the-art in efficient tensor computation.

Introduction

In modern machine learning and statistical analysis, capturing non-linear relationships often necessitates the use of high-order tensors, such as the $c$-fold Kronecker product $x \otimes x \otimes \dots \otimes x$. While powerful, these representations suffer from the "curse of dimensionality": a vector of dimension $d$ expands into a tensor of dimension $d^c$. This exponential growth makes direct storage and computation computationally prohibitive for even moderate values of $c$.

"Tensor Sketching" has emerged as a vital technique to mitigate this issue by mapping massive tensors into a lower-dimensional space (dimension $m$) while preserving essential geometric properties, such as the Euclidean norm. However, prior sketching frameworks were constrained by significant theoretical bottlenecks. Specifically, the required embedding dimension $m$ often grew exponentially with the tensor order ($3^c$) or inversely with the failure probability ($1/\delta$). This paper addresses these limitations by proposing a sketch that is efficient in both time and space, with polynomial rather than exponential dependencies.

Methodology

The authors propose two primary constructions rooted in the Johnson-Lindenstrauss (JL) Transform, designed to overcome the stability issues of previous "one-shot" approaches.

  1. Recursive Sketching ("Sketch and Reduce"): Rather than attempting to sketch a $c$-order tensor in a single operation, the authors employ a recursive "divide and conquer" strategy. By sketching pairs of vectors and mapping them back to a manageable size iteratively, they prevent the cumulative error from exploding exponentially.
  2. Face-Splitting Products: The construction utilizes the "face-splitting product" (a row-wise tensor product) to combine independent JL matrices. The authors prove that the combination of independent JL matrices $Q$ and $Q'$ via $M(x \otimes y) = Qx \circ Q'y$ maintains the JL property, providing a robust foundation for high-order embeddings.
  3. Strong JL Moment Property: A key theoretical innovation is the introduction of a stricter version of the JL property. Instead of merely bounding the variance (the 2nd moment), the authors bound the $p$-th moments of the norm error. This allows for the application of sophisticated concentration inequalities (such as Khintchine’s and Latala’s) and "net arguments," leading to much tighter bounds on the failure probability $\delta$.
  4. Fast JL Integration: To ensure practical utility, the authors demonstrate how to integrate Fast Fourier Transforms (FFT) and Hadamard matrices. This optimization reduces the application time of the sketch to $O(c(d \log d + m))$, which is nearly linear relative to the input size.

Theoretical Results and Comparisons

The primary contribution of this work is the establishment of new upper bounds for the embedding dimension $m$ and the associated computation time. The authors achieve a row count of $m = O(c \lambda \epsilon^{-2} \text{poly log } 1/\epsilon\delta)$, marking the first construction to achieve linear dependency on the tensor order $c$ while maintaining logarithmic dependency on the failure probability.

Comparison of embedding dimensions and times for various tensor sketching methods.

As shown in the table above, the proposed theorems (Theorem 1 and its variants) offer significant improvements over existing literature. For instance, compared to previous work which exhibits a $3^c$ dependency in the embedding dimension, the new results provide a much more scalable solution for high-order tensors. Furthermore, the dependency on the failure probability $\delta$ is improved from $\delta^{-1}$ to logarithmic factors, which is critical for high-confidence applications like kernel PCA and linear regression.

The authors also provide a lower bound analysis, demonstrating that factors such as the subspace dimension $\lambda$, the error $\epsilon^{-2}$, and $\log 1/\delta$ are mathematically necessary. This confirms that the proposed sketch is "almost optimal."

Conclusion and Future Directions

This work effectively breaks the exponential barrier in tensor sketching, providing a framework that is both theoretically sound and computationally efficient. While the asymptotic bounds are optimal, the authors note that the hidden constants and "poly log" factors might be significant in specific practical regimes. Future work may explore the optimization of these constants or investigate "strong OSE moments" to potentially reduce the dependency on the subspace dimension $\lambda$ even further. Additionally, extending these results to highly sparse inputs remains an area for detailed trade-off analysis.

Summary updated

BibTeX
@misc{ahle2019almost,
  author = {Thomas D. Ahle and Jakob Bæk Tejs Knudsen},
  title = {{Almost Optimal Tensor Sketch}},
  year = {2019},
  eprint = {1909.01821},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.01821},
}
Figure