arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.05105math.NAcs.NA
收藏

稀疏张量CP分解的分布式内存随机算法

Distributed-Memory Randomized Algorithms for Sparse Tensor CP Decomposition

Vivek Bharadwaj, Osman Asif Malik, Riley Murray, Aydin Buluç, James Demmel

AI总结:

本文提出了两种随机CP分解算法(CP-ARLS-LEV和STS-CP)的首个分布式内存实现,通过杠杆得分采样和定制通信调度,在十亿规模张量上实现了比SPLATT快11倍的加速。

摘要:

Candecomp / PARAFAC (CP) 分解是矩阵奇异值分解向高维张量的推广,是分析多维稀疏数据的常用工具。对于具有数十亿非零项的张量,计算CP分解是一项计算密集型任务。我们提出了两种随机CP分解算法(CP-ARLS-LEV和STS-CP)的首个分布式内存实现,与经过良好调优的非随机分解软件包相比,在高分解秩下实现了近一个数量级的加速。这两种算法均依赖于杠杆得分采样,并具有强大的理论保证,各自在时间和精度上有不同的权衡。我们为随机采样算法定制了通信调度,消除了昂贵的归约集合通信,并使通信成本随随机采样数量进行扩展。最后,我们优化了方法的本地存储格式,在压缩稀疏列和压缩稀疏行格式的类似物之间进行切换。实验表明,我们的方法快速且可扩展,在512个CPU核心上不到两分钟内分解十亿规模的Reddit张量,实现了比SPLATT快11倍的加速。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑