Abstract
Logic circuit optimization is a fundamental challenge in chip design, traditionally addressed by hand-engineered heuristics. This paper presents a scalable framework combining Reinforcement Learning (RL) and Graph Convolutional Networks (GCN) to optimize Majority-Inverter Graphs (MIGs). By introducing size-independent node embeddings and a multi-action schema for simultaneous graph transformations, the proposed model overcomes the scalability limitations of previous machine learning approaches. Experimental results demonstrate that the model achieves performance comparable to industry-standard tools on benchmark circuits and significantly outperforms them on large random graphs, achieving up to 1.75× better size reduction.
Introduction
Logic synthesis—the process of minimizing gate counts in a circuit—is an NP-hard problem essential for efficient hardware design. While tools like UC Berkeley's ABC rely on sophisticated heuristics, recent research has explored deep learning alternatives. However, existing RL-based methods often suffer from $\mathcal{O}(N^2)$ complexity due to global node indexing and sequential action execution, limiting their applicability to real-world circuit sizes. This work addresses these bottlenecks to enable ML-driven optimization for arbitrary circuit sizes.
Methodology
The framework represents logic circuits as Majority-Inverter Graphs (MIGs). An RL agent learns to apply local Boolean transformations to minimize the graph size.
Scalable Node Embeddings
A core innovation is the shift from global Node IDs to localized embeddings. Nodes identify neighbors within their receptive field as "self" or "non-self," allowing the GCN to capture local topological features without dependence on total graph size.
This enables zero-shot generalization from small training circuits to large inference-time circuits, as the network learns to recognize patterns rather than specific node indices.
Multi-Action Schema
To improve efficiency, the GCN outputs action probabilities for every node simultaneously. The environment manages potential collisions and illegal moves, allowing for parallel modifications across the graph in a single step. The model is trained via Policy Gradient methods, rewarding the agent based on the net reduction in gate count per episode.
Experimental Results
The model was evaluated against the ABC tool and the DLLOA baseline across various datasets, including Sum-of-Products (SOP) decompositions, random graphs, and ISCAS85 benchmarks.
The RL agent achieved 100% optimality on SOP4 and significantly outperformed ABC on random graphs, reaching 175% relative size reduction on 50-node graphs and 152% on 500-node graphs. On standard benchmarks like C1355, it remains competitive, reaching 93% of the baseline's performance. The performance gap on some benchmarks is attributed to the difference in underlying representations; ABC operates on And-Inverter Graphs (AIGs), which naturally align with the structure of standard benchmarks, whereas this method utilizes MIGs.
Discussion and Conclusion
The transition to relative embeddings and parallel graph edits marks a significant step toward practical ML-based logic synthesis. While the current action space is limited to local moves, the agent effectively chains these to achieve complex optimizations. Future work could involve adapting the architecture to AIGs to further enhance performance on industry-standard benchmarks. Despite scaling challenges with high-density connectivity, this approach demonstrates that scalable, size-agnostic GCNs are a viable path for automated hardware design.
Summary updated