All models

GeneralConv

GraphGym's general-purpose GNN layer, the building block of a 315,000-design study of what makes GNNs work.

Graphs and geometry · 13 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (18 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
65.8K
Operations
13
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2020
Cited by
409 (as of 18 October 2026)
Authors
Jiaxuan You, Rex Ying, Jure Leskovec
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1203
Graph hash
9523e7973a1273384948797f244cc93e512d9c51461aabdf781256c40eb2361e
Skeleton hash
602eb169bb179aa6e2f41d197472dd2aea56286c4fd6483c11551f46fc62682d
Architecture hash
548c30d57c83bbc35bb217638879ff4d89a8c5504a7c99e9a0c009ac22eb3b0c
Diagram SHA-256
796a44378b69e86fa736889fe36cca2c2963ce3b53d1dac1c16a084d03186682
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

The layer traced here, GeneralConv, is the configurable message passing layer from GraphGym, the platform released with the paper Design Space for Graph Neural Networks. Instead of proposing one more architecture, the paper defines and systematically studies a design space of 315,000 different GNN designs over 32 different predictive tasks. The complaint is that research usually evaluates specific designs rather than the Cartesian product of design dimensions such as the number of layers or the type of the aggregation function.

The space has 12 design dimensions covering intra-layer design, inter-layer design and learning configuration. Within a layer, the adopted GNN layer is a linear layer followed by batch normalization, dropout, a nonlinear activation and an aggregation function. The ranges studied are batch normalization on or off, dropout off, 0.3 or 0.6, ReLU, PReLU or Swish activations, and mean, max or sum aggregation. The authors deliberately dropped model-specific dimensions such as those for attention modules, though the appendix shows attention being added as a new intra-layer dimension.

Ranking each design choice over 96 sampled setups per dimension, the authors found that adding batch normalization is generally helpful. Dropping out node feature dimensions was usually not effective, which they attribute to neighborhood aggregation already making GNNs robust to noise. PReLU clearly stood out as the choice of activation, a finding they flag as novel because PReLU had rarely been used in GNN designs. Sum aggregation, the theoretically most expressive choice, also came out ahead empirically. Skip connections were generally favorable, with the concatenation version slightly ahead of the summed one.

The second half of the paper builds a task space by applying a fixed set of anchor models to each task and using the Kendall rank correlation of their performance as a task similarity. The authors observe a 0.8 Pearson correlation between a transferred model's performance ranking and the similarity of the two tasks. GraphGym itself offers a modularized GNN implementation, standardized evaluation and reproducible, scalable experiment management, and from version 0.2.0 it supports a PyTorch Geometric backend.

Key idea. Rather than a single architecture, the paper defines a general GNN design space of 315,000 designs across 32 tasks and distils a comprehensive set of guidelines for designing well-performing GNNs. The traced layer is the linear, batch normalization, dropout, activation and aggregation stack that spans that intra-layer space.

  • GeneralConv
  • GraphGym
  • Design Space for Graph Neural Networks
  • GNN design space
  • general GNN layer
  • graph neural network
  • message passing
  • aggregation
  • PReLU
  • task space
  • anchor models
  • PyTorch Geometric
  • node classification
  • graph classification

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{you2021designspacegraphneural,
      title={Design Space for Graph Neural Networks}, 
      author={Jiaxuan You and Rex Ying and Jure Leskovec},
      year={2021},
      eprint={2011.08843},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2011.08843}, 
}