Efficient NPN Classification for Large Functions using Graph Neural Network
Abstract
Two Boolean functions are considered NPN equivalent if one can be transformed into the other by negating inputs, permuting inputs, or negating the output. Efficient NPN classification is valuable in fields such as logic synthesis, quantum computing, and information theory. However, exact NPN classification demands exhaustive enumeration of all possible input permutations and negations. Its complexity grows exponentially, making it impractical for larger functions with more inputs. In this paper, we introduce the first learning-based formulation for NPN classification by recasting it as NPN action prediction. Our method represents Boolean functions as AND-Inverter Graphs (AIGs) and applies a bidirectional heterogeneous graph neural network to predict input negations, output negation, and input permutations. To mitigate the non-canonicity of logic networks, we further introduce graph rewriting techniques that reduce structural ambiguity and recover useful symmetries before prediction. Experimental results show that NPN action prediction is learnable, that the resulting canonicalization quality improves over heuristic baselines, and that on practical benchmarks our method approaches exact methods on tractable cases while scaling to functions with up to 16 inputs.
Create a lesson
Metadata
- Comments
- 9 pages, 4 figures. Accepted to ICCAD 2026
Related papers
Spatiotemporal Graph Neural Networks for Fault Detection and Structural Learning in Chemical Processes: Use Case on the Tennessee Eastman Process
Shared title terminologycs.AIRayane Ammar Khodja, Alexandre Voisin, Victor Costa et al.
Early Stopping in Large Reasoning Models: A Survey and Empirical Audit of Efficiency and Reliability
Shared title terminologycs.AIQuang Hung Nguyen, Hanh Nguyen, Thanh Tam Nguyen et al.
Prune Gradually, Adapt Sparsely: Efficient Pruning of Large Language Models at Extreme Sparsity
Shared title terminologycs.AIJean Lucien Randrianantenaina, Hung Nguyen, Nasib Ullah et al.
Payroll Fraud Detection in Synthetic HR/ERP Graphs: An Inductive Comparison of Rules, Path Features, and Graph Neural Networks
Shared title terminologycs.AIXiaobo Chen, Genliang Zhu, Ziyuan Wang et al.
Similarity-Constrained Reweighting for Complex Query Answering on Knowledge Graphs
Shared title terminologycs.AIDaniel Daza, Alberto Bernardi, Luca Costabello et al.
Neural Agent Compiler: Learning to Schedule Soft Dependencies
Shared title terminologycs.AIBo Yan, Peng Wang, Zihan Chen et al.