What is learning rate?
The size of each gradient descent step, written . 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 .
- The learning rate sets the step size. Too small is slow, too large diverges.
- It finds a nearby valley, not necessarily the deepest one.
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.