Skip to main content
QUICK REVIEW

[Paper Review] Comparison of Accuracy and Scalability of Gauss-Newton and Alternating Least Squares for CP Decomposition

Navjot Singh, Linjian Ma|arXiv (Cornell University)|Oct 27, 2019
Tensor decomposition and applicationsMathematics45 references6 citations
TL;DR

This paper presents the first parallel implementation of a Gauss-Newton method for CP tensor decomposition using implicit matrix-vector products via tensor contractions, enabling scalable high-accuracy decomposition. It demonstrates that Gauss-Newton with adaptive regularization consistently converges to exact CP decompositions where ALS fails and achieves up to 2.4× lower residual and 2× speedup on large quantum chemistry tensors with high rank.

ABSTRACT

Alternating least squares is the most widely used algorithm for CP tensor decomposition. However, alternating least squares may exhibit slow or no convergence, especially when high accuracy is required. An alternative approach is to regard CP decomposition as a nonlinear least squares problem and employ Newton-like methods. Direct solution of linear systems involving an approximated Hessian is generally expensive. However, recent advancements have shown that use of an implicit representation of the linear system makes these methods competitive with alternating least squares. We provide the first parallel implementation of a Gauss-Newton method for CP decomposition, which iteratively solves linear least squares problems at each Gauss-Newton step. In particular, we leverage a formulation that employs tensor contractions for implicit matrix-vector products within the conjugate gradient method. The use of tensor contractions enables us to employ the Cyclops library for distributed-memory tensor computations to parallelize the Gauss-Newton approach with a high-level Python implementation. In addition, we propose a regularization scheme for Gauss-Newton method to improve convergence properties without any additional cost. We study the convergence of variants of the Gauss-Newton method relative to ALS for finding exact CP decompositions as well as approximate decompositions of real-world tensors. We evaluate the performance of sequential and parallel versions of both approaches, and study the parallel scalability on the Stampede2 supercomputer.

Motivation & Objective

  • To address the slow or non-convergent behavior of Alternating Least Squares (ALS) in high-accuracy CP decomposition, especially in high-rank scenarios.
  • To develop a scalable, high-performance implementation of the Gauss-Newton method for CP decomposition using implicit linear system solves.
  • To evaluate the convergence, accuracy, and scalability of Gauss-Newton relative to ALS on synthetic and real-world tensors.
  • To propose and validate a regularization scheme that improves convergence without additional computational cost.

Proposed method

  • The Gauss-Newton method is formulated using tensor contractions to implicitly compute matrix-vector products within the conjugate gradient (CG) solver, avoiding explicit Hessian assembly.
  • The method leverages the Cyclops Tensor Framework for distributed-memory parallelization, enabling high-level Python-based implementation with both NumPy and Cyclops backends.
  • A novel regularization scheme is introduced that dynamically adjusts the regularization parameter during optimization to improve convergence stability and accuracy.
  • The Hessian approximation is implicitly applied via tensor contractions, reducing computational cost to O(N²sR²) per CG iteration.
  • The algorithm uses preconditioned CG to accelerate convergence, with the system of equations solved iteratively without forming dense matrices.
  • The implementation supports both sequential and parallel execution, enabling strong and weak scalability analysis on the Stampede2 supercomputer.

Experimental results

Research questions

  • RQ1Does the Gauss-Newton method with implicit CG solve CP decomposition more accurately and scalably than ALS, especially for high-rank tensors?
  • RQ2Can a regularization scheme be designed for Gauss-Newton that improves convergence without increasing computational cost?
  • RQ3How does the performance of Gauss-Newton compare to ALS in terms of convergence speed and residual reduction on real-world quantum chemistry tensors?
  • RQ4What is the parallel scalability of the proposed Gauss-Newton implementation on distributed-memory systems like Stampede2?
  • RQ5Can Gauss-Newton achieve exact CP decomposition for synthetic tensors where ALS fails due to the 'swamp' phenomenon?

Key findings

  • For Gaussian tensors of size 2000×2000×2000 with rank 2000, Gauss-Newton converged to the exact solution in 300 seconds, while ALS failed to converge within the same time frame.
  • On a 40-water-molecule quantum chemistry tensor of size 4520×280×280 with rank 2000, Gauss-Newton achieved a fitness of 0.952 in 5,000 seconds, outperforming ALS (fitness 0.94) in half the time.
  • Gauss-Newton with adaptive regularization achieved 2.4× lower relative residual than ALS on the same tensor, while running 0.6× faster.
  • The method showed good weak scalability on Stampede2, with performance improvements scaling effectively with increasing problem size and core count.
  • The proposed regularization scheme enabled stable convergence and high accuracy, avoiding issues seen with fixed regularization (e.g., λ=10⁻⁵ or λ=10⁻³).
  • In high-rank scenarios (R ≥ s), Gauss-Newton consistently outperformed ALS in both convergence behavior and final residual, demonstrating robustness to the 'swamp' effect.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.