Adam Turns Around

Variants of Gradient DescentHard+30 XP+30

Adam Turns Around

A single parameter www is trained on

J(w)=(w2−3)2J(w) = \left(w^2 - 3\right)^2J(w)=(w2−3)2

using Adam with bias correction. At step ttt, with gtg_tgt​ the derivative of JJJ evaluated at wt−1w_{t-1}wt−1​:

mt=β1mt−1+(1−β1)gt,vt=β2vt−1+(1−β2)gt 2m_t = \beta_1 m_{t-1} + (1 - \beta_1) g_t, \qquad v_t = \beta_2 v_{t-1} + (1 - \beta_2) g_t^{\,2}mt​=β1​mt−1​+(1−β1​)gt​,vt​=β2​vt−1​+(1−β2​)gt2​

m^t=mt1−β1 t,v^t=vt1−β2 t,wt=wt−1−η m^tv^t+ϵ\hat{m}_t = \frac{m_t}{1 - \beta_1^{\,t}}, \qquad \hat{v}_t = \frac{v_t}{1 - \beta_2^{\,t}}, \qquad w_t = w_{t-1} - \frac{\eta\,\hat{m}_t}{\sqrt{\hat{v}_t} + \epsilon}m^t​=1−β1t​mt​​,v^t​=1−β2t​vt​​,wt​=wt−1​−v^t​​+ϵηm^t​​

The settings are

quantityvalue
starting weight w0w_0w0​222
m0m_0m0​, v0v_0v0​000, 000
β1\beta_1β1​0.90.90.9
β2\beta_2β2​0.9990.9990.999
learning rate η\etaη0.50.50.5
ϵ\epsilonϵ10−810^{-8}10−8 (small enough to ignore in the arithmetic)

Exactly three updates are performed. What is the value of w3w_3w3​?

Round your answer to 2 decimal places. Carry at least four decimals through the intermediate steps, and note that the bias-correction divisors change at every step.

Hints

Solve it to unlock the solution

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