Stochastic gradient descent (SGD) trains neural networks by adjusting weights opposite the gradient, which points toward increasing loss. Mini-batches provide a noisy estimate of the downhill direction; momentum smooths updates by carrying information from recent steps. As a first-order method, SGD uses local gradient information without curvature, making it computationally efficient for large networks. section 2.5.4
A hiker in fog
Imagine a hiker scanning a small patch of ground to choose a downhill step: the patch stands for a random mini-batch, and momentum helps steady the noisy path. AlexNet used batches of 128 images, momentum of 0.9, and an initial learning rate of 0.01, which was reduced tenfold when validation accuracy flattened. section 2.5.4











