CircuitFusion: Multimodal Circuit Representation Learning for Agile Chip Design
Wenji Fang, Shang Liu, Jing Wang, Zhiyao Xie
TL;DR
CircuitFusion addresses rising IC design costs by introducing a multimodal, implementation-aware circuit encoder that fuses HDL code, circuit graph, and functionality summaries, complemented by an implementation-aware netlist alignment. Leveraging four circuit properties—parallel execution, functional equivalence, multi-stage design, and reusability—the model uses four training strategies and a retrieval-augmented inference flow to learn robust, cross-modal representations. It employs Graphormer for graphs, a frozen NV-Embed-V1 code encoder, a summary transformer, and cross-attention fusion, plus an auxiliary netlist encoder, trained with four self-supervised tasks and an alignment objective. Evaluated on five downstream design-quality tasks, CircuitFusion consistently surpasses task-specific baselines and demonstrates zero-shot and few-shot capabilities, highlighting its generalizability and potential to accelerate agile chip design. The results also indicate favorable scalability with larger models and bigger pre-training datasets, suggesting strong potential as a circuit foundation model.
Abstract
The rapid advancements of AI rely on the support of ICs. However, the growing complexity of digital ICs makes the traditional IC design process costly and time-consuming. In recent years, AI-assisted IC design methods have demonstrated great potential, but most methods are task-specific or focus solely on the circuit structure in graph format, overlooking other circuit modalities with rich functional information. In this paper, we introduce CircuitFusion, the first multimodal and implementation-aware circuit encoder. It encodes circuits into general representations that support different downstream circuit design tasks. To learn from circuits, we propose to fuse three circuit modalities: hardware code, structural graph, and functionality summary. More importantly, we identify four unique properties of circuits: parallel execution, functional equivalent transformation, multiple design stages, and circuit reusability. Based on these properties, we propose new strategies for both the development and application of CircuitFusion: 1) During circuit preprocessing, utilizing the parallel nature of circuits, we split each circuit into multiple sub-circuits based on sequential-element boundaries, each sub-circuit in three modalities. 2) During CircuitFusion pre-training, we introduce three self-supervised tasks that utilize equivalent transformations both within and across modalities. 3) When applying CircuitFusion to downstream tasks, we propose a new retrieval-augmented inference method, which retrieves similar known circuits as a reference for predictions. It improves fine-tuning performance and even enables zero-shot inference. Evaluated on five different circuit design tasks, CircuitFusion consistently outperforms the SOTA supervised method specifically developed for every single task, demonstrating its generalizability and ability to learn circuits' inherent properties.
