How Powerful are Graph Neural Networks?

The paper connects message-passing GNN expressivity to the Weisfeiler-Lehman graph isomorphism test and proposes Graph Isomorphism Network as a maximally expressive 1-WL-style GNN.

Metadata

FieldValue
PaperHow Powerful are Graph Neural Networks?
AuthorsKeyulu Xu, Weihua Hu, Jure Leskovec, Stefanie Jegelka
Year2018 preprint; 2019 conference
VenueICLR 2019
arXiv1810.00826
OpenReviewryGs6iA5Km
Codeweihua916/powerful-gnns
Statusfull note started

One-Line Takeaway

For standard message-passing GNNs, the aggregation and readout functions set an expressive ceiling; sum aggregation plus MLPs can match the discriminative power of the 1-WL test.

Question

Many GNNs can be written as neighborhood aggregation:

This form is permutation equivariant, but permutation equivariance alone does not say how much graph structure the model can distinguish.

The architecture question is:

The paper answers by comparing GNN aggregation to 1-WL color refinement.

Main Claim

The expressive power of a message-passing GNN depends on whether its aggregation and readout functions are injective over multisets.

GIN uses:

and graph-level pooling:

The central claim:

within the message-passing family.

Architecture Contract

ItemContract
Inputgraph with node features or node labels
Hidden unitnode embedding
Mixing rulelocal neighborhood message passing
Aggregatorsum over neighbor embeddings
UpdateMLP over self state plus summed neighbor state
Readoutgraph-level pooling over node embeddings from multiple layers
Symmetrypermutation equivariant node updates, permutation invariant graph output
Reference test1-dimensional Weisfeiler-Lehman color refinement
Main output settinggraph classification

The note is important because it turns a vague GNN design question into a testable contract:

should avoid collapsing different multisets that matter for the task.

WL Color Refinement

The 1-WL test updates each node color by hashing its previous color together with the multiset of neighbor colors:

If two nodes have different rooted subtree structures, repeated WL updates can assign them different colors. The key operation is not averaging. It is injective hashing over a multiset.

A message-passing GNN is similar:

but is implemented with differentiable neural functions rather than a discrete hash.

Why Mean And Max Lose Information

Many aggregators are permutation invariant, but not all are injective over multisets.

Mean aggregation:

can collapse different count patterns.

Max aggregation:

can discard multiplicity and weaker signals.

Sum aggregation can preserve multiplicity through magnitude:

The architectural point is not that sum is always empirically best. It is that sum is the right default when the model needs to distinguish multisets.

GIN Layer

The GIN update is:

Here:

SymbolMeaning
node state of node after layer
neighbors of node
scalar controlling self-feature weight
learnable injective-ish transformation

If , the self state and neighbor sum are weighted equally:

If is learned, the layer can tune the separation between the center node and its neighborhood:

acts like a self-loop weight.

Graph-Level Readout

For graph classification, node embeddings must be pooled into a graph embedding:

GIN concatenates readouts across layers:

This matters because different layers represent different neighborhood radii. Layer roughly captures information from the -hop neighborhood:

Concatenating readouts avoids forcing all graph evidence to survive only in the final layer.

Relation To Earlier GNNs

Model FamilyAggregation StyleExpressivity Reading
[[papers/architectures/gcnGCN]]normalized neighborhood averaging
GraphSAGE meanmean aggregationinductive and scalable, but non-injective over multisets
GraphSAGE poolinglearned transform plus max poolingadaptive, but max can discard multiplicity
GINsum aggregation plus MLPdesigned to match 1-WL discriminative power

This does not make GIN universally better. It makes the design tradeoff explicit:

Why It Belongs In Architecture Papers

This paper is not just another graph benchmark paper. It gives a durable rule for reading graph architectures:

Design ChoiceQuestion To Ask
aggregationdoes it distinguish different multisets?
self-loop handlingcan the center node be separated from neighbors?
update functionis it expressive enough after aggregation?
readoutdoes graph pooling preserve counts and layer-wise evidence?
graph constructionare important relations present before message passing starts?

The paper also explains why GNN papers should report more than accuracy. If the model claims better structure reasoning, the note should ask whether the gain is caused by architecture, features, graph construction, or benchmark split.

Evidence Pattern

The paper combines theory and experiments:

EvidenceWhat It Supports
WL comparisonmessage-passing GNNs are bounded by 1-WL-style refinement
non-injective aggregator examplesmean/max can collapse distinct graph neighborhoods
GIN constructionsum plus MLP can reach maximum 1-WL-level power in the studied family
graph classification benchmarksthe expressivity analysis is practically relevant

The strongest part is the conceptual framework. The benchmark part should be read as evidence that the framework matters, not as proof that GIN dominates every molecular, social, or biological graph task.

Practical Reading For Molecular Graphs

For molecular modeling, the paper gives a useful warning:

only works as well as both the graph construction and the aggregation contract.

Questions to ask:

QuestionWhy
Are atoms initialized with enough chemical labels?WL refinement starts from initial colors/features
Are bonds, distances, charges, stereochemistry, or conformers represented?missing edge information cannot be recovered by aggregation
Is the task graph-level, node-level, edge-level, or pair-level?readout must match target unit
Does mean pooling erase degree or count signals?molecule properties often depend on multiplicity
Does the split test scaffold generalization?graph classification can overstate performance under easy splits

For structure-based modeling, a scalar 1-WL-style GNN may be insufficient when outputs transform with 3D rotations and translations. Coordinate or force prediction often needs equivariant GNNs.

Limits

GIN is maximally expressive only relative to the studied message-passing family and the 1-WL reference. It does not solve all graph distinguishability.

Important limits:

  • 1-WL itself cannot distinguish all non-isomorphic graphs.
  • More expressive aggregation can overfit small graph benchmarks.
  • Sum aggregation changes scale with graph degree and graph size.
  • Initial node and edge features still matter.
  • Graph construction can dominate architecture.
  • Long-range dependencies may need virtual nodes, positional encodings, higher-order message passing, graph Transformers, or subgraph methods.

The practical conclusion:

What To Remember

  • Message-passing GNNs recursively aggregate neighbor multisets.
  • Expressivity depends on whether aggregation and readout are injective over multisets.
  • Sum aggregation preserves multiplicity better than mean or max.
  • GIN uses sum aggregation plus MLPs to match 1-WL power in the analyzed setting.
  • 1-WL is a useful ceiling, but not a complete graph reasoning standard.
  • For molecular and protein graphs, graph construction and split design are as important as the GNN layer.