Two triangles and a hexagon
counterexample▲▲△Exact.
STATEMENT
Exhibit two graphs that differ in structure but that every message-passing network maps to the same output, and name a quantity that tells them apart.
GIVEN
Graph is two disjoint triangles; is a cycle of six nodes. Every node starts with the same feature vector. A message-passing network has any number of layers of the form (I.14.2), any aggregator, and a sum readout.
FIND
The colour-refinement colours of both graphs; the network’s outputs; the number of triangles and of connected components in each.
STRATEGY
Run colour refinement by hand: it stalls after one round. Then apply the induction of I.14.T4.
SOLUTION
Refinement. All nodes start with one colour. In both graphs every node has two neighbours, each with that colour, so every node receives the same signature, (one colour, two neighbours of that colour), and one new colour. The next round sees the same thing. The colour counts, six nodes of one colour, agree at every round.
The network. By the induction in proposition 4, a node’s state after layer is a function of its colour after round . All twelve nodes share a colour at every round, so all twelve have the same state at every layer, whatever the weights. The sum readout returns six times that state for both graphs. The outputs are identical.
The check script confirms it for three randomly weighted sum networks of three layers: the sorted node states of and agree to twelve decimal places.
What differs. The number of triangles is , because each triangle gives six closed walks of length three: for and for . has two connected components and one. A molecule-property model could hardly be indifferent to either.
Answer
Every node gets the same colour at every round in both graphs, so every message-passing network gives identical node states and readouts. They differ in triangles, against , and components, against .
Check — sanity
Both graphs have six nodes and six edges and are -regular, so any statistic built from degrees alone must agree. The difference is in cycles, which no fixed number of local averaging steps can count here.
Where this breaks
The construction needs identical starting features. Give each node its number of triangles as a feature, and a single layer separates the graphs. Random features also separate them, at the price of an output that is equivariant only in distribution.
Variation
Any two -regular graphs on the same number of nodes are indistinguishable by colour refinement and hence by message passing. Two disjoint copies of the complete graph on four nodes and the cube are both -regular on eight nodes; the first has triangles and the second none.