In the quest for renewable energy breakthroughs, scientists increasingly rely on atomic simulations to discover new catalysts. While Graph Neural Networks (GNNs) have become the gold standard for modeling these simulations, the most accurate models are notoriously memory-intensive.
Recent research from Meta FAIR and NERSC introduces Graph Parallelism, a novel method to scale GNNs to hundreds of millions—and potentially billions—of parameters. By distributing individual graphs across multiple GPUs, the researchers successfully scaled state-of-the-art models like DimeNet++ and GemNet, achieving up to a 21% performance boost and setting new records on the massive Open Catalyst 2020 (OC20) dataset.
The Memory Wall in Atomic GNNs
Unlike standard GNNs that only look at nodes (atoms) and edges (bonds), top-tier models for chemistry must account for higher-order interactions. These include the angles between triplets of atoms or the torsion between quadruplets.
These interactions are computationally explosive: a single graph with just 1,000 atoms can contain millions of triplets. This "memory wall" has historically capped GNNs at a few million parameters, preventing them from benefiting from the scaling laws that have revolutionized Natural Language Processing and Computer Vision.
Methods: Breaking the Memory Bottleneck
To break through this memory bottleneck, the authors propose a framework called Graph Parallelism.
First, they formalize an Extended Graph Network (EGN) framework that treats higher-order terms (like triplets and quadruplets) as first-class citizens alongside nodes and edges.
Next, rather than splitting a batch of graphs across GPUs (Data Parallelism) or splitting model layers (Pipeline Parallelism), they utilize Spatial Partitioning to split the input graph itself.
In this setup, each GPU is responsible for computing a subset of the highest-order interactions (e.g., triplets). Because these triplets are the primary memory consumers but do not need to be communicated across processors, the system remains highly efficient. The GPUs only need to communicate lower-order data—node and edge representations—via allreduce operations at the end of each GNN block.
This approach keeps communication costs proportional to the number of nodes and edges, which is vastly smaller than the number of triplets. Furthermore, Graph Parallelism avoids the load imbalance issues that plague Pipeline Parallelism when dealing with graphs of varying sizes.
Using this framework, the team scaled two prominent architectures:
- DimeNet++-XL: Scaled to 240M parameters (20x larger than the original).
- GemNet-XL: Scaled to 300M parameters (10x larger than the original).
Key Results and State-of-the-Art Performance
The models were evaluated on the Open Catalyst 2020 (OC20) dataset, a massive benchmark containing over 134 million training examples. The scaled-up "XL" models achieved significant state-of-the-art results across primary tasks.
- Force Prediction (S2EF): GemNet-XL improved the Force Mean Absolute Error (MAE) by 15% relative to the previous best model, dropping the error to 0.02040 eV/Å.
- Structure Relaxation (IS2RS): On the task of iteratively predicting forces to find the final stable geometry of atoms, the models saw a 21% relative improvement in the "Average Forces below Threshold" (AFbT) metric.
- Scaling Efficiency: The method demonstrated a weak scaling efficiency of roughly 79% when using 8 GPUs to train a nearly billion-parameter model, proving the approach is viable for massive compute clusters.
These results confirm that, much like in NLP, simply making GNN models bigger leads to significantly better generalization. The "limit" of GNN performance in chemistry hasn't been reached; the field simply lacked the infrastructure to build bigger models.
Limitations and Future Work
While Graph Parallelism unlocks new scales for GNNs, the authors candidly note several ongoing challenges:
- Carbon Footprint: Training massive models is environmentally costly. GemNet-XL is estimated to emit between 3,490 and 8,052 kg of $CO_2$ equivalent—roughly equal to 16 round-trip flights between Los Angeles and New York.
- Inference Speed: The "relaxation" approach (iteratively moving atoms to find stable states) is highly accurate but roughly 100x slower than direct prediction methods. Future work must bridge this speed gap for practical deployment.
- Physical Priors: Scaling alone isn't a silver bullet. The authors emphasize that better architectural designs to capture 3D geometry and physical constraints (like rotational equivariance) are still necessary to ultimately reach true chemical accuracy.
Summary updated