arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1910.10776cs.DCcs.AR
收藏

SMASH:协同设计软件压缩和硬件加速索引,实现高效稀疏矩阵运算

SMASH: Co-designing Software Compression and Hardware-Accelerated Indexing for Efficient Sparse Matrix Operations

Konstantinos Kanellopoulos, Nandita Vijaykumar, Christina Giannoula, Roknoddin Azizi, Skanda Koppula, Nika Mansouri Ghiasi, Taha Shahroodi, Juan Gomez Luna, Onur Mutlu

摘要:

重要的工作负载,如机器学习和图形分析应用程序,大量涉及稀疏线性代数运算。这些操作使用稀疏矩阵压缩作为避免存储零和对零元素执行不必要计算的有效手段。然而,如今广泛使用的压缩技术(如压缩稀疏行(CSR))引入了显著的指令开销和昂贵的指针追踪操作来发现非零元素的位置。在本文中,我们确定了位置的发现(即,索引)作为基于稀疏矩阵的工作负载中的关键瓶颈,这大大降低了压缩的好处。我们提出了SMASH,一个硬件-软件的合作机制,使高效的索引和稀疏矩阵的存储。SMASH的关键思想是显式地使硬件能够识别和利用数据中的稀疏性。为此,我们设计了一种新的软件编码的基础上的层次结构的位图。这种编码可以用于有效地压缩任何稀疏矩阵,而不管稀疏的程度和结构。同时,位图编码可以直接由硬件解释。我们设计了一个轻量级的硬件单元,位图管理单元(BMU),缓冲和扫描位图层次结构,以执行高效的稀疏矩阵索引。SMASH公开了一个富有表现力和丰富的ISA来与BMU通信,这使得它能够用于加速任何稀疏矩阵计算。我们在四个用例中展示了SMASH的优势,包括稀疏矩阵内核和图形分析应用程序。

英文摘要:

Important workloads, such as machine learning and graph analytics applications, heavily involve sparse linear algebra operations. These operations use sparse matrix compression as an effective means to avoid storing zeros and performing unnecessary computation on zero elements. However, compression techniques like Compressed Sparse Row (CSR) that are widely used today introduce significant instruction overhead and expensive pointer-chasing operations to discover the positions of the non-zero elements. In this paper, we identify the discovery of the positions (i.e., indexing) of non-zero elements as a key bottleneck in sparse matrix-based workloads, which greatly reduces the benefits of compression. We propose SMASH, a hardware-software cooperative mechanism that enables highly-efficient indexing and storage of sparse matrices. The key idea of SMASH is to explicitly enable the hardware to recognize and exploit sparsity in data. To this end, we devise a novel software encoding based on a hierarchy of bitmaps. This encoding can be used to efficiently compress any sparse matrix, regardless of the extent and structure of sparsity. At the same time, the bitmap encoding can be directly interpreted by the hardware. We design a lightweight hardware unit, the Bitmap Management Unit (BMU), that buffers and scans the bitmap hierarchy to perform highly-efficient indexing of sparse matrices. SMASH exposes an expressive and rich ISA to communicate with the BMU, which enables its use in accelerating any sparse matrix computation. We demonstrate the benefits of SMASH on four use cases that include sparse matrix kernels and graph analytics applications.

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

↑