[论文解读] DeepGate2: Functionality-Aware Circuit Representation Learning
DeepGate2 引入了一种功能感知的电路表示学习框架,通过使用成对真值表差异作为监督信号,并采用单轮图神经网络(GNN)联合学习结构和功能嵌入,对 DeepGate 进行了改进。该方法在 SAT 求解中实现了 10 倍的加速和平均 40.05% 的运行时间减少,在逻辑综合与布尔可满足性任务中均表现出显著提升。
Circuit representation learning aims to obtain neural representations of circuit elements and has emerged as a promising research direction that can be applied to various EDA and logic reasoning tasks. Existing solutions, such as DeepGate, have the potential to embed both circuit structural information and functional behavior. However, their capabilities are limited due to weak supervision or flawed model design, resulting in unsatisfactory performance in downstream tasks. In this paper, we introduce DeepGate2, a novel functionality-aware learning framework that significantly improves upon the original DeepGate solution in terms of both learning effectiveness and efficiency. Our approach involves using pairwise truth table differences between sampled logic gates as training supervision, along with a well-designed and scalable loss function that explicitly considers circuit functionality. Additionally, we consider inherent circuit characteristics and design an efficient one-round graph neural network (GNN), resulting in an order of magnitude faster learning speed than the original DeepGate solution. Experimental results demonstrate significant improvements in two practical downstream tasks: logic synthesis and Boolean satisfiability solving. The code is available at https://github.com/cure-lab/DeepGate2
研究动机与目标
- 解决 DeepGate 在基于信号概率近似值的弱监督下难以精确捕捉电路功能的局限性。
- 通过设计一种更快的单轮 GNN 架构,克服 DeepGate 中多轮消息传递的低效问题。
- 通过利用成对真值表差异中的真实功能信息,改进电路表示学习。
- 通过学习更具区分性与功能感知的嵌入,实现逻辑综合与 SAT 求解等下游应用的有效支持。
- 与原始的 DeepGate 框架相比,实现更高的学习效率与显著提升的推理效率。
提出的方法
- 利用快速逻辑仿真计算的成对真值表差异作为强功能监督信号,指导表示学习。
- 设计一种功能感知损失函数,最小化嵌入距离与实际真值表汉明距离之间的差异。
- 将节点嵌入分解为两个独立分支:功能嵌入(初始为均匀分布,针对输入门)和结构嵌入(初始为正交,针对输入门)。
- 在 GNN 的单次前向传播中,通过独立的消息聚合路径处理功能与结构信息,实现单轮消息传递。
- 通过正交向量初始化输入门嵌入,以保持功能独立性,并使模型能够区分由共同输入驱动的门。
- 通过将门相似性传递至 SAT 求解器中的变量相似性,将学习到的嵌入集成到下游 EDA 工具中,指导基于冲突的决策过程。
实验结果
研究问题
- RQ1成对真值表差异能否作为电路表示学习的有效且可扩展的监督信号?
- RQ2单轮 GNN 架构在多大程度上能有效捕捉逻辑电路的结构与功能特征?
- RQ3功能感知监督在多大程度上提升了逻辑综合与 SAT 求解等下游 EDA 任务的性能?
- RQ4所提出的方法是否能在保持或提升表示质量的同时,实现相对于多轮 GNN 的显著加速?
- RQ5该模型在实际 EDA 工作负载中对大规模工业电路是否具备良好的泛化能力?
主要发现
- 与原始的 DeepGate 相比,DeepGate2 在学习阶段实现了 10 倍的加速,推理时间与电路规模成正比,平均低于总运行时间的 10%。
- 在五个工业基准测试中,SAT 求解的平均运行时间减少了 40.05%,在实例 I1 上最高减少达 63.62%。
- 在实例 I1 上,基线求解器耗时 88.01 秒,而采用 DeepGate2 的混合求解器仅用 32.02 秒完成,展现出显著的加速效果。
- 模型在逻辑概率预测与逻辑等价性检查任务中保持了高精度,且在有效性和效率方面均优于 DeepGate。
- 通过变量相似性引导将 DeepGate2 集成至 SAT 求解器后,实现了更快的冲突检测与更小的搜索空间。
- 即使在 I4 和 I5 等更大规模的实例上,模型仍表现出可测量的性能提升,表明其具备强大的可扩展性与在小规模电路之外的泛化能力。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。