Randomized algorithms for computing the tensor train approximation and their applications

Maolin Che, Yimin Wei, Hong YanarXiv 2024 · DOI

Abstract

Tensor Train (TT) decomposition is a critical technique for compressing high-dimensional data, mitigating the "curse of dimensionality." However, traditional deterministic methods like TT-SVD are computationally prohibitive for massive datasets. This paper presents a suite of randomized algorithms that leverage Random Numerical Linear Algebra (RandNLA) to accelerate TT decomposition. By incorporating random projections and a subspace iteration "power scheme," these algorithms achieve significant speedups while maintaining high accuracy and providing rigorous theoretical error bounds.

Introduction

In fields such as machine learning, signal processing, and neuroscience, researchers frequently encounter tensors—multi-dimensional arrays—that grow exponentially in size with each added dimension. The Tensor Train (TT) decomposition offers a solution by representing these large tensors as a sequence of smaller "cores," ensuring storage requirements grow only linearly. Despite its utility, the standard gold-standard algorithm, TT-SVD, relies on repeated Singular Value Decompositions (SVD), making it computationally expensive for very large tensors. This work addresses two primary challenges: the fixed TT-rank problem (finding the best approximation when the desired rank is known) and the fixed precision problem (finding the smallest rank that satisfies a specific error tolerance).

Methodology

The proposed framework utilizes randomized techniques to bypass the heavy computation of full SVDs. The core idea involves projecting the original tensor into a lower-dimensional subspace using random matrices before performing the decomposition.

Key components of the methodology include:

  • Randomized Fixed-Rank Algorithms: These use random matrices (either standard Gaussian or Khatri-Rao products of smaller Gaussian matrices) to reduce dimensionality.
  • The Power Scheme: To handle tensors with slow singular value decay, the authors incorporate subspace iterations ($q$). This refinement step ensures the random subspace captures the most significant features of the data.
  • Adaptive and Greedy Strategies: Algorithm 4 (Greedy TT-SVD) and Algorithm 5 (Adaptive Randomized Algorithm) provide mechanisms to estimate necessary ranks dynamically, catering to scenarios where the optimal compression level is unknown.
Flowchart of the randomized tensor decomposition process, illustrating the sequence of reshaping (RE), orthogonalization (ON), and updating (UP) steps to derive TT-cores.

Crucially, the paper derives formal upper bounds on the approximation error using the non-asymptotic theory of sub-Gaussian matrices, providing mathematical guarantees for the algorithms' performance.

Experimental Evaluation

The researchers evaluated their algorithms using a mix of synthetic and real-world datasets to test robustness and scalability:

  • Synthetic Tensors: Tensors with controlled noise levels and specific mathematical structures.
  • Extended Yale Face Database B: A collection of facial images under various lighting conditions and poses.
  • Washington DC Mall: Hyperspectral imaging data containing many spectral bands for each pixel.
  • COIL-100 (Columbia Object Image Library): Color images of 100 different objects rotated at various angles.

Key Results and Insights

The randomized approach demonstrated substantial performance gains, often being several times faster than deterministic TT-SVD. Despite the speedup, the relative error (RE) of the randomized approximations remained very close to the optimal values produced by TT-SVD.

  • Efficiency vs. Accuracy: While randomization introduces a tiny bit of uncertainty, the authors prove that the probability of a "bad" approximation is exponentially small.
  • The Power of Iteration: For "difficult" tensors where data isn't naturally low-rank, adding just a few iterations of the power scheme ($q=1$ or $2$) dramatically improves accuracy without sacrificing too much speed.
  • Khatri-Rao Advantage: Using the Khatri-Rao product to generate random matrices is shown to be highly efficient for tensor structures, as it exploits the multi-way nature of the data rather than treating it as one giant matrix.

Conclusion and Future Work

This research bridges the gap between high-performance computing and tensor compression. While the current theoretical analysis for the most efficient variants is primarily restricted to cases where the power scheme parameter $q$ is 0 or 1, the empirical results confirm the stability and scalability of these randomized methods for large-scale data science applications. Future work will focus on extending theoretical proofs to arbitrary iteration counts and developing unbiased error estimators using resampling methods like the bootstrap or jackknife to provide precise confidence intervals.

Summary updated

BibTeX
@misc{che2024randomized,
  author = {Maolin Che and Yimin Wei and Hong Yan},
  title = {{Randomized algorithms for computing the tensor train approximation and their applications}},
  year = {2024},
  eprint = {2405.07147},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.07147},
}
Figure