Ewald-based Long-Range Message Passing for Molecular Graphs

Arthur Kosmala, Johannes Gasteiger, Nicholas Gao, Stephan Günnemann

Introduction

Graph Neural Networks (GNNs) have become a standard tool for predicting molecular properties, but they often suffer from a fundamental physical limitation: the "locality" assumption. Most state-of-the-art Message Passing Neural Networks (MPNNs) only allow atoms to communicate within a fixed spatial cutoff. While computationally efficient, this approach ignores critical long-range forces like electrostatics and van der Waals interactions, which decay slowly over distance. This truncation leads to "over-squashing" of information and prevents models from capturing global structural properties.

The Ewald Message Passing Approach

To address this, we introduce Ewald Message Passing (Ewald MP), a novel neural network component that enables efficient global communication between atoms. Inspired by the "Ewald summation" technique from classical physics, Ewald MP decomposes atomic interactions into two distinct parts: a short-range component and a long-range component.

Conceptual overview of Ewald Message Passing, splitting interactions into real-space (short-range) and Fourier-space (long-range) components.

While standard GNN layers handle short-range interactions using a distance cutoff in real space, Ewald MP processes long-range effects in Fourier (frequency) space. The process involves three key steps:

  1. Fourier Transform: Computing "structure factor embeddings" that represent the global distribution of atom features.
  2. Filtering: Applying a learned filter in the frequency domain, constrained by a frequency cutoff rather than a distance cutoff.
  3. Inverse Transform: Scattering the filtered global information back to individual atoms.

This architecture allows the model to capture the "fat tail" of long-range interactions at a fraction of the cost of $O(N^2)$ fully-connected attention mechanisms. Furthermore, while Ewald summation is typically reserved for periodic systems (like crystals), this method extends support to aperiodic systems (isolated molecules) via voxel-grid discretization.

Experimental Results and Insights

Ewald MP is designed as a "plug-and-play" augmentation for existing architectures such as SchNet, PaiNN, and GemNet. We evaluated its performance on two major benchmarks: OC20 (periodic catalyst surfaces) and OE62 (large organic molecules).

Energy MAE vs. runtime performance on the OC20 dataset, demonstrating consistent accuracy improvements across multiple baseline architectures.

The results demonstrate that Ewald MP consistently improves energy predictions, with an average reduction in Mean Absolute Error (MAE) of 10% on OC20 and 16% on OE62. Crucially, Ewald MP achieves superior Pareto efficiency; it provides significantly better accuracy for the same computational budget compared to simply increasing the distance cutoff of a standard GNN.

One of the most striking findings was the model's ability to "re-discover" hand-crafted physics. In the OE62 dataset, which includes DFT-D3 dispersion corrections, models equipped with Ewald MP performed as well as models explicitly provided with these corrections as input. This suggests that the Ewald-inspired inductive bias allows the network to learn the underlying physics of long-range dispersion from scratch.

Limitations and Future Directions

While Ewald MP significantly enhances energy predictions, its impact on force predictions (gradients) is currently more modest. This is likely due to the frequency truncation, which removes high-frequency details necessary for accurate local gradients. Future work may explore more sophisticated discretization schemes, such as wavelets or Fast Fourier Transforms (FFT), to improve scaling and gradient accuracy. Despite these challenges, Ewald MP provides a physically grounded path toward efficient global communication in molecular GNNs.

Summary updated

BibTeX
@inproceedings{kosmala2023ewald,
  author = {Arthur Kosmala and Johannes Gasteiger and Nicholas Gao and Stephan Günnemann},
  title = {{Ewald-based Long-Range Message Passing for Molecular Graphs}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=vd5JYAml0A},
}
Figure