Optimizers

Wiki chapters and blog posts about Optimizers.

Wiki

Neural Network Basics: From Linear Layers to Backpropagation

A neural network chains linear maps and nonlinearities. Backpropagation (the chain rule) gives the loss gradient for every parameter, and training steps against it. This page builds a two-layer net in NumPy, checks its gradients, and runs learning-rate and initialization experiments.

Beginner 27 min read

Blog posts

AdamW: Decoupling Weight Decay from Adam's Adaptive Update

L2 regularization and weight decay are equivalent in SGD but not in Adam: the L2 gradient is rescaled by the second-moment estimate, so weights with large gradients are decayed less. AdamW applies the decay directly to the weights. We verify the propositions in code and check PyTorch's convention.

Paper notes ICLR 2019 2017

Topics