liveBook · Manning

Permutation invariance

As explained in Graph Neural Networks in Action

Permutation invariance is the property that a computation produces the same result regardless of the ordering of equivalent graph elements.

A graph can be represented with its nodes in different orders without changing the relationships between them. Permutation invariance means a graph-learning method is unaffected by that ordering: shuffling the rows and corresponding columns of an adjacency matrix should not change its performance. This makes it a useful design principle for relational data. section 1.2.4

In a graph neural network, information moves across connections between nodes. When a node gathers information from its neighbors, the aggregation operation must not depend on which neighbor appears first. Averaging, summing, or taking the maximum of neighborhood values are examples of operations that meet this requirement. section 1.5.2 section 3.4.1

Figure 3.12 A comparison of convolution over grid data (left; e.g., a 2D image) and over a graph (right).
figure

Compare the fixed grid neighborhood of an image with a graph neighborhood defined by edges. The graph operation must handle connected nodes without relying on their order. section 3.4.1

This is an inductive bias, not a rule for every dataset. Shuffling image rows or columns changes the image; image models instead commonly seek translational invariance. Choose permutation-invariant operations when order is incidental to the relationships being modeled, rather than when position carries meaning. section 1.2.4

How Graph Neural Networks in Action covers it

How deep it goes
Defines invariance through adjacency-matrix shuffling and explains its role in neighborhood aggregation, without a formal proof or implementation.
Examples
Contrasts shuffled adjacency matrices with scrambled images and uses averaging, summing, and maximum operations over graph neighborhoods.
What it assumes
Assumes familiarity with neural-network training terms while defining permutation invariance through graph representations and neighborhood operations.
What you can do after
Evaluate/understand whether a graph neighborhood operation depends on node order when selecting an aggregation method.
How it connects
Connects adjacency matrices, inductive bias, message passing, graph convolution, neighborhood aggregation, and translational invariance.

Also explained in

Compare how 2 books explain permutation invariance →

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.