These are AI-generated study notes, not the lecture. Made with VideoNoteGPT from Lec 05. Architectures: Graphs, part of MIT 6.7960 Deep Learning by MIT OpenCourseWare.
Source lecture © MIT OpenCourseWare, licensed CC BY-NC-SA 4.0. These notes are a derivative work and are shared under the same licence. The full transcript is not reproduced here — watch the original lecture for that. VideoNoteGPT is not affiliated with or endorsed by MIT OpenCourseWare.

Overview

This portion explains how diverse real‑world problems—recommendation, drug safety, routing, physics simulation, and optimization—can be encoded as graph structures and tackled with graph neural networks. It contrasts classical algorithms with learned heuristics, emphasizing speed‑accuracy trade‑offs. This section explains how nodes and whole graphs can be represented as vectors

Chapter breakdown

07:00

Graphs in Real‑World Systems

  • Graph representations unify disparate domains.
  • Graph neural networks provide fast approximations for large‑scale problems.
  • Learning offers domain‑specific speed gains at the cost of general optimality.
14:21

Graph Neural Network Fundamentals

29:11

Local Operations in CNNs and GNNs

The segment explains that both convolutional neural networks and graph neural networks rely on local, permutation‑invariant operations. By stacking these local updates, they gradually enlarge the receptive field, enabling global reasoning. The lecture also highlights parameter sharing, size‑agnostic behavior, and the core message‑passing framework that underlies GNNs.

  • Both CNNs and GNNs use local operations; stacking them enlarges receptive fields.
  • GNNs apply message passing: aggregation followed by update, mirroring CNN layer mechanics.
36:31

Aggregate Functions in GNNs

This section explains how graph neural networks aggregate neighbor information using permutation-invariant functions such as sum, average, max, and min. It shows that classic graph algorithms like Bellman‑Ford can be expressed as GNNs with appropriate aggregation and update rules, and introduces a universal aggregation scheme that can represent any permutation-invariant mapping.

  • Permutation‑invariant aggregation is essential for graph‑structured data.
  • Bellman‑Ford shortest‑path demonstrates the use of min aggregation in a GNN.
51:06

Graph Neural Network Fundamentals

This portion explains how graph neural networks perform message passing with optional parameter sharing, how edge attributes can be incorporated, and how common architectures like MLPs and CNNs can be expressed as graph nets. It also introduces attention‑based aggregation, leading to transformer‑style models.

  • Parameter sharing vs time‑dependent weights define depth regimes.
  • Message passing forms the forward graph; backprop trains the network.
  • Attention aggregation generalizes standard sum/mean and yields transformers.
57:58

Graph Neural Networks Basics

The lecture covers the tree perspective of message passing in graph neural networks, explaining how nodes aggregate information from neighbors, how layers deepen the receptive field, and how weight sharing enables generalization to graphs of different sizes. It also outlines the structure of training data for tasks like molecular toxicity prediction and specifies the necessary components—aggregate, update, readout functions, and loss—for training a GNN with back‑propagation.

  • Tree perspective illustrates expanding receptive fields in GNNs.
  • Weight sharing across layers allows generalization to various graph sizes.
01:04:36

GNN Expressiveness Limits

The speaker discusses how Graph Neural Networks can only distinguish graphs that differ in their neighborhood tree structures. Equivalence classes of graphs are defined by identical tree structures, meaning GNNs will assign the same output to graphs within a class. Symmetry-breaking techniques such as one‑hot encoding can break permutation invariance but trade off generalization.

  • GNNs rely on neighborhood trees to distinguish graphs.
  • Graphs with identical trees form equivalence classes, limiting GNN expressiveness.
01:11

GNN Expressiveness & Aggregation

In this segment, the speaker links GNN expressive power to the classical 1‑WL graph isomorphism test, proves that GNNs can match WL’s discriminative ability via MLP aggregation, and demonstrates how the choice of aggregation—sum vs. mean or ReLU—impacts training accuracy on real data.

  • 1‑WL equivalence
  • Universal approximation via MLP
  • Practical effect of aggregation choice
01:18:03

Breaking GNN Limits

This section explains why conventional Graph Neural Networks cannot capture certain global graph properties such as diameter or longest cycle, even with unlimited data. It introduces positional encodings—like one‑hot labels or Laplacian eigenvectors—to break permutation invariance, enabling the network to discriminate graphs that were previously indistinguishable, while highlighting the trade‑off between expressiveness and generalization. Finally, it notes that the transformer architecture can be viewed as a special case of graph networks.

  • GNNs cannot learn global properties like diameter or longest cycle.
  • Positional encodings break permutation invariance and extend GNN expressiveness.

Key points

  • 00:35Phillip Isola expresses his passion for deep learning, calling it the most beautiful kind of math and intelligence.
  • 02:17GNNs are not universal like MLPs; instead, their architectural constraints define the families of functions they can approximate.
  • 07:14Bipartite graphs model users and interests for recommender systems.
  • 10:45Physical simulations (e.g., fluids) model particles as graph nodes with force‑based edges.
  • 15:57Graph Neural Networks (GNNs) learn functions from adjacency matrices and node attributes to produce node embeddings, graph embeddings, or predictions.
  • 21:14A desirable property of graph models is permutation invariance: the output should not change if node indices are permuted.
  • 23:41Use permutation invariance for predictions about the entire graph and permutation equivariance for node‑level predictions.
  • 29:11CNNs and GNNs both rely on local operations that update representations based on neighboring data.
  • 33:02A GNN layer consists of two main steps: message passing (aggregation) and node representation update.
  • 38:34Bellman‑Ford shortest‑path can be implemented as a GNN where the aggregate is min and the update is a trivial MLP that adds edge cost.
  • 44:37Update function implemented as a one-layer MLP combining self and neighbor messages with a pointwise non-linearity.
  • 47:07Unrolling message-passing reveals it to be an MLP where neurons are vector embeddings and aggregation replaces scalar sums.
  • 51:06Choosing whether to share parameters across message‑passing iterations or use a time‑dependent set of weights defines two regimes: shared (unbounded depth) vs fixed depth.
  • 54:01The message‑passing steps form the forward computation graph; training proceeds by backpropagating through this unrolled graph.
  • 58:17The aggregate function combines all incoming messages before sending a single message to the node.
  • 01:02:20A training data point for molecule toxicity consists of node embeddings, the adjacency matrix, and a binary label for the whole graph.
  • 01:07:06GNNs can only distinguish graphs that have different neighborhood tree structures; graphs with identical tree structures are equivalent from a GNN’s perspective.
  • 01:121‑WL distinguishes graphs by iteratively coloring nodes; if two graphs produce the same final coloring, they are considered isomorphic.
  • 01:16Simple aggregations such as sum+ReLU or mean fail to reach the same accuracy because they are not universal approximators of multiset functions.
  • 19:02These limitations arise because isomorphic graphs with identical local neighborhoods can have different global properties.

Key terms

  • Deep Learning — A subset of machine learning that uses neural networks with multiple layers to model complex patterns in data.
  • Graph Neural Network (GNN) — A neural network architecture that operates on graph-structured data, typically using message passing with aggregation and update steps.
  • Message Passing — The process by which nodes send and receive information (messages) to aggregate features from neighbors.
  • Universality — The theoretical ability of a model to approximate any function given sufficient capacity and data.
  • Hidden Markov Model — A probabilistic graphical model describing systems that transition between hidden states over time.
  • PageRank — An algorithm that ranks web pages based on hyperlink structure, modeling importance as a probability distribution over nodes.
  • Node Classification — Predicting labels or attributes for individual nodes within a graph.
  • Graph Classification — Predicting a single label that describes an entire graph.
  • Edge Classification — Predicting labels or attributes for individual edges within a graph.
  • Architecture Constraints — Design choices that limit the hypothesis space of a model, preventing it from fitting undesirable functions.
  • Approximation Power — The ability of a model to approximate a class of functions to a desired accuracy.
  • Transformers — A type of neural network that uses attention mechanisms, often framed as a special case of graph networks.
  • Bipartite Graph — A graph whose vertices can be divided into two disjoint sets such that edges only connect vertices from different sets.
  • Drug Interaction Graph — A graph modeling relationships between drugs and the proteins they target, used to predict adverse interactions.
  • Shortest Path — The path between two nodes in a graph that has the smallest total edge weight.
  • Combinatorial Optimization — A class of problems that seek an optimal object from a finite, but often exponentially large, set of candidates.
  • Heuristic — An approximate strategy that finds good solutions quickly but without guarantees of optimality.
  • Attribute Vector — A numerical representation of node features used as input to graph algorithms.
  • Node Embedding — A learned vector representation of a single graph node that captures its properties for downstream tasks.
  • Graph Embedding — A single vector summarizing an entire graph, useful for graph‑level predictions.
  • Adjacency matrix — A matrix representing connections between nodes in a graph; entry (i,j) indicates an edge from node i to node j.
  • Permutation Invariant — A property of a function where its output remains unchanged under reordering of its input elements.
  • Fully Connected Neural Network (MLP) — A neural network where each layer’s neurons are connected to all neurons in the previous layer.
  • Serialization — Converting structured data, such as a graph, into a flat vector that can be processed by standard neural networks.
  • Dense Graph — A graph in which many pairs of nodes are connected, leading to a high number of edges.
  • Permutation matrix — A square binary matrix with exactly one 1 in each row and column; used to reorder the rows and columns of another matrix.
  • Permutation invariance — The property that a graph neural network’s output remains unchanged under any reordering of the node indices.
  • Permutation equivariance — Property where permuting the input indices results in the same permutation applied to the output.
  • Node attribute — Feature vector associated with each node in a graph, often stored as rows of a matrix.
  • Convolutional Neural Network (CNN) — A neural network that applies convolution operations to grid‑structured data, such as images.
  • Invariant — A property that remains unchanged under a specified transformation.
  • Equivariant — A property where a transformation of the input induces a corresponding transformation of the output.
  • Local Operations — Procedures that process data by focusing on a node and its immediate neighbors, as in convolutional filters or graph message passing.
  • Receptive Field — The area of the input that influences a particular node’s output, growing with each layer.
  • Convolutional Filter — A small matrix (kernel) that slides over an image to produce feature maps.
  • Aggregate function — A permutation‑invariant operation (e.g., sum, mean, attention) that combines messages from a node’s neighbors.
  • update function — A neural mapping that updates a node embedding based on its current state and aggregated neighbor messages.
  • Set Function — A function that operates on a set (unordered collection) of items.
  • Multiset — A set that allows duplicate elements, often used when neighbors may share identical attributes.
  • Embedding — The vector representation of a node or pixel that captures learned features.

Do this for your own lectures

9 chapters, 20 key points, 40 terms and 87 flashcards came out of this lecture automatically. Record in class or upload a recording. The first lecture each day is free, no account needed.

Summarize a lecture free →

↑ Back to top

← All MIT OpenCourseWare course notes