Compare sum, mean and symmetric normalization on a small graph.

Instruction: An undirected path has edges A–B and B–C and scalar features hA=1,hB=2,hC=3. Add one self-loop per node. Compute B’s aggregation using sum, mean and D^(-1/2)(A+I)D^(-1/2). Omit learned weights and activation. Explain an isolated node with a self-loop.

Context: Compute structural aggregation and distinguish it from normalizing learned feature activations.

Updated

Worked answer

After adding self-loops, augmented degrees are dA=2, dB=3, dC=2. B receives A, B and C.

Sum aggregation gives 1+2+3=6. Mean aggregation gives 6/3=2. Symmetric normalization gives 1/√(3×2)+2/√(3×3)+3/√(3×2)=4/√6+2/3≈2.29966. It weights both endpoint degrees; it is not simply division by B's degree, and its row weights need not sum to one.

For an isolated node, adding a self-loop makes its augmented degree 1, so the propagation preserves its own feature before any learned weight/activation. Without a self-loop, zero degree needs an explicit implementation convention; blindly taking an inverse square root is invalid.

These are structural operators. GraphNorm or LayerNorm acts on feature values and is a separate choice. Normalization can control degree-related scale, but neither this example nor a faster training curve proves better generalization or absence of oversmoothing.

Reference: Semi-Supervised Classification with Graph Convolutional Networks.

Related Questions