Fast and Guaranteed Tensor Decomposition via Sketching

Yining Wang, Hsiao-Yu Fish Tung, Alexander J. Smola, Animashree Anandkumar

Abstract

This paper introduces a randomized framework for Tensor CANDECOMP/PARAFAC (CP) decomposition that leverages sketching techniques to achieve significant computational speedups. By utilizing Fast Fourier Transforms (FFTs) and a novel "colliding hash" design for symmetric tensors, the proposed method enables the decomposition of massive tensors without explicit formation. The framework maintains rigorous theoretical guarantees on accuracy while providing 10x–100x speedups over traditional exact methods.

Introduction

Tensors are essential for representing multi-dimensional data in various domains, including computer vision and social network analysis. Tensor decomposition, particularly CP decomposition, is a fundamental tool for learning latent variable models. However, the $O(n^3)$ complexity of standard operations on 3rd-order tensors of dimension $n$ makes them computationally prohibitive as data scales. Previous attempts to address this via sparsity or uniform sampling often struggle with dense or "spiky" data. This work introduces a scalable approach that uses Count Sketches to perform tensor operations efficiently without sacrificing accuracy or making restrictive assumptions about data structure.

Methodology

The core of the framework is the application of Count Sketches for dimensionality reduction. The authors introduce several innovations to make this practical for tensor decomposition:

  1. Efficient Sketch Construction: For tensors in factored form (such as empirical moments), sketches are computed using FFTs on component vectors, reducing complexity from $O(n^3)$ to $O(n + b \log b)$, where $b$ is the sketch length.
  2. Implicit Contractions: Tensor contractions required by algorithms like the Power Method are performed directly in the sketched space using element-wise products in the Fourier domain, avoiding full tensor reconstruction.
  3. Colliding Hashes: A specialized hash function using complex-domain Rademacher variables handles multiplicities in symmetric tensors, reducing processing requirements by nearly 6x for 3rd-order tensors.
  4. The "Shift" Trick: A key insight (Proposition 1) allows the algorithm to avoid expensive inverse FFTs by shifting terms in an inner product, enabling constant-time coordinate reading of tensor contractions.
Computational complexity comparison between plain and sketched methods.

The framework integrates these techniques with a Robust Tensor Power Method, creating a fast, randomized algorithm for extracting principal components.

Experimental Evaluation

The method was evaluated on synthetic 1000-dimensional tensors and real-world datasets, including a Wikipedia crawl (topic modeling) and the Enron Email Corpus.

Key Results

  • Massive Speedups: On synthetic data, the sketched power method achieved 10x–100x speedups compared to exact methods while maintaining nearly identical residual norms (error).
  • Topic Modeling Efficiency: In Latent Dirichlet Allocation (LDA) tasks on the Wikipedia dataset, the proposed "Fast Spectral LDA" was significantly faster than traditional Gibbs sampling.
  • Hybrid Initialization: Using the fast spectral method to initialize a Gibbs sampler bypassed the slow "burn-in" phase of MCMC methods, leading to faster convergence and superior final likelihoods.
Negative log-likelihood vs. elapsed time for Gibbs sampling, FastLDA, and the hybrid approach.

Discussion and Future Work

The proposed sketching framework is "property-agnostic," meaning its performance depends on the tensor's Frobenius norm rather than specific structures like sparsity. This makes it robust for real-world "spiky" data like word trigrams.

Future research directions include relaxing the independence assumption in the theoretical analysis of adaptive contractions, tightening sample complexity bounds for specific graphical models, and extending the colliding hash design to higher-order tensors beyond the 3rd-order case.

Summary updated

BibTeX
@inproceedings{wang2015fast,
  author = {Yining Wang and Hsiao-Yu Fish Tung and Alexander J. Smola and Animashree Anandkumar},
  title = {{Fast and Guaranteed Tensor Decomposition via Sketching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
  url = {https://openreview.net/forum?id=S1WLkwZubS},
}
Figure