arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.15896cs.ARcs.DCcs.LG
收藏

WWW: 存内计算的类型、时机与位置选择

WWW: What, When, Where to Compute-in-Memory

Tanvi Sharma, Mustafa Ali, Indranil Chakraborty, Kaushik Roy

AI总结:

针对存内计算(CiM)加速机器学习推理时的类型、时机、位置选择问题,提出搭配定制映射算法的分析性架构评估方法,验证了其在类张量核心架构缓存中集成的能效与吞吐量提升效果。

摘要:

矩阵乘法是机器学习(ML)推理过程中的主导计算。为高效执行这类乘法运算,存内计算(Compute-in-memory, CiM)范式已成为一种高能效解决方案。然而,将计算集成到存储器中带来了关键问题,例如:1)使用何种类型的CiM:鉴于CiM设计特性的多样性,需要从架构角度确定它们的适用性。2)何时使用CiM:ML推理包含具有多种内存和计算需求的工作负载,使得难以确定CiM何时比标准处理核心更具优势。3)在何处集成CiM:每个内存层级具有不同的带宽和容量,为CiM集成创造了不同的数据复用机会。\n 为解答这些关于加速ML工作负载的片上CiM集成问题,我们采用了一种分析性架构评估方法,并搭配定制的映射算法。该映射算法旨在为给定的CiM原型和工作负载实现最高的权重复用并减少数据移动。我们的分析考虑了将CiM原型集成到类张量核心架构的缓存层级中,结果表明,与采用INT-8精度的既定基线相比,集成CiM的存储器将能效提升了最高3.4倍,吞吐量提升了最高15.6倍。我们认为,这项工作为选择何种类型的CiM,以及在缓存层级中何时、何地最优集成CiM以实现高效矩阵乘法提供了见解。

英文摘要:

Matrix multiplication is the dominant computation during Machine Learning (ML) inference. To efficiently perform such multiplication operations, Compute-in-memory (CiM) paradigms have emerged as a highly energy efficient solution. However, integrating compute in memory poses key questions, such as 1) What type of CiM to use: Given a multitude of CiM design characteristics, determining their suitability from architecture perspective is needed. 2) When to use CiM: ML inference includes workloads with a variety of memory and compute requirements, making it difficult to identify when CiM is more beneficial than standard processing cores. 3) Where to integrate CiM: Each memory level has different bandwidth and capacity, creating different data reuse opportunities for CiM integration. To answer such questions regarding on-chip CiM integration for accelerating ML workloads, we use an analytical architecture-evaluation methodology with tailored mapping algorithm. The mapping algorithm aims to achieve highest weight reuse and reduced data movements for a given CiM prototype and workload. Our analysis considers the integration of CiM prototypes into the cache levels of a tensor-core-like architecture, and shows that CiM integrated memory improves energy efficiency by up to 3.4x and throughput by up to 15.6x compared to established baseline with INT-8 precision. We believe the proposed work provides insights into what type of CiM to use, and when and where to optimally integrate it in the cache hierarchy for efficient matrix multiplication.

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

↑