Graph Neural Network (GNN)
A neural network built to learn from graph-structured data such as molecules, transaction networks, and knowledge graphs.
What can a print learn from its neighbors?
Imagine a catalogue graph with three nodes: the print Harbor Steps, its maker E. Vale and the exhibition Port Views. The print connects to each neighbor through a different relation.
Before the update
The print has features from its own catalogue record. The maker and exhibition have their own features.
One message-passing step
An appropriate graph model combines selected information from neighboring nodes with the print’s current representation. A relation-aware model can treat “made by” differently from “displayed in.”
- Harbor Steps → made by → E. Vale
- Harbor Steps → displayed in → Port Views
Does a better representation verify the catalogue?
No new historical fact is established by combining features. Test the learned representation on held-out tasks and guard against including the very relationship being predicted as an input. An incorrect catalogue link can also carry misleading information through the graph.
How GNNs Work
GNNs learn by passing information across connected nodes. A node updates its representation by combining its own features with signals from its neighbors. Repeating this process across multiple layers allows the model to capture broader structure, such as local patterns, multi-hop relationships, and the role a node plays within a larger network.
This is different from standard models that expect flat tables, image grids, or linear text. Graph data is relational by nature, so GNNs are designed to learn from those relationships directly instead of flattening them away.
Follow the idea
Knowledge Graph · A knowledge graph represents named relationships and entities.
Link prediction uses available graph information to rank possible connections.
Related concepts (8)
Examples in the AI guides
Related Yenra articles (9)
Source · Hamilton, Ying and Leskovec on aggregating graph neighborhoods
Return to Graph Neural Network (GNN) in the A–Z glossary