Masala-CHAI:利用AI构建的模拟电路大规模SPICE网表数据集
Masala-CHAI: A Large-Scale SPICE Netlist Dataset for Analog Circuits by Harnessing AI
AI总结:
本研究提出全自动化框架Masala-CHAI,通过三步工作流实现从电路原理图到SPICE网表的端到端生成,构建了含7500张原理图的数据集,微调后模型在AnalogCoder框架下Pass@1提升46%,相关资源已开源。
摘要:
Masala-CHAI是一个借助大语言模型(LLM)生成Simulation Programs with Integrated Circuit Emphasis(SPICE,集成电路重点仿真程序)网表的全自动化框架。它解决了电路设计自动化领域一个长期存在的挑战:模拟电路的网表生成自动化。实现该工作流的自动化能够加速用于模拟电路设计与验证的微调大语言模型的构建。在本研究中,我们明确了自动化网表生成的关键挑战,并评估了前沿大语言模型(尤其是GPT-4)应对这些挑战的多模态能力。我们提出了一个三步工作流来突破现有局限:模拟电路标注、提示调优和网表验证。该方法可从电路原理图图像实现端到端的SPICE网表生成,攻克了精准网表生成这一持续性难题。我们利用Masala-CHAI收集了包含7500张原理图的语料库,这些原理图来自10本教材,复杂度各异,同时我们还对多款开源和专有大语言模型进行了基准测试。在Masala-CHAI上微调后的模型应用于AnalogCoder等LLM智能体框架时,Pass@1指标取得了显著的46%提升。我们已开源数据集和代码,以推动社区共同开发。
英文摘要:
Masala-CHAI is a fully automated framework leveraging large language models (LLMs) to generate Simulation Programs with Integrated Circuit Emphasis (SPICE) netlists. It addresses a long-standing challenge in circuit design automation: automating netlist generation for analog circuits. Automating this workflow could accelerate the creation of fine-tuned LLMs for analog circuit design and verification. In this work, we identify key challenges in automated netlist generation and evaluate multimodal capabilities of state-of-the-art LLMs, particularly GPT-4, in addressing them. We propose a three-step workflow to overcome existing limitations: labeling analog circuits, prompt tuning, and netlist verification. This approach enables end-to-end SPICE netlist generation from circuit schematic images, tackling the persistent challenge of accurate netlist generation. We utilize Masala-CHAI to collect a corpus of 7,500 schematics that span varying complexities in 10 textbooks and benchmark various open source and proprietary LLMs. Models fine-tuned on Masala-CHAI when used in LLM-agentic frameworks such as AnalogCoder achieve a notable 46% improvement in Pass@1 scores. We open-source our dataset and code for community-driven development.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。