CircuitFusion
A multimodal encoder that fuses a circuit's hardware code, graph and text summary into one embedding.
Multimodal · 839 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Multimodal
- Parameters
- 129.5M
- Operations
- 839
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2025
- Cited by
- 0 (as of 24 October 2026)
- Authors
- Wenji Fang, Shang Liu, Jing Wang, Zhiyao Xie
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15303
- Graph hash
- 50ce4ab182f27abbe6ba579d4820284b8065dcad37d0d4d10523e9f75044d920
- Skeleton hash
- 93237e97981ec4f24e6312fdfc514ace387184d870be98994303b0d3433cff03
- Architecture hash
- af2394678304b47f85f709c78b2d526acaeee990310646ae2ec2ba7b9e42f342
- Diagram SHA-256
- 7cae4a79588bae75cb83c6cec30aeb9fae7a5dd5bac228224edd31a0800c2500
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
CircuitFusion is an encoder that turns a digital circuit design into general-purpose embeddings for downstream chip design tasks. It reads each circuit in three forms at once: the hardware code, a structural graph and a text summary of what the circuit does. Before encoding, the circuit is split into sub-circuits, one per register, and each sub-circuit gets its own embedding.
Each form has its own encoder, and the graph encoder is a 7-layer graph transformer that the authors built from scratch. The summary encoder is a 6-layer transformer initialized from the first 6 layers of BERT-base. The hardware code goes through NV-Embed-V1, an LLM-based text encoder chosen to handle long code snippets. A fusion encoder then combines the three with cross attention: the summary tokens act as queries, and a mixup of the graph and code embeddings supplies the keys and values.
Pre-training adds an auxiliary encoder for the gate-level netlist of each sub-circuit, which is discarded at inference. Against the baselines in its experiments, the paper reports a mean absolute percentage error (MAPE) improvement of 5% for register slack, worst negative slack (WNS) and area prediction, 10% for total negative slack (TNS) and 13% for power prediction. Its dataset is built from 41 RTL designs collected from open-source benchmarks.
Key idea. CircuitFusion fuses three views of a circuit, its hardware code, structural graph and functionality summary, into general representations that support different downstream circuit design tasks.
- CircuitFusion
- circuit encoder
- multimodal circuit representation learning
- RTL
- HDL code
- chip design
- netlist
- register slack prediction
- EDA
- retrieval-augmented inference
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{fang2025circuitfusionmultimodalcircuitrepresentation,
title={CircuitFusion: Multimodal Circuit Representation Learning for Agile Chip Design},
author={Wenji Fang and Shang Liu and Jing Wang and Zhiyao Xie},
year={2025},
eprint={2505.02168},
archivePrefix={arXiv},
primaryClass={cs.AR},
url={https://arxiv.org/abs/2505.02168},
}