Faster tensor train decomposition for sparse data

Lingjie Li, Wenjian Yu, Kim Batselier · OpenReview

TL;DR

This paper introduces "FastTT," a novel algorithm for efficiently decomposing large, sparse tensors. It significantly speeds up tensor train decomposition, a crucial technique for handling high-dimensional data, by exploiting sparsity and employing a modified parallel-vector rounding strategy. This advancement enables the application of tensor decomposition methods to previously intractable large-scale problems.

What Problem Does This Paper Address?

In fields like data analytics, scientific computing, and machine learning, data is increasingly represented as high-dimensional tensors. To manage the "curse of dimensionality" (where data size explodes with dimensions), low-rank tensor decompositions are essential. While methods like CP, Tucker, and Tensor Train (TT) decomposition exist, existing TT decomposition algorithms (like TT-SVD) struggle with large, sparse tensors due to high computational costs and memory requirements. Randomized TT-SVD offers some speedup but often sacrifices accuracy or increases tensor ranks. This paper addresses the need for an accurate and efficient TT decomposition method specifically designed for large-scale sparse tensors.

Methods

The core of this work is the "FastTT" algorithm, which builds upon existing tensor train decomposition techniques but introduces several key innovations:

  • Exploiting Sparsity: Instead of treating all data points equally, FastTT leverages the sparsity of the tensor. It focuses on "nonzero p-fibers" (specific slices of the tensor) and constructs a TT representation based on these sparse structures.
  • Modified Parallel-Vector Rounding: The paper introduces a refined parallel-vector rounding technique. This method, combined with a specific decomposition strategy (Theorem 3), effectively handles the sparse TT structures generated, leading to significant speedups.
  • Efficient TT-Rounding: A modified TT-rounding algorithm is proposed to further reduce TT-ranks while maintaining accuracy. This algorithm is optimized for the sparse TT structures produced by the earlier steps.
  • Dynamic Truncation Parameter Selection: Algorithm 9 offers a method to automatically select the optimal parameter p (related to the choice of p-fibers) by estimating the computational cost, further enhancing efficiency.

Datasets

The paper evaluates its algorithms on several datasets:

  • Image/Video Inpainting: A large color image (Dolphin) and a color video (Mariano Rivera Ultimate Career Highlights) were used, reshaped into high-dimensional tensors. Observed pixels were randomly selected, and the rest were treated as zeros.
  • Finite Difference Method (FDM) Coefficient Matrices: For simulating partial differential equations, coefficient matrices from FDM with different grid partitions (e.g., 20x20x20) were used. These matrices were converted into the matrix-to-MPO (Matrix Product Operator) format.
  • Road Network Data: The undirected graph roadNet-PA dataset from SNAP was used, with its adjacency matrix preprocessed and analyzed.

Key Insights and Ideas

  • Sparsity is Key: The most significant insight is that explicitly exploiting the sparsity of the tensor, rather than just applying general-purpose decomposition methods, leads to dramatic performance improvements.
  • Structured Sparsity: The paper shows that the sparse structures arising from certain tensor decompositions (specifically, the P(k) cores in Theorem 3) have a regular, quasi-permutation matrix property. This property is crucial for the efficiency of the modified parallel-vector rounding.
  • Parallel-Vector Rounding's Effectiveness: The modified parallel-vector rounding is shown to be highly effective on the sparse TT structures, preserving sparsity and significantly reducing computation time compared to standard rounding.
  • Dynamic Parameter Selection: Automatically selecting parameters like p based on estimated computational cost can lead to better performance than fixed choices, avoiding suboptimal configurations.

Key Results

  • Speedup: FastTT demonstrates substantial speedups over TT-SVD, ranging from 9.6X to 240X in various experiments (e.g., image/video inpainting, FDM coefficient matrices).
  • Accuracy: The algorithm maintains high accuracy, often matching or exceeding that of TT-SVD and outperforming TT-cross and randomized TT-SVD in terms of the quality of the approximation (e.g., lower MSE).
  • Rank Reduction: The algorithm can achieve reduced TT-ranks, especially with the dynamic parameter selection and TT-rounding steps, leading to more compact representations.
  • Scalability: FastTT enables the decomposition of much larger sparse tensors than previously feasible, opening up new application areas. For instance, it could process a sparse 40-random coefficient matrix in 57.5 seconds, a task that was infeasible for TT-SVD/TT-cross.

Limitations and Future Work

  • Computational Cost: While significantly faster than existing methods, the computational cost of FastTT still depends on the number of nonzero elements and the complexity of the SVD operations, especially for very dense tensors.
  • Parameter Selection: While Algorithm 9 provides a good heuristic for selecting p, it doesn't always guarantee the absolute best performance, as seen in Figure 6.
  • Future Work: The paper suggests that further research could explore more efficient methods for finding nonzero p-fibers and potentially adapt the algorithm for other tensor decomposition formats. The authors also highlight the potential for FastTT in applications like tensor completion and large-scale matrix processing.

Summary updated

BibTeX
@article{li2022faster,
  author = {Lingjie Li and Wenjian Yu and Kim Batselier},
  title = {{Faster tensor train decomposition for sparse data}},
  journal = {J. Comput. Appl. Math.},
  year = {2022},
  doi = {10.1016/j.cam.2021.113972},
}
Figure