Md. Asif Uddin
    Problem I.14.B03

    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 G1G_1 is two disjoint triangles; G2G_2 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 tt is a function of its colour after round tt. 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 G1G_1 and G2G_2 agree to twelve decimal places.

    What differs. The number of triangles is tr⁡(A3)/6\operatorname{tr}(\mat A^3)/6, because each triangle gives six closed walks of length three: 22 for G1G_1 and 00 for G2G_2. G1G_1 has two connected components and G2G_2 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, 22 against 00, and components, 22 against 11.

    Check — sanity

    Both graphs have six nodes and six edges and are 22-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 rr-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 33-regular on eight nodes; the first has 88 triangles and the second none.

    Draws on