Distributed-Memory Randomized Algorithms for Sparse Tensor CP Decomposition

Vivek Bharadwaj, Osman Asif Malik, Riley Murray, Aydin Buluç, James Demmel
10/11/2022
math.NA

Official code: vbharadwaj-bk/rdist_tensor (2 stars, C++, last commit 2024-05-01).

Abstract

Candecomp / PARAFAC (CP) decomposition, a generalization of the matrix singular value decomposition to higher-dimensional tensors, is a popular tool for analyzing multidimensional sparse data. On tensors with billions of nonzero entries, computing a CP decomposition is a computationally intensive task.

Show full abstract

We propose the first distributed-memory implementations of two randomized CP decomposition algorithms, CP-ARLS-LEV and STS-CP, that offer nearly an order-of-magnitude speedup at high decomposition ranks over well-tuned non-randomized decomposition packages. Both algorithms rely on leverage score sampling and enjoy strong theoretical guarantees, each with varying time and accuracy tradeoffs. We tailor the communication schedule for our random sampling algorithms, eliminating expensive reduction collectives and forcing communication costs to scale with the random sample count. Finally, we optimize the local storage format for our methods, switching between analogues of compressed sparse column and compressed sparse row formats. Experiments show that our methods are fast and scalable, producing 11x speedup over SPLATT by decomposing the billion-scale Reddit tensor on 512 CPU cores in under two minutes.

View on arXivView PDF

Code Implementations(1)

Code for the 2024 SPAA Paper "Distributed-Memory Randomized Algorithms for Sparse Tensor CP Decomposition"

21C++, Jupyter NotebookFeb 10, 20222 years ago

Similar Papers

Cite this paper

@article{bharadwaj2022distributedmemory,
  title  = {Distributed-Memory Randomized Algorithms for Sparse Tensor CP Decomposition},
  author = {Vivek Bharadwaj and Osman Asif Malik and Riley Murray and Aydin Buluç and James Demmel},
  year   = {2022},
  eprint = {2210.05105},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.05105}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.05105.svg)](https://codeofpaper.com/paper/2210.05105)

Discussion