Manuscript Offprint
arXiv:2610.09549CircuitGate: Logic-Consistent Circuit-Level Functional Modeling for And-Inverter Graphs
ABSTRACT
And-Inverter Graphs (AIGs) are fundamental representations for logic synthesis and verification in Electronic Design Automation (EDA). As structured representations of complex digital systems, AIGs require models to capture functional dependencies beyond local structure and remain robust to functionality-preserving transformations. In learning-based AIG representation, existing approaches are predominantly based on GNNs and rely on local gate-level message passing, limiting their ability to capture circuit-level functional context and making the learned representations sensitive to topology-specific patterns. Therefore, we propose CircuitGate, a function-aware AIG representation learning framework that advances from gate-level semantics to circuit-level functional modeling. CircuitGate explicitly encodes global primary-input (PI) support and models support-overlap-aware reconvergence between fanins, while incorporating logic-inspired Boolean constraints to encourage functionally consistent representations. We evaluate CircuitGate on the large-scale ForgeEDA benchmark and further validate it on the EPFL and ITC'99 benchmarks. Across equivalent-gate identification and signal-probability prediction tasks, CircuitGate consistently outperforms existing methods, achieving up to 21.7% and 14.2% reductions in MAE, respectively. Under direct ForgeEDA-to-OpenABC transfer without fine-tuning, CircuitGate also achieves the best equivalent-gate identification performance, demonstrating strong cross-dataset generalization. These results demonstrate the effectiveness of modeling circuit-level functional dependencies beyond local topology. Source code is available at https://anonymous.4open.science/r/CircuitGate/.
1 INTRODUCTION
And-Inverter Graphs (AIGs) are fundamental intermediate representations in Electronic Design Automation (EDA), supporting critical tasks such as logic synthesis, formal verification, and optimization Wang et al. (2009); Hassoun & Sasao (2001). By representing Boolean networks using two-input AND gates and complemented edges, AIGs provide a compact and widely adopted abstraction for EDA workflows, including technology mapping Mishchenko et al. (2007) and equivalence checking Goldberg et al. (2001); Kern & Greenstreet (1999). As circuit scale and logic complexity continue to grow, learning informative representations of AIGs has become important for enabling effective learning-based EDA applications. However, a useful AIG representation should capture more than the local structural patterns of an implementation; it should reflect the underlying circuit functionality that remains stable across structurally different but functionally equivalent implementations. This requires modeling circuit-level functional dependencies beyond local topology while maintaining consistent semantics under functionality-preserving synthesis transformations.
Recent advances in Graph Neural Networks (GNNs) have enabled learning-based AIG representation methods. DeepGate Li et al. (2022) pioneered GNN-based AIG representation learning by introducing signal probability supervision. Subsequent works, including DeepGate2 Shi et al. (2023),
DeepGate3 Shi et al. (2024), and DeepGate4 Zheng et al. (2025), further improved supervision strategies, scalability, and industrial applicability. Other approaches, including FGNN Wang et al. (2022), FuncGNN Zhao et al. (2026b), PolarGate Liu et al. (2024), HOGA Deng et al. (2024), and WideGate Liu et al. (2025), explored complementary directions such as functionality-aware propagation, hybrid aggregation, polarity modeling, and graph attention mechanisms. Despite these advances, as illustrated in Figure 1, existing AIG representation methods still propagate information primarily through local connectivity patterns, limiting their ability to capture complete circuit-level functional dependencies and maintain consistent representations across different circuit implementations. These limitations manifest in two key aspects.
First, existing methods provide an incomplete characterization of circuit-level functional dependencies. Local message passing is effective for modeling Boolean operations among neighboring gates and capturing short-range structural interactions. However, the functionality of a circuit node is ultimately determined by the complete set of primary inputs (PIs) that influence its output. Such global PI support provides essential dependency information beyond local neighborhoods but is difficult to preserve through finite-hop message propagation, especially in large circuits with deep logic hierarchies. Moreover, industrial circuits contain extensive reconvergent structures, where multiple fanin branches with shared PI dependencies merge at downstream nodes. These fanins are therefore functionally correlated rather than independent structural neighbors. Existing message passing mechanisms process these fanins independently and fail to explicitly model their shared-support relationships. Consequently, current methods lack a unified mechanism for capturing global PI dependencies and reconvergent-fanin correlations, resulting in incomplete circuit-level functional representations.
Second, existing methods exhibit limited consistency under functionality-preserving synthesis transformations. Modern synthesis procedures, such as resyn2 Mishchenko et al. (2007) and dc2, can substantially modify AIG topology, including node structures, logic depth, and connectivity patterns, while preserving Boolean functionality. However, topology-driven representation models may encode implementation-specific structural patterns rather than intrinsic functional properties. As a result, functionally equivalent circuits generated by different synthesis processes may produce inconsistent representations. This limitation highlights a broader challenge in representation learning for structured engineering systems: effective representations should capture stable functional characteristics rather than rely primarily on transformation-dependent topology.

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.
These observations lead to a central challenge:
How can we learn AIG representations that capture complete circuit-level functional dependencies beyond local topology while remaining consistent under functionality-preserving synthesis transformations?
To address this challenge, we propose CircuitGate, a function-aware representation learning framework for AIGs. On the one hand, CircuitGate explicitly models circuit-level functional dependencies by incorporating global PI-support information and support-overlap-aware reconvergent-fanin relationships, enabling each node to capture functional context beyond its local structural neighborhood. On the other hand, CircuitGate augments topology-driven message passing with complementary functional contexts and logic-inspired Boolean constraints, encouraging functionally equivalent circuits to exhibit more consistent representations despite synthesis-induced structural variations. Together, these designs advance AIG representation learning from local gate-level semantic model-

Figure 2: Overview of the CircuitGate framework.
ing toward logic-consistent circuit-level functional representation learning. Extensive experiments primarily on the large-scale ForgeEDA benchmark, with additional validation on EPFL and ITC'99 and zero-shot ForgeEDA-to-OpenABC transfer, demonstrate the effectiveness and superiority of CircuitGate across multiple AIG representation learning tasks and circuit distributions.
The main contributions of this work are:
• We provide a systematic analysis of existing AIG representation learning methods and identify a fundamental gap between gate-level semantic modeling and circuit-level functional representation. Specifically, current approaches lack effective mechanisms for capturing global functional dependencies and are vulnerable to topology-specific biases introduced by functionality-preserving transformations, motivating the design of CircuitGate.
• We propose CircuitGate, a unified framework that advances AIG representation learning from local topology-driven modeling toward circuit-level functional dependency modeling. CircuitGate jointly captures global PI dependencies and support-overlap-aware reconvergence through circuit-level context modeling, global dependency encoding, and reconvergent-fanin dependency learning, while incorporating Boolean constraints to encourage functionally consistent representations.
• We primarily evaluate CircuitGate on the large-scale ForgeEDA industrial EDA benchmark, comprising 83,155 circuit instances derived from 4,450 AIGs across 1,189 open-source designs, and further evaluate it on EPFL and ITC'99. CircuitGate reduces MAE over the second-best methods by 21.7% and 13.8% on ForgeEDA for equivalent-gate identification and signal-probability prediction, respectively. On EPFL, the corresponding reductions are 19.5% and 14.2%, and on ITC'99, 13.4% and 8.4%. Zero-shot ForgeEDA-to-OpenABC transfer further demonstrates cross-dataset generalization, while ablation studies verify the contributions of individual components.
2.1 FUNCTIONAL DEPENDENCY MODELING
Traditional support-based AIG analysis explicitly tracks primary-input (PI) dependencies through structural support information Mishchenko et al. (2007), making circuit-level dependencies directly available for logic reasoning. Modern GNN-based methods recast dependency modeling as scalable implicit message propagation. DeepGate Li et al. (2022) pioneered GNN-based gate representation learning with signal-probability supervision, followed by DeepGate2 Shi et al. (2023), DeepGate3 Shi et al. (2024), and DeepGate4 Zheng et al. (2025), which progressively advance functional modeling and scalability. Recent methods further explore functionality-aware and circuit-specific modeling, including GAMORA Wu et al. (2023), FGNN Wang et al. (2022), FuncGNN Zhao et al. (2026b), AIGer Sun et al. (2026), WideGate Liu et al. (2025), PolarGate Liu et al. (2024), and HOGA Deng et al. (2024).
This transition improves scalability but makes circuit-level dependency modeling increasingly reliant on local propagation. In standard message-passing GNNs, k layers aggregate information over at most k-hop neighborhoods, making global PI dependencies difficult to preserve across deep logic hierarchies. Moreover, scalable GNN-based methods still lack explicit reconvergence modeling within representation updates: fanins with shared PI support are typically aggregated as local neighbors, leaving their shared-input dependencies only indirectly reflected in learned representations. CircuitGate addresses these limitations through global PI-support encoding and support-overlap-conditioned reconvergence modeling.
2.2 SYNTHESIS ROBUSTNESS
Logic synthesis exposes a fundamental tension in circuit representation learning: topology can change dramatically while Boolean functionality remains unchanged. MILS Zhao et al. (2025), CHOP Fu et al. (2026), and ORL-LO Dong et al. (2026) explore learning-based synthesis prediction and optimization, while DeepCell Shi et al. (2025b) and GenEDA Fang et al. (2025) study multiview and cross-modal circuit representation learning. TopoRTL Zhao et al. (2026a) and IRGNN Guo et al. (2025) further extend circuit learning across abstraction levels and application domains.
Despite this progress, representation consistency under functionality-preserving topology transformations remains a distinct challenge. CircuitGate targets this setting through circuit-level context, global PI-support encoding, reconvergence-aware modeling, and logic-inspired regularization to reduce reliance on topology-specific patterns.
3 METHOD
3.1 OVERVIEW
Given an AIG represented as a signed directed acyclic graph , where each edge carries an inversion label , CircuitGate aims to learn node representations that capture circuit-level functional dependencies beyond local gate-level semantics. Different from topology-driven representations, CircuitGate seeks to preserve global input dependencies and reconvergent-fanin correlations while reducing reliance on synthesis-induced structural patterns.
The key idea is to augment local message passing with two complementary sources of functional context: (i) global PI dependencies that characterize the input influence of each node, and (ii) local reconvergent-fanin correlations induced by shared PI supports. As illustrated in Figure 2, CircuitGate consists of three architectural components: (1) Circuit-Level Context Augmentation, which incorporates EDA-native circuit-role information, including logic levels, fanout, output status, and PI-support coverage, to enrich gate-level representations with circuit-level contextual priors; (2) Global PI-Dependency Encoding, which explicitly encodes polarity-aware PI dependencies and compresses variable-size support sets into fixed-width representations, enabling the model to capture global functional dependencies beyond finite-hop message passing; and (3) Reconvergent-Fanin Dependency Modeling, which identifies shared-support relationships among reconvergent fanins and uses support-overlap-aware gating to adaptively modulate the contribution of PI-dependency context during node updates. Beyond these architectural components, logic-inspired constraints are incorporated into the training objective to regularize local Boolean semantics and reduce topology-specific biases. Together, these designs enable CircuitGate to learn circuit-level functional representations with logic-inspired regularization.
3.2 CIRCUIT-LEVEL CONTEXT AUGMENTATION
Logic synthesis can alter local wiring patterns while preserving circuit functionality, making gate type insufficient to characterize a node's circuit-level role. To address this limitation, the Circuit-Level Context Augmentation component augments each node's gate-type representation with EDA-native attributes describing circuit position, fanout, output status, and PI-support coverage.
Specifically, the EDA-native context vector and the initial node representation are defined as
where is the gate-type one-hot vector and is the corresponding logic level and .
denotes the transformed fanout, and indicates whether is a sink node. represents PI-support coverage, defined as the larger fraction of PIs in the even- and odd-inversion support sets and , with as the normalization factor.
These features distinguish same-type nodes by circuit role, helping the model separate structurally different candidates before message passing begins.
3.3 GLOBAL PI-DEPENDENCY ENCODING
Nodes with similar local neighborhoods may depend on different primary inputs (PIs), causing finite-depth message passing to conflate distinct global dependencies. The Global PI-Dependency Encoding component therefore summarizes the structural PI dependencies of each node in fixed-width representations. Because complemented edges alter the polarity with which a PI reaches a downstream node, these dependencies are further distinguished by the parity of inversions along PI-to-node paths.
Let denote the set of PIs and define . For each node , we construct two parity-indexed structural PI-support sets, where denotes the inversion parity of a PI-to- path. Let denote the fanins of connected through edges with inversion label . For each non-PI node , the support sets are propagated in one topological pass as
where denotes modulo-two addition. Each PI is initialized by and .
These sets provide a path-based characterization of parity-aware circuit-level PI dependencies, while serving as a structural approximation of exact Boolean functional support. In particular, a PI may belong to both and if it reaches through paths with both inversion parities.
To compress the variable-size supports, each PI is assigned a graph-local index and mapped to a random token using a fixed seed. The tokens remain unchanged throughout training and inference. Each parity-indexed support set is then summarized by the sketch
where and an empty support is mapped to the zero vector. The square-root normalization stabilizes the sketch variance across support sizes, while explicit support statistics retain scale information. The resulting sketch provides a compact randomized summary of PI-support identity. The sketches are further fused with support-size and PI-coverage statistics:
(4)
where is a learned state-specific multilayer perceptron and is the encoded PI-dependency representation for state . The two parity states are combined as
The encoded PI dependencies are introduced after the first propagation layer and concatenated into every subsequent state update while remaining unchanged across layers. This provides each node with a circuit-level prior for modeling functional dependencies beyond finite-hop neighborhoods, improving discrimination between locally similar nodes with different global dependencies.
3.4 RECONVERGENT-FANIN DEPENDENCY MODELING
PI-support overlap provides structural evidence of shared upstream dependency between reconvergent fanins. CircuitGate characterizes reconvergence through the overlap between the PI supports of two fanins and uses this information to condition local message propagation. The resulting mechanism allows global PI dependencies to adaptively influence node updates while preserving the original AIG connectivity.
For a two-input AND node with fanins and , let for . Its six-dimensional reconvergence descriptor is defined by
(6)
where denotes the first entry. The six entries of encode reconvergence presence, Jaccard support overlap, the overlap coefficient, log-scaled shared-support size, normalized fanin-depth imbalance, and the contrast between same- and opposite-parity overlap. Because a PI may appear in both parity-indexed support sets, and are overlap statistics rather than mutually exclusive counts. For nodes other than two-input AND gates, we set and . The descriptor therefore characterizes both the existence and the extent of shared upstream dependency, together with its structural and polarity-related properties.
An initialization layer constructs the local node representation from signed-fanin neighborhoods. We denote the resulting state at layer as . For each relation , we construct a relation-aware message from the corresponding fanin neighborhood:
where denotes the relation-aware aggregation over fanins connected through edge relation , with empty neighborhoods mapped to zero.
Using the PI-dependency representation introduced in Section 3.3, we jointly compute the dependency gate and the updated node representation as
(8)
where is the dependency gate and broadcasts the gate to the PI-dependency representation, and are multilayer perceptrons, denotes the state projection, is the sigmoid function, and denotes element-wise multiplication. The base PI-dependency representation is retained for every node, while the additional gated residual is activated when shared upstream support is detected.
Therefore, exact PI-support overlap serves as an explicit dependency signal that adaptively controls how global PI information participates in local propagation at reconvergent nodes while preserving the original AIG topology.
3.5 TRAINING OBJECTIVE
To improve representation consistency under synthesis-induced topology changes, we augment task supervision with logic-inspired regularization. Since Boolean operator semantics remain valid across different structural realizations, we impose NOT complementarity and feasible probability bounds for AND gates. Given the final node representation , we predict . The task loss is detailed in Appendix A.1.
Logic-Inspired Constraints. For an AND input relation , let for a non-inverting relation and for an inverting relation. For a two-input AND node with fanins and , the corresponding Fréchet bounds are
where . These bounds require no fanin-independence assumption and therefore remain applicable to reconvergent structures.
We penalize violations of NOT complementarity and AND probability bounds through
(10)
where contains the input–output node pairs of explicit NOT operations, and is the set of two-input AND nodes.
Overall Objective. The complete training objective is
where controls the overall regularization strength, while and balance the two logic terms. Together, these terms regularize local Boolean probability relations that remain applicable across different structural realizations, reducing reliance on topology-specific patterns.
4 EXPERIMENTS
4.1 EXPERIMENTAL SETTINGS
Datasets. We evaluate CircuitGate on three circuit benchmarks: ForgeEDA Shi et al. (2025a), EPFL Amarú et al. (2015), and ITC'99 Corno et al. (2000). ForgeEDA contains 83,155 circuit instances derived from 4,450 AIGs across 1,189 open-source designs. We use a source-disjoint split for ForgeEDA and parent-circuit-isolated splits for EPFL and ITC'99 to prevent data leakage across splits. Detailed dataset statistics and split settings are provided in Appendix A.2.
Baselines. We compare CircuitGate with general-purpose GNNs (GCN Kipf & Welling (2016), GAT Veličković et al. (2018), GraphSAGE Hamilton et al. (2017)), the DeepGate series Li et al. (2022); Shi et al. (2023; 2024); Zheng et al. (2025), and recent circuit-specific methods (HOGA Deng et al. (2024), PolarGate Liu et al. (2024), FuncGNN Zhao et al. (2026b), AIGer Sun et al. (2026), MGVGA Wu et al. (2025)).
Evaluation Metrics. For equivalent-gate identification, MAE and MSE evaluate graded functional similarity against the continuous target , whereas AP and F1 evaluate exact equivalence defined by , with MAE as the primary metric. For signal-probability prediction, we report MAE. For topology robustness, we use CKA to measure representation consistency between matched nodes before and after synthesis transformations. For efficiency, we report parameter count, inference latency, and accuracy–efficiency cost (AEC). Detailed metric definitions, class statistics, and evaluation protocols are provided in Appendix A.3.
Implementation Details. All experiments are conducted on an NVIDIA RTX A6000 GPU with a fixed random seed of 2024. For fair comparison, all methods use the same dataset splits and evaluation protocols. For each baseline, we follow its official implementation and hyperparameter settings whenever available; when adaptation is required, hyperparameters are selected using only the validation set. CircuitGate is optimized using Adam Kingma & Ba (2014) with a fixed learning rate of , a weight decay of , and a batch size of 256, and is trained for 300 epochs.
4.2 RQ1: How Does CircuitGate Compare with Existing Methods?
Motivation. We compare CircuitGate with GNN-based and circuit-specific methods on equivalent-gate identification and signal-probability prediction across ForgeEDA, EPFL, and ITC'99.
Table 1: Equivalent-gate identification results. Best and second-best results are bold and underlined.
| Model | Venue | ForgeEDA | EPFL | ITC'99 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MAE ↓ | MSE ↓ | AP ↑ | F1 ↑ | MAE ↓ | MSE ↓ | AP ↑ | F1 ↑ | MAE ↓ | MSE ↓ | AP ↑ | F1 ↑ | ||
| GCN | ICLR'17 | 0.1522 | 0.0537 | 0.0141 | 0.0368 | 0.2364 | 0.1060 | 0.2952 | 0.1478 | 0.2129 | 0.1145 | 0.6396 | 0.6434 |
| GAT | ICLR'18 | 0.1886 | 0.0762 | 0.0102 | 0.0312 | 0.3086 | 0.1517 | 0.1694 | 0.2930 | 0.2186 | 0.1205 | 0.5370 | 0.6873 |
| GraphSAGE | NeurIPS'17 | 0.1311 | 0.0424 | 0.0175 | 0.0228 | 0.1117 | 0.0368 | 0.4118 | 0.4062 | 0.2188 | 0.1203 | 0.5501 | 0.6883 |
| DeepGate | DAC'22 | 0.1440 | 0.0526 | 0.0108 | 0.0296 | 0.1183 | 0.0368 | 0.4042 | 0.2705 | 0.1318 | 0.0516 | 0.7168 | 0.8133 |
| DeepGate2 | ICCAD'23 | 0.2914 | 0.1237 | 0.0154 | 0.0360 | 0.2804 | 0.1227 | 0.1316 | 0.0109 | 0.2173 | 0.0977 | 0.6717 | 0.7511 |
| DeepGate3 | ICCAD'24 | 0.0553 | 0.0167 | 0.0335 | 0.0672 | 0.1115 | 0.0361 | 0.6421 | 0.4027 | 0.0748 | 0.0206 | 0.9507 | 0.9290 |
| DeepGate4 | ICLR'25 | 0.1361 | 0.0334 | 0.0305 | 0.0749 | 0.0863 | 0.0217 | 0.5621 | 0.5705 | 0.0755 | 0.0197 | 0.9058 | 0.9264 |
| HOGA | DAC'24 | 0.1567 | 0.0547 | 0.0149 | 0.0397 | 0.1278 | 0.0397 | 0.3551 | 0.3855 | 0.2407 | 0.1570 | 0.7926 | 0.8229 |
| PolarGate | ICCAD'24 | 0.1567 | 0.0593 | 0.0133 | 0.0340 | 0.1450 | 0.0529 | 0.2772 | 0.1468 | 0.1135 | 0.0444 | 0.8009 | 0.8719 |
| FuncGNN | TRETS'26 | 0.1075 | 0.0302 | 0.0180 | 0.0498 | 0.0952 | 0.0250 | 0.4918 | 0.3599 | 0.1014 | 0.0342 | 0.8736 | 0.8447 |
| AIGer | TCAD'26 | 0.1472 | 0.0548 | 0.0180 | 0.0454 | 0.1432 | 0.0509 | 0.2761 | 0.3806 | 0.1160 | 0.0411 | 0.8701 | 0.8905 |
| MGVGA | ICLR'25 | 0.0563 | 0.0173 | 0.0264 | 0.0759 | 0.0848 | 0.0228 | 0.5187 | 0.4170 | 0.0718 | 0.0205 | 0.9101 | 0.9210 |
| CircuitGate | 0.0433 | 0.0118 | 0.0469 | 0.1149 | 0.0683 | 0.0163 | 0.6503 | 0.6543 | 0.0622 | 0.0140 | 0.9823 | 0.9467 | |
Results. As shown in Table 1, CircuitGate achieves the best equivalent-gate identification performance across all three benchmarks.
On ForgeEDA, CircuitGate achieves an MAE of 0.0433, reducing error by over DeepGate3, with corresponding MSE and AP improvements of and , respectively. It also improves F1 by over MGVGA, the second-best method on this metric. On EPFL and ITC'99, it achieves MAEs of 0.0683 and 0.0622, outperforming the second-best MGVGA by and , respectively, while also attaining the best MSE, AP, and F1. As shown in Table 2, CircuitGate achieves the lowest signal-probability MAE on all three benchmarks, reducing error by , , and , respectively, relative to the best baseline on each benchmark. Under direct transfer from ForgeEDA to OpenABC-D (OpenABC) Chowdhury et al. (2021) without fine-tuning, it also achieves the lowest equivalent-gate MAE; detailed results are provided in Appendix A.4.
Table 2: Signal-probability prediction results (MAE).
| Model | ForgeEDA | EPFL | ITC'99 |
|---|---|---|---|
| GCN | 0.0422 | 0.1637 | 0.1688 |
| GAT | 0.0396 | 0.1386 | 0.0879 |
| GraphSAGE | 0.0446 | 0.0536 | 0.0231 |
| DeepGate | 0.1604 | 0.0910 | 0.0831 |
| DeepGate2 | 0.1408 | 0.0923 | 0.0717 |
| DeepGate3 | 0.0315 | 0.0625 | 0.0161 |
| DeepGate4 | 0.0246 | 0.0560 | 0.0154 |
| HOGA | 0.0991 | 0.1046 | 0.0457 |
| PolarGate | 0.1070 | 0.0987 | 0.0349 |
| FuncGNN | 0.0558 | 0.0770 | 0.0294 |
| AIGer | 0.0360 | 0.0812 | 0.0559 |
| MGVGA | 0.0279 | 0.0626 | 0.0181 |
| CircuitGate | 0.0212 | 0.0460 | 0.0141 |
Table 3: Ablation study on the equivalent-gate identification task on ForgeEDA, EPFL, and ITC'99.
| Variant | ForgeEDA | EPFL | ITC'99 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MAE ↓ | MSE ↓ | AP ↑ | F1 ↑ | MAE ↓ | MSE ↓ | AP ↑ | F1 ↑ | MAE ↓ | MSE ↓ | AP ↑ | F1 ↑ | |
| w/o Circuit-Level Context | 0.0477 | 0.0135 | 0.0429 | 0.1118 | 0.0914 | 0.0234 | 0.4409 | 0.4403 | 0.0850 | 0.0243 | 0.9755 | 0.9270 |
| w/o PI-Dependency Encoding | 0.0582 | 0.0184 | 0.0220 | 0.0634 | 0.0864 | 0.0248 | 0.5211 | 0.3708 | 0.0691 | 0.0210 | 0.9454 | 0.9317 |
| w/o Reconvergence | 0.0561 | 0.0175 | 0.0229 | 0.0670 | 0.0872 | 0.0243 | 0.5472 | 0.3964 | 0.0833 | 0.0256 | 0.9661 | 0.9084 |
| w/o Logic Constraints | 0.0495 | 0.0135 | 0.0351 | 0.1007 | 0.0817 | 0.0220 | 0.5203 | 0.5513 | 0.0864 | 0.0201 | 0.9659 | 0.8985 |
| Full | 0.0433 | 0.0118 | 0.0469 | 0.1149 | 0.0683 | 0.0163 | 0.6503 | 0.6543 | 0.0622 | 0.0140 | 0.9823 | 0.9467 |
4.3 RQ2: HOW DOES EACH COMPONENT CONTRIBUTE TO CIRCUITGATE?
Motivation. We assess the contribution of each CircuitGate component.
Results. As shown in Table 3, all components contribute to CircuitGate's performance. Removing PI-support encoding causes the largest MAE degradation on ForgeEDA (34.4%), followed by reconvergence modeling (29.6%), highlighting the importance of global PI dependencies and reconvergent-fanin relationships. The impact of different components varies across benchmarks: circuit-level context is most important on EPFL, while logic constraints provide the largest gain on ITC'99. These results demonstrate that the proposed components complement each other in learning circuit-level functional representations.
We further evaluate the PI-support design on ForgeEDA. Per-circuit PI-token permutation maintains comparable performance, whereas removing polarity information or retaining only cardinality/coverage statistics leads to clear degradation, confirming the importance of fine-grained polarity-aware PI support. Detailed results are provided in Appendix A.5.






Figure 3: Parameter sensitivity of CircuitGate on equivalent-gate identification. Each panel varies one hyperparameter, with the selected setting highlighted in bold orange.
4.4 RQ3: HOW EFFICIENT AND SCALABLE IS CIRCUITGATE?
Motivation. We evaluate CircuitGate's accuracy–efficiency trade-off and preprocessing scalability.
Results. As shown in Table 4, on a fixed subset of 200 ForgeEDA test circuits, CircuitGate achieves the lowest MAE of 0.0433 with a neural inference latency of 12.4393 ms, reducing MAE by over MGVGA with only a latency increase. It also achieves the best AEC of 1.0275. We further evaluate one-time CPU preprocessing on complete circuits across seven graph-size ranges. On the largest graph with 525,762 nodes and 733,211 edges, feature construction takes 14.03 s, while the complete input-to-cache pipeline takes 14.89 s with a peak RSS of 2.73 GiB. These results demonstrate that CircuitGate maintains practical preprocessing costs on large-scale complete circuits. Detailed scaling results are provided in Appendix A.6.
Table 4: Accuracy–efficiency comparison on ForgeEDA
| Model | Params. (M) ↓ | EQ MAE ↓ | Neural inf. (ms) ↓ | AEC ↓ |
|---|---|---|---|---|
| GraphSAGE | 0.0173 | 0.1311 | 9.1204 | 1.1957 |
| AIGer | 0.5603 | 0.1472 | 10.5431 | 2.5137 |
| FuncGNN | 0.9765 | 0.1075 | 11.2865 | 2.0854 |
| MGVGA | 1.1050 | 0.0563 | 12.2759 | 1.2031 |
| DeepGate3 | 4.7272 | 0.0553 | 73.2356 | 8.0999 |
| DeepGate4 | 4.6465 | 0.1361 | 172.2620 | 46.8177 |
| HOGA | 0.0459 | 0.1567 | 107.8129 | 19.8255 |
| CircuitGate | 2.8170 | 0.0433 | 12.4393 | 1.0275 |
4.5 RQ4: HOW ROBUST IS CIRCUITGATE TO TOPOLOGY CHANGES?
Motivation. We examine whether CircuitGate maintains consistent representations under functionality-preserving synthesis transformations. We evaluate all methods on the same 20 transformed ForgeEDA test circuits using fixed checkpoints without retraining.
Results. As shown in Table 5, CircuitGate achieves the highest CKA under all four synthesis transformations, with an average CKA of 0.8341. These results indicate that CircuitGate learns more consistent representations under functionality-preserving topology variations. Additional MAE results are provided in Appendix A.7.
Table 5: Representation consistency under synthesis-induced topology transformations, measured by CKA ( ).
| Model | resyn2 | dc2 | rewrite | refactor |
|---|---|---|---|---|
| GCN | 0.6506 | 0.5967 | 0.7129 | 0.7322 |
| GAT | 0.6241 | 0.5836 | 0.8174 | 0.8449 |
| GraphSAGE | 0.6631 | 0.6272 | 0.7616 | 0.7948 |
| DeepGate | 0.4278 | 0.4114 | 0.5219 | 0.5374 |
| DeepGate2 | 0.4637 | 0.4105 | 0.5232 | 0.5392 |
| DeepGate3 | 0.6784 | 0.6572 | 0.7672 | 0.7842 |
| DeepGate4 | 0.6472 | 0.6375 | 0.7306 | 0.7498 |
| HOGA | 0.5840 | 0.5679 | 0.6521 | 0.6691 |
| PolarGate | 0.5934 | 0.5500 | 0.6848 | 0.7182 |
| FuncGNN | 0.6662 | 0.6149 | 0.8471 | 0.8490 |
| AIGer | 0.6129 | 0.5760 | 0.7003 | 0.7319 |
| MGVGA | 0.6099 | 0.5988 | 0.6664 | 0.6773 |
| CircuitGate | 0.7933 | 0.7866 | 0.8775 | 0.8789 |
4.6 RQ5: HOW SENSITIVE IS CIRCUITGATE TO HYPERPARAMETERS?
Results. As shown in Figure 3, the selected configuration uses , , , , , , and merge-gate reconvergence. These settings provide a favorable operating point across the evaluated metrics, while overly strong logic regularization or insufficient propagation depth leads to noticeable degradation. Further increasing the support-sketch dimension or propagation depth provides limited additional benefit. Detailed quantitative results are provided in Appendix A.8.
5 CONCLUSION
We presented CircuitGate, a framework for learning functional representations of AIGs through circuit-level context, global PI dependencies, and reconvergent-fanin modeling, guided by a logic-inspired objective. These mechanisms capture functional relationships beyond local connectivity while reducing reliance on topology-specific structural patterns. Across the reported ForgeEDA, EPFL, and ITC'99 evaluations, CircuitGate achieves the lowest MAE on both equivalent-gate identification and signal-probability prediction while maintaining competitive inference latency. The ablation results further highlight the contributions of PI-support encoding and reconvergence modeling, supporting the value of circuit-level functional priors for accurate and efficient AIG representation learning.
REPRODUCIBILITY STATEMENT
We provide an anonymous implementation of CircuitGate to facilitate reproducibility. Detailed dataset statistics and splits, evaluation protocols, implementation settings, robustness evaluation, and hyperparameter analyses are provided in the main text and Appendix.
AI Use STATEMENT
Generative AI tools were used solely for language polishing to improve the clarity, grammar, and readability of the manuscript. They were not used for study design, methodology development, data analysis, result generation, or scientific interpretation. All AI-assisted language edits were reviewed and approved by the authors, who take full responsibility for the final content of the manuscript.
REFERENCES
Luca Amarú, Pierre-Emmanuel Gaillardon, and Giovanni De Micheli. The epfl combinational benchmark suite. Hypotenuse, 256(128):214335, 2015.
Animesh Basak Chowdhury, Benjamin Tan, Ramesh Karri, and Siddharth Garg. Openabc-d: A large-scale dataset for machine learning guided integrated circuit synthesis. arXiv preprint arXiv:2110.11292, 2021.
Fulvio Corno, Matteo Sonza Reorda, and Giovanni Squillero. Rt-level itc'99 benchmarks and first atpg results. IEEE Design & Test of computers, 17(3):44–53, 2000.
Chenhui Deng, Zichao Yue, Cunxi Yu, Gokce Sarar, Ryan Carey, Rajeev Jain, and Zhiru Zhang. Less is more: Hop-wise graph attention for scalable and generalizable learning on circuits. In Proceedings of the 61st ACM/IEEE Design Automation Conference, pp. 1–6, 2024. doi: 10.1145/3649329.3657386.
Guande Dong, Hongtao Cheng, Jianwang Zhai, Xiao Yang, Chuan Shi, and Kang Zhao. Orl-lo: Offline reinforcement learning for pretraining and finetuning in logic optimization. ACM Transactions on Design Automation of Electronic Systems, 31(6):1–24, 2026.
Wenji Fang, Wang Jing, Yao Lu, Shang Liu, and Zhiyao Xie. Geneda: Towards generative netlist functional reasoning via cross-modal circuit encoder-decoder alignment. In 2025 IEEE/ACM International Conference On Computer Aided Design (ICCAD), pp. 1–9. IEEE, 2025.
Rongliang Fu, Ran Zhang, Ziyang Zheng, Zhengyuan Shi, Yuan Pu, Junying Huang, Bei Yu, Qiang Xu, and Tsung-Yi Ho. Chop: Clustered hybrid optimization for logic synthesis with self-supervised prediction. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2026.
Evgueni Goldberg, Mukul Prasad, and Robert Brayton. Using sat for combinational equivalence checking. In Proceedings of the conference on Design, automation and test in Europe, pp. 114–121, 2001.
Feng Guo, Yueyue Xi, Jianwang Zhai, Jingyu Jia, Jiawei Liu, Kang Zhao, and Chuan Shi. Irgnn: A graph-based framework integrating numerical solution and point cloud for static ir drop prediction. In 2025 62nd ACM/IEEE Design Automation Conference (DAC), pp. 1–7. IEEE, 2025.
William L Hamilton, Rex Ying, and Jure Leskovec. Inductive representation learning on large graphs. arXiv preprint arXiv:1706.02216, 2017.
Soha Hassoun and Tsutomu Sasao. Logic synthesis and verification, volume 654. Springer New York, 2001. doi: 10.1007/978-1-4615-0817-5.
Christoph Kern and Mark R Greenstreet. Formal verification in hardware design: a survey. ACM Transactions on Design Automation of Electronic Systems (TODAES), 4(2):123–193, 1999.
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
Min Li, Sadaf Khan, Zhengyuan Shi, Naixing Wang, Huang Yu, and Qiang Xu. Deepgate: Learning neural representations of logic gates. In 2022 59th ACM/IEEE Design Automation Conference (DAC), pp. 667–672. IEEE, 2022. doi: 10.1145/3489517.3530497.
Jiawei Liu, Jianwang Zhai, Mingyu Zhao, Zhe Lin, Bei Yu, and Chuan Shi. Polargate: Breaking the functionality representation bottleneck of and-inverter graph neural network. In Proceedings of the 43rd IEEE/ACM International Conference on Computer-Aided Design, pp. 1–9, 2024. doi:10.1145/3676536.3676834.
Jiawei Liu, Zhiyan Liu, Xun He, Jianwang Zhai, Zhengyuan Shi, Qiang Xu, Bei Yu, and Chuan Shi. Widegate: Beyond directed acyclic graph learning in subcircuit boundary prediction. In 2025 Design, Automation & Test in Europe Conference (DATE), pp. 1–7. IEEE, 2025. doi: 10.23919/DATE64628.2025.10992972.
Alan Mishchenko et al. Abc: A system for sequential synthesis and verification. URL http://www.eecs.berkeley.edu/alanmi/abc, 17, 2007.
Zhengyuan Shi, Hongyang Pan, Sadaf Khan, Min Li, Yi Liu, Junhua Huang, Hui-Ling Zhen, Mingxuan Yuan, Zhufei Chu, and Qiang Xu. Deepgate2: Functionality-aware circuit representation learning. In 2023 IEEE/ACM International Conference on Computer Aided Design (ICCAD), pp. 1–9. IEEE, 2023.
Zhengyuan Shi, Ziyang Zheng, Sadaf Khan, Jianyuan Zhong, Min Li, and Qiang Xu. Deepgate3: Towards scalable circuit representation learning. In Proceedings of the 43rd IEEE/ACM International Conference on Computer-Aided Design, pp. 1–9, 2024.
Zhengyuan Shi, Zeju Li, Chengyu Ma, Yunhao Zhou, Ziyang Zheng, Jiawei Liu, Hongyang Pan, Lingfeng Zhou, Kezhi Li, Jiaying Zhu, Lingwei Yan, Zhiqiang He, Chenhao Xue, Wentao Jiang, Fan Yang, Guangyu Sun, Xiaoyan Yang, Gang Chen, Chuan Shi, Zhufei Chu, Jun Yang, and Qiang Xu. Forgeeda: A comprehensive multimodal dataset for advancing eda. arXiv preprint arXiv:2505.02016, 2025a.
Zhengyuan Shi, Chengyu Ma, Ziyang Zheng, Lingfeng Zhou, Hongyang Pan, Wentao Jiang, Fan Yang, Xiaoyan Yang, Zhufei Chu, and Qiang Xu. Deepcell: Self-supervised multiview fusion for circuit representation learning. In 2025 IEEE/ACM International Conference On Computer Aided Design (ICCAD), pp. 1–9. IEEE, 2025b.
Weihao Sun, Shikai Guo, Siwen Wang, Qian Ma, Hui Li, Ning Wang, and Yongpeng Weng. Modeling relational logic circuits for and-inverter graph convolutional network. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 45(8):3877–3890, 2026. doi:10.1109/TCAD.2025.3644279.
Petar Veličković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, Yoshua Bengio, et al. Graph attention networks. In International conference on learning representations, 2018.
Laung-Terng Wang, Yao-Wen Chang, and Kwang-Ting Tim Cheng. Electronic design automation: synthesis, verification, and test. Morgan Kaufmann, 2009.
Ziyi Wang, Chen Bai, Zhuolun He, Guangliang Zhang, Qiang Xu, Tsung-Yi Ho, Bei Yu, and Yu Huang. Functionality matters in netlist representation learning. In Proceedings of the 59th ACM/IEEE Design Automation Conference, pp. 61–66, 2022.
Haoyuan Wu, Haisheng Zheng, Yuan Pu, and Bei Yu. Circuit representation learning with masked gate modeling and verilog-aig alignment. In International Conference on Learning Representations, volume 2025, 2025.
Nan Wu, Yingjie Li, Cong Hao, Steve Dai, Cunxi Yu, and Yuan Xie. Gamora: Graph learning based symbolic reasoning for large-scale boolean networks. In 2023 60th ACM/IEEE Design Automation Conference (DAC), pp. 1–6. IEEE, 2023.
Mingyu Zhao, Jiawei Liu, Jianwang Zhai, and Chuan Shi. Mils: Modality interaction driven learning for logic synthesis. In Proceedings of the Great Lakes Symposium on VLSI 2025, pp. 64–70, 2025.
Mingyu Zhao, Xun He, Jiawei Liu, Jianwang Zhai, and Chuan Shi. Topology matters in rtl circuit representation learning. In The Fourteenth International Conference on Learning Representations (ICLR), 2026a.
Qiyun Zhao, Shikai Guo, Wen Zhao, Ning Wang, Xiaochen Li, and He Jiang. Funcgnn: Learning functional semantics of logic circuits with graph neural networks. ACM Transactions on Reconfigurable Technology and Systems, 19(2):1–24, 2026b. doi: 10.1145/3779445.
Ziyang Zheng, Shan Huang, Jianyuan Zhong, Zhengyuan Shi, Guohao Dai, Ningyi Xu, and Qiang Xu. Deepgate4: Efficient and effective representation learning for circuit design at scale. In International Conference on Learning Representations, volume 2025, 2025.
A ADDITIONAL EXPERIMENTAL RESULTS
A.1 TASK SUPERVISION DETAILS
For the two downstream tasks, we use the final node representation to obtain and predict .
The two supervised losses are
where is the set of supervised node pairs, is the ground-truth signal probability, and .
The target is derived from the normalized truth-table distance supplied by the benchmark. For each circuit instance, we use the 2,048 intra-instance node pairs specified by ForgeEDA's tt_pair_index; indicates functional equivalence.
For probability prediction, . For equivalent-gate identification,
where weights auxiliary probability supervision and empty-set averages are defined as zero.
A.2 DATASET STATISTICS
Table 6: Statistics of the ForgeEDA dataset Shi et al. (2025a).
| Modality | #Samples | Node Range | Edge Range | Format | Contents |
|---|---|---|---|---|---|
| Code Repository | 1,189 | - | - | .v | Verilog code with comments and specifications |
| PM Netlist | 4,450 | - | - | .v.rpt | Post-mapping netlistsArea, path-delay, and power reports |
| Placed Netlist | 4,450 | - | - | .v/.def.rpt | Placed netlistsArea, WNS, TNS, and power reports |
| AIG | 4,450 | [5–386,996] | [1–753,750] | .aig | Raw AIG files |
| Circuit Instances | 83,155 | [500–5,000] | [258–8,070] | .aig.npz | parsed circuit graphsPyTorch Geometric graph data |
Table 7: Statistics of the processed EPFL benchmark dataset.
| Data Type | #Samples | Node Range | Edge Range | #Gate Pairs | Contents |
|---|---|---|---|---|---|
| Original AIGs | 19 | [320–101,954] | [496–159,073] | - | Original EPFL circuits |
| Processed Parents | 16 | - | - | - | Parent circuits producing subcircuits |
| Processed Subcircuits | 101 | [519–5,000] | [716–9,305] | 1,514,460 | Model input graphs |
| Train Split | 51 | [519–5,000] | - | 765,000 | 9 parent circuits |
| Validation Split | 27 | [2,426–5,000] | - | 405,000 | 3 parent circuits |
| Test Split | 23 | [1,082–5,000] | - | 344,460 | 4 parent circuits |
A.3 EVALUATION PROTOCOL AND EFFICIENCY METRIC
Dataset Splits. For ForgeEDA, we use a source-disjoint split containing 4,158 training, 4,158 validation, and 74,839 test circuit instances, corresponding to 5%, 5%, and 90% of the dataset, respectively. Circuit instances derived from the same source design are assigned to only one split.
For EPFL, among the 19 original AIGs, 16 produce valid subcircuits after preprocessing. These 16 parent circuits are partitioned into 9 training, 3 validation, and 4 test circuits, resulting in 51 training, 27 validation, and 23 test subcircuits, respectively. Subcircuits derived from the same parent circuit are assigned to only one split, ensuring no parent-circuit leakage. Thus, the EPFL evaluation measures performance on held-out EPFL circuits rather than zero-shot transfer from ForgeEDA.
Table 8: Statistics of the processed ITC'99 benchmark dataset.
| Data Type | #Samples | Node Range | Edge Range | #Gate Pairs | Contents |
|---|---|---|---|---|---|
| Original AIGs | 20 | [47–140,638] | [65–217,943] | – | Original ITC'99 circuits |
| Processed Parents | 16 | – | – | – | Parent circuits producing subcircuits |
| Processed Subcircuits | 57 | [79–5,000] | [113–7,321] | 74,906 | Model input graphs |
| Train Split | 38 | [79–5,000] | [113–7,200] | 41,564 | 10 parent circuits |
| Validation Split | 7 | [538–5,000] | [720–6,814] | 14,934 | 3 parent circuits |
| Test Split | 12 | [1,154–5,000] | [1,229–7,321] | 18,408 | 3 parent circuits |
Table 9: Exact-equivalence pair statistics on the test sets.
| Dataset | Evaluated Pairs | Positive Pairs | Positive Rate |
|---|---|---|---|
| ForgeEDA | 153,270,272 | 712,168 | 0.464648% |
| EPFL | 344,460 | 36,017 | 10.4561% |
| ITC'99 | 18,408 | 9,204 | 50.0000% |
For ITC'99, the processed dataset contains 57 subcircuits derived from 16 parent circuits. We use 38 training, 7 validation, and 12 test subcircuits from 10, 3, and 3 mutually disjoint parent circuits, respectively. No original parent circuit contributes subcircuits to more than one split.
For all three benchmarks, checkpoints are selected using validation MAE, and the test splits are used only for final evaluation. For ITC'99, equivalent-gate identification and signal-probability prediction are trained independently on the corresponding training split, with checkpoint selection performed on the validation split before test evaluation.
Equivalent-Gate Metrics. For a gate pair , the predicted score is , and the continuous target is . A pair is treated as positive when and negative otherwise. Mean absolute error (MAE) and mean squared error (MSE) measure the difference between and . Average precision (AP) is computed directly from the continuous prediction scores. For F1, the classification threshold is selected on the validation split by maximizing validation F1 and is then fixed for test evaluation. MAE and MSE are first computed within each circuit and then averaged across test circuits, whereas AP and F1 are computed from the pooled test pairs.
Representation Consistency Metric. For topology robustness, we use linear centered kernel alignment (CKA) to measure the consistency of node representations before and after synthesis transformations. Given centered representation matrices and , linear CKA is defined as
where denotes the Frobenius norm. A higher CKA indicates greater consistency between the learned representations under synthesis-induced topology transformations.
Pair Distribution. Table 9 reports the prevalence of exact-equivalence pairs in each test set. ForgeEDA is highly imbalanced, with only 0.464648% of evaluated pairs satisfying . The corresponding positive-pair rate is 10.4561% on EPFL, while ITC'99 uses balanced positive and negative pairs. Since AP depends on class prevalence, its absolute values should be interpreted together with the positive-pair rate of each benchmark.
Latency Measurement. Inference latency is measured on a fixed subset of 200 test circuits using an NVIDIA RTX A6000 GPU. Each model is evaluated on the same circuits with a batch size of one. The reported latency measures neural inference on preprocessed circuit graphs and excludes one-time graph preprocessing and PI-support construction.
Accuracy–Efficiency Cost. To jointly evaluate predictive accuracy, inference latency, and model complexity, we define the accuracy–efficiency cost (AEC) for model as
(15) where Latency is measured in milliseconds, is the number of trainable parameters of model , and and are the minimum and maximum parameter counts among the models compared in Table 4. Lower AEC indicates a better joint trade-off among prediction accuracy, inference latency, and model complexity. The logarithmic normalization maps the model-size penalty to [0, 1], so the complexity term scales MAE × Latency by a factor between one and two.
Table 10: Additional controls for PI-support encoding on ForgeEDA.
| Variant | MAE ↓ | MSE ↓ | AP ↑ | F1 ↑ |
|---|---|---|---|---|
| Full | 0.04330 | 0.01180 | 0.04690 | 0.11490 |
| Per-circuit PI permutation | 0.04281 | 0.01204 | 0.04540 | 0.11447 |
| Unsigned support | 0.04416 | 0.01287 | 0.04205 | 0.05849 |
| Cardinality/Coverage only | 0.05360 | 0.01724 | 0.02781 | 0.07850 |
A.4 CROSS-DATASET GENERALIZATION TO OPENABC
To further evaluate cross-dataset generalization, we directly apply the ForgeEDA-trained checkpoints to OpenABC without any fine-tuning or parameter adaptation. All methods use their corresponding checkpoints trained on ForgeEDA and are evaluated under the same OpenABC test protocol. This setting therefore measures how well the learned circuit representations transfer to an unseen circuit distribution.
As shown in Figure 4, CircuitGate achieves the lowest MAE of 0.10125 under direct ForgeEDA-to-OpenABC transfer, followed by DeepGate3 with an MAE of 0.10223. CircuitGate also outperforms MGVGA (0.11177), DeepGate4 (0.11476), and the remaining baselines under the same zero-shot evaluation setting. These results provide additional evidence that the functional representations learned by CircuitGate transfer effectively across circuit datasets without target-domain adaptation.
A.5 ADDITIONAL PI-SUPPORT CONTROLS
To further examine the PI-support encoding, we compare the full model with three controlled variants on ForgeEDA. Per-circuit PI-token permutation independently changes the correspondence between graph-local PI indices and random tokens within each circuit. Unsigned support removes parity separation, while cardinality/coverage-only encoding retains only coarse support statistics.
The per-circuit permutation control closely matches the full model, providing no evidence that CircuitGate relies on cross-circuit PI-index alignment. In contrast, removing support polarity or reducing the representation to cardinality and coverage statistics degrades performance, indicating that the main benefit comes from fine-grained, polarity-aware support structure.

Figure 4: Cross-dataset generalization from ForgeEDA to OpenABC. All methods are directly evaluated on OpenABC using checkpoints trained on ForgeEDA, without fine-tuning. Lower MAE is better.
A.6 COMPLETE-GRAPH PREPROCESSING SCALABILITY
We further evaluate the scalability of CircuitGate's one-time preprocessing pipeline on complete OpenABC circuits. The circuit inventory is partitioned into seven intervals according to the resulting CircuitGate graph size: [500, 2k), [2k, 8k), [8k, 32k), [32k, 128k), [128k, 256k), [256k, 512k), and [512k, +∞). The largest complete graph in each interval is selected before profiling. No graph is truncated, and runtime or memory measurements are not used during circuit selection.
Each circuit is evaluated in three independent fresh processes with newly generated output caches, and Table 11 reports the median results. Preprocessing includes parity-specific PI-support construction, support-sketch generation, reconvergence descriptors, EDA-native feature construction, and cache serialization. The input-to-cache time additionally includes raw input parsing, but does not include neural inference. Peak RSS denotes the peak resident memory of the complete preprocessing process, including the Python, NumPy, PyTorch, and framework base memory footprint. All measurements are conducted on an Intel Core i9-13900K CPU with 128 GiB RAM.
Table 11: Complete-graph preprocessing scalability. denotes the total number of parity-specific support memberships. Values are medians of three independent fresh-process runs.
| Circuit | Nodes | Edges | PIs | M | Preproc. (s) | Input-to-cache (s) | Peak RSS (MiB) |
|---|---|---|---|---|---|---|---|
| simple_spi | 1,928 | 2,694 | 164 | 15,984 | 0.0350 | 0.0535 | 362.49 |
| max | 6,279 | 8,632 | 512 | 2,373,500 | 0.3432 | 0.3691 | 368.83 |
| mem_ctrl | 31,001 | 47,906 | 1,187 | 2,465,821 | 0.9151 | 0.9828 | 419.16 |
| tinyRocket | 104,336 | 152,090 | 4,561 | 8,373,687 | 3.3765 | 3.5616 | 566.09 |
| jpeg | 233,573 | 343,382 | 4,962 | 4,816,133 | 4.6663 | 5.0562 | 857.41 |
| hyp | 420,769 | 634,848 | 256 | 88,956,323 | 15.0327 | 15.7461 | 885.24 |
| dft | 525,762 | 733,211 | 37,597 | 5,381,365 | 14.0344 | 14.8853 | 2,796.00 |
All 21 profiling runs complete successfully. The largest evaluated graph, dft, contains 525,762 nodes and 733,211 edges, for which mandatory feature construction takes 14.03 s and the full input-to-cache pipeline takes 14.89 s with a peak RSS of 2.73 GiB. Runtime depends not only on graph size but also on support density; for example, hyp contains fewer nodes than dft but requires 15.03 s of preprocessing due to its 88.96 million parity-specific support memberships. These results demonstrate that complete-graph preprocessing remains feasible at the tested scale.
A.7 SYNTHESIS-INDUCED TOPOLOGY ROBUSTNESS DETAILS
For the topology-robustness evaluation, we randomly select a fixed subset of 20 eligible ForgeEDA test circuits and independently generate resyn2, dc2, rewrite, and refactor views for each circuit. Whole-circuit functional equivalence between the original and transformed AIGs is first verified using ABC CEC.
To establish cross-view node correspondences, each graph is simulated using 15,000 identical random input patterns under the same PI ordering and a fixed seed. Nodes with identical simulation signatures are treated as candidate matches, and the resulting mappings are further verified by CEC. All methods are evaluated using fixed ForgeEDA checkpoints without retraining.
For representation consistency, we compute CKA between the representations of matched nodes in the original and transformed graphs. The corresponding results are reported in Table 5.
Task-Level Robustness. We additionally evaluate equivalent-gate MAE on the same transformed circuits. Original-graph EQ pairs are retained only when both endpoints can be mapped in all four transformed views. The transformed views reuse the corresponding original truth-table distances , and all methods are evaluated on the same matched pairs.
CircuitGate achieves the lowest MAE under all four transformations, providing complementary task-level evidence for its robustness to synthesis-induced topology variations.
A.8 ADDITIONAL MATERIALS OF RQ5: HYPERPARAMETER SENSITIVITY
Motivation. We further examine the sensitivity of CircuitGate to its loss weights, support-sketch dimension, propagation depth, and reconvergence formulation. For each parameter group, we vary one setting while keeping the remaining components fixed. The default configuration is , , , , , , with merge-gate reconvergence.
Results. Table 13 reports the detailed results. With MAE as the primary metric, the default settings , , , , and achieve the lowest MAE within their corresponding parameter groups.
For , MAE varies from 0.0433 to 0.0467 across the evaluated settings. For , the default value of 0.05 achieves an MAE of 0.0433, whereas increasing the weight to 0.5 degrades MAE to 0.0695. Similarly, achieves an MAE of 0.0433, while increasing it to 4.0 raises MAE to 0.0451.
For the architectural parameters, provides the lowest MAE among the evaluated support dimensions. Increasing the propagation depth from three to nine layers progressively improves MAE
Table 12: Equivalent-gate identification MAE (↓) under synthesis-induced topology transformations. Best and second-best results are bold and underlined, respectively.
| Model | resyn2 | dc2 | rewrite | refactor |
|---|---|---|---|---|
| GCN | 0.3724 | 0.3721 | 0.3732 | 0.3726 |
| GAT | 0.3662 | 0.3696 | 0.3649 | 0.3644 |
| GraphSAGE | 0.2477 | 0.2417 | 0.2447 | 0.2444 |
| DeepGate | 0.2138 | 0.2275 | 0.2474 | 0.2395 |
| DeepGate2 | 0.2814 | 0.2805 | 0.2850 | 0.2911 |
| DeepGate3 | 0.1971 | 0.1933 | 0.1919 | 0.1921 |
| DeepGate4 | 0.2361 | 0.2335 | 0.2366 | 0.2380 |
| HOGA | 0.3806 | 0.3771 | 0.3759 | 0.3754 |
| PolarGate | 0.2580 | 0.2603 | 0.2627 | 0.2625 |
| FuncGNN | 0.2537 | 0.2573 | 0.2583 | 0.2571 |
| AIGer | 0.2499 | 0.2523 | 0.2567 | 0.2565 |
| MGVGA | 0.2249 | 0.2165 | 0.2180 | 0.2186 |
| CircuitGate | 0.1661 | 0.1630 | 0.1138 | 0.1152 |
Table 13: Hyperparameter sensitivity on equivalent-gate identification. Bold parameter values denote the default settings, while bold metric values indicate the best result within each parameter group.
| Parameter | Value | MAE ↓ | MSE ↓ | AP ↑ | F1 ↑ |
|---|---|---|---|---|---|
| 0 | 0.0457 | 0.0132 | 0.0412 | 0.1235 | |
| 0.05 | 0.0433 | 0.0118 | 0.0469 | 0.1149 | |
| 0.1 | 0.0467 | 0.0132 | 0.0453 | 0.1079 | |
| 0.2 | 0.0437 | 0.0122 | 0.0429 | 0.1126 | |
| 0 | 0.0495 | 0.0135 | 0.0351 | 0.1007 | |
| 0.02 | 0.0448 | 0.0125 | 0.0439 | 0.1239 | |
| 0.05 | 0.0433 | 0.0118 | 0.0469 | 0.1149 | |
| 0.1 | 0.0462 | 0.0130 | 0.0440 | 0.1078 | |
| 0.2 | 0.0487 | 0.0140 | 0.0380 | 0.0995 | |
| 0.5 | 0.0695 | 0.0182 | 0.0383 | 0.0655 | |
| 0 | 0.0444 | 0.0126 | 0.0416 | 0.1076 | |
| 0.25 | 0.0433 | 0.0118 | 0.0469 | 0.1149 | |
| 0.5 | 0.0453 | 0.0128 | 0.0413 | 0.1053 | |
| 1.0 | 0.0438 | 0.0120 | 0.0515 | 0.1353 | |
| 2.0 | 0.0447 | 0.0126 | 0.0620 | 0.1251 | |
| 4.0 | 0.0451 | 0.0126 | 0.0424 | 0.1025 | |
| 16 | 0.0456 | 0.0127 | 0.0470 | 0.1117 | |
| 32 | 0.0458 | 0.0130 | 0.0427 | 0.1056 | |
| 64 | 0.0433 | 0.0118 | 0.0469 | 0.1149 | |
| 128 | 0.0447 | 0.0115 | 0.0507 | 0.1128 | |
| 3 | 0.0684 | 0.0198 | 0.0338 | 0.0917 | |
| 5 | 0.0541 | 0.0153 | 0.0380 | 0.1057 | |
| 7 | 0.0496 | 0.0141 | 0.0451 | 0.1112 | |
| 9 | 0.0433 | 0.0118 | 0.0469 | 0.1149 | |
| 11 | 0.0445 | 0.0126 | 0.0501 | 0.1040 | |
| 13 | 0.0454 | 0.0129 | 0.0406 | 0.1026 | |
| Reconv. | None | 0.0561 | 0.0175 | 0.0229 | 0.0670 |
| Flag | 0.0454 | 0.0129 | 0.0403 | 0.1058 | |
| Merge | 0.0433 | 0.0118 | 0.0469 | 0.1149 |
from 0.0684 to 0.0433, whereas further increasing the depth to 11 or 13 layers does not provide additional gains. For reconvergence modeling, the merge-gate formulation achieves an MAE of 0.0433, reducing MAE by 4.6% relative to the binary flag formulation and by 22.8% relative to omitting reconvergence modeling.
Overall, the results show that CircuitGate performs favorably across moderate parameter settings, while overly strong logic regularization or insufficient propagation depth leads to noticeable performance degradation.
A.9 PROPAGATION AND ARCHITECTURE DETAILS
Initialization. Under the default configuration, each node is represented by an 8-dimensional input vector, and the hidden representation has dimension 256, with for each latent state.
The first propagation layer initializes the two latent states as
where denotes the initialization aggregation operator.
Subsequent Propagation. After initialization, the two latent states are concatenated into . The encoded PI-dependency representation is introduced after the first layer and retained throughout subsequent propagation, while the reconvergence descriptor controls its contribution during node updates.
Network Configuration. The detailed architecture of the auxiliary modules is summarized in Table 14. All three MLPs contain three linear layers, with Batch Normalization, ReLU activation, and dropout after the first two layers.
Table 14: Architecture details of CircuitGate.
| Module | Input | Hidden | Output | Dropout |
|---|---|---|---|---|
| Support MLP | ||||
| MLP | ||||
| MLP | ||||
| Probability head |
Node Handling. The processed graphs contain three gate types: PI, AND, and explicit NOT nodes. PI nodes are identified by the PI gate type and initialize their positive-parity support with their graph-local PI index. Primary outputs are identified by zero fanout and receive an explicit output-status feature. Reconvergence descriptors are constructed only for two-input AND nodes; all other nodes use a zero reconvergence descriptor. All node types otherwise share the same propagation and update rules.