AI, But Simple

Graph Neural Networks (GNNs), Simply Explained

Free editionPRO edition

This week’s PRO issue includes a Colab notebook, comparing a Graph Neural Network (GNN) and Graph Convolutional Network (GCN) on node classification and link prediction.

As always, the code in this issue can be executed on a normal home PC and does not require a large amount of VRAM.

The monthly interview question bank can be found here. These are industry standard questions that are tested across major tech companies, AI research firms, and more. The questions are sorted by difficulty and topic. Check back frequently for more questions!

Traditional Neural Networks are reputable and well-integrated models used to process text, video, and image data.

Vectors are used as numerical inputs into neural networks, where each component takes the form of a single neuron in a network. The models themselves rely on inputs that are fixed in size and shape.

  • A 224x224 image always has 224x224 pixels. A sentence can be padded to a fixed length. The structure is consistent, and that consistency is something traditional networks depend on. 

However, traditional neural networks are ineffective for particular types of structure, which are found surprisingly often in our daily lives.

Consider a molecule. Or a social network. Or a city's road map.

These are graphs: collections of nodes (entities) and edges (relationships between them).

Molecules have varying numbers of atoms, and road networks look different in varying countries.

So, how do you feed something so irregular into a neural network? 

Graphs can model the connection between two, three, or many different things all at once, but can we extend our understanding of their current state to train models to classify characteristics and even predict future connections?

As we'll see, the solution borrows a surprisingly familiar idea. 

In this issue, we will provide a highly visual breakdown of how Graph Neural Networks (GNNs) operate on graph data and produce results that are newly useful for real-world applications.

This edition is for PRO members.

More in Architecture

Architecture 30
  1. #120 Architecture

    Recursive Self-Improvement, Ternary 27B Model for Laptops, Jev Architecture

  2. #117 Architecture PRO edition

    How DeepSeek’s Architecture Actually Works

  3. #115 Architecture PRO edition

    BDH-CQ: A 150M model just broke the ARC-AGI cost curve