arXiv:2504.05180cs.LGcs.AI2025-04被引 2

让大模型理解电路图数据,性能提升2到10倍

BRIDGES: Bridging Graph Modality and Large Language Models within EDA Tasks

  • 用大模型自动生成电路图数据,构建超大规模图数据集
  • 轻量级投影器让大模型直接用图结构信息,准确率提升2-10倍
  • 无需微调模型即可显著超越纯文本方法,适合EDA领域研究者

尽管许多电子设计自动化(EDA)任务涉及图结构数据,现有大语言模型(LLM)在EDA中要么将图表示为序列文本,要么忽略如RTL代码数据流图等有益的图信息。近期研究发现,将图转为文本会损害LLM性能,而引入图信息可显著提升效果。为此,我们提出BRIDGES框架,旨在将图模态融入LLM用于EDA任务。该框架包含自动数据生成流程、图与语言模型结合方案及全面评估体系。首先,建立基于LLM的自动化工作流,生成RTL和网表级数据,并转化为带函数描述的数据流图与网表图,形成包含超过50万张图实例和15亿以上词元的大规模数据集。其次,提出一种轻量级跨模态投影器,将图表示编码为兼容文本的提示,使LLM能有效利用图数据而无需修改架构。实验表明,在设计检索、类型预测和函数描述困惑度等任务上,相比纯文本基线,性能提升2至10倍,计算开销极小(模型参数增加<1%,运行时间额外开销<30%)。即使不进行额外微调,结果也远超纯文本方法。我们计划开源BRIDGES,包括数据集、模型与训练流程。

原文摘要 · Abstract (English)

While many EDA tasks already involve graph-based data, existing LLMs in EDA primarily either represent graphs as sequential text, or simply ignore graph-structured data that might be beneficial like dataflow graphs of RTL code. Recent studies have found that LLM performance suffers when graphs are represented as sequential text, and using additional graph information significantly boosts performance. To address these challenges, we introduce BRIDGES, a framework designed to incorporate graph modality into LLMs for EDA tasks. BRIDGES integrates an automated data generation workflow, a solution that combines graph modality with LLM, and a comprehensive evaluation suite. First, we establish an LLM-driven workflow to generate RTL and netlist-level data, converting them into dataflow and netlist graphs with function descriptions. This workflow yields a large-scale dataset comprising over 500,000 graph instances and more than 1.5 billion tokens. Second, we propose a lightweight cross-modal projector that encodes graph representations into text-compatible prompts, enabling LLMs to effectively utilize graph data without architectural modifications. Experimental results demonstrate 2x to 10x improvements across multiple tasks compared to text-only baselines, including accuracy in design retrieval, type prediction and perplexity in function description, with negligible computational overhead (<1% model weights increase and <30% additional runtime overhead). Even without additional LLM finetuning, our results outperform text-only by a large margin. We plan to release BRIDGES, including the dataset, models, and training flow.

EDA图神经网络大模型跨模态

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。