arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.19824cs.ARcs.AIcs.SE
收藏

AnalogXpert:通过将电路设计专业知识融入大语言模型实现模拟拓扑综合自动化

AnalogXpert: Automating Analog Topology Synthesis by Incorporating Circuit Design Expertise into Large Language Models

School of Integrated Circuits, Peking University(集成电路学院,北京大学);Institute of EDA, Peking University(EDA研究院,北京大学);Beijing Advanced Innovation Center for Integrated Circuits(北京集成电路先进创新中心);Microsoft Research Asia(微软亚洲研究院)

Haoyi Zhang, Shizhao Sun, Yibo Lin, Runsheng Wang, Jiang Bian

AI总结:

针对现有大语言模型模拟拓扑综合方法与实际场景脱节的问题,提出融入电路设计专业知识的AnalogXpert智能体,通过SPICE代码表示、任务分解与校对策略,在合成及真实基准数据集上成功率远超GPT-4o。

摘要:

模拟电路在现代电子系统中至关重要,其设计自动化已吸引了大量研究兴趣。主要挑战之一是拓扑综合,即确定电路元件及其连接关系。近期研究探索了将大语言模型(LLM)用于拓扑综合,但这些研究针对的场景与实际应用契合度不高。具体而言,现有工作以模糊的设计需求为输入,输出理想模型,但详细的结构要求和器件级模型更具实用性。此外,当前方法要么将拓扑综合建模为图生成问题,要么建模为Python代码生成问题,而实际的拓扑设计是一个需要大量设计知识的复杂过程。\n在本研究中,我们提出了AnalogXpert,这是一种基于大语言模型的智能体,旨在通过将电路设计专业知识融入大语言模型来解决实际拓扑综合问题。首先,我们将模拟拓扑表示为SPICE代码,并引入子电路库以缩小设计空间,这一方式与经验丰富的设计师的做法一致。其次,我们通过使用思维链(CoT)和上下文学习技术,将问题分解为两个子任务(即模块选择和模块连接),以模拟实际设计流程。第三,我们引入了一种校对策略,让大语言模型能够逐步修正初始设计中的错误,类似于人类设计师反复检查和调整初始拓扑设计以确保准确性的做法。最后,我们构建了一个包含真实数据(30个)和合成数据(2000个)的高质量基准测试集。AnalogXpert在合成数据集和真实数据集上分别实现了40%和23%的成功率,显著优于GPT-4o(在合成数据集和真实数据集上均为3%)。

英文摘要:

Analog circuits are crucial in modern electronic systems, and automating their design has attracted significant research interest. One of major challenges is topology synthesis, which determines circuit components and their connections. Recent studies explore large language models (LLM) for topology synthesis. However, the scenarios addressed by these studies do not align well with practical applications. Specifically, existing work uses vague design requirements as input and outputs an ideal model, but detailed structural requirements and device-level models are more practical. Moreover, current approaches either formulate topology synthesis as graph generation or Python code generation, whereas practical topology design is a complex process that demands extensive design knowledge. In this work, we propose AnalogXpert, a LLM-based agent aiming at solving practical topology synthesis problem by incorporating circuit design expertise into LLMs. First, we represent analog topology as SPICE code and introduce a subcircuit library to reduce the design space, in the same manner as experienced designers. Second, we decompose the problem into two sub-task (i.e., block selection and block connection) through the use of CoT and incontext learning techniques, to mimic the practical design process. Third, we introduce a proofreading strategy that allows LLMs to incrementally correct the errors in the initial design, akin to human designers who iteratively check and adjust the initial topology design to ensure accuracy. Finally, we construct a high-quality benchmark containing both real data (30) and synthetic data (2k). AnalogXpert achieves 40% and 23% success rates on the synthetic dataset and real dataset respectively, which is markedly better than those of GPT-4o (3% on both the synthetic dataset and the real dataset).

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

↑