Technology and computing
Graph Neural Networks
Graph Neural Networks (GNNs) are artificial neural networks designed to process graph-structured data, where nodes represent entities and edges represent relationships. They are widely known for their ability to learn meaningful representations of nodes, edges, and entire graphs through iterative message passing between neighboring nodes. GNNs have become the dominant approach in molecular property prediction, enabling direct learning on molecular graphs without manual feature engineering. Their design emphasizes permutation equivariance for node-level tasks and permutation invariance for graph-level tasks, ensuring consistent outputs regardless of node ordering. Today, GNNs are applied across diverse domains including chemistry, social networks, and optimization, with ongoing research expanding their expressiveness and capabilities.
Core Design and Functionality
Graph neural networks (GNNs) are artificial neural networks designed for tasks whose inputs are graphs.
GNN architectures are commonly designed to be permutation equivariant, meaning reordering the nodes in the input reorders the corresponding node representations in the same way.
For graph-level prediction tasks, GNNs typically use a permutation-invariant readout function, whose output is unchanged by the ordering of the nodes.
A key design element of GNNs is the use of pairwise message passing, where graph nodes iteratively update their representations by exchanging information with their neighbors.
Several GNN architectures have been proposed, implementing different flavors of message passing, starting with recursive or convolutional constructive approaches.
Local pooling is used to increase the receptive field of a GNN, in a similar fashion to pooling layers in convolutional neural networks.
Examples of local pooling include k-nearest neighbours pooling, top-k pooling, and self-attention pooling.
Applications and Impact
Graph Neural Networks have become the dominant architecture for molecular property prediction because they operate directly on the molecular graph (atoms as nodes, bonds as edges) without hand-crafted feature engineering, learning task-relevant representations.
Relevant application domains for GNNs include natural language processing, social networks, citation networks, molecular biology, chemistry, physics and NP-hard combinatorial optimization problems.
A 2024 study by Li, K.; Gong, X.; Wu, J.; et al. introduced GraphCDR, a Graph Neural Network method with contrastive learning for cancer drug response prediction.
Theoretical Foundations and Extensions
In the more general subject of 'geometric deep learning', certain existing neural network architectures can be interpreted as GNNs operating on suitably defined graphs.
A convolutional neural network layer, in the context of computer vision, can be considered a GNN applied to graphs whose nodes are pixels, and only adjacent pixels are connected by edges in the graph.
Standard message-passing GNNs are at most as expressive as the Weisfeiler Leman graph isomorphism test.
More powerful GNNs operating on higher-dimension geometries such as simplicial complexes can be designed.
A 2022 position paper argued that many architectures described as going 'beyond' message passing can instead be interpreted as message passing over suitably modified graphs, and proposed the term 'augmented message passing' for such approaches.
Tools and Libraries
Open source libraries implementing GNNs include PyTorch Geometric (PyTorch), TensorFlow GNN (TensorFlow), Deep Graph Library (framework agnostic), jraph (Google JAX), and GraphNeuralNetworks.jl/GeometricFlux.jl (Julia, Flux).
More
The architecture of a generic GNN implements the following fundamental layers: Permutation-equivariant layers, local pooling, and global pooling.
Global pooling, also known as readout layer, provides a fixed-size representation of the whole graph and must be permutation invariant.
Related
Written by 1x0 AI from public sources. Checked 2 December 2026.
Text: CC BY-SA 4.0, free to reuse and adapt with a link to this page, under the same licence. Photos and illustrations: as credited.