用大模型+电路专家经验自动设计模拟电路拓扑,准确率远超现有方法。
AnalogXpert: Automating Analog Topology Synthesis by Incorporating Circuit Design Expertise into Large Language Models
- 将电路拓扑表示为SPICE代码,用子电路库缩小设计空间。
- 分步解决模块选择与连接问题,模仿工程师设计流程。
- 引入纠错机制,像人一样迭代修改初始设计,提升成功率。
模拟电路在现代电子系统中至关重要,其自动化设计备受关注。拓扑生成是关键挑战,涉及元件及其连接方式的确定。现有研究多使用模糊的设计要求输入,输出理想化模型,但实际设计更依赖详细结构需求和器件级模型。当前方法或将其视为图生成,或视为Python代码生成,而真实设计过程需深厚专业知识。本文提出AnalogXpert,一个基于大语言模型的智能体,通过融入电路设计经验解决实际拓扑生成问题。首先,将模拟拓扑表示为SPICE代码,并引入子电路库以缩小设计空间,类比资深设计师做法。其次,利用思维链(CoT)和上下文学习技术,将问题分解为模块选择与模块连接两个子任务,模拟实际设计流程。第三,提出一种校对策略,使大模型可逐步修正初始设计错误,如同人类设计师不断检查调整。最后,构建包含30个真实数据与2000个合成数据的高质量基准。AnalogXpert在合成数据集上成功率达40%,真实数据集上达23%,显著优于GPT-4o(两者均为3%)。
原文摘要 · Abstract (English)
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).
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。