A mean and a max cannot count
counterexample▲▲△Find what the sum, the mean and the maximum return for the multisets and , and for and . Then give every node of a star with two leaves and of a star with four leaves the feature , and compare what each aggregator delivers to the centre.
Hint
A mean sees proportions; a maximum sees which values occur.
Solution
| multisets | sum | mean | max |
|---|---|---|---|
| , | , | , | , |
| , | , | , | , |
The first pair has the same proportions, so the mean cannot separate it, and the same values, so the maximum cannot either. The second pair has different proportions but the same values: the mean separates it and the maximum does not. The sum separates both.
At the stars’ centres, the neighbour features are and . The mean gives and , the maximum and , the sum and . With constant features, a mean- or max-aggregating network cannot even learn a node’s degree.
So mean and max aggregators separate strictly fewer graphs than colour refinement, which counts. This is why the graph isomorphism network of (I.14.8) sums. The mean has its uses: it keeps the scale of the state independent of the degree, which helps on graphs with very uneven degrees. The choice trades counting for stability.