Module 25
Graph Machine Learning and Geometric Deep Learning
How can a model learn when information is structured as relationships, connections or geometric entities instead of vectors or sequences?
- lessons
- 30
- duration
- 55 h 20 min
- concepts
- 188
- available in English
- 30 / 30
- completed by you
0 of 30
Where it fits
Overview
Start with applied graph theory and spectral theory—Laplacians, Cheeger, random walks, communities, graph signals and filters—then move to node embeddings and message passing, implemented from scratch in NumPy with manual forward and backward passes before using PyTorch Geometric. Explore GCN, GraphSAGE, GAT, expressivity (Weisfeiler–Leman, GIN and beyond), depth limits (oversmoothing and oversquashing), node, edge and graph tasks, knowledge and heterogeneous graphs, and graph transformers. The second half formalizes symmetry with practical rigor (groups, representations, intertwiners and Schur’s lemma) and builds equivariant networks: G-CNNs, steerable CNNs, EGNN, spherical harmonics and Clebsch–Gordan products, applied differential geometry on meshes, learned physical simulators and hyperbolic geometry, ending at the frontier of molecular generation, topological learning and graph foundation models.
Why it matters
Source code, dependencies, call networks, transactions, molecules, proteins, robots and 3D scenes are graphs or point clouds with symmetries; treating them as vectors or sequences discards information and data. Applications include GNNs over code property graphs for vulnerability detection, knowledge graphs for agents and RAG, transaction models in quantitative finance, and equivariant networks for robotics and science. Deriving message passing by hand, reasoning about what a GNN can and cannot distinguish, and designing an equivariant layer from a group constraint make it possible to read and extend geometric learning research.
Lessons 30
- 01Applied review: graphs as data, learning tasks and network modelsA machine-learning-oriented review of graph theory, graph storage formats, graph variants, node, edge and graph tasks, network statistics and random graph models.
- 02Graph Laplacians: energy, incidence and normalizationsBuild the graph Laplacian from Dirichlet energy and an incidence factorization, prove its positive semidefiniteness and kernel characterization, and compare normalized, grid and directed versions.
- 03The graph spectrum: algebraic connectivity, Fiedler and CheegerStudy Laplacian spectra, algebraic connectivity, Fiedler vectors, Cheeger's inequality and sweep cuts, then connect expansion to random-walk mixing.
- 04Random walks, diffusion and PageRankStudy random walks, stationary distributions and spectral mixing bounds, heat diffusion, PageRank and local push, effective resistance, and harmonic label propagation.
- 05Communities, modularity and the stochastic block modelStudy community detection through modularity, its resolution limit, Louvain and Leiden, stochastic block models and spectral methods near the detectability threshold.
- 06Graph signal processing: Fourier transform and spectral filtersUse Laplacian eigenvectors as graph Fourier modes, define spectral filters and polynomial locality, approximate filters with Chebyshev recurrences, and explore wavelets and sampling.
- 07Node embeddings: factorization, DeepWalk and node2vecStudy shallow node embeddings, matrix factorization, DeepWalk and node2vec, the NetMF connection, structural roles and the limits that motivate graph neural networks.
- 08Permutation symmetry: sets, DeepSets and equivariant layersStudy permutation invariance and equivariance, characterize linear set and graph layers, and explore DeepSets, pooling and Set Transformers.
- 09Message passing from scratch: forward, backward and graph batchingBuild message passing from shared edge functions and invariant aggregation, derive gather and scatter adjoints, batch disjoint graphs, and compare NumPy with PyTorch and PyG.
- 10GCN: from spectral networks to graph convolutionDerive GCN propagation from spectral and Chebyshev filters, study renormalization and oversmoothing, and compare GCN with decoupled and learnable propagation.
- 11GraphSAGE and GNNs at scale: induction and samplingStudy inductive GraphSAGE, neighbor and subgraph sampling, neighborhood explosion, historical embeddings and practical memory-aware training.
- 12Graph Attention Networks: attention over neighborhoodsGraph attention replaces degree-based weights with learned neighborhood-normalized coefficients. Implement segment softmax and its backward pass, compare static and dynamic attention, incorporate edge features, and situate graph layers in a common framework.
- 13Expressivity I: Weisfeiler-Leman, GIN and graph kernelsStudy 1-WL color refinement, its expressivity bound for message passing, injective aggregation, GIN and WL graph kernels through proofs and measured experiments.
- 14Expressivity II: beyond Weisfeiler-LemanExplore ways to exceed 1-WL expressivity through tuple states, marked subgraphs, structural counts and random features, comparing their guarantees and costs.
- 15The limits of depth: oversmoothing, oversquashing and heterophilyDiagnose oversmoothing, oversquashing and heterophily in deep graph networks, and compare spectral, rewiring and residual techniques using measured experiments.
- 16Node and graph classification: protocols, pooling and self-supervisionDesign leakage-aware node and graph classification protocols, examine Correct and Smooth, pooling and self-supervised learning, and evaluate models with appropriate splits and controls.
- 17Link prediction: heuristics, autoencoders and the labeling trickFrame link prediction under observable information, compare structural heuristics and learned models, and evaluate candidate rankings without leakage.
- 18Knowledge graphs: relational embeddings, R-GCN and reasoningModel directed knowledge-graph relations with translational, bilinear and rotational embeddings, evaluate filtered rankings and examine relational message passing and inductive reasoning.
- 19Heterogeneous, temporal and program graphsModel typed and temporal graphs, inspect gated program-graph networks, and evaluate vulnerability and event predictions with leakage-aware protocols.
- 20Graph transformers: global attention and structural encodingsStudy graph transformer reach, spectral and random-walk encodings, structural attention biases and hybrid models with measured costs.
- 21Groups and representations for learning: invariance and equivariance done rightBuild symmetry groups and representations, derive equivariant actions and nonlinearities, and compare augmentation with invariant averaging.
- 22Equivariant linear layers: intertwiners, irreps and Schur's lemmaConstruct equivariant linear layers as constraint null spaces, use Schur’s lemma and characters to understand their structure, and compare numerical implementations.
- 23Group convolutions and steerable CNNsConstruct lifting and group convolutions, understand steerable kernel constraints, and measure discretization effects and model costs.
- 24E(n)-equivariant networks for 3D geometry: SchNet, EGNN and PaiNNBuild geometric networks with invariant scalars and equivariant vectors, analyze chirality and energy-derived forces, and evaluate molecular models with measured limitations.
- 25SO(3) in depth: spherical harmonics, Clebsch-Gordan and tensor field networksUse SO(3) irreps, spherical harmonics and Clebsch-Gordan products to build equivariant tensor field networks and analyze their computational cost.
- 26Applied differential geometry I: manifolds, geodesics and learning on meshesConnect smooth manifold geometry to triangle meshes, cotangent Laplacians, heat geodesics and intrinsic networks under remeshing.
- 27Learned physical simulators: GNS, MeshGraphNets and GraphCastBuild graph-based learned simulators, compare one-step and rollout error, and analyze contact, conservation and multiscale communication.
- 28Applied differential geometry II: hyperbolic spaces and curvature-aware embeddingsStudy hyperbolic geometry, hierarchy distortion, Riemannian optimization and mixed-curvature models with explicit numerical and evaluation limits.
- 29Graph and molecule generation: from GraphRNN to equivariant diffusionStudy graph generation under permutations, discrete and equivariant diffusion, and evaluation that detects memorization and structural mismatch.
- 30Frontier: topology, algorithmic reasoning, foundation models and symmetry at scaleExplore topological message passing, neural algorithmic reasoning and equivariance at scale through controlled experiments and explicit research hypotheses.
Module capstone
Learned physical simulator and symmetry audit
A final project complementary to the integrative project p04 (covering the GNN library, classical tasks, EGNN, graph transformers and code graphs): build an encode–process–decode learned simulator on the module’s own message-passing library, first for particles and then for a mesh (cloth or two-dimensional flow), with mesh and world edges, relative inputs, noise injection and multistep losses. Add an E(2)- or E(3)-equivariant variant (vector channels in the style of EGNN or PaiNN) and one with antisymmetric interactions conserving momentum, and audit all three with numerical tests for translation invariance, rotation and reflection equivariance, conservation and long-rollout stability. Deliver a reproducible report with three seeds comparing one-step and 1000-step error, data efficiency with and without equivariance and augmentation, cost versus the reference solver on the RTX 4060, and a discussion of when imposing symmetry pays off.
Check what you already know
- Build edge_index, CSR and sparse adjacency representations of a weighted directed graph and distinguish transductive from inductive tasks
- Prove that xᵀLx is the sum of (x_i - x_j)² over edges and that the multiplicity of the zero eigenvalue of L equals the number of connected components
- State Cheeger’s inequality and obtain a low-conductance cut using the Fiedler vector and a sweep
- Compute personalized PageRank by power iteration and relate mixing time to the spectral gap
- Design a Chebyshev polynomial filter on the Laplacian and justify that it is K-local
- Explain why DeepWalk implicitly factorizes a PMI matrix over random walks
- Prove that a permutation-equivariant linear layer on sets has the form λI + γ11ᵀ
- Implement a message-passing layer using scatter-add in NumPy and its backward pass using gather
- Derive GCN propagation from ChebNet’s first-order approximation using the renormalization trick
- Implement a segmented softmax over neighbors and explain the difference between static and dynamic attention
- Run 1-WL color refinement and construct two nonisomorphic graphs that no MPNN can distinguish
- Prove that Dirichlet energy decays exponentially with depth in a linear GCN
- Separate message edges and supervision edges in link prediction and compute filtered MRR
- Classify which relational patterns (symmetry, inversion, composition) TransE, DistMult, ComplEx and RotatE can model
- Explain the sign and basis ambiguity of Laplacian eigenvectors used as positional encodings
- Check whether a map is equivariant under two representations of a group and construct an invariant by averaging
- Solve the intertwiner constraint numerically for a finite group and use Schur’s lemma
- Implement a p4 group convolution and verify equivariance to 90-degree rotations
- Implement an EGNN layer and numerically verify E(n) equivariance
- Couple two SO(3) irreps using Clebsch–Gordan coefficients and verify equivariance with Wigner matrices
- Build the cotangent Laplacian of a triangular mesh and compute geodesic distances with the heat method
- Explain why a learned simulator trained on one-step predictions diverges in long rollouts and how noise injection and multistep losses address it
- Compute distances in the Poincaré model and explain why trees fit in hyperbolic space with low distortion
References
- Graph Representation Learning
- Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gauges
- Spectral and Algebraic Graph Theory
- Networks
- CS224W: Machine Learning with Graphs
- GDL100: Geometric Deep Learning (AMMI)
- An Introduction to Group Equivariant Deep Learning
- A Gentle Introduction to Graph Neural Networks
- Everything is Connected: Graph Neural Networks
- PyTorch Geometric documentation