NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CircuitGate: Logic-Consistent Circuit-Level Functional Modeling for And-Inverter Graphs

Qifan Zhang, Ruijie Li, Fangzhou Zhang, Qian Ma, Hui Li, Furui Zhan, Yongpeng Wang, Liying Hao, Shikai GuoarXiv 2026

TL;DR

CircuitGate is a novel representation learning framework for And-Inverter Graphs (AIGs) that shifts the focus from local gate-level connectivity to global circuit-level functionality. By explicitly encoding primary-input dependencies and modeling reconvergent fanins with logic-inspired constraints, it achieves state-of-the-art accuracy and remains remarkably robust to structural changes caused by logic synthesis.

What Problem Does This Paper Address?

In Electronic Design Automation (EDA), And-Inverter Graphs (AIGs) are the bread and butter of logic synthesis and verification. Recently, researchers have turned to Graph Neural Networks (GNNs) to learn "embeddings" for these circuits to automate tasks like equivalence checking.

However, standard GNNs have a major blind spot: they rely on local message passing. In a massive digital circuit, a gate's actual Boolean function might depend on Primary Inputs (PIs) that are dozens of hops away—far beyond the reach of a typical 3- or 5-layer GNN. Furthermore, logic synthesis tools (like resyn2) can drastically rewrite a circuit's topology while keeping its function identical. Existing models often get "distracted" by these structural changes, leading to inconsistent representations for functionally identical gates.

Figure 1: Motivating comparison between prior gate-level AIG representation methods and CircuitGate. Existing approaches mainly rely on local structural message passing, resulting in incomplete functional context and limited logic consistency, while CircuitGate explicitly models circuit-level functional dependencies and improves representation consistency.

Methods

The authors propose CircuitGate, which introduces three architectural pillars to move from "structure-aware" to "function-aware" modeling:

  1. Global PI-Dependency Encoding: Instead of just looking at neighbors, CircuitGate tracks which Primary Inputs (PIs) influence a node. It uses a "sketching" technique where each PI is assigned a random token, and these tokens are aggregated into a fixed-width representation that accounts for inversion parity (whether a signal is flipped or not).
  2. Reconvergent-Fanin Dependency Modeling: In real circuits, paths often split and then merge (reconvergence). Standard GNNs treat these merging paths as independent. CircuitGate explicitly calculates the overlap in PI support between fanins to adaptively gate how information is propagated at these critical junctions.
  3. Logic-Inspired Constraints: The model isn't just trained on labels; it's guided by the laws of Boolean logic. The training objective includes penalties for violating fundamental rules, such as NOT-gate complementarity and Fréchet bounds for AND-gate signal probabilities.
Figure 2: Overview of the CircuitGate framework.

Datasets

The researchers evaluated CircuitGate across several major benchmarks:

  • ForgeEDA: A large-scale industrial benchmark containing over 83,000 circuit instances derived from open-source designs.
  • EPFL & ITC’99: Classic combinational and sequential logic benchmarks used to validate generalization.
  • OpenABC: Used for zero-shot transfer testing to see how well the model performs on entirely unseen circuit distributions without fine-tuning.

Key Insights and Ideas

  • Function over Form: The core "aha" moment is that for EDA tasks, the identity of the inputs (PI support) is more important than the specific path taken to reach a gate. By encoding global support, the model captures the "what" rather than just the "where."
  • Handling Synthesis Noise: By incorporating Boolean constraints into the loss function, the model learns a representation space that is naturally aligned with logic. This makes it much harder for synthesis-induced structural "noise" to confuse the model.
  • Reconvergence as a Signal: Rather than seeing reconvergence as a topological challenge, CircuitGate treats the overlap of input support as a rich feature that informs how gates interact functionally.

Key Results

CircuitGate consistently outperformed existing state-of-the-art methods (like DeepGate series and MGVGA) across multiple tasks:

  • Equivalent-Gate Identification: Achieved a 21.7% reduction in Mean Absolute Error (MAE) on the ForgeEDA benchmark compared to the next best method.
  • Signal-Probability Prediction: Reduced MAE by 14.2% on EPFL and 13.8% on ForgeEDA.
  • Zero-Shot Generalization: When trained on ForgeEDA and tested directly on OpenABC without any fine-tuning, CircuitGate maintained the top spot, proving its representations are truly learning general logic principles.
  • Topology Robustness: Using Centered Kernel Alignment (CKA) to measure consistency, CircuitGate proved to be significantly more stable than baselines when circuits were transformed by synthesis tools like rewrite or refactor.
Table 1: Equivalent-gate identification results. Best and second-best results are bold and underlined.

Limitations and Future Work

While the results are impressive, the paper notes a few areas for further exploration:

  • Preprocessing Cost: Calculating global PI support and reconvergence descriptors adds a one-time CPU preprocessing step. While the authors show this is scalable (taking ~14 seconds for a half-million node graph), it is an extra step compared to "pure" GNNs.
  • Scope: The current work focuses on AIGs. Extending these functional modeling principles to other representations, like Technology-Mapped Netlists or higher-level RTL descriptions, remains an open direction.
  • Dynamic Logic: The current model focuses on combinational logic properties; future work could better incorporate temporal dependencies for sequential verification tasks.

Summary updated

BibTeX
@misc{zhang2026circuitgate,
  author = {Qifan Zhang and Ruijie Li and Fangzhou Zhang and Qian Ma and Hui Li and Furui Zhan and Yongpeng Wang and Liying Hao and Shikai Guo},
  title = {{CircuitGate: Logic-Consistent Circuit-Level Functional Modeling for And-Inverter Graphs}},
  year = {2026},
  eprint = {2610.09549},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.09549},
}
Figure