Adam Meets a Gradient That Flips

Variants of Gradient DescentHard+30 XP+30

Adam Meets a Gradient That Flips

Adam keeps two running averages per parameter:

mt=β1mt−1+(1−β1) gtm_t = \beta_1 m_{t-1} + (1-\beta_1)\,g_tmt​=β1​mt−1​+(1−β1​)gt​
st=β2st−1+(1−β2) gt2s_t = \beta_2 s_{t-1} + (1-\beta_2)\,g_t^2st​=β2​st−1​+(1−β2​)gt2​
θt+1=θt−αst+ϵ mt\theta_{t+1} = \theta_t - \frac{\alpha}{\sqrt{s_t} + \epsilon}\, m_tθt+1​=θt​−st​​+ϵα​mt​

For this problem use α=0.05\alpha = 0.05α=0.05, β1=β2=0.9\beta_1 = \beta_2 = 0.9β1​=β2​=0.9 (here β2\beta_2β2​ is set to 0.90.90.9 rather than its usual 0.9990.9990.999 purely to keep the arithmetic light), and ϵ=10−8\epsilon = 10^{-8}ϵ=10−8, small enough to ignore.

Start from θ0=4\theta_0 = 4θ0​=4 with m0=s0=0m_0 = s_0 = 0m0​=s0​=0. The parameter is bouncing across a narrow valley, so the first two gradients are equal in size and opposite in sign:

g1=+3,g2=−3g_1 = +3, \qquad g_2 = -3g1​=+3,g2​=−3

What is θ2\theta_2θ2​, to four decimal places?

Hints

Solve it to unlock the solution

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

Select all that apply.