Stochastic Gradient Descent › The SGD Update Rule
Michael BrenndoerferApril 30, 20251 min read
Language AI HandbookAll chapters Part 10 of 67Neural Network Foundations
Stochastic Gradient Descent › The SGD Update RuleOne section · Sections in this chapter3 / 16 ↓
Sections in this chapter16
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The SGD update rule is simple. At iteration , we randomly select example index and update:
where:
- : the updated parameters after step
- : the current parameters before step
- : the learning rate (a fixed positive scalar, or one that changes according to a schedule)
- : a uniformly random index drawn at iteration
- : the gradient of the loss on the single selected example
In practice, we almost never sample a single example at a time. We use mini-batches.