In these lecture notes, we first recall the connection between graph neural networks, Weisfeiler-Lehman tests and logics such as first-order logic and graded modal logic. We then present a modal logic in which counting modalities appear in linear inequalities in order to solve verification tasks on graph neural networks. We describe an algorithm for the satisfiability problem of that logic. It is inspired from the tableau method of vanilla modal logic, extended with reasoning in quantifier-free fragment Boolean algebra with Presburger arithmetic.
These lecture notes first review the connections between graph neural networks, the Weisfeiler-Lehman test, first-order logic, graded modal logic, and other logical systems. Subsequently, a modal logic is proposed in which counting modalities appear in linear inequalities to address graph neural network verification tasks. An algorithm for the satisfiability problem of this logic is described, inspired by tableau methods from traditional modal logic and extended with reasoning over quantifier-free fragments of Boolean algebra and Presburger arithmetic.
Graph neural networks (GNNs) have been widely applied in social network recommendations, knowledge graphs, chemical molecular analysis, drug discovery, and numerous other domains. However, the verification of GNNs faces significant challenges:
Expressiveness Limitations: The expressiveness of GNNs is constrained by the 1-WL (Weisfeiler-Lehman) test, making it impossible to distinguish certain non-isomorphic graphs
Verification Task Complexity: The need to verify whether GNNs satisfy specific specifications, such as safety and correctness properties
Insufficient Theoretical Foundation: Lack of systematic logical frameworks to describe and verify GNN behavior
Establishing Theoretical Connections: Systematically elucidates the deep connections between GNNs, the Weisfeiler-Lehman test, and logical systems (FO, FOC, GML)
Proposing K# Logic: Designs a novel modal logic K# capable of expressing counting and aggregation operations in GNNs
Algorithm Design: Develops a PSPACE algorithm for the satisfiability problem of K# logic, based on tableau methods and QFBAPA reasoning
Complexity Analysis: Establishes computational complexity bounds for GNN verification problems under different activation functions
Practical Framework: Provides a complete framework for reducing GNN verification tasks to logical satisfiability problems
procedure satK#(Γ)
Process Boolean rules and 1φ constructions
Extract linear inequality constraints S
Guess non-zero regions B ⊆ {0,1}d, |B| ≤ 2d log₂(4d)
Replace #ψᵢ with ∑ρ∈B|ρᵢ=1 sρ
Check QFPA satisfiability
Recursively verify each region
The paper cites 65 important references, covering:
GNN theoretical foundations (Grohe 2021, Barceló et al. 2020)
Weisfeiler-Lehman test (Morris et al. 2019, Xu et al. 2019)
Modal logic (Blackburn et al. 2001, Tobies 1999)
Complexity theory (Grädel et al. 1997, Kuncak and Rinard 2007)
Neural network verification (Benedikt et al. 2024, Haase and Zetzsche 2019)
Overall Assessment: This is an excellent paper that combines theoretical depth with educational value. It not only addresses important theoretical problems in GNN verification but also establishes a solid foundation for subsequent research and practical applications. While lacking experimental validation, the significance of its theoretical contributions is undeniable.