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

LIFT: 基于LLM的HLS Pragma插入——通过GNN监督微调

LIFT: LLM-Based Pragma Insertion for HLS via GNN Supervised Fine-Tuning

Computer Science Department, University of California - Los Angeles(加州大学洛杉矶分校计算机科学系)

Neha Prakriya, Zijian Ding, Yizhou Sun, Jason Cong

AI总结:

提出基于LLM的HLS编码助手LIFT,通过GNN监督微调自动生成优化pragma,结合LLM序列建模与GNN结构语义理解,性能显著超越AutoDSE、HARP和GPT-4o。

摘要:

FPGA因其可重构性和能效在数据中心环境中日益普及。高层次综合(HLS)工具将抽象级从RTL提升至无时间限制的C/C++,简化了FPGA编程,但实现高性能仍需专家知识及迭代手动插入优化pragma以修改微架构。为应对此挑战,我们提出LIFT,一个基于大语言模型(LLM)的HLS编码助手,能在给定C/C++设计时自动生成性能关键的pragma。我们通过图神经网络(GNN)紧密集成并监督训练过程来微调LLM,将LLM的序列建模能力与GNN对代码及其控制/数据依赖的结构和语义理解相结合。平均而言,LIFT生成的设计性能比现有最先进的AutoDSE和HARP分别提升3.52倍和2.16倍,比GPT-4o提升66倍。

英文摘要:

FPGAs are increasingly adopted in datacenter environments for their reconfigurability and energy efficiency. High-Level Synthesis (HLS) tools have eased FPGA programming by raising the abstraction level from RTL to untimed C/C++, yet attaining high performance still demands expert knowledge and iterative manual insertion of optimization pragmas to modify the microarchitecture. To address this challenge, we propose LIFT, a large language model (LLM)-based coding assistant for HLS that automatically generates performance-critical pragmas given a C/C++ design. We fine-tune the LLM by tightly integrating and supervising the training process with a graph neural network (GNN), combining the sequential modeling capabilities of LLMs with the structural and semantic understanding of GNNs necessary for reasoning over code and its control/data dependencies. On average, LIFT produces designs that improve performance by 3.52x and 2.16x than prior state-of the art AutoDSE and HARP respectively, and 66x than GPT-4o.

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

↑