The Stochastic Gradient Descent algorithm (SGD) is a simplified version of classical gradient descent.
Instead of computing the exact gradient of the objective function
, each iteration uses the gradient of a single randomly selected sample
:
| (4.48) |
Under appropriate assumptions, SGD is guaranteed to converge for convex functions defined on convex domains, but it is also commonly used in nonconvex settings, such as neural network training.
A practical variant uses a small group of samples (mini-batch) for each update, reducing noise compared with a single sample while maintaining good computational efficiency.
To simulate inertia in parameter updates, a term called momentum is introduced:
| (4.49) |
In addition to SGD with momentum, many variants have been designed to accelerate convergence and improve optimization stability. A non-exhaustive list includes:
Paolo medici