GPU上稀疏矩阵向量乘法的快速熵解码
Fast Entropy Decoding for Sparse MVM on GPUs
AI总结:
提出一种基于无损熵编码(dtANS)的方法,压缩稀疏矩阵的CSR格式,在GPU上加速SpMVM,相比cuSPARSE和AlphaSparse实现最高3.48倍加速和11.77倍压缩比。
摘要:
我们提出了一种新颖实用的方法,用于加速GPU上的稀疏矩阵-向量乘法(SpMVM)。新颖的关键思想是应用无损熵编码,进一步压缩以常用格式之一存储的稀疏矩阵。我们的方法基于dtANS,这是一种新的无损压缩方法,改进了非对称数字系统(ANS)的熵编码技术,特别适用于与SpMVM结合时的快速并行GPU解码。我们将dtANS应用于广泛使用的CSR格式,并在SuiteSparse矩阵集合上针对最先进的cuSPARSE库进行了广泛的基准测试。在至少包含2^15个元素且平均每行至少10个元素的矩阵上,我们的压缩在几乎所有情况下都减小了矩阵大小(相比最小的cuSPARSE格式CSR、COO和SELL),压缩比最高达11.77倍。此外,对于大多数至少包含2^25个非零元素的矩阵,我们实现了SpMVM加速。最佳加速比为3.48倍。我们还表明,在由于极端计算开销而受限的实验中,我们可以改进基于AI的多格式AlphaSparse。我们以开源C++/CUDA头文件库的形式提供代码,其中包括压缩和乘法内核。
英文摘要:
We present a novel, practical approach to speed up sparse matrix-vector multiplication (SpMVM) on GPUs. The novel key idea is to apply lossless entropy coding to further compress the sparse matrix when stored in one of the commonly supported formats. Our method is based on dtANS, our new lossless compression method that improves the entropy coding technique of asymmetric numeral systems (ANS) specifically for fast parallel GPU decoding when used in tandem with SpMVM. We apply dtANS on the widely used CSR format and present extensive benchmarks on the SuiteSparse collection of matrices against the state-of-the-art cuSPARSE library. On matrices with at least 2^(15) entries and at least 10 entries per row on average, our compression reduces the matrix size over the smallest cuSPARSE format (CSR, COO and SELL) in almost all cases and up to 11.77 times. Further, we achieve an SpMVM speedup for the majority of matrices with at least 2^(25) nonzero entries. The best speedup is 3.48x. We also show that we can improve over the AI-based multi-format AlphaSparse in an experiment that is limited due to its extreme computation overhead. We provide our code as an open source C++/CUDA header library, which includes both compression and multiplication kernels.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。