arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.11780cs.ARcs.AI
收藏

CiMNet:面向存内计算硬件的DNN架构与配置联合优化

CiMNet: Towards Joint Optimization for DNN Architecture and Configuration for Compute-In-Memory Hardware

Intel Labs(英特尔实验室)

Souvik Kundu, Anthony Sarah, Vinay Joshi, Om J Omer, Sreenivas Subramoney

AI总结:

提出CiMNet框架,联合搜索最优子网络与存内计算硬件配置,生成帕累托前沿,相比仅优化模型,协同优化使ImageNet分类延迟降低3.1倍。

摘要:

随着近期对大规模深度神经网络需求的增长,存内计算(CiM)已成为缓解制约冯·诺依曼架构的带宽和片上互连瓶颈的重要解决方案。然而,CiM硬件的构建面临挑战,因为任何特定的存储器层次结构(如不同接口处的缓存大小和内存带宽)可能无法理想地匹配任何神经网络的属性(如张量维度和算术强度),从而导致系统性能次优且表现不佳。尽管神经架构搜索(NAS)技术在给定硬件指标预算(如DNN执行时间或延迟)下生成高效子网络方面取得了成功,但它假设硬件配置是固定的,往往在给定预算下产生次优的子网络。在本文中,我们提出CiMNet,一个联合搜索CiM架构的最优子网络和硬件配置的框架,创建下游任务准确性和执行指标(如延迟)的帕累托最优前沿。所提出的框架能够理解子网络性能与CiM硬件配置选择(包括带宽、处理单元大小和内存大小)之间的复杂相互作用。在CNN和Transformer家族的多种模型架构上进行的大量实验证明了CiMNet在寻找协同优化的子网络和CiM硬件配置方面的有效性。具体而言,对于与基线ViT-B相似的ImageNet分类准确率,仅优化模型架构可将性能提高(或减少工作负载执行时间)1.7倍,而同时优化模型架构和硬件配置则可将其提高3.1倍。

英文摘要:

With the recent growth in demand for large-scale deep neural networks, compute in-memory (CiM) has come up as a prominent solution to alleviate bandwidth and on-chip interconnect bottlenecks that constrain Von-Neuman architectures. However, the construction of CiM hardware poses a challenge as any specific memory hierarchy in terms of cache sizes and memory bandwidth at different interfaces may not be ideally matched to any neural network's attributes such as tensor dimension and arithmetic intensity, thus leading to suboptimal and under-performing systems. Despite the success of neural architecture search (NAS) techniques in yielding efficient sub-networks for a given hardware metric budget (e.g., DNN execution time or latency), it assumes the hardware configuration to be frozen, often yielding sub-optimal sub-networks for a given budget. In this paper, we present CiMNet, a framework that jointly searches for optimal sub-networks and hardware configurations for CiM architectures creating a Pareto optimal frontier of downstream task accuracy and execution metrics (e.g., latency). The proposed framework can comprehend the complex interplay between a sub-network's performance and the CiM hardware configuration choices including bandwidth, processing element size, and memory size. Exhaustive experiments on different model architectures from both CNN and Transformer families demonstrate the efficacy of the CiMNet in finding co-optimized sub-networks and CiM hardware configurations. Specifically, for similar ImageNet classification accuracy as baseline ViT-B, optimizing only the model architecture increases performance (or reduces workload execution time) by 1.7x while optimizing for both the model architecture and hardware configuration increases it by 3.1x.

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

↑