An undirected 3-node path graph 1−2−3 has initial scalar features H(0)=[2−34]. Using one Kipf–Welling graph convolutional layer H(1)=ReLU⁡(D~−1/2A~D~−1/2H(0)W) with A~=A+I, D~ii=∑jA~ij and scalar weight W=1, what is H(1)?

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 A~ and degree matrix D~ and run a GCN update by hand.

Key idea

Adding self-loops (A~=A+I) keeps a node’s own feature in its update, and D~−1/2A~D~−1/2 scales each edge (i,j) by 1/d~id~j so high-degree nodes do not blow up feature magnitudes.

Steps

  1. Write A~=A+I for the path 1−2−3: A~=[110111011], where A is the adjacency matrix and I adds self-loops.
  2. Compute the augmented degrees d~i=∑jA~ij: d~=(2,3,2), so D~−1/2=diag⁡(1/2, 1/3, 1/2).
  3. Compute each entry of Z=D~−1/2A~D~−1/2H(0)W (with W=1), using (Z)i=∑j∈N(i)∪{i}Hj(0)d~id~j: Z1=22+−36=1−62≈−0.2247; Z2=26+−33+46=66−1=6−1≈1.4495; Z3=−36+42=2−62≈0.7753.
  4. Apply ReLU⁡(z)=max⁡(0,z) component-wise: Z1<0 is clamped to 0, giving H(1)=[06−12−6/2]≈[01.44950.7753].

Common mistakes

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 μ=1.5 and log-variance log⁡σ2=ln⁡4 for a scalar latent variable z∼N(μ,σ2). How does the reparameterisation trick produce z for auxiliary noise ε=−0.5, why is it needed for backpropagation, and what are ∂z/∂μ and ∂z/∂(log⁡σ2)?
Next in Deep learning: What is a dilated (atrous) convolution with dilation factor d? For a 1-D input of length L, what are the output length and the receptive field after two stacked 3×1 convolutions with stride 1, no padding and dilations d1=1 and d2=2, and why does exponential dilation (d=1,2,4,…) avoid the gridding problem?