Reciprocal Space Attention for Learning Long-Range Interactions
Hariharan Ramasubramanian, Alvaro Vazquez-Mayagoitia, Ganesh Sivaraman, Atul C. Thakur
TL;DR
Long-range interactions are essential in heterogeneous environments but standard MLIPs, which rely on local cutoffs, fail to capture them. RSA introduces a reciprocal-space attention mechanism that maps linear-time attention into Fourier space using Fourier Positional Encoding (FPE) to represent long-range contributions, integrated with a short-range backbone like MACE to yield LR-MACE. The approach reproduces correct long-range behavior across SN2 reactions, dimer binding, random-charge systems, NaCl, phosphorene exfoliation, and bulk water, without predefined charges or empirical corrections, while maintaining end-to-end differentiability. This data-driven, scalable framework broadens the applicability of MLIPs to diverse materials and molecular systems by explicitly learning electrostatics, dispersion, and other nonlocal effects under periodic boundary conditions.
Abstract
Machine learning interatomic potentials (MLIPs) have revolutionized the modeling of materials and molecules by directly fitting to ab initio data. However, while these models excel at capturing local and semi-local interactions, they often prove insufficient when an explicit and efficient treatment of long-range interactions is required. To address this limitation, we introduce Reciprocal-Space Attention (RSA), a framework designed to capture long-range interactions in the Fourier domain. RSA can be integrated with any existing local or semi-local MLIP framework. The central contribution of this work is the mapping of a linear-scaling attention mechanism into Fourier space, enabling the explicit modeling of long-range interactions such as electrostatics and dispersion without relying on predefined charges or other empirical assumptions. We demonstrate the effectiveness of our method as a long-range correction to the MACE backbone across diverse benchmarks, including dimer binding curves, dispersion-dominated layered phosphorene exfoliation, and the molecular dipole density of bulk water. Our results show that RSA consistently captures long-range physics across a broad range of chemical and materials systems. The code and datasets for this work is available at https://github.com/rfhari/reciprocal_space_attention
