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

MatRox:用于改进分层(Mat)rix App(Rox)仿真中数据局部性的模块化方法

MatRox: Modular approach for improving data locality in Hierarchical (Mat)rix App(Rox)imation

Bangtian Liu, Kazem Cheshmi, Saeed Soori, Michelle Mills Strout, Maryam Mehri Dehnavi

摘要:

分层矩阵近似在机器学习和科学界获得了显著的吸引力,因为它们利用内核方法中可用的低秩结构来压缩内核矩阵。所得到的压缩矩阵HMatrix用于在评估阶段中以可调精度降低诸如HMatrix矩阵乘法的运算的计算复杂性。现有的实现HMatrix评估不保持局部性,往往会导致不平衡的并行执行与高同步。此外,如果内核方法或所需的精度发生变化,当前的解决方案需要重新执行压缩阶段。在这项工作中,我们描述了MatRox,一个框架,使用新的结构分析策略,块和粗化,代码专业化和存储格式,以提高本地化和创建负载平衡的并行任务HMatrix矩阵乘法。当输入精度和核函数发生变化时,矩阵压缩阶段的模块化可以重用计算。MatRox生成的矩阵-矩阵乘法代码分别比GOFMM、SMASH和STRUMPACK中的库实现快2.98倍、1.60倍和5.98倍。此外,MatRox能够重复使用部分压缩计算来更改精度,这比使用GOFMM更改5次精度提高了2.64倍。

英文摘要:

Hierarchical matrix approximations have gained significant traction in the machine learning and scientific community as they exploit available low-rank structures in kernel methods to compress the kernel matrix. The resulting compressed matrix, HMatrix, is used to reduce the computational complexity of operations such as HMatrix-matrix multiplications with tuneable accuracy in an evaluation phase. Existing implementations of HMatrix evaluations do not preserve locality and often lead to unbalanced parallel execution with high synchronization. Also, current solutions require the compression phase to re-execute if the kernel method or the required accuracy change. In this work, we describe MatRox, a framework that uses novel structure analysis strategies, blocking and coarsen, with code specialization and a storage format to improve locality and create load-balanced parallel tasks for HMatrix-matrix multiplications. Modularization of the matrix compression phase enables the reuse of computations when there are changes to the input accuracy and the kernel function. The MatRox-generated code for matrix-matrix multiplication is 2.98x, 1.60x, and 5.98x faster than library implementations available in GOFMM, SMASH, and STRUMPACK respectively. Additionally, the ability to reuse portions of the compression computation for changes to the accuracy leads to up to 2.64x improvement with MatRox over five changes to accuracy using GOFMM.

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

↑