Spherical Message Passing for 3D Molecular Graphs

Yi Liu, Limei Wang, Meng Liu, Yuchao Lin, Xuan Zhang, Bora Oztekin, Shuiwang Ji

TL;DR

Researchers have developed Spherical Message Passing (SMP) and SphereNet, a novel framework for learning the 3D representations of molecules. By shifting from standard Cartesian coordinates to a Spherical Coordinate System, the model captures essential geometric features like bond lengths, angles, and torsion (twists) with significantly lower computational complexity than previous state-of-the-art methods.

What Problem Does This Paper Address?

In drug discovery and materials science, a molecule’s function is largely dictated by its 3D shape. While standard Graph Neural Networks (GNNs) excel at understanding molecular topology (which atoms are connected), they often struggle to represent the precise spatial arrangement of those atoms.

To truly "see" a 3D molecule, a model needs to understand three geometric properties: distances between atoms, angles between bonds, and torsion angles (the twist between two planes of atoms).

Illustration of 3D molecular features including distances, angles, and torsion.

Capturing torsion is notoriously difficult. Traditional methods require examining "2-hop" neighbors (neighbors of neighbors), which causes the computational cost to explode as molecules get larger. This makes many high-accuracy models too slow for real-world, large-scale datasets.

Methods

The authors propose a shift to the Spherical Coordinate System (SCS). Instead of standard $(x, y, z)$ coordinates, they represent the relative position of atoms using a 3-tuple: $(d, \theta, \phi)$—representing distance, polar angle, and azimuthal (torsion) angle.

Definition of the Spherical Coordinate System (SCS) with a local reference plane.

Key Innovations

  1. Spherical Message Passing (SMP): Unlike previous models that require expensive 2-hop calculations to find torsion, SMP uses a clever "1-hop" edge-based strategy. It defines a local reference plane for each atom and calculates the twist of neighboring atoms relative to that plane. This reduces the computational complexity from $O(nk^3)$ to $O(nk^2)$, where $n$ is the number of atoms and $k$ is the average number of neighbors.
  2. SphereNet: This is the neural network architecture that implements SMP. To make the $(d, \theta, \phi)$ inputs physically meaningful, SphereNet uses Spherical Bessel functions and Spherical Harmonics as basis functions. These mathematical tools are often used to solve the Schrödinger equation, ensuring the network's representations align with underlying physical principles.
  3. Invariance: By using relative 3D information, the model is naturally invariant to translation and rotation. If a molecule is moved or rotated in space, the model’s prediction remains exactly the same.

Datasets

The authors evaluated SphereNet on three major benchmarks:

  • OC20 (Open Catalyst 2020): A massive dataset for catalyst discovery. The authors focused on the IS2RE task (predicting energy in a relaxed state).
  • QM9: A standard dataset containing roughly 134,000 small organic molecules with 12 different quantum chemical properties.
  • MD17: A dataset used to examine the precision of models in molecular dynamics simulations, specifically predicting the forces acting on atoms.

Key Insights and Ideas

  • The "Approximate Completeness" Trade-off: The authors prove that while their 1-hop torsion method cannot distinguish every possible theoretical 3D structure, the cases it misses are almost never found in actual chemistry. This allows them to trade a tiny bit of theoretical completeness for a massive gain in speed.
  • Chirality Matters: Many simple 3D models cannot distinguish between "left-handed" and "right-handed" molecules (enantiomers), which can have vastly different biological effects. By including torsion, SphereNet can naturally recognize chirality.
  • Physics-Informed Basis Functions: Simply feeding raw angles into a network doesn't work well. Using Spherical Harmonics allows the model to "smoothly" learn the geometric distribution of atoms in a way that mirrors how electrons behave around a nucleus.

Key Results

  • Efficiency: SphereNet achieved comparable performance to "complete" 2-hop models while being 4 times faster.
  • OC20: SphereNet set a new state-of-the-art on the OC20 dataset, reducing the average energy error by over 3% compared to the previous best model (GemNet-T).
  • QM9: The model achieved the best performance on 5 out of 12 molecular properties and improved the overall standardized mean absolute error across the entire dataset.
  • MD17: SphereNet consistently outperformed established models like SchNet and DimeNet, particularly in predicting atomic forces.

Limitations and Future Work

While SphereNet is highly efficient, the authors acknowledge that it is an invariant model, meaning it predicts scalar values (like energy). Some tasks require equivariant predictions (like predicting a force vector that rotates with the molecule). While they handle forces in MD17 through a workaround, a fully equivariant version of the spherical framework could be a powerful next step.

Additionally, the authors noted that while their 1-hop torsion covers almost all practical cases, there are still rare, highly complex geometric symmetries that SMP cannot distinguish. Future research may look into whether these "edge cases" ever become relevant in specialized materials science.

Summary updated

BibTeX
@inproceedings{liu2022spherical,
  author = {Yi Liu and Limei Wang and Meng Liu and Yuchao Lin and Xuan Zhang and Bora Oztekin and Shuiwang Ji},
  title = {{Spherical Message Passing for 3D Molecular Graphs}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=gDIuGaH2_Kd},
}
Figure