arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2503.05951cs.ARcs.AI
收藏

TPU-Gen:基于大语言模型驱动的定制张量处理单元生成器

TPU-Gen: LLM-Driven Custom Tensor Processing Unit Generator

New Jersey Institute of Technology(新泽西理工学院);University of South Carolina(南卡罗来纳大学)

Deepak Vungarala, Mohammed E. Elbtity, Sumiya Syed, Sakila Alam, Kartik Pandit, Arnob Ghosh, Ramtin Zand, Shaahin Angizi

AI总结:

TPU-Gen是首个基于大语言模型的TPU自动生成框架,结合开源数据集与检索增强生成技术,将高层架构规格转化为低层实现,在面积和功耗上相比人工优化平均降低92%和96%。

摘要:

深度神经网络(DNN)日益增长的复杂性和规模使得专用张量加速器(如张量处理单元,TPU)成为满足各种计算和能效需求的必要手段。然而,由于领域专业门槛高、人工设计时间可观,以及缺乏高质量的领域专用数据集,设计最优TPU仍然具有挑战性。本文提出TPU-Gen,这是首个基于大语言模型(LLM)的框架,旨在自动化精确和近似TPU生成过程,并聚焦于脉动阵列架构。TPU-Gen依托一个精心整理、全面且开源的数据集,该数据集覆盖广泛的空间阵列设计和近似乘累加单元,支持面向不同DNN工作负载的设计复用、适配和定制。所提出的框架利用检索增强生成(RAG)作为在数据稀缺的硬件领域构建LLM的有效方案,以解决最引人关注的问题——幻觉。TPU-Gen通过高效的硬件生成流水线,将高层架构规格转化为优化的低层实现。我们广泛的实验评估表明其在性能、功耗和面积效率方面具有优越表现,面积和功耗相比人工优化参考值平均降低92%和96%。这些结果为推动由LLM驱动的新一代设计自动化工具的发展设立了新标准。

英文摘要:

The increasing complexity and scale of Deep Neural Networks (DNNs) necessitate specialized tensor accelerators, such as Tensor Processing Units (TPUs), to meet various computational and energy efficiency requirements. Nevertheless, designing optimal TPU remains challenging due to the high domain expertise level, considerable manual design time, and lack of high-quality, domain-specific datasets. This paper introduces TPU-Gen, the first Large Language Model (LLM) based framework designed to automate the exact and approximate TPU generation process, focusing on systolic array architectures. TPU-Gen is supported with a meticulously curated, comprehensive, and open-source dataset that covers a wide range of spatial array designs and approximate multiply-and-accumulate units, enabling design reuse, adaptation, and customization for different DNN workloads. The proposed framework leverages Retrieval-Augmented Generation (RAG) as an effective solution for a data-scare hardware domain in building LLMs, addressing the most intriguing issue, hallucinations. TPU-Gen transforms high-level architectural specifications into optimized low-level implementations through an effective hardware generation pipeline. Our extensive experimental evaluations demonstrate superior performance, power, and area efficiency, with an average reduction in area and power of 92\% and 96\% from the manual optimization reference values. These results set new standards for driving advancements in next-generation design automation tools powered by LLMs.

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

↑