Efficient Alternating Least Squares Algorithms for Truncated HOSVD of Higher-Order Tensors

Chuanfu Xiao, Chao Yang, Min LiarXiv 2020

Abstract

Tensor decompositions are essential for high-dimensional data compression but are often limited by the memory and computational costs of intermediate matrix operations. We present a novel class of Alternating Least Squares (ALS) algorithms designed for truncated Higher-Order Singular Value Decomposition (HOSVD). By substituting exact matrix Singular Value Decomposition (SVD) steps with an iterative ALS approach, our method bypasses the "intermediate data explosion" bottleneck. The resulting algorithms, t-HOSVD-ALS and st-HOSVD-ALS, are highly parallelizable and demonstrate speedups of up to 50x compared to traditional methods without compromising approximation accuracy.

Introduction

In fields ranging from computer vision to fluid dynamics, researchers utilize higher-order tensors (multi-dimensional arrays) to represent complex data. To compress this data or extract latent features, a standard technique is low multilinear rank approximation, also known as the truncated Tucker decomposition.

The most popular non-iterative algorithms for this are truncated HOSVD (t-HOSVD) and sequentially truncated HOSVD (st-HOSVD). However, these traditional methods have a glaring flaw: they rely on unfolding (matricizing) the tensor and performing an SVD or eigen-decomposition on the resulting intermediate matrices. For large tensors, this causes an "intermediate data explosion"—consuming massive amounts of memory, increasing computation time, and proving difficult to parallelize across multiple CPU cores.

Mathematical Framework

To establish a rigorous foundation for the proposed algorithms, we define the following symbols and notations used throughout the tensor operations.

Table of symbols and notations used in the tensor decomposition algorithms.

Methodology

To solve the data explosion problem, we propose replacing the exact matrix SVD steps in t-HOSVD and st-HOSVD with an Alternating Least Squares (ALS) method. Instead of explicitly unfolding the tensor and calculating exact singular vectors, the proposed t-HOSVD-ALS and st-HOSVD-ALS algorithms use ALS to iteratively find an orthogonal basis for the dominant subspace.

Key Algorithmic Innovations

  • Avoiding Matricization: By using a row-wise update rule, the multi-side least squares problem is broken down into independent, smaller least squares problems that only require a single fiber or slice of the original tensor.
  • Parallelization: Because these smaller problems are independent, they can be easily distributed across multiple processor cores using frameworks like OpenMP.
  • Theoretical Guarantees: The ALS iteration is mathematically proven to be q-linear convergent, with strict bounds provided for the approximation error to ensure mathematical soundness.
  • Adjustable Precision: The ALS approach introduces a tolerance parameter ($\eta$). This allows for "rough but fast" approximations that can serve as ideal initializations for more precise iterative methods like Higher-Order Orthogonal Iteration (HOOI).

Experimental Evaluation

The algorithms were evaluated on a mix of synthetic and real-world datasets, including random low-rank tensors with Gaussian noise, the MNIST database (reshaped into a 4D tensor), and a 3D fluid dynamics simulation representing velocity magnitude in a lid-driven cavity flow.

Key Results

  • Maintained Accuracy: Across all tests, the ALS-based methods matched the accuracy and relative residuals of traditional SVD-based methods almost perfectly.
  • Massive Speedups: On synthetic data, t-HOSVD-ALS was up to 50.9x faster than SVD-based methods. On the fluid dynamics dataset, it achieved up to 45.6x speedups.
  • Parallel Scalability: Implemented in C++, the algorithms scaled efficiently; moving from 1 to 16 processor cores yielded a 10.5x speedup for t-HOSVD-ALS.
  • HOOI Initialization: When used to initialize the HOOI algorithm, the ALS outputs resulted in the same number of final iterations to convergence as exact SVD initializations, while significantly reducing the pre-processing time.

Conclusion and Future Work

While the ALS method offers significant performance gains, its speed is dependent on the chosen tolerance parameter ($\eta$). Extremely tight tolerances can increase the number of iterations, potentially reducing the performance advantage over standard SVD.

Future research will focus on applying these algorithms to larger-scale scientific computing problems and integrating randomized linear algebra techniques to further accelerate the least squares solvers. Additionally, extending the ALS concept to other tensor formats, such as Tensor-Train (TT) and Hierarchical Tucker (HT), remains a promising avenue for exploration.

Summary updated

BibTeX
@misc{xiao2020efficient,
  author = {Chuanfu Xiao and Chao Yang and Min Li},
  title = {{Efficient Alternating Least Squares Algorithms for Truncated HOSVD of Higher-Order Tensors}},
  year = {2020},
  eprint = {2004.02583},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.02583},
}
Figure