Graph Neural Network (GNN)
A neural network that learns from objects and the relationships connecting them in a graph.
Published · Updated
Two stations are fifty metres apart. There’s no track between them. On a walking map they are neighbours. On a diagram of how a train delay spreads, they may be a world apart. Which map did the model get?
Choose what a link means
Draw the little network around one station you actually know. A one-way service needs direction, a busy connection may carry a weight, and a link inferred from passenger traffic needs a date. If next month’s journeys helped draw this month’s network, tomorrow’s information has already slipped into the forecast.
Examining even five stations this way can explain a puzzling prediction more readily than changing the network size.
A graph neural network represents objects as nodes and relationships as edges. Many such models pass information along edges and combine it at neighbouring nodes. The relationship you choose determines what can flow between two stations, atoms or scholarly papers.
In a message-passing model, each station can combine information from its neighbours and update its representation. More layers can bring in information from farther away along the network. This ability comes with a practical question about which signals remain distinguishable after several rounds of aggregation.
Other fields make other choices about links. A molecular graph can connect atoms by bonds, a citation graph can connect papers by references, and a weather model can pass information across a spatial mesh. Those choices define what a local neighbourhood means for each task. Chemprop and GraphCast are examples in which seemingly similar graph operations operate on very different scientific objects.
When a result disappoints, inspect the graph as well as the architecture. Was an important connection absent, directed the wrong way or constructed using observations from the future? Long-range effects can also be difficult to represent with short-range message passing.
Related guides: Climate & Earth Science, Materials Science, Chemistry
