Home Knowledge Base Graph Neural Networks (GNNs)

Graph Neural Networks (GNNs) are deep learning models that operate directly on graph-structured data by iteratively aggregating and transforming information from neighboring nodes — enabling learning on molecular structures, social networks, knowledge graphs, and any relational data where the structure of connections carries critical information that standard neural networks cannot capture.

Why Graphs Need Special Networks

Message Passing Framework

Most GNNs follow this pattern per layer:

1. Message: Each node sends a message to its neighbors: $m_{ij} = MSG(h_i, h_j, e_{ij})$. 2. Aggregate: Each node collects messages from all neighbors: $M_i = AGG(\{m_{ij} : j \in N(i)\})$. 3. Update: Each node updates its representation: $h_i' = UPDATE(h_i, M_i)$.

GNN Architectures

ModelAggregationKey Innovation
GCN (Kipf & Welling 2017)Mean of neighborsSpectral-inspired, simple and effective
GraphSAGEMean/Max/LSTM of sampled neighborsInductive learning, sampling for scale
GAT (Graph Attention)Attention-weighted sumLearnable neighbor importance
GIN (Graph Isomorphism Network)Sum + MLPMaximally expressive (WL-test equivalent)
MPNNGeneral message passingUnified framework

GCN Layer

$H^{(l+1)} = \sigma(\tilde{D}^{-1/2} \tilde{A} \tilde{D}^{-1/2} H^{(l)} W^{(l)})$

Task Types on Graphs

TaskInputOutputExample
Node classificationGraphLabel per nodeProtein function, user type
Edge predictionGraphEdge exists/propertyDrug interaction, recommendation
Graph classificationGraphLabel per graphMolecule toxicity, circuit function
Graph generationNoiseNew graphDrug design, material discovery

Applications

Graph neural networks are the standard approach for learning on relational and structured data — their ability to capture complex topology-dependent patterns has made them indispensable in computational chemistry, social network analysis, and any domain where the relationships between entities are as important as the entities themselves.

graph neural networkgnnmessage passing networkgraph convolutionnode embedding

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.