IT lexicon › AI & ML › SGD (Stochastic Gradient Descent)

SGD (Stochastic Gradient Descent)

AI & ML På svenska → Updated: 2026-05-23

Classic neural-training optimizer: compute the gradient on a mini-batch (not the entire dataset), take a step in the opposite direction, repeat. Robbins & Monro (1951).

Vanilla SGD: θ ← θ - lr · ∇L. Extensions: momentum (average over recent gradients) and Nesterov momentum (look-ahead). Helps navigate ravines and accelerates convergence.

For modern LLMs AdamW has taken over, but SGD + momentum still beats Adam on some computer-vision tasks (ResNet training on ImageNet). The reason is uncertain — possibly implicit regularisation.

← Back to the lexicon