Step size is controlled by η (the learning rate) — it is just a scaling number.
Direction is controlled by −∇L(θt) — the gradient points uphill, the minus flips it downhill.
What it looks like:∇L is the arrow, η is how far along that arrow you slide.
Recall Solution 1.2
∇L(θ)=dθdθ2=2θ (power rule: bring the 2 down, drop the exponent by 1).
At θ=3: ∇L(3)=2⋅3=6.
Meaning: at θ=3 the hill rises 6 units of loss per unit of θ — steep and pointing right, so we step left.
Recall Solution 1.3
False. The gradient points toward steepest increase (uphill, away from the minimum). We deliberately walk in the opposite direction −∇L to go downhill. That is exactly why the update rule has a minus sign.
Pattern: each step multiplies by (1−0.1⋅2)=0.8, so θt=5⋅(0.8)t, sliding toward θ⋆=0.
Recall Solution 2.2
θ1=5−1.0(2⋅5)=5−10=−5
θ2=−5−1.0(2⋅(−5))=−5+10=+5
Observation: it bounces 5→−5→5→… forever, never shrinking. The multiplier is (1−1.0⋅2)=−1, magnitude 1, so no progress — a perfect oscillation.
The figure below plots the bowl L=θ2 (violet) and draws each update as a magenta arrow. Notice the arrows jump from the right wall to the left wall at the same height every time — the ball never descends because a multiplier of −1 only mirrors the point across the minimum without shrinking it. This is the visual signature of "η exactly at the stability edge".
Recall Solution 2.3
Shrinking requires the multiplier's size below 1: ∣1−2η∣<1.
Solve: −1<1−2η<1⇒0<2η<2⇒0<η<1.
So any η in (0,1) converges; η=1 oscillates (Ex 2.2); η>1 diverges.
Why both rise? Gradients are negative, minus flips them positive — the line was flat at 0, both m and b climb to reduce error.
Recall Solution 3.2
First, where does the change formula come from? The first-order Taylor (linear) approximation says that for a small step Δθ,
L(θ+Δθ)≈L(θ)+∇L⊤Δθ,
so the loss change is ΔL≈∇L⊤Δθ. This is the directional derivative — exact in the limit of infinitesimally small steps, which is why the argument below is a local one.
Rewrite the dot product geometrically: ∇L⊤Δθ=∥∇L∥∥Δθ∥cosα, where α is the angle between the gradient and the step.
We want this most negative. ∥∇L∥,∥Δθ∥ are fixed positives, so only cosα can be steered.
cosα is smallest (=−1) at α=180∘ — pointing exactly opposite the gradient. Hence −∇L wins.
In the figure below, the violet arrow is the (uphill) gradient and the magenta arrow is −∇L at 180∘ from it; the orange arrow is some other step at angle α. Because ΔL scales with cosα, only the magenta arrow reaches the most-negative value — every other direction leaks some of its length sideways where it does no downhill work. That "wasted sideways component" is exactly what the dot product measures.
Recall Solution 3.3
Wrong sign — they wrote θ+η∇L (climbing uphill). Test: even a tiny η still increases loss → sign bug.
η too large — overshooting past the valley. Test: shrinking η (e.g. ×0.1) makes loss start decreasing → learning-rate issue, not a sign bug.
A is diagonal, so each coordinate evolves independently with multipliers (1−η⋅1) and (1−η⋅10).
Coordinate 1 needs ∣1−η∣<1⇒0<η<2.
Coordinate 2 needs ∣1−10η∣<1⇒0<η<0.2.
Both converge only for the tighter bound: 0<η<0.2=λmax2 with λmax=10. This is exactly the parent note's stability rule η<2/λmax(A).
Recall Solution 4.2
Coordinate 1 multiplier: 1−0.15⋅1=0.85 (shrinks 15% per step).
Coordinate 2 multiplier: 1−0.15⋅10=−0.5 (shrinks to half, but flips sign each step).
Faster is coordinate 2: ∣−0.5∣=0.5<0.85. The steep (large-eigenvalue) direction is squeezed fastest — but it is also the one that would diverge first if η grew. This tension is why ill-conditioned problems are hard, motivating Momentum and Adam.
Set-up. By the first-order Taylor approximation, the loss change for a small step is ΔL≈∇L⊤Δθ. We restrict all candidate steps to a fixed length ∥Δθ∥=ϵ — geometrically this is a sphere of radius ϵ around θ: we are asking "of all directions I could step the same distance, which drops the loss most?" The constraint forces Δθ onto that sphere so that the comparison is fair (a longer step would trivially change L more just by being longer).
Geometric argument (no calculus needed). Write ∇L⊤Δθ=∥∇L∥ϵcosα. On the sphere, ∥∇L∥ and ϵ are constants; the only free quantity is cosα∈[−1,1]. It is minimized at cosα=−1, i.e. Δθantiparallel to ∇L.
Same result via Lagrange multipliers (for the sceptic). Minimizing ∇L⊤Δθ subject to ∥Δθ∥2=ϵ2 gives the stationarity condition ∇L=2μΔθ for a multiplier μ — so Δθ must be parallel to ∇L; picking the sign that minimizes (rather than maximizes) selects the antiparallel one.
The antiparallel vector of length ϵ is Δθ⋆=−ϵ∥∇L∥∇L. Absorbing ϵ/∥∇L∥ into η recovers Δθ=−η∇L. This is why GD is called steepest descent. (See Convex Optimization for when this local step reaches the global minimum.)
Recall Solution 5.2
Gradient: ∇L=aθ. Update: θ1=θ0−ηaθ0=(1−ηa)θ0.
To hit 0 in one step for any θ0: 1−ηa=0⇒η=a1.
Check with a=2 (L=θ2): η=0.5 — matches the "fastest" note from the L2 trap. This 1/a is precisely the Newton step, the bridge to Second-Order Methods.
Recall Solution 5.3
Gradient: ∇L=(2x,−2y).
From (0.1,0): ∇L=(0.2,0). The y-component is zero, so y never moves — GD slides down the x-bowl to (0,0) and stalls at the saddle, never noticing y falls away.
From (0.1,0.1): ∇L=(0.2,−0.2); the y-update is y1=0.1−0.1(−0.2)=0.12, so ygrows, escaping downhill.
The figure below draws the saddle's contour lines with two GD paths. The magenta path starts on the x-axis and marches straight into the centre where it freezes — because the y-slope is exactly zero there is no arrow pushing it off. The violet path starts a hair off-axis and its arrows curve outward along y, rolling off the saddle. The geometry shows why symmetric starting points are dangerous: they hide the very direction that would let you escape.
Recall One-line summary to recite
Reveal each answer to test yourself.
What is the update rule? ::: θt+1=θt−η∇L(θt) — flip the uphill arrow, scale by η, repeat.
Stability bound for 21θ⊤Aθ? ::: η<2/λmax(A).
Why is −∇L steepest descent? ::: minimize ∥∇L∥ϵcosα; best at cosα=−1.