Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Batch

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.
Open the lesson

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.

Related terms

  • Adam
  • Epoch
  • Gradient descent
  • Learning rate
  • Loss
  • Momentum