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

IndexMAC:一种自定义RISC-V向量指令以加速结构化稀疏矩阵乘法

IndexMAC: A Custom RISC-V Vector Instruction to Accelerate Structured-Sparse Matrix Multiplications

V. Titopoulos, K. Alexandridis, C. Peltekis, C. Nicopoulos, G. Dimitrakopoulos

AI总结:

本文提出一种自定义RISC-V向量索引-乘累加指令,利用结构化稀疏性加速矩阵乘法,集成于解耦向量处理器,硬件开销极小,相比最先进内核实现1.80x-2.14x加速。

摘要:

结构化稀疏性已被提出作为一种高效的方法,用于剪枝现代机器学习(ML)应用的复杂性,并简化硬件中稀疏数据的处理。ML模型(无论是训练还是推理)的加速主要依赖于等效的矩阵乘法,这些乘法可以在向量处理器或自定义矩阵引擎上高效执行。本工作的目标是将结构化稀疏性的简洁性融入向量执行中,从而加速相应的矩阵乘法。为实现这一目标,提出了一种新的向量索引-乘累加指令,该指令支持从向量寄存器文件进行低成本的间接读取。这减少了不必要的内存流量并提高了数据局部性。所提出的新指令被集成到一个解耦的RISC-V向量处理器中,硬件成本可忽略不计。广泛的评估表明,与最先进的向量化内核相比,在执行来自最先进卷积神经网络(CNN)的不同稀疏度层时,实现了显著的加速,加速比为1.80倍至2.14倍。

英文摘要:

Structured sparsity has been proposed as an efficient way to prune the complexity of modern Machine Learning (ML) applications and to simplify the handling of sparse data in hardware. The acceleration of ML models - for both training and inference - relies primarily on equivalent matrix multiplications that can be executed efficiently on vector processors or custom matrix engines. The goal of this work is to incorporate the simplicity of structured sparsity into vector execution, thereby accelerating the corresponding matrix multiplications. Toward this objective, a new vector index-multiply-accumulate instruction is proposed, which enables the implementation of lowcost indirect reads from the vector register file. This reduces unnecessary memory traffic and increases data locality. The proposed new instruction was integrated in a decoupled RISCV vector processor with negligible hardware cost. Extensive evaluation demonstrates significant speedups of 1.80x-2.14x, as compared to state-of-the-art vectorized kernels, when executing layers of varying sparsity from state-of-the-art Convolutional Neural Networks (CNNs).

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

↑