CS224W-Machine Learning with Graph-GNNs and Algorithmic Reasoning

GNNs and Algorithmic Reasoning

Graph Machine Learning

How to learn mapping function ff?

Connection to classical graph algorithms unclear.

Graph Neural Networks

GNNs as graph algorithms

GNNs and the Weisfeiler-Lehman Isomorphism Test

ϕ=HASH function\phi = HASH \ \text{function}

Algorithmic structure of neural networks

Neural Nets and Algorithm Structure

General algorithm class for GNN?

Algorithmic Class of GNNs

Dynamic Programming

GNN are Dynamic Programs

Algorithmic Alignment

Algorithmic-Centric Principle For Neural Network Design

Algorithmic Alignment

Given a target algorithm g=gmg1g = g_m \circ \cdots g_1, a neural network architecture f=fmf1f = f_m \circ \cdots f_1 if:

Designing New Neural Nets with Algorithmic Alignment

Applications of Algorithmic Alignment

Solving an NP-hard Task: Subset Sum

Algorithmic Alignment and Extrapolation

How MLPs extrapolate

The Linear Algorithmic Alignment Hypothesis

Linear algorithmic alignment implies a neural network can extrapolate to unseen data

Given a target algorithm g=gmg1g = g_m \circ \cdots g_1, a neural network architecture f=fmf1f = f_m \circ \cdots f_1 linearly aligns if:

  • fif_i can express gig_i
  • fif_i contains a combination of non-linearities and MLPs
  • Each MLP in fif_i only has to learn a linear map to perfectly fit gig_i

How GNNs extrapolate