Permutation equivariance ensures node representations transform consistently under node reordering; permutation invariance ensures graph-level outputs are unchanged by node ordering.
Graph neural networks (GNNs) are designed for graph-structured inputs, where nodes typically have no canonical ordering. To handle this, GNN layers are built to be permutation equivariant: if you reorder the nodes in the input graph, the corresponding node representations are reordered in the same way. For graph-level predictions, GNNs use permutation-invariant readout (global pooling) so the final output does not change under any node/edge ordering. A central mechanism in GNNs is message passing, where each node iteratively updates its representation by aggregating information from its neighbors. This message-passing formulation is expressed using a permutation-invariant aggregation operator (e.g., sum/mean/max), ensuring the update does not depend on neighbor ordering. Architecturally, GNNs often combine permutation-equivariant message-passing layers, local pooling (to coarsen the graph and expand receptive field), and permutation-invariant global pooling (to produce fixed-size graph embeddings).
Permutation equivariance ensures node representations transform consistently under node reordering; permutation invariance ensures graph-level outputs are unchanged by node ordering.
Message passing updates node features by aggregating neighbor information using a permutation-invariant operator, making the computation order-independent.
GNN architectures typically combine permutation-equivariant layers, local pooling for coarsening, and permutation-invariant global pooling (readout) for fixed-size graph representations.
A function is permutation equivariant if reordering the input nodes results in the same reordering of the corresponding output node representations.
A function is permutation invariant if its output does not change when the input nodes (or edges) are reordered.
A GNN mechanism where each node updates its representation by aggregating messages from its immediate neighbors.
A neighbor-aggregation function (e.g., sum, mean, max) whose result is independent of the order of the aggregated elements.
A permutation-invariant operation that aggregates all node representations into a fixed-size graph-level representation.
A graph coarsening step that downsamples or clusters nodes to form an intermediate graph before further message passing or readout.
A theoretical benchmark for graph distinguishability; standard message-passing GNNs are limited to the same expressive power as this test.
“Can you explain what "Permutation equivariance ensures node representations transform consistently under node reordering; permutation invariance ensures graph-level outputs are unchanged by node ordering." means in simple terms?”