Sampling-Based Decomposition Algorithms for Arbitrary Tensor Networks

Osman Asif Malik, Vivek Bharadwaj, Riley MurrayarXiv 2022 · DOI

Abstract

Tensors are fundamental in modern data science but suffer from the exponential growth of parameters known as the "curse of dimensionality." This paper presents a generalized framework for decomposing tensors into arbitrary tensor network (TN) formats, such as CP, Tensor Train, or Tensor Ring. By utilizing a sampling-based Alternating Least Squares (ALS) approach combined with exact leverage score sampling, the proposed method achieves sublinear per-iteration costs relative to input size and polynomial scaling with respect to tensor dimensions.

Introduction

Standard tensor decomposition methods like Alternating Least Squares (ALS) are computationally intensive because they typically require processing every entry of a massive input tensor. For an $N$-mode tensor with dimension $I$, the $I^N$ entries quickly become unmanageable. While randomized "sketching" techniques have been proposed to mitigate this, they often remain limited to specific formats or scale exponentially with the number of modes. This work introduces a framework that breaks these barriers by leveraging the inherent structure of tensor networks.

Methods: Tensor Network Sampling (TNS)

The core contribution of this work is the Tensor Network Sampling (TNS) framework. TNS enables efficient row sampling from a "tall-and-skinny" design matrix represented as a tensor network. In this graphical notation, tensors are represented as nodes, and their modes (dimensions) are represented as edges.

Graphical representation of tensors: (a) scalar/order-0, (b) vector/order-1, (c) matrix/order-2, (d) order-4 tensor.

The framework relies on three key pillars:

  1. Exact Leverage Score Sampling: Unlike previous approximate methods, TNS calculates exact leverage scores to identify the most influential rows for least-squares fitting. This simplifies implementation by removing the need for complex recursive sketching.
  2. Sequential Conditioning: To avoid materializing the full probability space of $I^N$ indices, indices are sampled one mode at a time using conditional probabilities.
  3. TN Contractions: These conditional probabilities are computed as small, efficient tensor network contractions. This allows the algorithm to focus on important data regions without ever forming the full design matrix.
Common tensor network contractions and their mathematical equivalents, illustrating how complex operations are simplified graphically.

Empirical Evaluation

The authors evaluated TNS using the COIL-100 (Columbia Object Image Library) dataset, consisting of 7,200 images of 100 objects. The task involved feature extraction via tensor decomposition followed by k-nearest neighbor classification.

  • Speed: TNS-TR (Tensor Ring) demonstrated a massive speedup, completing the decomposition in 14.5 seconds, compared to 29.7 seconds for the previous state-of-the-art randomized method and over 10,000 seconds for standard non-randomized TR-ALS.
  • Accuracy: This speedup did not sacrifice quality; TNS-CP achieved 98.3% classification accuracy, nearly matching the 99.2% of exhaustive CP-ALS.

Conclusion

By leveraging the inherent structure of tensor networks, the TNS framework provides a scalable solution for decomposing high-dimensional data into arbitrary formats. The method's polynomial scaling with respect to the number of modes represents a significant theoretical and practical advancement. Future work will address the $O(R^3)$ bottleneck for high-rank tensors and explore distributed computing implementations for even larger datasets.

Summary updated

BibTeX
@misc{malik2022sampling,
  author = {Osman Asif Malik and Vivek Bharadwaj and Riley Murray},
  title = {{Sampling-Based Decomposition Algorithms for Arbitrary Tensor Networks}},
  year = {2022},
  eprint = {2210.03828},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.03828},
}
Figure