CS224W

Lecture 19 · Thu 12/3 · slides PDF · lecture notes

Conclusion: The GNN Design Space

Instead of asking "which GNN is best?", map the whole space of GNN designs and of tasks — then transfer the best design from the most similar known task (GraphGym) — and look back at the full course.

25
sectionstick "got it" as you go
19
figuresredrawn from the slides
interactive figuresplay with the ideas
3
self-check questionsplus flashcards
16′
reading time3,426 words, walkthrough aside

Before you start: review of the earlier sessions

The thread so far. Session 19 closes the loop: the design space is session 4's framework, the pipeline is session 5's, the winning aggregator is session 6's, and the symmetry table is the geometric view of sessions 6–8.

What this session takes from earlier ones

  • Lecture 4: the five-part GNN framework, which becomes the design space
  • Lecture 5: the training pipeline of Lecture 5, repeated on slide 5
  • Lecture 6: expressiveness of aggregators: why sum wins the ranking
  • Lecture 4: skip connections and the depth question, settled empirically here

Those sessions in one minute each

Lecture 18 · Deep Generative Models for Graphs

Generate a graph as a sequence of decisions — nodes, then edges to earlier nodes — learned autoregressively (GraphRNN, made tractable by BFS ordering); add a GNN policy, validity checks and RL rewards to steer generation toward goals (GCPN).

\[ p(G,\pi)=p(S^\pi)=\prod_{i=1}^{n}\ \prod_{j=\max(1,i-M)}^{i-1} p\big(S^\pi_{i,j}\mid S^\pi_{<i},S^\pi_{i,<j}\big) \]

\(S^\pi_{i,j}\in\{0,1\}\): is new node \(i\) connected to earlier node \(j\)? With BFS ordering, only the last \(M\) nodes need to be considered.

Lecture 4 · A General Perspective on GNNs

A GNN layer is "message, then order-free aggregation (including yourself)"; architectures differ in how neighbours are weighted, and depth must be matched to the receptive field you need because too many layers smooth everything into one vector.

\[ \alpha_{vu}=\frac{\exp(e_{vu})}{\sum_{k\in N(v)}\exp(e_{vk})},\qquad \mathbf{h}_v^{(l)}=\sigma\Big(\sum_{u\in N(v)}\alpha_{vu}\,\mathbf{W}^{(l)}\mathbf{h}_u^{(l-1)}\Big) \]

GCN is the special case \(\alpha_{vu}=1/|N(v)|\) (fixed); GAT learns \(e_{vu}=a(\mathbf{W}\mathbf{h}_u,\mathbf{W}\mathbf{h}_v)\).

Lecture 5 · GNN Augmentation and Training

Choose the computation graph deliberately (features, virtual nodes, sampling), pick the head that matches the task level, and split so that information from validation/test can never leak into training through message passing.

\[ \hat y_v=\mathbf{W}^{(H)}\mathbf{h}_v^{(L)},\qquad \hat y_{uv}=\mathbf{h}_u^{(L)\top}\mathbf{h}_v^{(L)},\qquad \hat y_G=\text{Pool}\big(\{\mathbf{h}_v^{(L)}:v\in G\}\big) \]

Lecture 6 · Theory of GNNs — How Expressive Are They?

A message-passing GNN is at most as powerful as the 1-WL test; it reaches that bound exactly when every aggregation is injective on multisets — which sum aggregation with MLPs (GIN) achieves and mean/max do not.

\[ \mathbf{h}_v^{(k+1)}=\text{MLP}^{(k)}\Big((1+\epsilon^{(k)})\,\mathbf{h}_v^{(k)}+\sum_{u\in N(v)}\mathbf{h}_u^{(k)}\Big) \]

GIN layer. For graph classification, GIN reads out with a sum over nodes at every layer and concatenates them (the paper's readout).

Warm-up: answer these before you read on

What does teacher forcing change between training and test time? from Lecture 18

During training the true previous edge is fed in; at test time the sampled edge is fed in, so the model must cope with its own samples.

Explain over-smoothing in one sentence. from Lecture 4

With many layers the receptive fields of different nodes become almost the same set of nodes, so their embeddings converge to the same vector.

Why can you not simply split nodes at random for link prediction? from Lecture 5

Edges used for message passing must not also be the edges you are predicting; otherwise the model sees the answer. Message, supervision, validation and test edges are kept apart.

Why does the MLP in GIN matter? from Lecture 6

The universal-approximation theorem lets a one-hidden-layer MLP represent any injective multiset function; sum alone needs a well-chosen encoding of the inputs.

More questions from every session you have reached, with spaced repetition: the cumulative review.

In short

There are too many GNN architectures (GCN, GraphSAGE, GAT, GIN, …), and the best one for one task can be bad for another. Redoing a grid search for every new task is not feasible. Design Space of GNNs (You, Ying, Leskovec, NeurIPS 2020) changes the unit of study from one model to a design space — a Cartesian product of design dimensions (intra-layer, inter-layer, learning configuration: 315K designs) — and a task space of 32 tasks.

Two tools make this tractable. Controlled random search evaluates one design dimension (e.g. BatchNorm on/off) by sampling many random model–task configurations, flipping only that dimension, and comparing rankings. A task similarity metric characterises each task by how 12 fixed anchor models rank on it; tasks with similar rankings have similar best designs, so for a new task you run the 12 anchors, find the most similar known task, and transfer its best design. The platform is GraphGym. The lecture closes the course: graphs are the new frontier of deep learning, and relational structure is everywhere.

The picture: design space × task space → transfer

GNN design space, task space and model transfer Design space intra-layer: BN, dropout, activation, aggregationinter-layer: pre / MP / post layers, skip-sum/catlearning: batch, lr, optimizer, epochs ≈ 315K designs 1 Task space rank of 12 anchor models Task A: M1 M2 M3 M4 M5Task B: M1 M3 M2 M4 M5Task C: M5 M1 M4 M3 M2 sim(A,B) = 0.8sim(A,C) = −0.4 2 New task a. run 12 anchorsb. find most similar known taskc. reuse its best design ogbg-molhiv: 0.785 (SOTA) 3 controlled random search ranks each design choice across many (design, task) samples

How to read it (hover a step)

  1. Design space: every GNN is a point in a product of dimensions — intra-layer (BatchNorm, dropout, activation, aggregation), inter-layer (layers before/during/after message passing, skip connections), learning configuration.
  2. Task space: a task is described by the ranking it induces on 12 fixed anchor models; rank correlation measures task similarity.
  3. Transfer: for an unseen task, run only the 12 anchors, find the most similar task, and reuse its best design — no full search needed.

1 · Designs, dimensions, choices

Vocabulary: a design is a concrete model (a 4-layer GraphSAGE); a design dimension characterises designs (number of layers \(L\in\{2,4,6,8\}\)); a design choice is a selected value (\(L=2\)); the design space is the Cartesian product of dimensions. A task is e.g. node classification on Cora; the task space is all tasks we care about.

The GNN framework of Lecture 4 (slide 4) and the training pipeline (slide 5). slide 4 ↗
  • Intra-layer: GNN layer = transformation + aggregation (BatchNorm, dropout, activation, aggregation).
  • The 12 design dimensions (slide 11). slide 11 ↗
  • Inter-layer: pre-process layers (important when nodes carry images/text), message-passing layers, post-process layers (reasoning over embeddings, graph classification), skip connections (skip-sum / skip-cat).
  • Learning configuration: batch size, learning rate, optimiser, epochs — "often neglected, but high impact".

The mindset shift: studying a design space is more effective than studying individual designs. This ties Lecture 4's GNN framework (message, aggregation, layer connectivity, augmentation, objective) into one searchable object.

2 · Controlled random search: is BatchNorm useful?

Common practice: pick one model, toggle BN, compare — a single anecdote. Instead, with ~315K × 32 ≈ 10M model–task combinations: (a) sample random configurations and create pairs that differ only in BN (same computational budget); (b) rank BN = True/False within each pair; (c) plot the distribution of ranks. Ranking (not raw accuracy) makes results comparable across tasks.

Controlled random search (slides 19–20). slide 19 ↗

Findings (guidelines)

Results 1: guidelines for GNN design (slides 21–23). slide 21 ↗
  • BatchNorm yes, dropout no (GNNs underfit more than they overfit); PReLU stands out (a new finding); sum aggregation is the most expressive (Lecture 6!).
  • Skip connections help (hierarchical representations); the optimal number of layers depends on the task.
  • Adam is more robust; more epochs is better; batch size and learning rate are task-dependent.
Think first: why might dropout hurt GNNs while it helps CNNs?

Dropout fights overfitting. Many GNN benchmarks are small but GNNs with few layers are low-capacity relative to the task's structural complexity — they underfit. Also, message passing already averages neighbours (a smoothing regulariser), and dropping features before aggregation adds noise to an already low-signal average. When the bottleneck is fitting, not generalising, regularisers cost accuracy.

3 · Task similarity and transfer

Classifying tasks as node / edge / graph level is too coarse: predicting a node's clustering coefficient and a paper's subject are both "node classification" but are entirely different. So measure similarity quantitatively:

  1. Pick anchor models: sample 100 designs, run them on a small dataset (Cora), sort by performance and pick 12 evenly spread from worst to best — a bad model on one task may be great on another.
  2. Task similarity from anchor rankings (slides 13–15). slide 13 ↗
  3. Characterise each task by the anchors' performance ranking.
  4. Task similarity = rank correlation (Kendall). Cheap: 12 anchors suffice.

Over 32 tasks (real and synthetic node/graph classification, e.g. predicting clustering coefficients or average path length) two groups emerge: feature-driven tasks (Cora: 1000+ dim features) and structure-driven tasks (few features; predictions depend on structure). Similar tasks share similar best designs.

Transfer to ogbg-molhiv (slides 28–29). slide 29 ↗
Two clusters of tasks (slides 25–27). slide 26 ↗

Case study — ogbg-molhiv (20× larger, 1.4% positives, out-of-distribution): the best design from a similar task (similarity 0.47) reaches ROC-AUC 0.785, above the previous SOTA 0.771; the best design from a dissimilar task (−0.61) gets 0.736.

The mathematics, step by step

The last lecture is about comparing designs fairly, and its mathematics is statistics about rankings: how many designs there are, how to judge one design choice without trying everything, and how to measure whether two tasks 'prefer' the same models.

Symbols used in this session

symbolmeaningwhat kind of object
\(\text{design}\)one complete set of choices: layer type, number of layers, hidden size, batch norm, skip connections, …a tuple of choices
\(|\mathcal D|\)size of the design space: the number of distinct designswhole number
\(S\)number of sampled settings of all the other choiceswhole number
\(\text{rank}_s(c)\)rank of choice \(c\) among its alternatives within sampled setting \(s\); 1 = bestwhole number
\(M_1,\dots,M_{12}\)anchor models: a fixed, small, diverse set of designsdesigns
\(\text{rank}_T(M_1..M_{12})\)the order of the anchor models by performance on task \(T\)a ranking
\(\tau_{\text{Kendall}}\)Kendall's rank correlation between two rankingsnumber in \([-1,1]\)

1The size of a design space

\[ |\mathcal D|=\prod_{k=1}^{K}n_k \]

In words. If there are \(K\) independent choices and the \(k\)-th has \(n_k\) options, the number of complete designs is the product of the \(n_k\).

Why it has this form. Each design is one option from every dimension, and the options combine freely, so the counts multiply. The product grows so fast that trying every design on every task is out of reach, which is the reason for sampling (next card). The point of the lecture is that the useful object is this whole space, not any single best member of it.

With numbers. The small space used in this repository's experiment: 3 layer types × 3 depths × 2 hidden sizes × 2 (batch norm on/off) × 2 (skip on/off) \(=72\) designs. GraphGym's space has 315,000 designs; with 32 tasks that is over 10 million model–task pairs.

Watch out. The dimensions are not independent in their effect: the best depth depends on whether there are skip connections. The product counts designs; it says nothing about how to search them.

2Controlled random search

\[ \bar r(c)=\frac{1}{S}\sum_{s=1}^{S}\text{rank}_s(c) \]

In words. To judge one choice, say batch norm on or off: draw \(S\) random settings of everything else, and in each setting train one model per option of the choice. Rank the options within each setting and average the ranks.

Why it has this form. Comparing 'the best model with batch norm' against 'the best without' confounds the choice with everything else that differs between those two models. Holding all other dimensions fixed within a setting makes the comparison controlled, as in an experiment. Ranks are used instead of raw accuracies because settings and tasks differ greatly in their accuracy levels; a rank asks only which option won. The cost is \(S\) times the number of options, instead of the whole space.

With numbers. Three settings, accuracies (with BN, without): \((0.80,0.78)\), \((0.71,0.74)\), \((0.90,0.85)\). Ranks of 'with BN': \(1,2,1\), average \(1.33\); 'without': \(2,1,2\), average \(1.67\). BN is better on average, but not in every setting, which is the more honest summary.

Watch out. A difference in average rank needs a significance check (or at least the spread over settings); with small \(S\) an average rank of 1.33 against 1.67 can be chance.

3Kendall's rank correlation

\[ \tau=\frac{\#\text{concordant pairs}-\#\text{discordant pairs}}{\binom{n}{2}} \]

In words. Take every pair of items. The pair is concordant if the two rankings order it the same way, discordant if they order it oppositely. \(\tau\) is the surplus of agreeing pairs as a share of all pairs.

Why it has this form. \(\tau=1\) when the rankings are identical (all pairs concordant), \(-1\) when one is the reverse of the other, and about 0 when they are unrelated. It depends only on orderings, never on the size of the performance gaps, so it compares tasks whose metrics live on different scales (accuracy on one, error on another).

With numbers. Four models. Task A ranks them \(1,2,3,4\); task B ranks the same models \(2,1,3,4\). There are \(\binom42=6\) pairs; only the pair (first, second) is ordered differently. \(\tau=(5-1)/6=0.67\).

Watch out. With only a handful of items \(\tau\) takes few possible values and is noisy; twelve anchor models give 66 pairs.

4Task similarity and transfer of the best design

\[ \text{sim}(T_a,T_b)=\tau_{\text{Kendall}}\big(\text{rank}_{T_a}(M_1..M_{12}),\ \text{rank}_{T_b}(M_1..M_{12})\big)\in[-1,1] \]

In words. Run the same twelve anchor models on two tasks. The tasks are similar if they rank the twelve models in a similar order. For a new task, find the most similar known task and reuse its best design.

Why it has this form. A task is described by how it responds to models, not by surface statistics such as size or density: two graphs that look alike can prefer different architectures, and the ranking of anchors measures that preference directly. Twelve runs are cheap compared with searching the whole space, and if the similarity is high, the best design of the old task is likely to be near the best for the new one.

With numbers. New task \(T\): its anchor ranking has \(\tau=0.85\) with task A and \(\tau=0.10\) with task B. Adopt A's best design (say 3 layers, sum aggregation, skip connections). In the lecture's study, designs transferred this way were close to the best found by a full search.

Watch out. The result is only as good as the anchor set: anchors that all behave alike rank every task the same way and make all tasks look similar.

Check yourself

Questions from the lecture, in order. Answer each one in your head (or on paper) before you open it. If one stumps you, follow the link to the walkthrough block it comes from.

Check yourself: if there are 4 dimensions with 2, 3, 3 and 3 choices, how many designs are in the space? show answer

\(2\cdot3\cdot3\cdot3 = 54\).

from The problem of GNN design, and terminology

Check yourself: dropout 0 and more epochs both being better point to the same diagnosis. Which? show answer

Underfitting: the models in this space are usually not trained long enough or regularized too much, rather than overfitting.

from Results 1: guidelines for GNN design

Lecture walkthrough reference · slide by slide · opens on demand

The whole lecture in order, grouped by topic. Every drawing on the slides is redrawn here as a clean figure (click the step buttons where a figure has them), the heading of each block links to the matching pages of the official PDF, and the Review section after the walkthrough ties this session to the earlier ones. Read this and you do not need the deck.

  1. Recap: the GNN framework and training pipeline
  2. The problem of GNN design, and terminology
  3. The GNN design space: 315K designs
  4. The GNN task space and a task-similarity metric
  5. Evaluating a design dimension: controlled random search
  6. Results 1: guidelines for GNN design
  7. Results 2: understanding GNN tasks
  8. Results 3: transfer to a novel task, and summary
  9. Course wrap-up: graphs as the new frontier
  10. The bottom line and what comes next

Recap: the GNN framework and training pipeline slides 3-5 ↗

Slides 3–5: deep learning on graphs, the five-part GNN framework and the training pipeline, which the lecture now treats as a design space. slides 3-5 ↗

The last lecture (given by Charilaos Kanatsoulis) starts with a recap of the whole course in three pictures.

Slide 3, deep learning in graphs: the input is a network; it passes through graph convolutions, an activation function, regularization (e.g. dropout) and more graph convolutions; the outputs are predictions: node labels, new links, and generated graphs and subgraphs. These three outputs match the three big task families of the course: node-level, link-level and generation (Lecture 18).

Slide 4, the general GNN framework (from the "Design Space of GNNs" paper, You, Ying, Leskovec, NeurIPS 2020). The picture shows two stacked GNN layers with five numbered parts:

  1. Message: each neighbor computes a message.
  2. Aggregation: messages are combined at the target node.
  3. Layer connectivity: how layers are stacked (plain stacking, skip connections, …).
  4. Graph augmentation: changing the input graph or features (adding virtual nodes, sampling neighbors, …).
  5. Learning objective: supervised or self-supervised, node/edge/graph level.

Slide 5, the GNN training pipeline: input graph → graph neural network → node embeddings → prediction head → predictions; predictions are compared with labels by a loss function, and with evaluation metrics. The output of a GNN is a set of node embeddings \(\{\mathbf h_v^{(L)},\ \forall v\in G\}\).

Today's question builds on this: every box in these pictures has many possible choices. Which choices should we make for a new task?

The problem of GNN design, and terminology slides 6-7 ↗

Slides 6–7: why GNN design is hard, and the five words the rest of the lecture depends on. slides 6-7 ↗

Slide 6 states the key question of GNN architectural design: how do we find a good GNN design for a specific task? It is important but hard:

  • Domain experts want to use a state-of-the-art GNN on their task, but there are many possible architectures: GCN, GraphSAGE, GAT, GIN, …
  • The best design for one task can perform badly on another.
  • Redoing a hyperparameter grid search for every new task is not feasible.

Topic for today: study the GNN design space and the task space, and GraphGym, a platform for exploring GNN designs and tasks.

Slide 7 fixes the vocabulary (keep it exact, the rest of the lecture depends on it):

  • Design: one concrete model instance, e.g. a 4-layer GraphSAGE.
  • Design dimension: a property that characterizes a design, e.g. the number of layers \(L\in\{2,4,6,8\}\).
  • Design choice: the value selected in a dimension, e.g. \(L = 2\).
  • Design space: the Cartesian product of all design dimensions.
  • Task: a specific task, e.g. node classification on Cora, graph classification on ENZYMES.
  • Task space: all the tasks we care about.
Check yourself: if there are 4 dimensions with 2, 3, 3 and 3 choices, how many designs are in the space? show answer

\(2\cdot3\cdot3\cdot3 = 54\).

The GNN design space: 315K designs slides 8-11 ↗

Slides 8–11: the general layer, the layer stack, the learning configuration, and the 12 dimensions that multiply to 315K designs. slides 8-11 ↗

Slide 8, intra-layer design: a GNN layer = transformation + aggregation. The paper proposes one general layer: Linear → BatchNorm → Dropout → Activation → Aggregation. The first four form the "GNN transformation" applied to each message; the last combines the messages. The four red boxes (BatchNorm, Dropout, Activation, Aggregation) are the 4 intra-layer design dimensions. So inside one layer we choose whether to use batch normalization, how much dropout, which activation, and which aggregation.

Slide 9, inter-layer design: different ways to organize layers. The figure shows the full stack:

  • Pre-process layers (MLP layers before message passing): important when an expressive node-feature encoder is needed, e.g. when nodes are images or text.
  • Message-passing layers (GNN layers), joined by a chosen layer connectivity. Skip connections improve the performance of deep GNNs.
  • Post-process layers (MLP layers after message passing): important when reasoning or transformation over node embeddings is needed, e.g. graph classification or knowledge graphs.

Slide 10, learning configuration: batch size, learning rate, optimizer, training epochs. These are often neglected in the literature, but the authors found they have a high impact on performance.

Slide 11 lists the concrete choices (each group has 4 dimensions):

  • Intra-layer: batch normalization {True, False}; dropout {False, 0.3, 0.6}; activation {ReLU, PReLU, Swish}; aggregation {mean, max, sum}.
  • Inter-layer: layer connectivity {stack, skip-sum, skip-cat}; pre-process layers {1, 2, 3}; message-passing layers {2, 4, 6, 8}; post-process layers {1, 2, 3}.
  • Learning configuration: batch size {16, 32, 64}; learning rate {0.1, 0.01, 0.001}; optimizer {SGD, Adam}; training epochs {100, 200, 400}.

In total: about 315K possible designs. The authors do not want to (and cannot) test them all. Their purpose is a mindset transition: show that studying a design space is more effective than studying individual GNN designs.

Check the count yourself: \(2\cdot3\cdot3\cdot3\) (intra) \(\times\ 3\cdot3\cdot4\cdot3\) (inter) \(\times\ 3\cdot3\cdot2\cdot3\) (learning) \(= 54\cdot108\cdot54 = 314{,}928 \approx 315\text{K}\).

The GNN task space and a task-similarity metric slides 12-16 ↗

Slides 12–16: node/edge/graph level is too coarse, so a task is described by how 12 anchor models rank on it; the anchors are picked evenly across the performance spectrum. slides 12-16 ↗

Slide 12: how should we categorize GNN tasks? The common practice is node / edge / graph level. This is reasonable but not precise: "predict a node's clustering coefficient" and "predict a node's subject area in a citation network" are both node prediction, but completely different tasks (one is purely structural, one depends on text features). A precise hand-made taxonomy is very hard: it is subjective, and new tasks always appear. The innovation: a quantitative task-similarity metric, to understand tasks and to transfer the best model across tasks.

Slide 13, the metric in three steps:

  1. Select a fixed set of anchor models \(M_1,\dots,M_5\) (in practice 12).
  2. Characterize a task by the ranking of the anchor models' performance on it.
  3. Tasks with similar rankings are similar.

Example table: on Task A the ranking is \(M_1,M_2,M_3,M_4,M_5\) (similarity to A: 1.0). On Task B it is \(M_1,M_3,M_2,M_4,M_5\) (similarity 0.8): A and B are similar. On Task C it is \(M_5,M_1,M_4,M_3,M_2\) (similarity −0.4): A and C are not similar.

These numbers are exactly Kendall rank correlations: among the 10 pairs of models, B disagrees with A on one pair, giving \((9-1)/10 = 0.8\); C agrees on 3 pairs and disagrees on 7, giving \((3-7)/10 = -0.4\). (Check it yourself.)

Slides 14–15, how to choose the anchors: (1) take a small dataset, e.g. node classification on Cora; (2) randomly sample \(N\) models from the design space and run them on it (e.g. \(N = 100\)); (3) sort them by performance and pick \(M\) models evenly spaced from the worst to the best (12 in the experiments). The goal is to cover a wide spectrum of models, because a model that is bad on one task can be great on another. Anchors that are all good would not tell tasks apart.

Slide 16, the task collection: 32 tasks (link prediction results are in the paper's appendix):

  • 6 real-world node classification tasks;
  • 12 synthetic node classification tasks: predict node properties such as clustering coefficient and PageRank;
  • 6 real-world graph classification tasks;
  • 8 synthetic graph classification tasks: predict graph properties such as average path length.

Evaluating a design dimension: controlled random search slides 17-20 ↗

Slides 17–20: the study design, and controlled random search on one dimension (BatchNorm): sample, perturb, rank within pairs, aggregate. slides 17-20 ↗

Slide 17 shows the whole study as one figure: (a) the GNN design space and (b) the GNN task space are combined in (c) controlled random search; then (d) design choices are ranked by performance, and (e) the rankings are analyzed. A side table shows the best designs found in different tasks. The study gives: general guidelines for GNN design, an understanding of GNN tasks, and transfer of the best designs across tasks.

Slide 18 asks: is BatchNorm generally useful for GNNs? The common practice: (1) pick one model (e.g. a 5-layer, 64-dim GCN); (2) train it with BN = True and BN = False and compare. The conclusion then holds only for that one model and task. The new approach: there are \(315\text{K models}\times 32\text{ tasks}\approx 10\text{M}\) model–task combinations. (1) Sample from these 10M combinations; (2) rank the models with BN = True vs False. How do we make this scalable and convincing?

Slide 19, step (a): sample random model–task configurations (random activation, number of layers, connectivity, task level, dataset, …) and, for each one, perturb only the dimension of interest: BatchNorm = [True, False]. Everything else stays fixed, so each pair is a controlled experiment. The computational budget is also controlled across all models (so a model does not win just by having more parameters).

Slide 20, steps (b) and (c). (b) Within each pair, rank the two choices by validation performance (lower rank is better). The table shows three pairs: accuracies 0.75 vs 0.54 give True rank 1, False rank 2; 0.88 vs 0.88 is a tie (both rank 1); 0.89 vs 0.36 gives True rank 1, False rank 2. (c) Plot the average and the distribution of the ranks of each choice over many pairs. In the plot, BN = True has a lower average rank than False, and its rank distribution is concentrated at 1.

Why ranks, not raw accuracy? Accuracies on different tasks are not comparable (0.54 on one dataset can be excellent, on another terrible). Ranks inside a controlled pair remove the task scale. Summary: this method can convincingly evaluate any new design dimension, e.g. a new GNN layer you propose.

Results 1: guidelines for GNN design slides 21-23 ↗

Slides 21–23, Results 1: the winning choice in each dimension (values sketched from the slide's bar plots; the ordering is what matters). slides 21-23 ↗

Each result plot has two rows: the average accuracy ranking (bars, lower is better) and the distribution of rankings (violin plots). A dotted red box marks the winning choice.

Slide 21, intra-layer designs:

  • Batch normalization: True is better. Explanation: GNNs are hard to optimize, and BN helps optimization.
  • Dropout: 0.0 (none) is best, 0.3 worse, 0.6 worst. Explanation: GNNs underfit more often than they overfit, so extra regularization hurts.
  • Activation: PReLU is best, ahead of ReLU and Swish. The authors call this their new finding.
  • Aggregation: sum is best, then mean, then max. Explanation: sum is the most expressive aggregator (recall Lecture 6 and GIN: sum can count neighbors, mean and max cannot).

Slide 22, inter-layer designs:

  • Pre-process layers (1, 2, 3), post-process layers (1, 2, 3) and message-passing layers (2, 4, 6, 8): the average ranks are close and the distributions overlap. The optimal number of layers is hard to decide and highly dependent on the task.
  • Layer connectivity: skip-cat is best, then skip-sum, then plain stack. Explanation: skip connections enable a hierarchical node representation (embeddings from several depths are kept).

Slide 23, learning configurations:

  • Batch size (16, 32, 64) and learning rate (0.001, 0.01, 0.1): no clear winner; highly task-dependent.
  • Optimizer: Adam beats SGD. Explanation: Adam is more robust.
  • Training epochs: 400 beats 200 and 100. Explanation: more training epochs is better (again consistent with underfitting).
Check yourself: dropout 0 and more epochs both being better point to the same diagnosis. Which? show answer

Underfitting: the models in this space are usually not trained long enough or regularized too much, rather than overfitting.

Results 2: understanding GNN tasks slides 24-27 ↗

Slides 24–27, Results 2: the best design depends on the task, the pairwise task similarity splits into a feature-driven and a structure-driven block, and PCA shows the two clusters (illustrative values). slides 24-27 ↗

Slide 24: the best design varies a lot across tasks, which shows that studying the task space is crucial. Examples from the bar plots (average ranking):

  • Aggregation: max is best on BZR, mean on PROTEINS, sum on smallworld.
  • Message-passing layers: 8 is best on Cora and on scalefree, but 2 is best on IMDB.

So the general guidelines of Results 1 are averages; for one specific task the best choice can be the opposite.

Slide 25, build the task space. Compute task similarity (as on slide 13) for every pair of the 32 tasks. The heatmap shows the pairwise similarities (computed from 12 anchor models), with tasks named "Level-Dataset-Feature-Label" (e.g. node-smallworld-const-clustering). Is 12 anchors enough? The scatter plot compares similarity from 12 anchors with similarity from all models: Pearson correlation 0.94. So task similarity is cheap to compute and 12 anchors are a good approximation.

Slide 26: the task space is informative. The heatmap splits into two blocks:

  • Group 1: tasks that rely on feature information: node/graph classification where the input graphs have high-dimensional features (Cora nodes have 1000+ dimensional features); e.g. AmazonComputers, AmazonPhoto, CiteSeer, CoauthorCS, CoauthorPhysics, Cora.
  • Group 2: tasks that rely on structural information: nodes have few features and predictions depend heavily on graph structure, e.g. predicting clustering coefficients on synthetic scalefree and smallworld graphs.

Slide 27 projects the tasks to 2D with PCA: Group 1 (blue, feature-rich datasets) and Group 2 (red, structural tasks) form separate clusters; circles are node-level and crosses graph-level tasks. Key finding: similar tasks have similar best architectures. The table: Task A (2 pre, 8 MP, 2 post layers, skip-sum, sum) and Task B (1, 8, 2, skip-sum, sum) are close in task space and have nearly the same best design; Task C (2, 6, 2, skip-cat, mean) is far away and its best design differs.

Results 3: transfer to a novel task, and summary slides 28-30 ↗

Slides 28–30, Results 3: transfer to an unseen OGB task; the design of the similar task A beats the state of the art, the dissimilar task B does not. slides 28-30 ↗

Slide 28, a case study: transfer the best designs to the unseen OGB task ogbg-molhiv (molecule property prediction). It is unlike the 32 tasks: 20× larger, imbalanced (1.4% positive), and it needs out-of-distribution generalization. Steps for any new task:

  1. Measure the performance of the 12 anchor models on the new task.
  2. Compute the similarity between the new task and the existing tasks.
  3. Recommend the best designs from existing tasks with high similarity.

The scatter plot: for each existing task, its similarity with ogbg-molhiv (x-axis) against how well its best design ranks after transfer (y-axis). Pearson correlation 0.78: the more similar the task, the better its design transfers.

Slide 29 picks two tasks. Task A: graph-scalefree-const-path (similar to OGB, similarity 0.47); its best design is (1, 8, 3, skipcat, sum), i.e. 1 pre-process layer, 8 message-passing layers, 3 post-process layers, skip-cat, sum aggregation. Task B: node-CoauthorPhysics (not similar, similarity −0.61); best design (1, 4, 2, skipcat, max). After transfer to ogbg-molhiv, A's design reaches ROC-AUC 0.785, above the previous state of the art 0.771; B's design gets only 0.736. So the task space guides model transfer to new tasks, with only 12 cheap anchor runs instead of a full search.

Slide 30 summarizes the paper: a systematic study giving (1) general guidelines for GNN design, (2) understanding of GNN tasks, (3) transfer of the best designs across tasks, and (4) GraphGym, an easy-to-use code platform for GNNs.

Lecture notes figure, page 127
Notes Fig. 22.6: context prediction. The K-hop neighborhood of the center node and the context graph (a ring between radii r1 and r2) are encoded by separate GNNs and trained to match. notes p.127 ↗
Lecture notes figure, page 127
Notes Fig. 22.7: ROC-AUC improvement over no pre-training on 8 molecule datasets. The naive strategy (red) sometimes falls below zero (negative transfer); the node+graph strategy (green) avoids it. notes p.127 ↗

Course wrap-up: graphs as the new frontier slides 32-36 ↗

Slides 32–36: deep learning was built for grids and sequences; graphs are the new frontier, and each architecture bakes in an invariance of its data. slides 32-36 ↗

The second part of the lecture wraps up the course.

Slide 32: the modern deep learning toolbox is designed for simple sequences and grids. Images are grids of pixels (CNNs); text and speech are sequences (RNNs, transformers).

Slide 33: how can we build neural networks that are much more broadly applicable? Graphs are the new frontier of deep learning.

Slide 34 shows the variety of relational data: knowledge graphs, gene regulatory networks, scene graphs, code graphs, molecules and 3D shapes (meshes). The main question of the course: how do we take advantage of relational structure for better prediction?

Slide 35 repeats the picture of slide 3: input network → GNN → predictions (node labels, new links, generated graphs and subgraphs).

Slide 36, models of interest and their invariances: each successful architecture builds in a symmetry of its data.

  • Perceptrons: function regularity.
  • CNNs: translation.
  • Group-CNNs: translation + rotation, global groups.
  • LSTMs: time warping.
  • DeepSets / Transformers: permutation (of set elements / tokens).
  • GNNs: permutation (of node labels).
  • Intrinsic CNNs (on meshes and manifolds): isometry / gauge choice.

This is the "geometric deep learning" view: a GNN is the architecture whose output does not depend on how we number the nodes, just as a CNN does not depend on where an object sits in the image. It links back to Lecture 6 (permutation invariance and equivariance) and to the expressiveness results (WL test).

The bottom line and what comes next slides 37-39 ↗

Slides 37–39: the bottom line, what the course covered, and where to go next. slides 37-39 ↗

Slide 37, the bottom line:

  • Many real-world problems contain rich relational structure: molecules and proteins can be treated as strings or as graphs; relational databases have primary–foreign key structure (Lectures 12–13).
  • Identifying and using this structure leads to better predictions: AlphaFold (protein structure), biomedicine, recommender systems.

Slide 38, what the course covered: theory (models, architectures, approaches), practice (Colab notebooks, homeworks), creative research (the course project), and real-world use cases and applications.

Slide 39, what next. The project write-ups are due at the deadline shown (no late days). For further study the slide recommends CS246: Mining Massive Datasets (Winter): data mining and machine learning for big data that does not fit in memory or on one machine, fast clever algorithms for real-world problems, and distributed frameworks such as MapReduce and Spark.

For a self-learner: a good review exercise is to go back to slide 4's five design parts (message, aggregation, layer connectivity, graph augmentation, learning objective) and name, for each, the lecture where it was taught and one concrete choice you now know (e.g. aggregation: sum in GIN, attention in GAT).

Not shown (no new content): slides 1,2,31,40,41 — title page, announcements (grades, Colab 5, project report), section-divider title page, team photo slide, closing thank-you slide.

Review: what to keep from this session

Carried forward. The two bonus pages: Lecture 20 revisits classic features and scaling (what you can get cheaply from structure), Lecture 21 geometry, subgraphs and trust.

Quick self-check

Why rank within pairs rather than compare raw accuracies?

Accuracies are not comparable across tasks; a rank within a controlled pair is.

How many anchor runs does transfer to a new task cost?

Twelve: run the anchor models, compute the similarity to the known tasks, borrow the best design of the most similar ones.

Which earlier result predicts that sum aggregation ranks best?

The expressiveness argument of Lecture 6: sum is injective on multisets, mean and max are not.

Key idea

Study design spaces, not single models: rank design choices across many sampled model–task pairs, describe tasks by how anchor models rank on them, and transfer the best design from the most similar task.

\[ \text{sim}(T_a,T_b)=\tau_{\text{Kendall}}\big(\text{rank}_{T_a}(M_1..M_{12}),\ \text{rank}_{T_b}(M_1..M_{12})\big)\in[-1,1] \]

\(M_1,\dots,M_{12}\): fixed anchor models; \(\tau\): rank correlation (+1 same order, −1 reversed).

Worked example: rank correlation of two tasks

Five anchors. Task A ranks them M1 > M2 > M3 > M4 > M5; Task B ranks M1 > M3 > M2 > M4 > M5.

  1. There are \(\binom52=10\) pairs. A pair is concordant if both tasks order it the same way.
  2. Only (M2, M3) is flipped → 9 concordant, 1 discordant.
  3. \(\tau=(9-1)/10=0.8\) — the slide's "0.8". Task C (M5 M1 M4 M3 M2) reverses most pairs: \(\tau=(3-7)/10=-0.4\).
  4. So a new task resembling A should reuse A's best design; ignore C's.

Strictly speaking: the conclusions are about a specific design space and 32 tasks; newer architectures (graph transformers, Lecture 8) live outside it. The method generalises; the specific guidelines may not.

Proof workshop: Kendall's τ counts the bubble-sort distance

One problem in olympiad style. Give it fifteen minutes on paper before you open the first hint; the hints are graded, so open them one at a time.

Problem. Two rankings of \(n\) models have \(C\) concordant and \(D\) discordant pairs, with \(\tau=\frac{C-D}{\binom n2}\). Prove that (a) \(\tau=1-\frac{4D}{n(n-1)}\); (b) \(D\) equals the minimum number of adjacent swaps that turn one ranking into the other. Then compute \(\tau\) for A: M1>M2>M3>M4 and B: M2>M1>M4>M3.

Hint 1
(a) \(C+D=\binom n2\) without ties. (b) How does one adjacent swap change the set of discordant pairs?
Hint 2
For the upper bound in (b): bubble sort only swaps adjacent out-of-order pairs.
Solution
(a) \(\tau=\frac{\binom n2-2D}{\binom n2}=1-\frac{2D}{\binom n2}=1-\frac{4D}{n(n-1)}\). (b) Relabel so that the target ranking is the identity; then \(D\) is the number of inversions. An adjacent swap changes the relative order of exactly one pair, so it changes the inversion count by exactly \(\pm1\): at least \(D\) swaps are needed. Bubble sort swaps only adjacent inverted pairs, removing one inversion each time, so \(D\) swaps suffice. Example: the discordant pairs are (M1,M2) and (M3,M4), so \(D=2\) and \(\tau=1-\frac{8}{12}=\frac13\approx0.333\). \(\square\)

Why it matters. The design-space method compares tasks by how they rank anchor models, and (b) says τ measures how many adjacent "disagreements" separate the two rankings. With 8 anchors there are only 28 pairs, so τ is noisy: the standard error near \(\tau=0\) is about \(\sqrt{2(2n+5)/(9n(n-1))}\approx0.29\). That is a reason to average over seeds before trusting a task-similarity matrix.

Sharper lens: the course in one table, and what a design study measures

Not on the slides. Three or four points where the lecture rounds something off: the exact statement, a second way to see it, and where it stops being true. Each is short and has a pointer for going further.

second viewpoint

The course as a table of symmetries

Lecture 3's rule was "find the symmetry of the data, then build layers that respect it". Read backwards, most lectures were one line of this table.

LectureWhat may be relabelled or movedGroupHow the model respects it
2axes of the embedding space\(O(d)\)it does not: only inner products mean anything
3–6node names\(S_n\)shared weights, order-free aggregation; the price is the WL ceiling
7–8sign and basis of eigenvectors\(\{\pm1\}^k\), \(O(m)\) per eigenspaceSignNet, BasisNet, projectors; or random IDs averaged (PEARL)
14which points are calibration and which is the test point\(S_{n+1}\) (exchangeability)conformal coverage is a symmetry argument about ranks
15entity names and relation names\(S_n\times S_m\)relation graph and conditional message passing
18node order of a generated graph\(S_n\)pick an ordering (GraphRNN) or denoise equivariantly (diffusion)
21position and orientation in space\(SE(3)\) or \(E(3)\)distances and angles, or features that rotate with the input

Two regularities. Each symmetry removes a nuisance and creates a blind spot of exactly that shape (regular graphs for \(S_n\), mirror-image molecules for \(E(3)\), structurally identical relations for \(S_m\)), and the fix is always a deliberately chosen extra input. And where data and compute are abundant, the symmetry can be learned from augmented data instead of built in (Lecture 21's Sharper lens). A design space has one more dimension than the lecture lists: which invariances are hard-wired.

precise statement

Controlled random search is a randomised experiment, and it estimates main effects

Flipping BatchNorm while everything else is drawn at random is a matched-pairs randomised trial: randomisation balances the other design dimensions, and the rank plot estimates the average effect of BatchNorm over the sampled designs and the 32 tasks. That is the right tool for "is this dimension worth tuning at all".

It does not estimate interactions. "Dropout: no" is an average over cells where dropout hurts and cells where it helps (wide layers on small graphs). Functional ANOVA (Hutter, Hoos and Leyton-Brown, ICML 2014) splits the variance of performance into main effects and interactions and is the standard tool when a guideline seems to fail on your task. And as with any trial, the result holds for the population sampled: mostly small graphs, classification, and no pre-trained encoders.

second viewpoint

Task similarity by anchor models is "landmarking"

Describing a dataset by how a few fixed, cheap learners perform on it is a meta-learning idea from 2000, landmarking (Pfahringer, Bensusan and Giraud-Carrier): the scores of a decision stump, naive Bayes and a nearest-neighbour classifier predict which expensive learner will do well. The design-space paper is landmarking with twelve GNNs as landmarks and rank correlation as the distance. Seen this way its limits are familiar. The description is only as rich as the landmarks are diverse (twelve points from one design space cannot separate tasks that differ in what no design in the space can do), and the proof workshop's noise estimate applies to every entry of the similarity matrix. The practical recipe stands, and it is cheap: run the anchors, find the nearest known task, start from its best design.

Lab: hands-on and practical tips

notebook · L19 design space computes Kendall's τ by hand, builds a small design space and task space, runs controlled random search (the results above), and measures task similarity and design transfer.

Read the chart as "it depends"Switch tasks in the figure above: with 161 design–task results (399 trainings; designs in the controlled search and the transfer pool averaged over 3 seeds) the best layer type, depth and normalisation change between Cora, CiteSeer and the two SBM tasks. That dependence, not any single winner, is the lecture's point.
Controlled random search in practiceSample random configurations, flip one dimension at a time, rank the two variants per (config, task), and report rank distributions, not means of accuracy. Means hide the task dependence; ranks expose it.
Anchor models before architecture searchRun the 12 anchor models on your task, compute Kendall's τ of their ranking against GraphGym's 32 tasks, and start from the best design of the most similar task. Cheaper than a grid search and usually within a point of it.
GraphGym in one config
uv run python -m torch_geometric.graphgym.main --cfg my.yaml
# my.yaml: dataset.name, gnn.layer_type, gnn.layers_mp,
#          gnn.stage_type (skipsum), gnn.batchnorm, optim.base_lr
Keep the YAML grid small and seed it; three seeds per configuration is the minimum for a ranking to mean anything.

Looking back: the whole course on one page

BlockLecturesThe one idea
Foundations1 · 2Graphs everywhere; shallow embeddings via random walks.
GNN core3 · 4 · 5Message + aggregation; the layer, stack, augmentation, training design space.
Theory6 · 7GNNs ≤ 1-WL; GIN reaches it; go beyond with positional / structural encodings.
Transformers8Attention over all nodes + graph positional encodings.
Heterogeneous & KGs9 · 10 · 15Relation types; KG embeddings (TransE…); foundation models that transfer across KGs.
Applications11 · 12 · 13Recommenders (LightGCN); relational databases as graphs.
Frontiers14 · 16 · 17 · 18Advanced GNNs; LLM + GNN; agents; graph generation.

The closing message: modern deep learning was built for sequences and grids; graphs are the new frontier. Identifying and harnessing relational structure — molecules, relational databases, knowledge graphs, social networks — leads to better predictions (AlphaFold, biomedicine, recommender systems).

The bottom line (slide 37). slide 37 ↗
Graphs are the new frontier (slides 32–36). slide 33 ↗

Readings & lookup guide

lecture notes CS224W course notes (Leni Aniva, Autumn 2024 — in your course folder)

Concise written version of the lectures; the walkthrough above cites it page by page.

read first You, Ying, Leskovec — Design Space of Graph Neural Networks (NeurIPS 2020, spotlight)

arXiv:2011.08843 · GraphGym code (now part of PyG as torch_geometric.graphgym) · ~1.5 h
  • Read: §3 (design space), §4 (task space + anchor models), §5 (controlled random search), Fig. 3–5 (guidelines); Appendix for link prediction.

consolidate Hamilton — Graph Representation Learning (book, 2020) · Bronstein et al. — Geometric Deep Learning (2021)

  • Read the GRL book end-to-end as a course review (~200 pages); GDL "proto-book" gives the symmetry view (groups, equivariance) uniting CNNs, GNNs and transformers — a natural bridge to your neuro-symbolic interests.

next course CS246 Mining Massive Datasets

  • Recommended by the lecturers: big-data algorithms (MapReduce, Spark, LSH, streams) — useful for scaling SNA work.

Final deadlines

Colab 5 due Thu 12/3 · Final project report due Thu 12/10, 11:59 PM PT — no late days

Projects are published as a Medium blog post + code; a Gradescope form collects the links. (Dates in the 2025 slides are one day later; follow the course site.)

Self-check

How does GraphGym evaluate whether BatchNorm helps?

  1. One fixed model, BN on/off
  2. Full grid search over 315K designs
  3. Random model–task samples differing only in BN, compared by rank
  4. Theoretical expressiveness analysis

Controlled random search.

A task is characterised by …

  1. its level (node/edge/graph)
  2. the ranking of fixed anchor models on it
  3. its dataset size
  4. its best model only

Similar rankings ⇒ similar tasks.

Which guideline did the study find?

  1. Dropout always helps
  2. Mean aggregation is best
  3. Deeper is always better
  4. BatchNorm and skip connections help; sum aggregation is strong

Optimal depth is task-dependent; dropout tends to hurt.

Flashcards (click to flip)

Design vs dimension vs choice
A concrete model / an axis like #layers / a value like L=2.
Why anchor models?
Cheap task fingerprint: 12 models' ranking.
Two task clusters
Feature-driven vs structure-driven tasks.
ogbg-molhiv transfer
Similar-task design: 0.785 (SOTA); dissimilar: 0.736.

History & the bigger picture

  • 2016–2017 — Neural Architecture Search (Zoph & Le): RL searches CNN designs. 2019–2020 — Radosavovic et al. "Designing Network Design Spaces" (RegNet): study spaces, not points — the direct inspiration for GraphGym.
  • 2020 — GraphGym; 2021 — OGB standardises benchmarks; 2022+ graph foundation models try to remove per-task design altogether (Lecture 15).
Philosophy of science · from heroic models to cartography

Much ML research is "my model beats yours on a benchmark" — a single point compared to a single point, a methodological weakness philosophers would call poor severe testing (Mayo). Design-space studies are closer to experimental science: controlled variation of one factor across many contexts, and reporting distributions rather than champions. It also exposes a social dynamic: a field incentivised to publish novel architectures under-reports that a well-tuned simple baseline often matches them.

Classic SNA bridge

In this lectureClassic SNA counterpartWhat carried over, what changed
Design space of GNNs; controlled random searchThe zoo of centrality measures and community-detection algorithms; comparative evaluations (Lancichinetti & Fortunato 2009 benchmark)SNA has its own design space (which centrality, which null model, which resolution). The LFR benchmark did for community detection what GraphGym did for GNNs: a task space with controlled difficulty.
Task similarity by anchor-model rankingsNetwork typologies: classifying networks by structural fingerprints (Milo's superfamilies; Estrada's spectral classes)Characterising a task by how fixed models rank on it is a fingerprint of the task, like a motif profile is a fingerprint of a network. Transfer by similarity is the same logic.
Kendall's τ between rankingsRank correlation of centrality measures (Freeman 1979; Valente et al. 2008 compared 4 centralities over 58 networks)Same statistic, same purpose: when do two measures (or two tasks) agree on the ordering?
"Graphs are the new frontier of deep learning"The relational turn in sociology (Emirbayer 1997) and network science's claim to universality (Barabási 2002)Each generation announces that relations are everywhere. SNA has thirty years of experience with the limits of that claim; graph ML is acquiring them now through its audits.
A GraphGym for social tasksStandard datasets of SNA: Zachary's karate club, Southern Women, Sampson's monasteryA dozen SNA tasks with honest splits would be the social-network task space the lecture's method needs; the classic datasets are too small, your X data is not.
Bridge idea

Build a social-network task space of a dozen tasks (bot, stance, virality, suspension, coordination, community membership) on your X data with time-based splits, run the 12 anchor models and compare rankings with GraphGym's 32 tasks. If social tasks cluster separately, GraphGym's guidelines do not transfer, which is a negative result worth publishing; if they land in the "structure-driven" cluster, you get free design guidelines.

Go deeper in the SNA course. The twelve-unit course on social network analysis in this repository gives the classic side of this lecture in full, with labs and real-data analyses: Unit 2 · Homophily, balance & brokerage (the design space: no GNN design is best on every graph); Unit 10 · Causality, interference & graph ML (the GNN design space, and which choices transfer); Unit 12 · The new frontier: data, platforms & LLM agents (open problems, as CS224W closes).

Connecting to your research

Research extension. experiments/design-transfer (hypotheses written before running): Cora's design ranking does not transfer to bot detection: τ = −0.21 on co-amplification rings (noise ceiling 0.66), where Cora's best design loses 0.113 AUC and a 1-layer GIN with BatchNorm wins; BatchNorm and depth flip sign between the tasks.

Use this method directly
  • Picking a GNN for your SNA tasks: run 12 anchors on your X/Twitter tasks (bot detection, stance, virality); compare rankings with GraphGym's 32 tasks. If your task lands in the "structure-driven" cluster, prefer deeper MP with skip-sum and sum aggregation; if "feature-driven" (rich text features), invest in pre-processing layers (LLM text encoders, Lecture 16).
  • A paper idea: build a social-network task space — a dozen SNA tasks — and test whether GraphGym's guidelines transfer. A negative result would be informative.
  • Neuro-symbolic angle: the guidelines are themselves symbolic rules distilled from experiments ("if structure-driven then sum aggregation") — a small step toward automated, explainable model design.

From the experiments: results and datasets

Generated by scripts/sync_guides.py from the experiments' committed results and the dataset catalogue; rerun it (make sync-guides) after an experiment changes.

design-transfer

Question. Are the best GNN designs on Cora also the best for bot detection and for real social networks? experiment folder ↗

Verdicts (hypotheses written before running): H1 supported, H2 supported, H3 refuted, H4 refuted; H5 refuted, H6 supported, H7 supported.

96 GNN designs × 3 seeds per task. τ with Cora: CiteSeer +0.69, bots-reciprocal +0.17, bots-co-amplify -0.21, facebook-pages +0.32, lastfm-asia +0.39, twitch-en +0.08, deezer-europe +0.10. Read each τ against its task's ceiling.

Datasets for this session

From the repo's catalogue (gl.datasets; the full list with sources and licences is in data/README.md). Load one with gl.datasets.graph(name), temporal(name) or node_data(name).

namedatasetnodesground truthgood for
twitch-enTwitch users, England (mature content)7,126streams mature content (2)a heterophilous social task; also DE, ES, FR, PTBR, RU for shift
lastfm-asiaLastFM Asia friendships7,624country (18)a homophilous social task
deezer-europeDeezer Europe friendships28,281gender (2)a hard heterophilous social task
facebook-pagesFacebook page-page (verified pages)22,470page type (4)a strongly homophilous social task
coraCora citations2,708topic (7)the default GNN benchmark
citeseerCiteSeer citations3,327topic (6)second citation benchmark

Frontier 2025–26: what changed since the slides

ICML 2025 position"Graph learning will lose relevance due to poor benchmarks" — Bechler-Speicher et al.'s companion to the GNN+ result: the design-space method of this lecture is only as good as the task space. The GRIP/TRIP axioms (NeurIPS 2026) are an attempt to define what a task must satisfy before a design conclusion is drawn from it.sources: arXiv:2502.09263 · arXiv:2502.14546 · arXiv:2610.03556
2025–26The checklist the audits would approve — Baselines first (a tuned GNN+, EdgeBank for temporal tasks, tree ensembles for anomalies); honest splits (time-based and community-based, with historical and inductive negatives); name the homophily role for every assumption; identify before you model influence; separate bots, coordination and misinformation; simulations generate hypotheses, real data tests them.sources: arXiv:2502.09263 · arXiv:2207.10128
ICML 2026 spotlightOn the origin of neural scaling laws: from random graphs to natural language — Scaling laws, the foundation-model version of design-space studies, derived from random-graph models. The "design space" turn of 2020 and the "scaling law" turn of 2024 are the same methodological move: study spaces of models, not points.sources: arXiv:2601.10684
AtlasFrom heroic models to cartography — The field now rewards precise problem statements, honest baselines and quantitative theory more than new architectures. For a mathematically trained newcomer this is the good news of the period: these are exactly the skills with a comparative advantage.
Open question to carryDo design-space guidelines survive the shift to graph foundation models, or does pre-training make architecture choice matter less? GraphPFN suggests the prior over graphs is the new design dimension.
Frontiers · claim, benchmark, critique · theory turned quantitative · the checklist

Words & phrases

TermSimple meaningPersianIn context
Cartesian productn.all combinations of one value from each setضرب دکارتی"a Cartesian product of design dimensions"
anchorn.a fixed reference point used to measure othersلنگر، مرجع ثابت"12 fixed anchor models"
anecdoten.a single story or example, not systematic evidenceحکایت، شاهد موردی"a single anecdote"
design spacen.the set of all combinations of architectural and training choicesفضای طراحی"a 72-design space"
ablationn.removing or changing one component to measure its effectمطالعه حذفی"a 2 × 2 ablation of aggregator and readout"
rank correlationn.how similarly two lists order the same itemsهمبستگی رتبه‌ای"Kendall's τ is a rank correlation"
hyperparametern.a setting chosen before training, such as depth or learning rateابرپارامتر"tune hyperparameters on validation data"

Go deeper

  • Practice: run torch_geometric.graphgym on a dataset of yours with a small YAML config grid.
  • AutoML for graphs: Zhang et al. (2021) "Automated Machine Learning on Graphs: A Survey".
  • Open question: do design-space guidelines survive the shift to graph foundation models, or does pretraining make architecture choice matter less?
  • Back to the start: course home — check which lectures you have not marked done.