Abstract
Graph neural networks have achieved impressive results in predicting molecular properties, but they do not directly account for local and hidden structures in the graph such as functional groups and molecular geometry. At each propagation step, GNNs aggregate only over first-order neighbours, ignoring important information contained in subsequent neighbours as well as the relationships between those higher-order connections. In this work, we generalize graph neural nets to pass messages and aggregate across higher-order paths. This allows for information to propagate over various levels and substructures of the graph. We demonstrate our model on several tasks in molecular property prediction.
Introduction: Overcoming Structural and Geometric Blindness
Standard Graph Neural Networks (GNNs) typically update a node's state by aggregating information from its immediate neighbors. While effective, this local message-passing paradigm creates two major hurdles: structural blindness and geometric ignorance.
Structural blindness refers to the difficulty GNNs face in capturing large-scale features, such as rings or distant functional groups, which require many layers of message passing to integrate. For example, identifying the relationship between an alcohol group and a distant ring structure in a molecule like cyclohexanol requires multiple propagation steps in a standard architecture.
Geometric ignorance stems from the inability of simple edge-based updates to naturally represent 3D spatial arrangements. Chemical properties are often dictated by features like bond angles and dihedral angles, which cannot be easily captured by looking at just two atoms at a time. By restricting message passing to immediate edges, we lose the "connective tissue" that defines molecular identity and reactivity.
Methods: Path-Based Message Passing
We propose generalizing the Message Passing Neural Network (MPNN) framework to aggregate across higher-order paths. Instead of just summing messages from neighbors, the Path MPNN sums messages over all simple paths (paths without loops) up to a certain length $\ell$.
This path-based aggregation allows the model to incorporate features unique to specific sequences of nodes. For structural analysis, it can flag if a path passes through a specific functional group or ring. For geometry, paths of length 3 allow the model to include bond angles ($\alpha$) and dihedral angles ($\phi$) directly into the message function. This enables the network to distinguish between isomers without needing a global 3D coordinate frame. The architecture utilizes a Graph Attention mechanism for aggregation and the "Set2Set" algorithm for the final readout.
Results and Discussion
The Path MPNN was evaluated on several benchmark datasets, consistently outperforming standard MPNNs and other state-of-the-art baselines:
- QM8: For predicting electronic spectra, Path MPNN achieved a Mean Absolute Error (MAE) of 8.70, a significant improvement over the standard MPNN (11.30) and the previous best "Path Transformer" (10.20).
- ESOL: In predicting water solubility, the model reduced the Root Mean Squared Error (RMSE) to 0.41, compared to 0.47 for a standard MPNN.
- CEP: The model demonstrated strong performance on photovoltaic efficiency for ~20,000 molecules from the Harvard Clean Energy Project.
- CORA: On this citation network, the "Path GCN" variant achieved 82.4% accuracy, outperforming other higher-order models like MixHop (81.9%) and PAN (82.0%).
A key insight is that chemistry is naturally "low-valency"—atoms typically have four or fewer neighbors. This makes path-based message passing surprisingly efficient for chemical applications, despite the theoretical $O(N^k)$ complexity.
Conclusion
By encoding 3D space via topology and looking beyond the adjacency matrix, Path MPNN captures the rich relational data of molecular paths. While the approach is highly effective for molecules, future work will address scalability for denser graphs through sampling strategies and explore the explicit modeling of cyclic paths.
Summary updated