arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.21971cs.LGcs.SE
收藏

RocketPPA:通过 LLM 和混合专家模型实现代码级功耗、性能与面积预测

RocketPPA: Code-Level Power, Performance, and Area Prediction via LLM and Mixture of Experts

Department of Electrical and Computer Engineering(电气与计算机工程系)

Armin Abdollahi, Mehdi Kamal, Massoud Pedram

AI总结:

本文提出 RocketPPA,利用结合 MoE/MLP 与 LoRA 微调的 LLM 直接从 HDL 代码预测 PPA,并借助代码修复框架构建可综合数据集,在 VerilogEval 上显著提升准确率与推理速度。

摘要:

本文提出 RocketPPA,这是一种新颖的超快功耗、性能(延迟)和面积(PPA)估计器,直接在代码级抽象层运行,并以 HDL 代码作为输入。其关键技术创新是基于 LLM 的回归模型,该模型独特地将大型语言模型(LLM)与由多层感知机(MLP)组成的混合专家(MoE)架构相结合。LLM 解释输入的 HDL 代码,然后利用其最终隐藏层表示来预测 PPA 指标。低秩适配(LoRA)用于参数高效微调,以实现高效的 LLM 训练。此外,该工作还包括开发一个基于 LLM 的 HDL 代码修复框架,以生成大型且可综合的训练数据集。在 VerilogEval 基准上的实验结果表明,与 Llama3-MetRex-8B 等先前最先进方法相比,RocketPPA 在 PPA 估计准确性方面取得了显著提升。具体而言,在 10% 相对误差阈值下,RocketPPA 将面积预测的通过率提高了 13.6%,延迟提高了 9.4%,功耗提高了 14.7%。在 20% 阈值下,面积、延迟和功耗的提升分别为 9.6%、10.8% 和 18.5%。此外,在处理测试集时,RocketPPA 相比 MetRex 实现了超过 20 倍的加速,相比 MasterRTL 实现了超过 30 倍的加速。RocketPPA 的影响在于,它有潜力通过在设计周期早期提供准确的 PPA 估计来大幅加速硬件设计流程,从而避免人工特征工程和耗时综合流程的开销。

英文摘要:

This paper presents RocketPPA, a novel ultra-fast power, performance (delay), and area (PPA) estimator operating directly at the code-level abstraction using HDL code as input. The key technical innovation is its LLM-based regression model, which uniquely integrates a large language model (LLM) with a mixture-of-experts (MoE) architecture composed of multilayer perceptrons (MLPs). The LLM interprets the input HDL code and then utilizes its final hidden-layer representations to predict PPA metrics. Low-rank adaptation (LoRA) is used for parameter-efficient fine-tuning to enable efficient LLM training. Furthermore, the work includes the development of an LLM-based HDL code repair framework to generate a large and synthesizable training dataset. Experimental results on the VerilogEval benchmark demonstrate that RocketPPA achieves significant improvements in the accuracy of PPA estimation compared to previous state-of-the-art methods like Llama3-MetRex-8B. Specifically, at a 10% relative error threshold, RocketPPA enhances the pass rate for area prediction by 13.6%, delay by 9.4%, and power by 14.7%. At a 20% threshold, the improvements are 9.6% for area, 10.8% for delay, and 18.5% for power. Moreover, RocketPPA achieves a speedup of over 20x compared to MetRex and 30x over MasterRTL in processing the test set. The impact of RocketPPA is the potential to substantially accelerate the hardware design process by providing accurate PPA estimations early in the design cycle, thus avoiding the overhead of manual feature engineering and time-consuming synthesis flows.

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

↑