arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.09159cs.AR
收藏

PIMCOMP:一种面向存内计算加速器的端到端DNN编译器

PIMCOMP: An End-to-End DNN Compiler for Processing-In-Memory Accelerators

Xiaotian Sun, Xinyu Wang, Wanqian Li, Yinhe Han, Xiaoming Chen

AI总结:

本文提出端到端DNN编译器PIMCOMP,通过抽象可配置模板与多级优化框架,解决PIM加速器部署中的资源利用与数据流调度问题,显著提升多架构下的吞吐量、延迟与能效。

摘要:

为了加速深度神经网络(DNN),人们已经提出了基于不同器件、微架构和接口的各种存内计算(PIM)加速器。如何将DNN部署到基于PIM的加速器上是探索PIM高性能和高能效的关键。DNN模型的规模、PIM加速器的多样性以及部署的复杂性远远超出了人工部署的能力。因此,一种自动化的部署方法是不可或缺的。在本工作中,我们提出了PIMCOMP,这是一种为PIM加速器量身定制的端到端DNN编译器,实现了DNN模型在PIM硬件上的高效部署。PIMCOMP通过使用具有一组伪指令的抽象可配置PIM加速器模板,能够适应各种PIM架构,该模板是对硬件基本功能的高层抽象。通过通用的多级优化框架,PIMCOMP实现了从高层DNN描述到伪指令的端到端转换,这些伪指令可以进一步转换为特定的硬件内联函数/原语。编译过程从系统角度解决了PIM加速推理中的两个关键问题:资源利用率和数据流调度。PIMCOMP采用灵活的展开格式来重塑和划分卷积层,采用权重布局引导的计算-存储-映射方法来提高资源利用率,并平衡系统的计算、内存访问和通信特性。对于数据流调度,我们设计了两种具有不同层间流水线粒度的调度算法,以支持不同的应用场景,同时确保高计算并行度。实验表明,PIMCOMP在各种架构上均提高了吞吐量、延迟和能效。PIMCOMP已在 https://github.com/sunxt99/PIMCOMP-NN 开源。

英文摘要:

Various processing-in-memory (PIM) accelerators based on various devices, micro-architectures, and interfaces have been proposed to accelerate deep neural networks (DNNs). How to deploy DNNs onto PIM-based accelerators is the key to explore PIM's high performance and energy efficiency. The scale of DNN models, the diversity of PIM accelerators, and the complexity of deployment are far beyond the human deployment capability. Hence, an automatic deployment methodology is indispensable. In this work, we propose PIMCOMP, an end-to-end DNN compiler tailored for PIM accelerators, achieving efficient deployment of DNN models on PIM hardware. PIMCOMP can adapt to various PIM architectures by using an abstract configurable PIM accelerator template with a set of pseudo-instructions, which is a high-level abstraction of the hardware's fundamental functionalities. Through a generic multi-level optimization framework, PIMCOMP realizes an end-to-end conversion from a high-level DNN description to pseudo-instructions, which can be further converted to specific hardware intrinsics/primitives. The compilation addresses two critical issues in PIM-accelerated inference from a system perspective: resource utilization and dataflow scheduling. PIMCOMP adopts a flexible unfolding format to reshape and partition convolutional layers, adopts a weight-layout guided computation-storage-mapping approach to enhance resource utilization, and balances the system's computation, memory access, and communication characteristics. For dataflow scheduling, we design two scheduling algorithms with different inter-layer pipeline granularities to support varying application scenarios while ensuring high computational parallelism. Experiments demonstrate that PIMCOMP improves throughput, latency, and energy efficiency across various architectures. PIMCOMP is open-sourced at \url{https://github.com/sunxt99/PIMCOMP-NN}.

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

↑