An undirected 3-node path graph has initial scalar features . Using one Kipf–Welling graph convolutional layer with , and scalar weight , what is ?
Deep learning, Graph neural networks
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can construct the self-loop adjacency and degree matrix and run a GCN update by hand.
Key idea
Adding self-loops () keeps a node’s own feature in its update, and scales each edge by so high-degree nodes do not blow up feature magnitudes.
Steps
- Write for the path : , where is the adjacency matrix and adds self-loops.
- Compute the augmented degrees : , so .
- Compute each entry of (with ), using : ; ; .
- Apply component-wise: is clamped to , giving .
Common mistakes
- Forgetting to add the self-loop identity to , which would drop each node’s own previous feature and leave degrees as .
- Multiplying by (row normalisation) instead of the symmetric asked for.
- Forgetting the final ReLU, which misses clipping node 1 to .
How long your answer should be
Half a page; 3–4 minutes.
Read this
Previous in Deep learning: In a variational autoencoder (VAE), the encoder outputs mean and log-variance for a scalar latent variable . How does the reparameterisation trick produce for auxiliary noise , why is it needed for backpropagation, and what are and ?
Next in Deep learning: What is a dilated (atrous) convolution with dilation factor ? For a 1-D input of length , what are the output length and the receptive field after two stacked convolutions with stride 1, no padding and dilations and , and why does exponential dilation () avoid the gridding problem?