Logic Gate Graph Neural Networks with Exact Count-Preserving Rules

Xu, Dehn, Katzke, Tim, Müller, Emmanuel

–arXiv.org Artificial Intelligence 

Many Graph Neural Network (GNN) explainers select influential subgraphs for local predictions, but do not show which patterns the GNN uses across a class. Logic-based explanations address this with logical rules over combinations of subgraph patterns (motifs). However, these rules act as surrogates to the trained GNN and can disagree with the model. Self-explainable logic GNNs, such as LogiX-GIN, train continuous units and binarize them afterward, so their rules likewise describe a network that can predict differently from the trained continuous network. We propose a Logic Gate Graph Neural Network (LGGNN) that uses discrete logic gates during training and inference. The trained network can be translated into exact circuit rules, with node-threshold bits expressible in graded modal logic for binary node features. Across seven graph classification datasets, LGGNN beats the compared self-explainable GNNs on average, achieving a mean test accuracy of 87.16%, above GIN's 86.74%. To summarize the circuit rules, we also fit shorter motif rules by tracing class votes to subgraphs. These motif rules agree with the model's predictions on 71.24%-100.00% of test graphs and achieve higher overall mean fidelity than the baselines.