Graph neural networks
A graph neural network updates each node's hidden state based on messages.
The forward pass has a message-passing phase and a readout phase. During message passing, hidden states at each node are updated based on messages. The messages come from neighboring nodes in the graph.
Successive graph-convolution layers incorporate progressively higher-order neighborhoods. GraphSAGE learns a neighborhood aggregation function that can generate embeddings for unseen nodes.
Graph attention assigns different weights to different nodes in a neighborhood. A message-passing readout can compute one feature vector for a whole graph.
Graph data links a changing number of neighbors to each node.
Follow three neighboring papers into one updated paper node.
- 1 · messageThe message-passing phase uses message functions M and vertex update functions U.
- 2 · aggregateCombine the incoming messages with an aggregation such as sum or mean.
- 3 · updateUse messages to update the target node's hidden state.
- 4 · repeatSuccessive graph-convolution layers incorporate progressively higher-order neighborhoods.
GraphSAGE samples and aggregates features from a node's local neighborhood.
| Who | What they ask | What it works with |
|---|---|---|
| Citation analyst | “Which papers have similar local citation context?” | Paper features and citation edges |
| Molecular modeller | “What feature vector represents this molecule?” | Atom states and bond messages |
| Recommendation engineer | “Which local connections inform this node?” | Node features and graph edges |
- A graph convolution can encode local graph structure together with node features.
- GraphSAGE learns a neighborhood aggregation function that can generate embeddings for unseen nodes.
- Graph attention assigns different weights to different nodes in a neighborhood.
- A message-passing readout can compute one feature vector for a whole graph.
- One graph-convolution layer covers a first-order neighborhood, while successive layers extend the order.
- Sparse GCN computation still requires memory linear in the number of graph edges.
- The aggregation choice, such as sum or mean, remains part of the model design.
Sources used
This explainer is written in original language. The links below support its factual claims.
- paperSemi-Supervised Classification with Graph Convolutional Networks, Kipf and Welling · read 28 Sept 2026
- paperGraph Attention Networks, Veličković et al. · read 28 Sept 2026
- paperInductive Representation Learning on Large Graphs, Hamilton, Ying and Leskovec · read 28 Sept 2026
- paperNeural Message Passing for Quantum Chemistry, Gilmer et al. · read 28 Sept 2026
- docsMessagePassing, PyTorch Geometric · read 28 Sept 2026