晨光
暗夜
晨光
极光
Bilingual Paper Reading · 中英对照精读

CktGen:基于生成式人工智能(Generative AI)的模拟电路自动设计

准大一 · 集成电路设计与集成系统 × 模拟电路 × AI 生成 —— 模拟电路自动设计精读材料
原文:arXiv:2410.00995 2024年10月1日发布 arXiv 预印本(cs.LG) 规格条件生成 × 变分自编码器 × 一对多映射 附英文摘要朗读音频

一、论文档案

英文标题CktGen: Automated Analog Circuit Design with Generative Artificial Intelligence
中文标题CktGen:基于生成式人工智能(Generative AI)的模拟电路自动设计
作者Yuxuan Hou, Hehe Fan, Jianrong Zhang, Yue Zhang, Hua Chen, Min Zhou, Faxin Yu, Roger Zimmermann, Yi Yang(机构未在素材中标注)
发布时间2024年10月1日(v1)|分类:cs.LG(机器学习)
一句话概括把「给定性能规格 → 生成能用的模拟电路」重新定义成生成任务:用一个变分自编码器把「规格」和「电路」映射进同一个潜空间,让一个规格可以对应多个合法电路,并能在不重新训练的情况下搜索满足新需求的电路。
💡 为什么选这篇给你:① 模拟电路设计是集成电路里最依赖「老师傅经验」的环节,自动化需求极强;② 思路新——把设计从「单目标优化」升级为「规格条件生成」,核心思想用文字就能读懂;③ 论文开源(GitHub 有源码与模型权重),可复现、可上手;④ 直接命中「AI for EDA」这一芯片设计前沿方向。

二、核心术语表(先扫一遍再读正文)

英文术语中文大白话解释
analog circuit synthesis模拟电路综合从性能规格出发自动设计模拟电路的整个过程,包括拓扑选择与器件尺寸两大任务。
topology selection拓扑选择决定电路用什么结构——几级放大、什么反馈形式、管子怎么连接。
device sizing器件尺寸设计决定每个晶体管/电阻/电容的尺寸参数,让电路性能达标。
specification-conditioned generation规格条件生成输入目标性能规格(如增益、带宽、相位裕度),直接生成满足该规格的电路——本文提出的新任务。
variational autoencoder (VAE)变分自编码器一种生成模型:把输入压缩成低维潜向量(编码),再从潜向量重构出输出(解码)。
joint latent space联合潜空间电路与规格共享的低维表示空间,二者在其中被对齐、可比。
one-to-many mapping一对多映射同一个规格可能对应多个「都合法」的电路,模型要能生成多样的结果,而不是只给唯一答案。
contrastive training对比训练拉近同类样本、推开异类样本的训练方式,让编码器把「不同规格的电路」区分开。
classifier guidance分类器引导用分类器的信息引导生成过程,让生成的电路聚集到它所归属的规格类附近。
figure of merit (FoM)品质因数一个综合指标,量化增益、带宽、相位裕度等规格之间的整体折中好坏。
gain / bandwidth / phase margin增益 / 带宽 / 相位裕度放大器最核心的三项性能规格,本文把它们离散成区间类作为生成条件。
Bayesian multi-armed bandit (MAB)贝叶斯多臂老虎机一种在线搜索策略:在「探索新区域」与「利用已知好区域」之间权衡,迭代逼近最优解。
surrogate model代理模型用机器学习模型快速评估电路性能,代替昂贵的 SPICE 仿真。
Recon-Acc重构准确率衡量「从潜向量重构出的电路与原始电路是否一致」的指标。
EDA电子设计自动化Electronic Design Automation,用软件工具辅助芯片设计的行业总称。

三、摘要中英对照(精读核心)

🎧 音频在文末,可先听一遍原文再读;每个英文句都配了逐句翻译。

摘要 Abstract

EN · 原文
The automatic synthesis of analog circuits presents significant challenges.
CN · 翻译
模拟电路的自动综合面临重大挑战。
EN · 原文
Most existing approaches formulate the problem as a single-objective optimization task, overlooking that design specifications for a given circuit type vary widely across applications.
CN · 翻译
大多数现有方法把问题写成单目标优化任务,却忽略了:同一类电路的设计规格在不同应用里差异很大
EN · 原文
To address this, we introduce specification-conditioned analog circuit generation, a task that directly generates analog circuits based on target specifications.
CN · 翻译
为此,我们提出规格条件模拟电路生成——一个直接根据目标规格生成模拟电路的新任务。
EN · 原文
The motivation is to leverage existing well-designed circuits to improve automation in analog circuit design.
CN · 翻译
动机是利用已有的优秀电路设计,来提高模拟电路设计的自动化水平。
EN · 原文
Specifically, we propose CktGen, a simple yet effective variational autoencoder that maps discretized specifications and circuits into a joint latent space and reconstructs the circuit from that latent vector.
CN · 翻译
具体地,我们提出 CktGen——一个简单而有效的变分自编码器:把离散化的规格与电路映射进联合潜空间,再从该潜向量重构出电路。
EN · 原文
Notably, as a single specification may correspond to multiple valid circuits, naively fusing specification information into the generative model does not capture these one-to-many relationships.
CN · 翻译
值得注意的是:一个规格可能对应多个合法电路,若只是把规格信息朴素地「融合」进生成模型,学不到这种一对多关系
EN · 原文
To address this, we decouple the encoding of circuits and specifications and align their mapped latent space.
CN · 翻译
为此,我们把电路的编码与规格的编码解耦,并对其映射后的潜空间进行对齐。
EN · 原文
Then, we employ contrastive training with a filter mask to maximize differences between encoded circuits and specifications.
CN · 翻译
然后,我们采用带滤波掩码的对比训练,最大化「编码后的电路」与「编码后的规格」之间的差异。
EN · 原文
Furthermore, classifier guidance along with latent feature alignment promotes the clustering of circuits sharing the same specification, avoiding model collapse into trivial one-to-one mappings.
CN · 翻译
此外,分类器引导配合潜特征对齐,促使共享同一规格的电路聚成簇,避免模型坍缩成平庸的一对一映射
EN · 原文
By canonicalizing the latent space with respect to specifications, we can search for an optimal circuit that meets valid target specifications.
CN · 翻译
通过把潜空间按规格规范化(canonicalize),我们就可以搜索出满足合法目标规格的最优电路。
EN · 原文
We conduct comprehensive experiments on the open circuit benchmark and introduce metrics to evaluate cross-model consistency.
CN · 翻译
我们在开源电路基准上做了全面实验,并引入评价跨模型一致性的指标。
EN · 原文
Experimental results demonstrate that CktGen achieves substantial improvements over state-of-the-art methods.
CN · 翻译
实验结果表明,CktGen 相比最先进方法(SOTA)取得了实质性提升

关键词 Keywords(编者提炼):Analog Circuit Design 模拟电路设计 | Generative AI 生成式人工智能 | Specification-Conditioned Generation 规格条件生成 | Variational Autoencoder 变分自编码器 | Contrastive Learning 对比学习

四、引言精选(为什么这个问题重要)

① 模拟电路设计:劳动密集、依赖专家直觉

EN · 原文
Analog circuits are essential for processing continuous signals, but their design remains labor-intensive and highly dependent on expert intuition. Automated design aims to bridge this gap by directly mapping target specifications to viable circuit implementations. Despite the apparent correspondence between specifications and realizable circuits, modeling this complex, high-dimensional mapping remains a major challenge. As circuit complexity grows, there is an urgent need for automated tools to accelerate the analog design process.
CN · 翻译
模拟电路对处理连续信号至关重要,但其设计仍劳动密集、高度依赖专家直觉。自动设计的目的是弥合这一差距:直接把目标规格映射为可实现的电路。尽管规格与可实现电路之间存在明显的对应关系,建模这种复杂的高维映射仍是重大挑战。随着电路复杂度增长,业界迫切需要自动化工具来加速模拟设计流程。

② 两大任务与主流思路:把综合当成优化问题

EN · 原文
Analog circuit synthesis involves two principal tasks: topology selection and device sizing [28]. The objective of analog circuit synthesis is to ensure that the circuit meets the target specifications and achieves better trade-offs among them. Most previous studies treat analog circuit synthesis as an optimization problem [34, 56, 67]. One optimization goal is to maximize the figure of merit (FoM), a metric that quantifies the overall trade-offs between circuit specifications (such as gain, bandwidth, and phase margin) within given constraints [38, 74, 20]. Another optimization objective is to ensure that the performance of the synthesized circuits meets the target specifications [68, 55]. Existing approaches can be broadly categorized as knowledge-based [8, 19], learning-based [74, 33], and simulation-based methods [84, 14].
CN · 翻译
模拟电路综合包含两大任务:拓扑选择器件尺寸设计。综合的目标是保证电路满足目标规格,并在各规格之间取得更好的折中。大多数以往研究把综合当作优化问题:一个目标是最大化品质因数(FoM)——在给定约束下量化增益、带宽、相位裕度等规格整体折中的指标;另一个目标是保证综合出的电路性能满足目标规格。现有方法大致可分为基于知识、基于学习、基于仿真三类。

③ 传统方法的局限:难扩展、结果难预测、开销大

EN · 原文
Knowledge-based approaches use domain rules [68, 8] or analytical models [19, 31], perform well for simple circuits [17, 83, 51] but do not scale to more complex designs. To improve scalability, heuristic algorithms have been applied to automate both topology generation [18, 53, 54, 63] and device sizing [29, 73]. However, such methods are highly dependent on initialization and the performance is often unpredictable. More recently, machine learning has enabled new progress. Graph-based generative models [48] and reinforcement learning [33, 84] allow more efficient circuit exploration, while Bayesian optimization [49, 82] and surrogate models [20, 41, 4, 62] help reduce reliance on expensive simulations. While simulation-based methods using tools such as simulation program with integrated circuit emphasis (SPICE) [57] remain the standard for accuracy, they are computationally costly and are often combined with faster learning or heuristic models [24].
CN · 翻译
基于知识的方法(领域规则、解析模型)在简单电路上表现好,但难以扩展到更复杂的设计。启发式算法能自动化拓扑生成与器件尺寸,但高度依赖初始化、性能常常不可预测。近年机器学习带来新进展:图生成模型与强化学习让电路探索更高效,贝叶斯优化与代理模型降低了对昂贵仿真的依赖。基于 SPICE 等工具的仿真方法在精度上仍是标准,但计算成本高,常与更快的学习或启发式模型结合使用。

④ 最关键的局限:只能处理少数「手工预定义」的规格

EN · 原文
A key limitation of current approaches is their reliance on a small number of manually predefined specification settings. Most methods either explicitly optimize for these fixed target cases or only focus on maximizing the FoM [20, 84, 14, 48]. In practice, design requirements often shift, requiring new specifications even for the same circuit type. Existing methods can only address a limited set of predefined target cases and require additional training or complete re-optimization when specifications change, severely restricting their generalization and flexibility.
CN · 翻译
现有方法的一个关键局限是依赖少量手工预定义的规格设定:要么显式优化这些固定目标,要么只追求最大化 FoM。而实践中设计需求常常变化,即使同一类电路也需要新的规格。现有方法只能处理有限的预定义目标,规格一变就要重新训练或整体重新优化,严重限制了泛化性与灵活性。
💡 这是全文最有味道的一句"In practice, design requirements often shift, requiring new specifications even for the same circuit type."——需求会变,这正是把「优化」改成「生成」的根本原因:与其为每个新规格重新优化一遍,不如学一个「给规格就出电路」的生成器。

五、论文贡献(3 个要点)

EN · 原文
1. A new task. To address this, we introduce specification-conditioned analog circuit generation, a task that directly generates analog circuits based on target specifications.
CN · 翻译
1. 提出新任务。定义「规格条件模拟电路生成」:直接根据目标规格生成模拟电路,把设计从「对固定目标做优化」变为「对任意规格做生成」。
EN · 原文
2. Decoupled encoding for one-to-many mapping. Specifically, we propose CktGen, a simple yet effective variational autoencoder that maps discretized specifications and circuits into a joint latent space and reconstructs the circuit from that latent vector. To address this, we decouple the encoding of circuits and specifications and align their mapped latent space. Then, we employ contrastive training with a filter mask to maximize differences between encoded circuits and specifications.
CN · 翻译
2. 解耦编码,学到一对多映射。提出 CktGen 变分自编码器,把离散规格与电路映射进联合潜空间;通过解耦电路/规格编码 + 潜空间对齐 + 带掩码的对比训练,让同一个规格能对应多个多样而合法的电路。
EN · 原文
3. Anti-collapse and test-time optimization. Furthermore, classifier guidance along with latent feature alignment promotes the clustering of circuits sharing the same specification, avoiding model collapse into trivial one-to-one mappings. MAB-based test-time optimization enables efficient search for high-performance circuits that meet target specifications while obtaining higher FoM, demonstrating significant improvements in automated design tasks.
CN · 翻译
3. 防模型坍缩 + 测试时优化。分类器引导与潜特征对齐避免模型坍缩成一对一的平庸映射;基于多臂老虎机(MAB)的测试时优化无需重新训练即可高效搜索满足目标规格、且 FoM 更高的高性能电路。

六、结论中英对照

EN · 原文
We have demonstrated that specification-conditioned generative modeling effectively maps performance requirements to diverse and valid analog circuit implementations. Through joint representation learning, CktGen learns robust one-to-many mappings that enable flexible adaptation to changing design requirements without retraining, achieving superior performance in specification-conditioned generation compared with existing methods.
CN · 翻译
我们证明了规格条件的生成式建模能有效把性能需求映射为多样且合法的模拟电路实现。通过联合表示学习,CktGen 学到了稳健的一对多映射,能在不重新训练的情况下灵活适应变化的设计需求,在规格条件生成上取得了优于现有方法的性能。
EN · 原文
MAB-based test-time optimization enables efficient search for high-performance circuits that meet target specifications while obtaining higher FoM, demonstrating significant improvements in automated design tasks. CktGen also achieves high Recon-Acc and validity in unconditional generation tasks.
CN · 翻译
基于 MAB 的测试时优化能高效搜索满足目标规格、FoM 更高的高性能电路,在自动设计任务上展现了显著提升;CktGen 在无条件下生成任务中也取得了高重构准确率(Recon-Acc)和高合法性(validity)
EN · 原文
While the current approach demonstrates promising results, future work should address limitations, including fine-grained circuit behaviors, generalization to broader circuit types, and integration with industrial EDA workflows. By reformulating analog circuit synthesis as a conditional generation problem, this work establishes a new paradigm that overcomes the flexibility limitations of traditional optimization-based approaches, positioning generative artificial intelligence as a transformative tool for accelerating analog design automation.
CN · 翻译
当前方法结果可喜,但未来工作仍需解决局限:细粒度电路行为、向更广电路类型的泛化、以及与工业 EDA 流程的集成。通过把模拟电路综合重新表述为条件生成问题,本文建立了新范式,克服了传统优化方法的灵活性局限,把生成式人工智能定位为加速模拟设计自动化的变革性工具。

七、编者解读:这篇论文到底讲了什么(大白话版)

  1. 问题:模拟电路设计又难又慢——同一个运放,不同客户要的增益/带宽/相位裕度都不一样。老方法都是「针对一个固定目标去优化」,换个需求就得从头再来。
  2. 核心转变:把「优化」换成「生成」。学一个生成器:你给我性能规格,我直接吐电路。规格是「条件」,电路是「输出」——这就是规格条件生成。
  3. 难点:一个规格可能对应一堆不同的合法电路(一对多)。如果简单地把规格塞进模型,模型会偷懒学成「一个规格只给一个电路」(模型坍缩),多样性就没了。CktGen 的办法:电路和规格分开编码再对齐,用对比训练拉开差别,用分类器引导让同类电路聚在一起。
  4. 用到的时候:设计需求变了?不用重新训练——潜空间已经按规格排好序了,直接在潜空间里搜索(MAB 优化),找到满足新规格的最优电路。
  5. 结果与边界:在开源电路基准上全面超过 SOTA,还有开源代码可复现;作者自己承认的局限是细粒度电路行为、更广电路类型和工业 EDA 集成——这就是下一篇论文的入场券。
🎯 对专业学习的启示:这篇论文示范了「AI 怎么啃下芯片设计里最难啃的硬骨头」。复试或面试时若能讲出「为什么一对多映射难学、解耦编码+对比训练为什么能解决它、测试时优化怎么省掉重训练」,比背几个模型名词更能打动老师。另外注意:FoM、相位裕度这些术语本身来自模拟电路课,说明懂电路才能做 AI for EDA——专业基础课千万别丢。

八、给准大一的阅读路线图 & 延伸方向

📖 怎么读这篇论文(三遍法)

  1. 第一遍(10 分钟):只读摘要和术语表,回答三个问题——问题是什么?方法是什么?结果是什么?记住「一个规格 → 多个电路」这句话。
  2. 第二遍(20 分钟):读引言 + 结论,重点体会「为什么优化范式不够用」以及「结论承认的三个局限(细粒度行为、泛化、EDA 集成)」。
  3. 第三遍(30 分钟):读方法文字部分(联合表示学习、对比训练、分类器引导、MAB 测试时优化),跳过所有公式和编号,只看文字描述;遇到不懂的术语回查术语表。

🚀 这个方向你能延伸做什么

九、英文摘要朗读(练听力用)

先盲听一遍→再看对照稿→再听一遍。目标是听出每个术语(specification-conditioned、variational autoencoder、contrastive training、one-to-many)和句子主干(we propose / we introduce / we employ)。