What is batch?
A group of training examples processed together in one step. Using a small random batch gives a noisy but cheap estimate of the gradient.
Where it is taught
Momentum and Adam. Plain gradient descent zig-zags in narrow valleys and crawls across flat ones. Two improvements fix that, and nearly every modern model is trained with them.
What the lesson leaves you with
- Mini-batches trade an exact gradient for many fast, noisy steps.
- Momentum averages recent steps, damping zig-zags and speeding up steady progress.
- Adam adds a per-parameter step size, and is the default optimiser for modern models.
Questions
- What is batch?
- A group of training examples processed together in one step. Using a small random batch gives a noisy but cheap estimate of the gradient.
- Where is batch used in AI?
- Plain gradient descent zig-zags in narrow valleys and crawls across flat ones. Two improvements fix that, and nearly every modern model is trained with them.
- What is the key idea to remember about batch?
- Mini-batches trade an exact gradient for many fast, noisy steps.
- Where can I learn batch step by step?
- In the lesson “Momentum and Adam” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.