面向仅CAM深度神经网络推理的全栈优化
Full-Stack Optimization for CAM-Only DNN Inference
AI总结:
本文提出一种全栈优化方法,将三值权重神经网络与基于赛道存储器的关联处理器结合,通过降低算术强度的编译流程优化卷积,在保持软件准确率的同时将ResNet-18推理能效提升7.5倍。
摘要:
过去几年,神经网络在各个领域的准确率都有了显著提升。然而,其日益增长的复杂性导致在冯·诺依曼体系结构中产生过高的能耗和延迟。最近提出了几种存内计算(CIM)系统来克服这一问题,但在准确率、硬件可靠性和大规模模型的可扩展性之间的权衡仍然是一个挑战。此外,对于某些CIM设计,激活数据的移动仍然需要相当多的时间和能量。本文探索了将三值权重神经网络的算法优化与使用赛道存储器(RTM)实现的关联处理器(APs)相结合。我们提出了一种新颖的编译流程,通过降低APs上卷积运算的算术强度来优化卷积。通过利用基于RTM的APs的优势,该方法大幅减少了存储器内部的数据传输,同时解决了准确率、能效和可靠性问题。具体而言,与交叉开关存内加速器相比,我们的方案在保持软件准确率的同时,将ImageNet上ResNet-18推理的能效提高了7.5倍。
英文摘要:
The accuracy of neural networks has greatly improved across various domains over the past years. Their ever-increasing complexity, however, leads to prohibitively high energy demands and latency in von Neumann systems. Several computing-in-memory (CIM) systems have recently been proposed to overcome this, but trade-offs involving accuracy, hardware reliability, and scalability for large models remain a challenge. Additionally, for some CIM designs, the activation movement still requires considerable time and energy. This paper explores the combination of algorithmic optimizations for ternary weight neural networks and associative processors (APs) implemented using racetrack memory (RTM). We propose a novel compilation flow to optimize convolutions on APs by reducing their arithmetic intensity. By leveraging the benefits of RTM-based APs, this approach substantially reduces data transfers within the memory while addressing accuracy, energy efficiency, and reliability concerns. Concretely, our solution improves the energy efficiency of ResNet-18 inference on ImageNet by 7.5x compared to crossbar in-memory accelerators while retaining software accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。