arXiv(opens in a new tab)astro-ph.IMOct 2026

Manuscript Offprint

arXiv:2610.27051

Graph Neural Networks for Astrophysics and Cosmology

Christian Kragh Jespersen

Abstract

Physics seldom makes breakthroughs when we consider objects only in isolation. Instead we model and measure how objects sit among their neighbours, spatial, temporal, or otherwise: a galaxy in its environment, a halo in its history, a photon hit in a detector. Graphs are ideally suited for encoding exactly these relations, and Graph Neural Networks (GNNs) learn the geometric functions that respect them. This review presents the use of GNNs for astrophysics and cosmology, and argues that GNNs often suit physics and physical data better than any alternative: they fit the native geometry of the domain and the signal, enable the incorporation of the symmetries and prior knowledge we already trust and have toiled to build, and stay flexible enough to capture what we do not yet understand. GNNs' physically intuitive workings also render them more interpretable than other deep-learning architectures. We show how we can begin from general principles of the geometry of deep learning and build the graph and the graph neural network from the ground up, and how other architectures, like the convolutional network and the transformer, can be seen as special cases of one unified geometric blueprint. We survey applications across cosmology, galaxy formation, dynamics, and instrumentation; and we chart the frontier. From this survey, we find that only one in six articles outside instrumentation applies GNNs to data rather than just simulations. We also distil a set of best practices, including when not to reach for a graph. Throughout, we will prioritise physical intuition and foundational principles over mathematical machinery whenever possible.

Christian Kragh Jespersen (✉, e-mail: christian.jespersen@utoronto.ca)

David A. Dunlap Department of Astronomy & Astrophysics, University of Toronto, Toronto, ON M5S 3H4, Canada

Department of Statistical Sciences, University of Toronto, Toronto, ON M5S 3G3, Canada

Canadian Institute for Theoretical Astrophysics, University of Toronto, 60 St George Street, Toronto, M5S 3H8, Ontario, Canada

Department of Astrophysical Sciences, Princeton University, Princeton, NJ 08544, USA

C. K. Jespersen

1 Introduction

The history of physics is a story of geometry. From the ellipses of Kepler, through the invariances of Galileo, to the curved spacetime of Einstein, physics often advances less by the collection of facts than by the discovery of the relations or symmetries that render those facts inevitable (Noether, 1918). A theory also often earns our trust when it is stated in a form that no choice of coordinates, no relabelling, and no rotation can disturb. Learning algorithms for the physical world must therefore be grounded in geometry. 1^{1}

The natural sciences furthermore run, at heart, on relations. We build theories not of the isolated object but of the relation between objects, and the graph holds exactly this structure: objects become nodes, relations become edges. Such data permeate the natural sciences but especially astrophysics. The cosmic web threads galaxies into filaments, the kinematics and positions of Milky Way stars trace its evolution, and neutrino observatories scatter their sensors through large volumes of ice or water. None of these live on regular Euclidean grids, and to force one upon them invents a structure neither the data nor the physics they measure ever had.

Graph Neural Networks (GNNs) are fundamentally geometric 2^{2} in nature, and they harness relational inductive biases for functions on arbitrary domains (Bronstein et al., 2017, 2021). They propagate information along the edges through parameterised message passing, and can read out node-, edge-, and graph-level quantities. These ideas already carry large-scale production systems. AlphaFold reasons over chemical residue graphs (Jumper et al., 2021), GraphCast forecasts weather better than other leading numerical models (Lam et al., 2023), and GNNs serve the travel-time estimates of Google Maps (Darrow-Pinion et al., 2021). The idea long predates more recent successes and enthusiasm: recursive and recurrent precursors reach back to the late 1990s (see Scarselli et al., 2009, and references therein). The message passing view that organises this review can also be used to define the convolutional neural network and the transformer as special cases of message passing on specific types of graphs (Veličković, 2022). While these architectures are thus more restrictive, they are more efficient on their specialised domains than the generalist GNN.

Inductive bias. The set of assumptions a learning algorithm carries before it meets data which then rank one solution above another when both fit the training set equally well. Weight sharing across pixels encodes translation symmetry in the convolutional neural network (CNN). Message passing along local neighbourhood edges encodes permutation symmetry and locality in the GNN. Distinct from inductive learning, a mode of deployment defined in §4.3.

1^{1} Graph theory itself was born of a geometric puzzle: in 1736 Euler reduced the seven bridges of Königsberg to nodes and edges and proved that no stroll crosses each bridge exactly once. Three centuries on, the same abstraction describes the largest structures in the Universe.

2^{2} So are all DL architectures, but GNNs are more expressly geometric and are typically formulated as being a foundational part of the modern family of geometric deep learning.

Excellent reviews already cover deep learning across astronomy and the physical sciences at large (Huertas-Company & Lanusse, 2023; Ferguson et al., 2025; Ting, 2026), whereas other reviews cover GNNs in related fields like physics (Shlomi et al., 2021). This review 3^{3} covers the more specialised case of the use of GNNs in astrophysics and cosmology. We will take on a geometry-first treatment which will inevitably lead us to graph-specific applications. This spans from a generalised blueprint for considering geometry in learning algorithms from which the common architectures follow, all the way to the practical advice that makes them work on astrophysical data.

This review proceeds in three movements: the geometry of learning and the geometric blueprint that unifies the deep learning architectures and motivates the use of graph neural networks ( §2§2); the construction of the graph and the graph neural network ( §3–4§3–4); and then we turn to the more practical side of GNNs in astrophysics: the applications ( §5§5), the best practices ( §6§6), and the frontier ( §7§7).

References (100)

Couldn't load all references. Reload the page to try again.