arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.08745cs.ARcs.MAcs.PF
收藏

ChatNeuroSim:一种用于自动计算在内存加速器部署和优化的LLM代理框架

ChatNeuroSim: An LLM Agent Framework for Automated Compute-in-Memory Accelerator Deployment and Optimization

Georgia Institute of Technology(佐治亚理工学院)

Ming-Yen Lee, Shimeng Yu

AI总结:

ChatNeuroSim是一种基于LLM的代理框架,用于自动部署和优化计算在内存加速器,通过设计空间修剪技术提升优化效率。

摘要:

计算在内存(CIM)架构已被广泛研究,用于通过减少内存与计算单元之间的数据传输开销来加速深度神经网络(DNN)。在传统CIM设计流程中,系统级CIM模拟器(如NeuroSim)被用于在不同硬件配置和DNN工作负载之间进行设计空间探索(DSE)。然而,CIM设计师需要投入大量精力来解读模拟器手册并理解复杂的参数依赖关系。此外,通常需要大量的设计-模拟迭代才能在硬件约束下确定最优的CIM配置。这些挑战严重延长了DSE周期并阻碍了快速的CIM部署。为了解决这些挑战,本文提出ChatNeuroSim,一种基于大型语言模型(LLM)的代理框架,用于自动CIM加速器的部署和优化。ChatNeuroSim自动化了整个CIM工作流程,包括任务调度、请求解析和调整、参数依赖性检查、脚本生成和模拟执行。它还集成了所提出的CIM优化器,使用设计空间修剪,从而能够快速识别不同DNN工作负载的最优配置。ChatNeuroSim在广泛的请求级测试平台上进行了评估,并展示了正确的模拟和优化行为,验证了其在自动请求解析和任务执行中的有效性。此外,所提出的设空间修剪技术相比无修剪基线加速了CIM优化过程。在优化Swin Transformer Tiny的案例研究中,所提出的CIM优化器在22nm工艺下实现了0.42×-0.79×的平均运行时间减少,相比相同的优化算法没有设计空间修剪。

英文摘要:

Compute-in-Memory (CIM) architectures have been widely studied for deep neural network (DNN) acceleration by reducing data transfer overhead between the memory and computing units. In conventional CIM design flows, system-level CIM simulators (such as NeuroSim) are leveraged for design space exploration (DSE) across different hardware configurations and DNN workloads. However, CIM designers need to invest substantial effort in interpreting simulator manuals and understanding complex parameter dependencies. Moreover, extensive design-simulation iterations are often required to identify optimal CIM configurations under hardware constraints. These challenges severely prolong the DSE cycle and hinder rapid CIM deployment. To address these challenges, this work proposes ChatNeuroSim, a large language model (LLM)-based agent framework for automated CIM accelerator deployment and optimization. ChatNeuroSim automates the entire CIM workflow, including task scheduling, request parsing and adjustment, parameter dependency checking, script generation, and simulation execution. It also integrates the proposed CIM optimizer using design space pruning, enabling rapid identification of optimal configurations for different DNN workloads. ChatNeuroSim is evaluated on extensive request-level testbenches and demonstrates correct simulation and optimization behavior, validating its effectiveness in automatic request parsing and task execution. Furthermore, the proposed design space pruning technique accelerates CIM optimization process compared to no-pruning baseline. In the case study optimizing Swin Transformer Tiny under 22 nm technology, the proposed CIM optimizer achieves a 0.42$\times$-0.79$\times$ average runtime reduction compared to the same optimization algorithm without design space pruning.

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

↑