Efficient Leverage Score Sampling for Tensor Train Decomposition

Vivek Bharadwaj, Beheshteh T. Rakhshan, Osman Asif Malik, Guillaume Rabusseau

Introduction

High-dimensional data analysis is frequently hindered by the "curse of dimensionality," where the volume of data grows exponentially with the number of dimensions. The Tensor Train (TT) decomposition has emerged as a powerful framework to mitigate this, compressing massive tensors into a format that scales linearly with dimensionality. However, the standard computational workhorse for this decomposition—the Alternating Least Squares (ALS) algorithm—faces significant scalability bottlenecks. In each iteration, ALS must solve a series of massive linear least-squares problems, which become computationally prohibitive as the tensor's rank or size increases.

This paper introduces rTT-ALS (randomized TT-ALS), a novel algorithm that utilizes exact leverage score sampling to accelerate the decomposition process while maintaining high reconstruction accuracy.

The Challenge of Scalability in Tensor Trains

In the standard ALS approach, the bottleneck lies in the construction and solution of the normal equations for each core of the tensor train. While "sketching" techniques—which involve randomly sampling rows to create a smaller proxy problem—have been proposed to alleviate this, previous iterations for TT decomposition often relied on poor approximations or required a sample size that scaled poorly with the number of dimensions. These limitations often resulted in either slow convergence or a significant loss in fidelity.

Methodology: rTT-ALS and Exact Leverage Scores

The core innovation of rTT-ALS is the efficient computation of exact leverage scores. Leverage scores identify the most influential rows in a matrix for capturing its structural essence. By sampling rows based on these scores, the algorithm can solve a significantly reduced version of the least-squares problem with strong theoretical guarantees on the solution quality.

The Role of Canonical Forms

The authors exploit the physical structure of the Tensor Train to simplify the mathematics of sampling. By maintaining the tensor in its canonical form—where cores are made orthogonal through a series of QR decompositions—the complexity of calculating leverage scores is dramatically reduced.

  1. Orthogonality Advantage: The canonical form allows the leverage scores to be computed without explicitly forming the large system matrices.
  2. Logarithmic Sampling: The researchers developed a specialized data structure that enables row sampling in $O(\log I)$ time, where $I$ is the dimension size. This allows the algorithm to process tensors that are far too large to fit into standard memory in an uncompressed state.
  3. Quadratic Complexity: By leveraging the canonical structure throughout the ALS iterations, the sampling complexity is reduced from cubic in the tensor rank ($R^3$) to quadratic ($R^2$), providing a major performance boost for high-rank tensors.

Experimental Evaluation

The algorithm was evaluated against both synthetic and real-world datasets, spanning dense and sparse formats:

  • Dense Tensors: Hyperspectral imagery (Pavia University, DC Mall), handwritten digits (MNIST), and video data (Tabby Cat).
  • Sparse Tensors: Large-scale datasets from the FROSTT repository, including Uber pickup data, Enron email networks, and the NELL-2 knowledge-base tensor (containing approximately 77 million non-zero entries).

Key Results and Insights

The experimental results demonstrate that rTT-ALS offers a superior balance of speed and precision compared to existing methods:

  • Significant Speedups: On the massive NELL-2 sparse tensor, rTT-ALS achieved a 26x speedup per iteration compared to standard ALS. On synthetic tensors with high dimensions ($I=500$), it was roughly 10x faster than standard ALS.
  • High Fidelity: Across all real-world benchmarks, the reconstruction accuracy of the randomized version remained nearly identical to the exact ALS version, typically differing only in the third or fourth decimal place.
  • Exact vs. Approximate: The paper highlights that while approximate leverage scores are easier to compute, they often require an exponential number of samples to maintain accuracy as dimensions increase. By computing exact scores efficiently, rTT-ALS bypasses this "sampling explosion."

Limitations and Future Directions

While rTT-ALS represents a significant step forward, the authors note certain constraints. The gap between randomized and exact methods' accuracy grows slightly as the target rank ($R$) increases, necessitating more samples for very high-rank decompositions. Additionally, like all ALS-based methods, performance is sensitive to the initial "guess" of the tensor cores.

Future work may involve extending this exact leverage score sampling approach to more complex Tree Tensor Networks, which could broaden the application of these techniques in quantum physics and advanced machine learning architectures.

Summary updated

BibTeX
@inproceedings{bharadwaj2024efficient,
  author = {Vivek Bharadwaj and Beheshteh T. Rakhshan and Osman Asif Malik and Guillaume Rabusseau},
  title = {{Efficient Leverage Score Sampling for Tensor Train Decomposition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=fi3aKVnBQo},
}
Figure