GemNet-OC: Developing Graph Neural Networks for Large and Diverse Molecular Simulation Datasets

Johannes Gasteiger, Muhammed Shuaibi, Anuroop Sriram, Stephan Günnemann, Zachary Ulissi, C. Lawrence Zitnick, Abhishek Das

TL;DR

GemNet-OC is a new Graph Neural Network (GNN) architecture that sets a new state-of-the-art on the massive Open Catalyst 2020 (OC20) dataset while being 10x faster to train than previous leaders. The paper reveals a "generalization gap" in GNN research: model choices that work well on small, narrow datasets often fail or even backfire on large, diverse ones, highlighting the need for representative benchmarks like their proposed OC-2M subset.

What Problem Does This Paper Address?

In the world of molecular simulation, GNNs are the go-to tool for predicting atomic forces and energies. However, most GNN development happens on "toy" datasets—small molecules or single-trajectory simulations (like MD17)—because they are computationally cheap.

The authors ask a critical question: Do model improvements found on small datasets actually translate to large-scale, real-world chemical systems? Real-world datasets like OC20 are orders of magnitude larger and more complex in four key ways:

  1. Chemical Diversity: More elements and interacting pairs.
  2. System Size: More atoms per sample.
  3. Dataset Size: Millions of samples vs. thousands.
  4. Domain Shift: Test sets that look very different from training data.

Methods

The authors introduce GemNet-OC, an evolution of the Geometric Message Passing Neural Network. It incorporates several novel optimizations to handle large-scale diversity efficiently:

  • Nearest Neighbors vs. Cutoffs: Instead of a fixed distance cutoff (which can lead to disconnected graphs in sparse systems or exploding memory in dense ones), they use a fixed number of nearest neighbors. This triples throughput and ensures consistent memory usage.
  • Simplified Basis Functions: They decouple radial and angular basis functions, using Legendre polynomials to replace expensive spherical harmonics, increasing throughput by 29% without losing accuracy.
  • Tractable Quadruplets: Dihedral angles (quadruplet interactions) are notoriously expensive ($O(N^2)$). GemNet-OC restricts these to only the closest neighbors, making them computationally feasible for large systems.
  • Interaction Hierarchy: The model uses a multi-level approach, passing messages between atom embeddings directly for long-range interactions while using edge-based messages for short-range geometric details.
Main parts of the GemNet-OC architecture.

Datasets

The study utilizes a wide range of benchmarks to test generalization:

  • Traditional Small Datasets: MD17 (8 molecules) and COLL (molecule collisions).
  • Large-Scale Dataset: The full Open Catalyst 2020 (OC20), featuring 134 million samples of catalysts and adsorbates.
  • OC20 Subsets: The authors created six subsets to isolate specific complexity factors (e.g., OC-Rb for limited elements, OC-sub30 for small systems).
  • OC-2M: A newly proposed 2-million-sample random subset of OC20 designed to be a "goldilocks" proxy—small enough for fast iteration but diverse enough to reflect full OC20 performance.
Table 1: Common molecular simulation datasets. Datasets prior to OC20 only cover (1) a narrow range of elements (and molecules), and consequently a low number of neighbor pairs (defined as distinct element pairs within 5 Å), and (2) small systems. Furthermore, they (3) provide far fewer samples and (4) often use a test set that is correlated with the training set since they consist of data from the same simulation trajectories. We investigate six OC20 subsets to isolate these effects.

Key Insights and Ideas

  • The Generalization Trap: The most striking finding is that model components often have opposite effects on different datasets. For instance, radial Bessel basis functions significantly help on small datasets but perform worse than simple Gaussians on the full OC20.
  • Scaling Behavior: On small datasets, increasing model width or depth quickly leads to an "optimum" followed by performance degradation (overfitting). On large datasets, performance continues to improve with scale, suggesting that molecular ML cannot be "solved" by scaling alone without addressing data diversity.
  • OC-2M as a Research Accelerator: The authors found that performance trends on OC-2M correlate very highly with the full OC20. This allows researchers to develop models 70x faster while remaining confident that their improvements will hold up at scale.
  • Direct Force Prediction: While many models derive forces by taking the gradient of the energy (which is physically consistent), GemNet-OC predicts forces directly. This is significantly faster and, surprisingly, achieves better accuracy on large, noisy datasets like OC20.

Key Results

GemNet-OC dominates the OC20 leaderboard across all tasks (S2EF, IS2RS, IS2RE):

  • Accuracy: It outperforms the previous state-of-the-art (GemNet-XL) by 16%.
  • Efficiency: It reaches the final accuracy of GemNet-XL in 10x fewer GPU hours.
  • Proxy Power: A GemNet-OC model trained only on the 2M subset outperforms previous models trained on the entire 134M sample dataset.
Figure 2: Convergence of GemNet-OC and previous models. GemNet-OC surpasses GemNet-dT after 600 GPU hours, and is ∼12x faster than GemNet-XL.
Table 2: Training throughput and results for the validation set and the three test tasks of OC20, averaged across all four splits. GemNet-OC-L outperforms prior models by 16 %. GemNet-OC trained on OC-2M outperforms all pre-GemNet models trained on the full OC20 dataset (∼134 M samples).

Limitations and Future Work

  • Out-of-Distribution (OOD) Challenges: While GemNet-OC improves OOD performance, the gap between in-distribution and OOD results remains large. Scaling models provides only modest gains here.
  • Physical Consistency: By predicting forces directly rather than as an energy gradient, the model loses "energy conservation" (it is non-conservative). While this helps accuracy on OC20, it might be a drawback for certain long-term molecular dynamics applications.
  • Future Directions: The authors suggest that future work should focus on better modeling of long-range interactions and developing architectures that specifically target chemical diversity rather than just raw dataset size.

Summary updated

BibTeX
@article{gasteiger2022gemnet,
  author = {Johannes Gasteiger and Muhammed Shuaibi and Anuroop Sriram and Stephan Günnemann and Zachary Ulissi and C. Lawrence Zitnick and Abhishek Das},
  title = {{GemNet-OC: Developing Graph Neural Networks for Large and Diverse Molecular Simulation Datasets}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=u8tvSxm4Bs},
}
Figure