The Parabola's Promise

Calculus in Deep LearningMedium+20 XP+20

The Parabola's Promise

A model with a single weight www has the loss

L(w)=w2+4e−wL(w) = w^2 + 4e^{-w}L(w)=w2+4e−w

and currently sits at w0=0w_0 = 0w0​=0.

Instead of guessing a learning rate, you replace LLL near w0w_0w0​ by the parabola that matches it there: same height, same slope and same curvature at w0w_0w0​.

q(Δ)=L(w0)+L′(w0) Δ+12 L′′(w0) Δ2q(\Delta) = L(w_0) + L'(w_0)\,\Delta + \tfrac{1}{2}\,L''(w_0)\,\Delta^2q(Δ)=L(w0​)+L′(w0​)Δ+21​L′′(w0​)Δ2

Here Δ\DeltaΔ is the size of a step away from w0w_0w0​, so q(Δ)q(\Delta)q(Δ) is the parabola's prediction for L(w0+Δ)L(w_0 + \Delta)L(w0​+Δ). (This parabola is called the second-order Taylor approximation of LLL at w0w_0w0​.)

You then step straight to the lowest point of the parabola. Call that step Δ∗\Delta^*Δ∗, so the new weight is w1=w0+Δ∗w_1 = w_0 + \Delta^*w1​=w0​+Δ∗.

The parabola promised a loss of q(Δ∗)q(\Delta^*)q(Δ∗) at w1w_1w1​. The loss you actually get there is L(w1)L(w_1)L(w1​).

What is L(w1)−q(Δ∗)L(w_1) - q(\Delta^*)L(w1​)−q(Δ∗), the actual loss minus the promised one?

Round your answer to 3 decimal places. Carry at least five decimals through the intermediate steps.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.