L2 Regularisation
Weight Decay (L2)
Adding a penalty on the size of the weights to the loss, to reduce overfitting.
Explanation
In the lab λ·W is added to the gradient of each weight (except the biases), which is what the weight_decay parameter of Adam does in PyTorch. The common value for GCN on Cora is 5×10⁻⁴.
Equation
\mathcal{L}_{\text{total}}=\mathcal{L}+\frac{\lambda}{2}\sum\lVert W\rVert^2Notation
- λ: the regularisation coefficient
Try it in: the node classification lab
References
- Kipf, T. N., & Welling, M. (2017). Semi-Supervised Classification with Graph Convolutional Networks. International Conference on Learning Representations (ICLR). arXiv: 1609.02907The original GCN paper and the source of symmetric matrix normalisation.
- Kingma, D. P., & Ba, J. (2015). Adam: A Method for Stochastic Optimization. International Conference on Learning Representations (ICLR). arXiv: 1412.6980The optimiser used in all the lab's training experiments.
