Extending the range of graph neural networks with global encodings

A Alessandro Caruso J Jacopo Venturin L Lorenzo Giambagli E Edoardo Rolando Z Zakariya El-Machachi (Inorganic Chemistry Laboratory, Department of Chemistry, University of Oxford 14 , Oxford OX1 3QR,) F Frank Noé (Department of Physics, Freie Universität Berlin 1 , 14195 Berlin,) C Cecilia Clementi (Department of Physics, Freie Universität Berlin 3 , 14195 Berlin,)

Abstract

Abstract Graph Neural Networks (GNNs) are routinely used in molecular physics, social sciences, and economics to model many-body interactions in graph-like systems. However, GNNs are inherently local and can suffer from information flow bottlenecks. This is particularly problematic when modeling large molecular systems, where dispersion forces and local electric field variations drive collective structural changes. We introduce RANGE, a model-agnostic framework that employs an attention-based aggregation-broadcast mechanism that significantly reduces oversquashing effects, and achieves remarkable accuracy in capturing long-range interactions with linear scaling. Notably, RANGE integrates attention with positional encodings and regularization to dynamically expand virtual representations in virtual-node message-passing implementations. Across multiple state-of-the-art baselines, RANGE consistently restores long-range information, enabling the models to correctly predict electrostatic and dispersion-driven behavior even in out-of-distribution extrapolation tasks, where other unmodified baselines fail. Compared with other long-range paradigms, RANGE achieves the highest accuracy while requiring significantly less computational overhead, and it enables stable and scalable molecular dynamic simulations. RANGE offers accurate and efficient modeling of long-range interactions for simulating large molecular systems.

Article Details

Volume / Issue Vol. 17, Issue 1
Published February 18, 2026
ISSN 2041-1723
Publisher Nature Portfolio

Journal Info

Nature Communications

Nature Portfolio

ISSN: 2041-1723 Open Access Life Sciences

Authors (7)

A

Alessandro Caruso

J

Jacopo Venturin

L

Lorenzo Giambagli

E

Edoardo Rolando

Z

Zakariya El-Machachi

Inorganic Chemistry Laboratory, Department of Chemistry, University of Oxford 14 , Oxford OX1 3QR,

F

Frank Noé

Department of Physics, Freie Universität Berlin 1 , 14195 Berlin,

C

Cecilia Clementi

Department of Physics, Freie Universität Berlin 3 , 14195 Berlin,