HOSCF: Efficient decoupling algorithms for finding the best rank-one approximation of higher-order tensors

Chuanfu Xiao, Zeyu Li, Chao YangarXiv 2024

Abstract

Best rank-one approximation is one of the most fundamental tasks in tensor computation. In order to fully exploit modern multi-core parallel computers, it is necessary to develop decoupling algorithms for computing the best rank-one approximation of higher-order tensors at large scales. In this paper, we first build a bridge between the rank-one approximation of tensors and the eigenvector-dependent nonlinear eigenvalue problem (NEPv), and then develop an efficient decoupling algorithm, namely the higher-order self-consistent field (HOSCF) algorithm, inspired by the famous self-consistent field (SCF) iteration frequently used in computational chemistry. The convergence theory of the HOSCF algorithm and an estimation of the convergence speed are further presented. In addition, we propose an improved HOSCF (iHOSCF) algorithm that incorporates the Rayleigh quotient iteration, which can significantly accelerate the convergence of HOSCF. Numerical experiments show that the proposed algorithms can efficiently converge to the best rank-one approximation of both synthetic and real-world tensors and can scale with high parallel scalability on a modern parallel computer.

Introduction

In the era of big data, tensors—multi-dimensional arrays—have become indispensable for representing complex datasets in fields ranging from hyperspectral imaging to climate modeling. One of the most critical operations in tensor analysis is finding the "best rank-one approximation," a process that compresses massive datasets into their most essential components. Despite its utility, finding this approximation is an NP-hard problem.

Traditional approaches, such as the Higher-Order Power Method (HOPM), rely on a sequential (coupled) update strategy. These methods use a Gauss-Seidel approach, where each factor vector must be updated before the next can be calculated. This sequential dependency creates a significant bottleneck on modern multi-core supercomputers, as processors are forced to wait for one another. While previous attempts have been made to "decouple" these updates to allow for parallel processing, they often suffered from poor convergence or failed to find the global optimum. This paper introduces HOSCF, a novel decoupling algorithm that overcomes these limitations by reframing the problem through the lens of nonlinear eigenvalue problems.

Bridging Tensor Algebra and Computational Chemistry

The core innovation of this work is the establishment of a mathematical bridge between tensor rank-one approximation and the eigenvector-dependent nonlinear eigenvalue problem (NEPv). By mapping the Karush-Kuhn-Tucker (KKT) equations of the tensor problem into a specific matrix mapping, $J(x)$, the authors transform a complex multi-variable optimization problem into a more manageable eigenvalue problem.

The HOSCF and iHOSCF Algorithms

Inspired by the self-consistent field (SCF) iterations used to solve the Schrödinger equation in computational chemistry, the Higher-Order Self-Consistent Field (HOSCF) algorithm allows all factor vectors to be updated simultaneously. The algorithm constructs a large intermediate symmetric matrix and identifies its largest magnitude eigenpair, maintaining stability where other parallel methods often fail.

To further enhance performance, the authors developed iHOSCF (Improved HOSCF). This version incorporates the Rayleigh quotient iteration, granting the algorithm "cubic convergence." This means that once the algorithm approaches the solution, it closes the remaining gap with extreme speed. The paper provides rigorous mathematical proofs establishing that solving this NEPv is equivalent to finding the best rank-one tensor approximation and confirms the algorithm's local q-linear convergence.

Experimental Evaluation

The researchers evaluated HOSCF and iHOSCF against three distinct data types:

  1. Synthetic Tensors: Randomly generated tensors with Gaussian distributions ($N(0,1)$) and orders ranging from 3 to 6.
  2. Mathematical Benchmarks: Specific tensors (EXP, ARCSIN, and TAN) known for their convergence difficulty.
  3. Real-World Data: The MNIST database of handwritten digits, tested within a greedy rank-one update framework to assess performance on actual image data.

Key Results and Discussion

Superior Convergence and Speed

In tests involving difficult benchmarks like the "TAN" tensor, traditional decoupling methods (such as GRQI or Jacobi-ASVD) frequently failed to identify the correct approximation ratio. In contrast, HOSCF and iHOSCF consistently converged to the best approximation. Furthermore, iHOSCF proved to be 1.5x to 3.5x faster than the standard HOSCF, achieving speeds comparable to established sequential methods like HOPM while maintaining the benefits of decoupling.

Massive Parallel Scalability

The most significant advantage of HOSCF is its scalability. While sequential algorithms like HOPM quickly plateau in performance as more cores are added, HOSCF thrives. In experiments scaling from 1 to 256 processor cores, HOSCF achieved speedups of 98x to 149x. For a 4th-order tensor, a standard Jacobi-style HOPM was 2.87x slower than HOSCF, demonstrating that HOSCF is not just more parallelizable, but mathematically more efficient for decoupled computation.

Conclusion and Future Work

HOSCF represents a significant step forward in large-scale tensor computation. By successfully decoupling the update process without sacrificing convergence stability, it enables the use of modern supercomputing architectures for complex data compression tasks.

However, some challenges remain. Like most nonlinear solvers, HOSCF requires a reasonably accurate initial guess to guarantee convergence to the global optimum. Additionally, the construction of the intermediate matrix $J(x)$ is computationally expensive, accounting for the majority of the runtime on a single core. Future research will focus on utilizing randomized numerical linear algebra to reduce this cost and exploring advanced acceleration techniques for even higher-order tensors.

Summary updated

BibTeX
@misc{xiao2024hoscf,
  author = {Chuanfu Xiao and Zeyu Li and Chao Yang},
  title = {{HOSCF: Efficient decoupling algorithms for finding the best rank-one approximation of higher-order tensors}},
  year = {2024},
  eprint = {2403.01778},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.01778},
}
Figure