CPSAA:利用基于交叉阵列的存内计算架构加速稀疏注意力
CPSAA: Accelerating Sparse Attention using Crossbar-based Processing-In-Memory Architecture
AI总结:
针对现有稀疏注意力方案片外随机内存访问量大的问题,提出基于交叉阵列存内计算的CPSAA加速器,通过新型计算模式、剪枝架构和交叉阵列方法实现性能与能效的大幅提升。
摘要:
注意力机制需要耗费巨量计算资源处理不必要的运算,严重限制系统性能。研究人员提出稀疏注意力,将部分稠密-稠密矩阵乘法(DDMM)操作转换为稀疏-稠密矩阵乘法(SDDMM)和稀疏矩阵-稠密矩阵乘法(SpMM)操作,但现有稀疏注意力方案会产生大量片外随机内存访问。我们提出CPSAA,一种新型的基于交叉阵列、具备存内计算(PIM)特性的稀疏注意力加速器:首先提出一种新型注意力计算模式,其次设计一种新型的基于PIM的稀疏剪枝架构,最后提出多种基于交叉阵列的新方法。实验结果表明,与GPU、FPGA、SANGER、ReBERT和ReTransformer相比,CPSAA的性能平均分别提升89.6倍、32.2倍、17.8倍、3.39倍和3.84倍,能效平均分别提升755.6倍、55.3倍、21.3倍、5.7倍和4.9倍。
英文摘要:
The attention mechanism requires huge computational efforts to process unnecessary calculations, significantly limiting the system's performance. Researchers propose sparse attention to convert some DDMM operations to SDDMM and SpMM operations. However, current sparse attention solutions introduce massive off-chip random memory access. We propose CPSAA, a novel crossbar-based PIM-featured sparse attention accelerator. First, we present a novel attention calculation mode. Second, we design a novel PIM-based sparsity pruning architecture. Finally, we present novel crossbar-based methods. Experimental results show that CPSAA has an average of 89.6X, 32.2X, 17.8X, 3.39X, and 3.84X performance improvement and 755.6X, 55.3X, 21.3X, 5.7X, and 4.9X energy-saving when compare with GPU, FPGA, SANGER, ReBERT, and ReTransformer.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。