arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2202.05868cs.DC
收藏

张量加速器上稀疏矩阵乘法的分块技术

Blocking Techniques for Sparse Matrix Multiplication on Tensor Accelerators

Paolo Sylos Labini, Massimo Bernaschi, Francesco Silvestri, Flavio Vella

摘要:

张量加速器之所以受到欢迎,是因为它们提供了一种廉价而有效的解决方案,可以加速深度学习中计算成本高的任务,最近还可以加速其他科学计算应用。然而,由于它们的特性是专门为张量代数(通常是稠密矩阵乘积)设计的,因此通常认为它们不适合稀疏数据的应用。为了挑战这一观点,我们讨论的方法和解决方案,加速稀疏矩阵乘法在这样的架构。特别是,我们提出了一个1维分块算法的密度,从任意稀疏矩阵建立密集的块的理论保证。实验结果表明,即使对于非结构化和高度稀疏的矩阵,我们基于块的解决方案,利用Nvidia张量核心是比其稀疏的同行更快。我们观察到在真实世界的稀疏矩阵上高达两个数量级的显着加速。

英文摘要:

Tensor accelerators have gained popularity because they provide a cheap and efficient solution for speeding up computational-expensive tasks in Deep Learning and, more recently, in other Scientific Computing applications. However, since their features are specifically designed for tensor algebra (typically dense matrix-product), it is commonly assumed that they are not suitable for applications with sparse data. To challenge this viewpoint, we discuss methods and present solutions for accelerating sparse matrix multiplication on such architectures. In particular, we present a 1-dimensional blocking algorithm with theoretical guarantees on the density, which builds dense blocks from arbitrary sparse matrices. Experimental results show that, even for unstructured and highly-sparse matrices, our block-based solution which exploits Nvidia Tensor Cores is faster than its sparse counterpart. We observed significant speed-ups of up to two orders of magnitude on real-world sparse matrices.

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

↑