arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.18620cs.DScs.PF
收藏

通过无损压缩格式实现更绿色的矩阵运算

Toward Greener Matrix Operations by Lossless Compressed Formats

Francesco Tosoni, Philip Bille, Valerio Brunacci, Alessio De Angelis, Paolo Ferragina, Giovanni Manzini

AI总结:

本文研究了大型稀疏矩阵SpMV在服务器和边缘设备上使用不同压缩格式的空间、时间和能效,发现选择合适格式可降低一个数量级能耗,且时间与能耗的最优并行度并不一致。

摘要:

稀疏矩阵-向量乘法(SpMV)是机器学习、科学计算和图算法中的一项基本运算。本文研究了使用各种压缩格式对大型稀疏矩阵进行SpMV的空间、时间和能效,特别关注布尔矩阵和实值向量。通过在服务器和边缘设备上进行的大量分析和实验,我们发现不同的矩阵压缩格式在空间使用、执行时间和能耗之间提供了不同的权衡。值得注意的是,通过采用适当的压缩格式,我们可以在服务器和单板计算机上将能耗降低一个数量级。此外,我们的实验表明,虽然数据并行性可以提高执行速度和能效,但同时实现时间和能效面临着部分不同的挑战。具体而言,我们展示了对于某些压缩方案,时间的最优并行度与能量的最优并行度并不一致,从而对执行时间与能耗之间存在简单线性相关的普遍假设提出了挑战。我们的结果对SpMV运算普遍存在的所有领域的软件工程师具有重要意义。它们还表明,探索其他压缩数据结构在时间、空间和能耗之间权衡的类似研究,可以为设计更节能的软件组件做出重大贡献。

英文摘要:

Sparse matrix-vector multiplication (SpMV) is a fundamental operation in machine learning, scientific computing, and graph algorithms. In this paper, we investigate the space, time, and energy efficiency of SpMV using various compressed formats for large sparse matrices, focusing specifically on Boolean matrices and real-valued vectors. Through extensive analysis and experiments conducted on server and edge devices, we found that different matrix compression formats offer distinct trade-offs among space usage, execution time, and energy consumption. Notably, by employing the appropriate compressed format, we can reduce energy consumption by an order of magnitude on both server and single-board computers. Furthermore, our experiments indicate that while data parallelism can enhance execution speed and energy efficiency, achieving simultaneous time and energy efficiency presents partially distinct challenges. Specifically, we show that for certain compression schemes, the optimal degree of parallelism for time does not align with that for energy, thereby challenging prevailing assumptions about a straightforward linear correlation between execution time and energy consumption. Our results have significant implications for software engineers in all domains where SpMV operations are prevalent. They also suggest that similar studies exploring the trade-offs between time, space, and energy for other compressed data structures can substantially contribute to designing more energy-efficient software components.

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

↑