MPM-LLM4DSE: 在HLS中通过多模态学习和LLM驱动探索达到帕累托前沿
MPM-LLM4DSE: Reaching the Pareto Frontier in HLS with Multimodal Learning and LLM-Driven Exploration
AI总结:
本文提出 MPM-LLM4DSE 框架,结合多模态学习与大语言模型驱动探索,提升 HLS 设计空间探索的性能和效率。
摘要:
高阶综合(HLS)设计空间探索(DSE)旨在从庞大的 pragma 配置空间中找到帕累托最优设计。为了加速 HLS DSE,图神经网络(GNN)常被用作 HLS 工具的替代品,以预测结果质量(QoR)指标,而多目标优化算法则加速探索。然而,基于 GNN 的预测方法可能无法充分捕捉行为描述中丰富的语义特征,而传统多目标优化算法通常不明确考虑 pragma 指令对 QoR 的影响。为了解决这些限制,本文提出了 MPM-LLM4DSE 框架,该框架结合了多模态预测模型(MPM),该模型同时融合了行为描述和控制和数据流图的特征。此外,该框架采用大语言模型(LLM)作为优化器,并辅以定制的提示工程方法。该方法整合了 pragma 对 QoR 的影响分析,以指导 LLM 生成高质量配置(LLM4DSE)。实验结果表明,我们的多模态预测模型在性能上显著优于最先进的工作 ProgSG,最高可提升 10.25×。此外,在 DSE 任务中,所提出的 LLM4DSE 相比于先前方法平均性能提升 39.90%,验证了我们提示方法的有效性。代码和模型可在 https://github.com/wslcccc/MPM-LLM4DSE 上获得。
英文摘要:
High-Level Synthesis (HLS) design space exploration (DSE) seeks Pareto-optimal designs within expansive pragma configuration spaces. To accelerate HLS DSE, graph neural networks (GNNs) are commonly employed as surrogates for HLS tools to predict quality of results (QoR) metrics, while multi-objective optimization algorithms expedite the exploration. However, GNN-based prediction methods may not fully capture the rich semantic features inherent in behavioral descriptions, and conventional multi-objective optimization algorithms often do not explicitly account for the domain-specific knowledge regarding how pragma directives influence QoR. To address these limitations, this paper proposes the MPM-LLM4DSE framework, which incorporates a multimodal prediction model (MPM) that simultaneously fuses features from behavioral descriptions and control and data flow graphs. Furthermore, the framework employs a large language model (LLM) as an optimizer, accompanied by a tailored prompt engineering methodology. This methodology incorporates pragma impact analysis on QoR to guide the LLM in generating high-quality configurations (LLM4DSE). Experimental results demonstrate that our multimodal predictive model significantly outperforms state-of-the-art work ProgSG by up to 10.25$\times$. Furthermore, in DSE tasks, the proposed LLM4DSE achieves an average performance gain of 39.90\% over prior methods, validating the effectiveness of our prompting methodology. Code and models are available at https://github.com/wslcccc/MPM-LLM4DSE.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。