Learn from small batches
Compare training recipes fairly when update counts and the number of examples processed differ.
- Starting information
Two example gradients: 2 and −4
- Relationship or operation
Average at the same starting model
- Consequence
Batch gradient: (2 − 4) ÷ 2 = −1
A mini-batch is a small group of training examples. Averaging their gradients differs from updating the model between examples.
Your learning goal
Compare what four examples suggest, then change the model once using their average. Count the examples and updates fairly.