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

SimulatorCoder: 基于大语言模型的DNN加速器模拟器代码生成与优化

SimulatorCoder: DNN Accelerator Simulator Code Generation and Optimization via Large Language Models

College of Computer Science and Technology, National University of Defense Technology(计算机科学与技术学院,国防科技大学)

Yuhuan Xia, Tun Li, Hongji Zhou, Xianfa Zhou, Chong Chen, Ruiyu Zhang

AI总结:

SimulatorCoder利用大语言模型生成并优化DNN加速器模拟器代码,通过结构化提示和反馈机制提升代码准确性和模拟性能。

摘要:

本文提出了SimulatorCoder,一种由大语言模型(LLM)驱动的代理,旨在根据自然语言描述生成和优化深度神经网络(DNN)加速器模拟器。通过整合领域特定的提示工程,包括上下文学习(ICL)、思维链(CoT)推理以及多轮反馈验证流程,SimulatorCoder系统地将高层功能需求转化为高效、可执行且架构对齐的模拟器代码。基于定制的SCALE-Sim基准测试的实验表明,结构化提示和反馈机制显著提高了代码生成的准确性和模拟器性能。所得到的模拟器不仅在与手动实现的对照器相比误差小于1%的情况下保持了周期级的精度,而且一致地实现了更短的模拟运行时间,突显了基于LLM的方法在加速模拟器开发中的有效性。我们的代码可在https://github.com/xiayuhuan/SimulatorCoder上获得。

英文摘要:

This paper presents SimulatorCoder, an agent powered by large language models (LLMs), designed to generate and optimize deep neural network (DNN) accelerator simulators based on natural language descriptions. By integrating domain-specific prompt engineering including In-Context Learning (ICL), Chain-of-Thought (CoT) reasoning, and a multi-round feedback-verification flow, SimulatorCoder systematically transforms high-level functional requirements into efficient, executable, and architecture-aligned simulator code. Experiments based on the customized SCALE-Sim benchmark demonstrate that structured prompting and feedback mechanisms substantially improve both code generation accuracy and simulator performance. The resulting simulators not only maintain cycle-level fidelity with less than 1% error compared to manually implemented counterparts, but also consistently achieve lower simulation runtimes, highlighting the effectiveness of LLM-based methods in accelerating simulator development. Our code is available at https://github.com/xiayuhuan/SimulatorCoder.

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

↑