STAR:一种基于RRAM交叉阵列的注意力模型高效Softmax引擎
STAR: An Efficient Softmax Engine for Attention Model with RRAM Crossbar
AI总结:
针对现有RRAM存内加速器执行注意力模型时softmax运算拖慢效率的问题,提出STAR架构,利用RRAM特性设计专用softmax引擎与细粒度全局流水线,在精度与效率间权衡,实现了相较GPU和最新RRAM注意力加速器的显著效率提升。
摘要:
RRAM(阻变存储器)交叉阵列凭借原位计算能力,已被研究用于构建神经网络应用的存内加速器。然而,现有基于RRAM的加速器在执行主流注意力模型时会出现效率下降的问题。我们观察到,频繁的softmax运算成为效率瓶颈,且这类运算对计算精度不敏感。据此我们提出STAR,它通过一款高效的基于RRAM的softmax引擎,以及面向注意力模型的细粒度全局流水线来提升计算效率。具体而言,STAR利用RRAM交叉阵列的通用性与灵活性,在模型精度与硬件效率之间做权衡。在多个数据集上评估的实验结果表明,相较于GPU和当前最先进的基于RRAM的注意力加速器,STAR的计算效率分别最高提升了30.63倍和1.31倍。
英文摘要:
RRAM crossbars have been studied to construct in-memory accelerators for neural network applications due to their in-situ computing capability. However, prior RRAM-based accelerators show efficiency degradation when executing the popular attention models. We observed that the frequent softmax operations arise as the efficiency bottleneck and also are insensitive to computing precision. Thus, we propose STAR, which boosts the computing efficiency with an efficient RRAM-based softmax engine and a fine-grained global pipeline for the attention models. Specifically, STAR exploits the versatility and flexibility of RRAM crossbars to trade off the model accuracy and hardware efficiency. The experimental results evaluated on several datasets show STAR achieves up to 30.63x and 1.31x computing efficiency improvements over the GPU and the state-of-the-art RRAM-based attention accelerators, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。