ComENet: Towards Complete and Efficient Message Passing for 3D Molecular Graphs

Limei Wang, Yi Liu, Yuchao Lin, Haoran Liu, Shuiwang Ji

Abstract

In the fields of drug discovery and materials science, accurately modeling the 3D spatial arrangement of atoms—known as the conformation—is essential for predicting molecular properties and energy. However, existing 3D Graph Neural Networks (GNNs) face a significant trade-off between geometric completeness and computational efficiency. We introduce ComENet (Complete and Efficient Network), a novel GNN architecture that achieves rigorous 3D completeness using a 1-hop message passing scheme. By incorporating specific rotation angles to link local structures, ComENet captures full geometric information while operating with linear complexity. Our evaluations show that ComENet is 6 to 10 times faster than previous state-of-the-art methods like SphereNet and DimeNet++ while delivering superior accuracy on large-scale benchmarks including OC20 and Molecule3D.

What Problem Does This Paper Address?

Molecules are traditionally modeled as 2D graphs of atoms and bonds. However, this representation ignores the 3D spatial arrangement that dictates a molecule's physical properties. Existing 3D GNNs typically fall into two categories, both of which have drawbacks:

  1. Incompleteness: Simple models often rely solely on inter-atomic distances. These models fail to distinguish between different 3D shapes that share identical distances, such as mirror images or different rotations around a single bond.
  2. Inefficiency: Advanced models that achieve "local completeness" by capturing angles and torsions often utilize complex 2-hop message passing. This results in high computational complexity—typically $O(nk^2)$ or $O(nk^3)$, where $n$ is the number of atoms and $k$ is the average degree—making them impractical for massive real-world datasets.
Energy landscapes of different molecular conformers.

As shown in the figure above, different spatial arrangements (conformers) of the same molecule can have vastly different energy levels. ComENet aims to bridge the gap between completeness and efficiency, providing a rigorously complete pipeline that remains fast enough for large-scale molecular modeling.

Methods

The core innovation of ComENet is a message passing scheme that operates strictly within a 1-hop neighborhood, maintaining linear $O(nk)$ complexity. The approach is built on two primary pillars:

  • Local Completeness: Within an atom's immediate neighborhood, ComENet uses a Spherical Coordinate System $(d, \theta, \phi)$ to uniquely locate every neighbor. The model optimizes the construction of local coordinate axes to ensure maximum efficiency.
  • Global Completeness via Rotation Angles ($\tau$): To connect these local neighborhoods into a globally complete structure, the authors introduce "rotation angles." For any edge connecting two atoms $i$ and $j$, the model calculates the angle $\tau_{ij}$ between the planes formed by their respective local structures. This allows the model to distinguish between conformers—molecules with identical connectivity but different spatial twists.
Geometric completeness via 1-hop neighborhoods and rotation angles.

These geometric features $(d, \theta, \phi, \tau)$ are transformed into physically meaningful vectors using quantum-inspired basis functions, such as Spherical Bessel functions and Spherical Harmonics. These representations are then processed through Interaction Blocks to update the atomic embeddings.

Datasets and Evaluation

ComENet was evaluated on three major benchmarks to test its scalability and accuracy:

  • OC20 (Open Catalyst 2020): A massive dataset of over 660,000 graphs for catalyst discovery, characterized by large graphs averaging 77 nodes.
  • Molecule3D: A large-scale dataset containing nearly 4 million molecules with geometries derived from high-level Density Functional Theory (DFT) simulations.
  • QM9: A standard benchmark of 134,000 small organic molecules used to predict various chemical properties.

Key Insights and Results

  • The Power of 1-Hop: The research demonstrates that 2-hop or 3-hop neighborhoods are not required for geometric completeness. By carefully defining the relative orientation (the $\tau$ angle) between 1-hop local structures, the entire 3D graph can be reconstructed.
  • Massive Speedups: ComENet is 6-10 times faster in both training and inference than prior leaders. On the OC20 dataset, ComENet completed an epoch in 20 minutes, whereas SphereNet required nearly 5 hours on identical hardware.
  • State-of-the-Art Accuracy: ComENet outperformed all baselines in Mean Absolute Error (MAE) on the OC20 "Initial Structure to Relaxed Energy" (IS2RE) task. Ablation studies confirmed that removing the rotation angle $\tau$ significantly degraded performance, proving that global completeness is vital for modeling complex 3D systems.

Limitations and Future Work

While ComENet is highly efficient, it still requires 3D coordinates as input. In many practical applications, such as initial drug screening, these coordinates are unknown and computationally expensive to generate. Future research may involve integrating ComENet into generative models to predict 3D structures from 2D graphs or employing contrastive learning to leverage the vast amount of available 2D molecular data that lacks 3D information.

Summary updated

BibTeX
@inproceedings{wang2022comenet,
  author = {Limei Wang and Yi Liu and Yuchao Lin and Haoran Liu and Shuiwang Ji},
  title = {{ComENet: Towards Complete and Efficient Message Passing for 3D Molecular Graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure