Beyond Message Passing: A Symbolic Alternative for Expressive and Interpretable Graph Learning
Organizations: School of Computer Science, McGill University, Montreal, Canada · Department of Computer Science, University of Toronto, Toronto, Canada
Abstract
Graph Neural Networks (GNNs) have become essential in high-stakes domains such as drug discovery, yet their black-box nature remains a significant barrier to trustworthiness. While self-explainable GNNs attempt to bridge this gap, they often rely on standard message-passing backbones that inherit fundamental limitations, including the 1-Weisfeiler-Lehman (1-WL) expressivity barrier and a lack of fine-grained interpretability. To address these challenges, we propose SymGraph, a symbolic framework designed to transcend these constraints. By replacing continuous message passing with discrete structural hashing and topological role-based aggregation, our architecture theoretically surpasses the 1-WL barrier, achieving superior expressiveness without the overhead of differentiable optimization. Extensive empirical evaluations demonstrate that SymGraph achieves state-of-the-art performance, outperforming existing self-explainable GNNs. Notably, SymGraph delivers 10x to 100x speedups in training time using only CPU execution. Furthermore, SymGraph generates rules with superior semantic granularity compared to existing rule-based methods, offering great potential for scientific discovery and explainable AI.
Figures & tables
| Ba2Motifs | BaMultiShapes | PROTEINS | Mutagenicity | NCI1 | BBBP | |||||||
| Model | Acc | Time | Acc | Time | Acc | Time | Acc | Time | Acc | Time | Acc | Time |
| GCN | 58.3 2.3 | 0.2 0.0 | 70.7 9.7 | 0.5 0.0 | 71.1 1.5 | 2.8 0.4 | 81.6 1.0 | 14.4 1.6 | 76.0 1.3 | 12.6 1.1 | 86.1 1.0 | 5.3 1.0 |
| GraphSAGE | 48.2 0.8 | 0.3 0.0 | 50.6 2.1 | 0.3 0.0 | 72.3 2.3 | 2.2 1.1 | 81.9 1.6 | 13.9 3.2 | 79.6 0.3 | 12.9 1.4 | 86.9 1.0 | 4.6 1.7 |
| GAT | 48.2 0.8 | 0.3 0.0 | 49.4 2.1 | 0.3 0.0 | 70.9 1.0 | 1.8 1.1 | 82.2 1.2 | 18.2 1.9 | 78.0 2.0 | 16.4 4.3 | 88.2 2.0 | 6.9 1.0 |
| GIN | 100.0 0.0 | 0.3 0.0 | 95.0 1.5 | 0.4 0.2 | 68.5 2.3 | 3.0 0.4 | 83.0 1.6 | 13.1 1.4 | 81.2 1.3 | 11.9 2.2 | 87.7 1.0 | 5.5 0.6 |
| GNAN | 49.5 0.5 | 51.8 1.2 | 51.4 1.6 | 50.4 1.2 | 59.6 0.0 | 65.2 1.8 | 55.4 0.1 | 163.6 5.7 | 52.1 1.7 | 326.7 13.1 | 23.5 0.0 | 81.8 3.4 |
| Model Variant | PROTEINS | Mutagenicity | NCI1 | BBBP |
|---|---|---|---|---|
| Ablation 1: Topological Role Encoding via Orbits (Orbits) | ||||
| DT w/o Orbits | 70.0 3.4 | 78.4 0.9 | 73.0 1.2 | 84.4 1.4 |
| RF w/o Orbits | 75.3 2.6 | 81.6 0.7 | 81.5 1.1 | 86.7 1.3 |
| Ablation 2: Structural Histograms (Counts) | ||||
| DT w/o Counts | 66.7 4.7 | 80.1 0.9 | 74.2 1.0 | 84.6 1.4 |
| RF w/o Counts | 75.2 1.4 | 83.4 1.7 | 82.9 1.7 | 88.5 1.2 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Ba2Motifs | BAMultiShapes | Mutagenicity | BBBP | NCI1 | PROTEINS | |
|---|---|---|---|---|---|---|
| #Graphs | 1,000 | 1,000 | 4,337 | 2,050 | 4,110 | 1,113 |
| Avg. | 25.0 | 40.0 | 30.3 | 23.9 | 29.9 | 39.1 |
| Avg. | 51.0 | 87.0 | 30.8 | 51.6 | 32.3 | 145.6 |
| MUTAG | BACE | HIV | IMDB-BINARY | TreeGrid | BaShapes | |
|---|---|---|---|---|---|---|
| #Graphs | 188 | 1,513 | 1,484 | 1,000 | 1 | 1 |
| Avg. | 17.9 | 34.1 | 26.1 | 19.8 | 1,231 | 700 |
| Avg. | 39.6 | 73.7 | 55.5 | 193.1 | 1,550 | 2,105 |
| Dataset | K_HOPS | TREE_MODE | MAX_LEAVES_CAP | POPULATION_SIZE | GENERATION | JUDGE_MAX_LEAVES | JUDGE_CCP_ALPHA |
| Ba2Motifs | 1 | ’LEAVES’ | — | — | — | — | — |
| BaMultiShapes | 1 | ’LEAVES’ | — | — | — | — | — |
| PROTEINS | 1 | ’LEAVES’ | 16 | 100 | 5 | 48 | 0.001 |
| Mutagenicity | 2 | ’LEAVES’ | 16 | 100 | 5 | 48 | 0.001 |
| NCI1 | 2 | ’LEAVES’ | 16 | 100 | 5 | 48 | 0.001 |
| BBBP | 2 | ’LEAVES’ | 16 | 100 | 5 | 32 | 0.001 |
| MUTAG | BACE | ClinTox | IMDB | TreeGrid | BaShapes | |||||||
| Model | Acc | Time | Acc | Time | Acc | Time | Acc | Time | Acc | Time | Acc | Time |
| GCN | 74.7 6.1 | 0.5 0.2 | 80.7 1.7 | 4.8 1.1 | 92.3 0.6 | 8.0 4.6 | 49.4 2.1 | 0.3 0.0 | 71.6 1.1 | 44.1 0.8 | 85.5 2.0 | 34.5 1.7 |
| GIN | 88.4 3.0 | 0.4 0.0 | 82.4 2.7 | 3.8 1.0 | 92.3 0.7 | 7.8 2.4 | 69.5 1.9 | 0.7 0.2 | 82.6 0.2 | 34.1 4.1 | 96.9 1.0 | 27.6 1.3 |
| GraphSAGE | 75.3 4.8 | 0.4 0.1 | 82.6 2.2 | 4.4 0.8 | 92.2 1.0 | 8.2 0.5 | 48.6 1.5 | 0.2 0.0 | 41.5 2.4 | 24.9 1.6 | 42.9 1.7 | 21.5 0.2 |
| GAT | 75.3 3.5 | 0.5 0.2 | 81.7 1.1 | 6.3 1.0 | 92.6 0.9 | 9.4 3.8 | 50.6 2.1 | 0.3 0.0 | 41.5 2.4 | 32.6 2.0 | 42.9 1.7 | 28.7 1.3 |
| KerGNN | 69.0 2.2 | 19.5 0.4 | 57.0 2.7 | 91.8 0.1 | 92.4 1.0 | 10.3 1.0 | 51.3 1.6 | 65.9 0.2 | — | — | — | — |
| Aspect | SMARTS Rules (Chemical Standard) | SymGraph ’s Rules |
|---|---|---|
| Structural Constraints | Atom and bond constraints at specific positions (e.g., [O] , [C]-[O] ) | Orbit-wise node and edge constraints (e.g., , ) |
| Topological Roles | Defined by bond positions and connectivity | Orbit indices encoding structural symmetry via hashing |
| Logical Flexibility | Logical OR over pattern variants | Disjunctive Normal Form (DNF) clauses |
| Compositionality | Recursive conjunctions of conditions | Conjunctions of structural predicates |
| Generalization | Matches molecules not present in training data | Covers structural families beyond observed motifs |
| Implementation | Hand-crafted or mined patterns | Automatically induced via RDKit-compatible predicates |