liveBook · Manning

Permutation equivariance

As explained in Graph Neural Networks in Action

The property that permuting equivalent input elements produces a correspondingly permuted output rather than changing the represented result arbitrarily.

Permutation equivariance makes a graph model respect equivalent node orderings: reordering a graph’s nodes should reorder its outputs correspondingly, not change the represented result arbitrarily. This matters because multiple adjacency matrices can describe the same graph, unlike a fixed image grid. section 3.4.1

Message passing builds this property with order-independent aggregation. It collects neighboring features or messages using operations such as sum, mean, or maximum, then transforms the aggregate with a neural network and activation function before updating node embeddings. Subtraction and division are unsuitable because they depend on ordering. section 3.4.2

A practical message-passing layer follows this sequence:

  • Aggregate node or edge data with an order-independent operator. section 3.4.2
  • Transform the aggregated messages with learnable weights, a neural network, and a nonlinear activation. section 3.4.2
  • Combine the transformed messages with node or edge data and previous embeddings; pool afterward only when graph-level output requires it. section 3.4.2

Adjacency-matrix ordering

Swap two rows and the corresponding columns of an adjacency matrix. The matrix changes, but it still represents the same graph. A suitable graph layer therefore produces equivalent outputs under this reordering, whereas a conventional CNN applied directly to the matrix would not reliably do so. section 3.4.1

Figure 3.15 Elements of our message-passing layer. Each message-passing layer consists of an aggregation, a transformation, and an update step.
figure

Use the layer diagram to track how aggregation, transformation, and update steps preserve graph-structured representations. section 3.4.2

How Graph Neural Networks in Action covers it

How deep it goes
Defines graph-order ambiguity and works through aggregation, transformation, activation, update, and pooling, but omits formal derivations.
Examples
Uses adjacency-matrix row and column permutations, image-grid contrast, and sum, mean, or maximum aggregation.
What it assumes
Assumes adjacency matrices and node features, while motivating graph-specific learning through comparison with image grids and CNNs.
What you can do after
Apply order-independent aggregation to construct message-passing layers whose node representations follow graph reordering.
How it connects
Connects graph convolutional networks, message passing, convolutional neural networks, graph signals, and pooling.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Graph Neural Networks in Action. The section links point to the parts of the book it draws on.