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

基于 Dyna 风格强化学习的模拟电路设计

准大一 · 集成电路设计与集成系统 × EDA × AI+芯片 —— 模拟电路自动化设计精读材料
原文:arXiv:2011.07665 2020年11月16日发布 arXiv 预印本(cs.LG) 模拟电路设计 × 强化学习 × 样本效率 附英文摘要朗读音频

一、论文档案

英文标题Analog Circuit Design with Dyna-Style Reinforcement Learning
中文标题基于 Dyna 风格强化学习的模拟电路设计
作者李旭, 弗兰斯·A·奥利霍克(机构未在素材中标注)
发布时间2020年11月16日(v1)|分类:cs.LG(机器学习)
一句话概括模拟电路设计靠工程师手工调参、仿真验证,慢且贵。本文提出 DynaOpt:用神经网络奖励模型替代昂贵的电路仿真、用随机策略生成器探索多样化可行解空间,两件套拼成 Dyna 式优化框架——在两级运算放大器基准上,只用 500 次仿真就超过了无模型方法用 20,000 次仿真才能达到的性能。
💡 为什么选这篇给你:① 模拟电路设计是集成电路专业「最像手艺活」的环节——本文示范 AI 如何把「仿真调参」从 20,000 次压缩到 500 次,故事极度直观;② 方法不挑领域——奖励模型 + 随机策略的 Dyna 式组合是「仿真昂贵型优化问题」的通用解法,学会了能迁移到任何工程优化;③ 涉及的两级运放(two-stage op-amp)是模拟电路课程必学的经典结构,读完论文正好衔接课本知识。

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

英文术语中文大白话解释
analog circuit design模拟电路设计设计放大器、滤波器等处理连续信号的电路,靠调晶体管尺寸、偏置等满足性能指标。
operational amplifier (op-amp)运算放大器模拟电路最核心的积木:放大差分电压信号的放大器,几乎所有模拟芯片里都有它。
two-stage operational amplifier两级运算放大器由两级放大单元级联组成的经典运放结构,本文的测试基准电路。
post-layout design版图后设计画完版图之后的设计阶段——要重新仿真验证版图寄生效应,最贵最费时的环节。
layout parasitics版图寄生效应版图走线带来的寄生电阻、电容,会让实际电路偏离原理图设计,必须仿真确认。
schematic-based design原理图级设计还没画版图、只在原理图层面做的设计与仿真,比版图后仿真便宜得多。
EDA (electronic design automation)电子设计自动化辅助芯片设计的软件工具链;数字设计流程高度标准化,模拟设计则依赖人工经验。
reinforcement learning (RL)强化学习智能体通过与环境交互、试错获得奖励来学习策略的机器学习范式。
model-based RL基于模型的强化学习先学一个「环境模型」(本文是奖励模型),用模型代替真实环境做规划/训练,省交互。
model-free method无模型方法不学环境模型、直接靠大量真实交互(大量仿真)训练策略的 RL。
reward model / surrogate model奖励模型 / 代理模型用神经网络拟合「电路配置 → 性能」的映射,用来代替昂贵的电路仿真。
stochastic policy generator随机策略生成器把随机噪声映射成电路参数的策略网络,噪声带来多样性,能探索整片可行解空间。
Dyna-style algorithmDyna 式算法Sutton 提出的经典框架:把「真实经验」和「模型想象出的经验」混在一起学习。
sample efficiency样本效率达到目标性能所需的仿真/交互次数——次数越少,样本效率越高。
transfer learning迁移学习把便宜任务(原理图级设计)上学到的知识迁移到贵任务(版图后设计)上。
feasible solution space可行解空间满足所有设计约束的电路参数组合构成的空间——本文想让 AI 摸清它的全貌。

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

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

摘要 Abstract

EN · 原文
In this work, we present a learning based approach to analog circuit design, where the goal is to optimize circuit performance subject to certain design constraints.
CN · 翻译
本文提出一种基于学习的模拟电路设计方法,目标是在满足一定设计约束的前提下优化电路性能
EN · 原文
One of the aspects that makes this problem challenging to optimize, is that measuring the performance of candidate configurations with simulation can be computationally expensive, particularly in the post-layout design.
CN · 翻译
让这个问题难以优化的一个原因是:用仿真测量候选配置的性能计算代价很高,尤其是在版图后设计阶段。
EN · 原文
Additionally, the large number of design constraints and the interaction between the relevant quantities makes the problem complex. Therefore, to better facilitate supporting the human designers, it is desirable to gain knowledge about the whole space of feasible solutions.
CN · 翻译
此外,大量的设计约束以及各相关量之间的相互耦合使问题变得复杂。因此,为了更好地辅助人类设计师,最好能掌握整个可行解空间的知识。
EN · 原文
In order to tackle these challenges, we take inspiration from model-based reinforcement learning and propose a method with two key properties. First, it learns a reward model, i.e., surrogate model of the performance approximated by neural networks, to reduce the required number of simulation. Second, it uses a stochastic policy generator to explore the diverse solution space satisfying constraints.
CN · 翻译
为了应对这些挑战,我们借鉴基于模型的强化学习,提出一个具备两个关键特性的方法:第一,学习一个奖励模型——用神经网络逼近性能的代理模型,以减少所需的仿真次数;第二,使用随机策略生成器去探索满足约束的多样化解空间
EN · 原文
Together we combine these in a Dyna-style optimization framework, which we call DynaOpt, and empirically evaluate the performance on a circuit benchmark of a two-stage operational amplifier.
CN · 翻译
我们将这两者组合成一个 Dyna 式优化框架,命名为 DynaOpt,并在一个两级运算放大器电路基准上进行了实验评估。
EN · 原文
The results show that, compared to the model-free method applied with 20,000 circuit simulations to train the policy, DynaOpt achieves even much better performance by learning from scratch with only 500 simulations.
CN · 翻译
结果表明:与使用 20,000 次电路仿真训练策略的无模型方法相比,DynaOpt 仅用 500 次仿真从零开始学习,就达到了甚至好得多的性能。

关键词 Keywords:Analog Circuit Design 模拟电路设计 | Reinforcement Learning 强化学习 | Model-Based RL 基于模型的强化学习 | Dyna | Sample Efficiency 样本效率 | Post-Layout Design 版图后设计

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

① 模拟设计:最难自动化的「手艺活」

EN · 原文
Although analog circuits are present as many different functional blocks in most integrated circuit (IC) chips nowadays, analog circuit design has been increasingly difficult for several reasons, e.g., growing complexity in circuit topology, tight tradeoffs between different performance metrics and so on. Unlike digital circuit design that is aided by well standardized design flow with electronic design automation (EDA) tools, analog design requires a high level of application-specific customization and still resorts to domain knowledge by experienced designers. Manual optimization based on exhaustive search with simulation is a notoriously time consuming and labor intensive task. Particularly the post-layout design, in which the design objectives are verified after the layout creation, is much more challenging because it demands additional computationally costly simulations using EDA tools to reflect the layout parasitics to the circuit accurately.
CN · 翻译
如今,几乎每颗集成电路(IC)芯片里都有大量功能模块是模拟电路,但模拟电路设计却越来越难:电路拓扑日益复杂各性能指标之间权衡极紧。与有标准化 EDA 设计流程加持的数字电路设计不同,模拟设计需要高度定制化,仍要依赖资深工程师的领域知识。靠仿真「穷举式」手工调优,是出了名的耗时费力。尤其是版图后设计——画完版图再验证设计目标——更加困难,因为它需要用 EDA 工具再做大量昂贵的仿真,才能把版图寄生效应准确地反映到电路上。

② 不只找一个解:设计师想要「整片可行解空间」

EN · 原文
In addition, the circuit problem can have multiple different solutions which are distributed diversely in the search space. It can serve as crucial information fed back to designers such that they better understand the circuit operation under constraints. Unfortunately this generalization capability is mostly missing in prior methods. Automated analog design has drawn increasing attention to take human experts out of the optimization loop. Traditionally, population based methods (e.g., genetic algorithm and particle swarm optimization), and Bayesian optimization have been used. However, the former suffers from low sample efficiency and lacks reproducibility. The latter is sample efficient, but scales poorly in high dimensional problems.
CN · 翻译
此外,电路问题往往有多个不同解,散布在搜索空间各处——这可以成为反馈给设计师的关键信息,让他们更好地理解电路在约束下的行为。遗憾的是,先前的方法大多缺少这种「泛化到整片解空间」的能力。自动化模拟设计日益受到关注,目的是把人类专家从优化循环中解放出来。传统上用的是群体方法(如遗传算法粒子群优化)和贝叶斯优化:前者样本效率低、可复现性差;后者样本效率高,但在高维问题上扩展性差。

③ DynaOpt 的思路:奖励模型 + 随机策略生成器

EN · 原文
In this work, we introduce a novel reinforcement learning (RL) based optimization framework, DynaOpt, which not only learns the general structure of solution space but also ensures high sample efficiency based on a Dyna-style algorithm. The contributions of this paper are as follows: First, the policy is trained through a noise source and learns a whole distribution of feasible solutions. Second, the reward is modeled using neural networks, which allows us to leverage model-based RL. Third, the post-layout circuit is optimized based on model-based RL, together with transfer learning from the schematic based design, and we achieves 300× higher sample efficiency than model-free approach. Finally, DynaOpt is implemented by taking advantage of both the model-free and model-baed methods to maximize the learning process from scratch.
CN · 翻译
本文提出一个新颖的强化学习优化框架 DynaOpt:它既能学到解空间的整体结构,又能依托 Dyna 式算法保证高样本效率。本文贡献如下:第一,策略通过噪声源训练,学到整个可行解分布;第二,用神经网络建模奖励,从而可以利用基于模型的 RL;第三,在原理图级设计的迁移学习辅助下,用基于模型的 RL 优化版图后电路,样本效率比无模型方法高 300 倍;最后,DynaOpt 同时取无模型与基于模型两种方法之长,最大化「从零开始」的学习过程。
💡 这是全文最有味道的一段“the policy is trained through a noise source and learns a whole distribution of feasible solutions”——普通优化器只找一个「最优解」,DynaOpt 却想要「整片可行解的分布」。给策略灌入随机噪声,让 AI 像撒网一样把可行区域都摸一遍,再把整片「解的地图」交给设计师——这是它区别于传统自动化的灵魂。

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

EN · 原文
1. Stochastic policy generator for the whole solution distribution. First, the policy is trained through a noise source and learns a whole distribution of feasible solutions.
CN · 翻译
1. 随机策略生成器,学出整片可行解分布。策略经由噪声源训练,学到可行解的完整分布——不再只给一个点,而是给一张「解的地图」。
EN · 原文
2. Neural reward model for model-based RL. Second, the reward is modeled using neural networks, which allows us to leverage model-based RL.
CN · 翻译
2. 神经网络奖励模型,拥抱基于模型的 RL。用神经网络拟合「电路配置 → 性能」的奖励模型,把昂贵的仿真变成廉价的网络前向计算。
EN · 原文
3. Post-layout optimization with transfer learning, and 300× sample efficiency. Third, the post-layout circuit is optimized based on model-based RL, together with transfer learning from the schematic based design, and we achieves 300× higher sample efficiency than model-free approach. Finally, DynaOpt is implemented by taking advantage of both the model-free and model-baed methods to maximize the learning process from scratch.
CN · 翻译
3. 迁移学习加持的版图后优化,样本效率提升 300 倍。先用便宜的原理图级设计学知识、再迁移到贵的版图后设计;结合无模型与基于模型两类方法之长,从零学习也能最大化效率——样本效率比无模型方法高 300 倍

六、结论中英对照

EN · 原文
We propose DynaOpt for analog circuit design, which is a Dyna-style RL based optimization framework. It is built by intermixing both the model-free and model-based methods with two key components - the stochastic policy generator and the reward model. The policy generator learns to map the random noise input to the on-policy distribution of actions which eventaully move toward solutions as the policy improves, and the reward model allows to leverage sample efficient model-based RL by replacing expensive simulation with it. By putting them together, DynaOpt achieves both generalization capability and high sample efficiency, which is difficult with prior methods.
CN · 翻译
我们提出用于模拟电路设计的 DynaOpt——一个 Dyna 式 RL 优化框架。它把无模型与基于模型两类方法交织融合,核心是两个部件:随机策略生成器奖励模型。策略生成器学习把随机噪声输入映射为「当前策略下的动作分布」,随着策略改进,这些动作最终汇聚到解上;奖励模型则用廉价的网络预测替代昂贵仿真,从而发挥样本高效的基于模型 RL 的优势。两者结合,DynaOpt 同时实现了泛化能力高样本效率——这是先前方法难以兼得的。
EN · 原文
Application to the design of a two-stage operational amplifier is demonstrated based on various implementation of the methodology such as model-based learning with knowledge transfer and Dyna-style learning, which all outperform the model-free approach with promising results.
CN · 翻译
我们在两级运算放大器设计上验证了该方法的各种实现变体——如带知识迁移的基于模型学习、Dyna 式学习——它们都优于无模型方法,结果令人鼓舞。
EN · 原文
This project had received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement No. 758824 —INFLUENCE).
CN · 翻译
本项目获得了欧洲研究理事会(ERC)在欧盟「地平线 2020」研究与创新计划下的资助(拨款协议号 No. 758824 —— INFLUENCE 项目)。

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

  1. 问题:模拟电路设计像「手工配菜」——工程师调晶体管尺寸 → 仿真 → 看指标 → 再调,尤其画完版图后每次仿真又贵又慢。传统自动优化(遗传算法、贝叶斯优化)要么太费仿真、要么高维撑不住,而且只给一个解,不给设计师「全局视野」。
  2. 做法:DynaOpt 两件套——① 奖励模型:用神经网络学「电路参数 → 性能」的映射,仿真贵就少仿真,让网络代答;② 随机策略生成器:给策略网络灌随机噪声,噪声让输出参数千变万化,从而把整片「可行解空间」都探索一遍,而不是死磕一个点。两者按 Dyna 风格(真实仿真 + 模型想象混合学习)拼成完整框架。
  3. 结果:在两级运放基准上,无模型方法烧掉 20,000 次仿真,DynaOpt 只用 500 次仿真从零学起,性能反而更好——样本效率提升 300 倍(迁移学习加持下)。
  4. 最值钱的观点:AI 辅助设计的目标不是「替设计师找到一个解」,而是「把整片可行解空间讲给设计师听」——多解信息能让人类理解电路在约束下的行为,人机协作而不是人机替换。这正是「AI for Science/Engineering」的高级形态。
  5. 工程意义:模拟/混合信号芯片的自动化是 EDA 行业的金矿。这套「昂贵仿真 + 代理模型 + 多样策略」的配方,同样适用于射频电路调参、工艺参数优化、电源管理芯片设计等一切「仿真贵、约束多」的芯片设计问题。
🎯 对保研的启示:这篇论文值得学的不是 RL 公式,而是「问题建模」:把电路设计翻译成「约束下的性能优化」、把仿真翻译成「代价高昂的交互」、把设计师需求翻译成「解空间知识」。复试时如果能讲清「为什么用奖励模型、为什么用噪声策略、Dyna 怎么把两者拼起来」,就已经吃透了这篇文章。

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

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

  1. 第一遍(10 分钟):只读摘要和术语表,回答三个问题——模拟设计为什么难自动化?DynaOpt 的两个部件是什么?500 和 20,000 这两个数字说明了什么?
  2. 第二遍(20 分钟):读引言精选 + 结论,重点体会「仿真贵」如何逼出「代理模型」,「只要一个解」如何升级成「要整片解空间」。
  3. 第三遍(30 分钟):回原文(arXiv HTML 版)看方法部分文字描述,跳过公式和网络结构细节,只搞清楚:奖励模型怎么训练、策略生成器怎么采样、Dyna 式学习怎么混合真实与想象经验。

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

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

先盲听一遍→再看对照稿→再听一遍。目标是听出每个数字(20,000、500、300×)和术语(reward model、stochastic policy generator、Dyna-style、post-layout)。