arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2110.14904cs.ARcs.AI
收藏

MERCURY:利用输入相似性加速DNN训练

MERCURY: Accelerating DNN Training By Exploiting Input Similarity

Texas A&M University(得克萨斯农工大学)

Vahid Janfaza, Kevin Weston, Moein Razavi, Shantanu Mandal, Farabi Mahmud, Alex Hilty, Abdullah Muzahid

摘要:

深度神经网络(DNN)是计算密集型的训练。它由许多权重和输入向量之间的大量多维点积组成。然而,在输入向量之间可能存在显著的相似性。如果一个输入向量与另一个输入向量相似,则其权重计算与另一个输入向量的权重计算相似,因此可以通过重用已经计算的结果来跳过。我们提出了一种名为MERCURY的新方案,用于在硬件加速器中的DNN训练期间利用输入相似性。MERCURY使用随机投影量化(RPQ)将输入向量转换为位序列,称为签名。高速缓存(MCACHE)存储最近输入向量的签名以及计算结果。如果新输入向量的签名与MCACHE中已经存在的向量的签名相匹配,则发现这两个向量具有相似性。因此,已经计算的结果被重新用于新向量。据我们所知,MERCURY是第一个利用RPQ来加速硬件中DNN训练的输入相似性的工作。本文介绍了MERCURY的详细设计、工作流程和实现。我们对12个不同的深度学习模型进行了实验评估,结果显示MERCURY节省了大量的计算,并将模型训练速度平均提高了1.97倍,准确度与基线系统相似。

英文摘要:

Deep Neural Networks (DNN) are computationally intensive to train. It consists of a large number of multidimensional dot products between many weights and input vectors. However, there can be significant similarity among input vectors. If one input vector is similar to another, its computations with the weights are similar to those of the other and, therefore, can be skipped by reusing the already-computed results. We propose a novel scheme, called MERCURY, to exploit input similarity during DNN training in a hardware accelerator. MERCURY uses Random Projection with Quantization (RPQ) to convert an input vector to a bit sequence, called Signature. A cache (MCACHE) stores signatures of recent input vectors along with the computed results. If the Signature of a new input vector matches that of an already existing vector in the MCACHE, the two vectors are found to have similarities. Therefore, the already-computed result is reused for the new vector. To the best of our knowledge, MERCURY is the first work that exploits input similarity using RPQ for accelerating DNN training in hardware. The paper presents a detailed design, workflow, and implementation of the MERCURY. Our experimental evaluation with twelve different deep learning models shows that MERCURY saves a significant number of computations and speeds up the model training by an average of 1.97X with an accuracy similar to the baseline system.

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

↑