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 › Learning rate

What is learning rate?

The size of each gradient descent step, written η\etaη. Too small is slow, and too large makes the loss diverge.

Where it is taught

Gradient descent. Compute the gradient, take a small step the other way, repeat. One short update rule trains every neural network there is.

What the lesson leaves you with

  • Gradient descent repeats θ←θ−η∇L(θ)\theta \leftarrow \theta - \eta \nabla L(\theta)θ←θ−η∇L(θ).
  • The learning rate η\etaη sets the step size. Too small is slow, too large diverges.
  • It finds a nearby valley, not necessarily the deepest one.
Open the lesson

Questions

What is learning rate?
The size of each gradient descent step, written eta. Too small is slow, and too large makes the loss diverge.
Where is learning rate used in AI?
Compute the gradient, take a small step the other way, repeat. One short update rule trains every neural network there is.
What is the key idea to remember about learning rate?
Gradient descent repeats <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>θ</mi><mo>←</mo><mi>θ</mi><mo>−</mo><mi>η</mi><mi mathvariant="normal">∇</mi><mi>L</mi><mo stretchy="false">(</mo><mi>θ</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">theta leftarrow theta - eta nabla L(theta)</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="katex-base"><span class="katex-strut" style="height:0.6944em;"></span><span class="mord mathnormal" style="margin-right:0.0278em;">θ</span><span class="mspace" style="margin-right:0.2778em;"></span><span class="mrel">←</span><span class="mspace" style="margin-right:0.2778em;"></span></span><span class="katex-base"><span class="katex-strut" style="height:0.7778em;vertical-align:-0.0833em;"></span><span class="mord mathnormal" style="margin-right:0.0278em;">θ</span><span class="mspace" style="margin-right:0.2222em;"></span><span class="mbin">−</span><span class="mspace" style="margin-right:0.2222em;"></span></span><span class="katex-base"><span class="katex-strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathnormal" style="margin-right:0.0359em;">η</span><span class="mord">∇</span><span class="mord mathnormal">L</span><span class="mopen">(</span><span class="mord mathnormal" style="margin-right:0.0278em;">θ</span><span class="mclose">)</span></span></span></span>.
Where can I learn learning rate step by step?
In the lesson “Gradient descent” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

See it in 3D on the blog

  • What is a learning rate? Why step size matters4 min

Related terms

  • Adam
  • Batch
  • Epoch
  • Gradient descent
  • Loss
  • Momentum