Gradient Descent: Following the Slope Downhill · seed 1 · A4, ink-friendly. The answer key prints on its own page for grown-ups.

Walking downhill to the local bottom

Computing · Machine Learning · ages 19-20
Name ______________________   Date ____________
  1. The steps creep and barely move. What is wrong?

    • The step size is too small
    • The slope is far too steep
    • The error has no minimum
  2. What does gradient descent do?

    • Solves for the best parameters with one formula
    • Steps against the slope many times
    • Guesses at random until it gets lucky
  3. What kind of minimum does the method find?

    • Always the global one
    • A local one
    • None, it never stops
  4. The steps swing wider each round and the error grows. What happened?

    • The size is far too large, so the search diverges
    • The valley is far too smooth
    • The start was far too good
  5. Error w squared, w is 4, step size 0.1. Give w after one step.

    Answer: ______________

  6. Each gradient step moves with the slope, uphill.

    Circle one:   True   False

  7. Two runs from different starts can end at different minima.

    Circle one:   True   False

  8. A run explodes, and halving the size still explodes. What should you try next?

    • Double the size back up
    • Freeze all parameters forever
    • Keep shrinking the size until it descends
LightMySky · lightmysky.comW1-mt_EjfIT1WgMX-s1

Answer key

For grown-ups. Fold this page away before handing over the rest.

Walking downhill to the local bottom W1-mt_EjfIT1WgMX-s1

  1. The step size is too small · A tiny size means tiny progress on every round.
  2. Steps against the slope many times · It repeats small downhill steps because no formula gives the answer.
  3. A local one · It settles into the valley it walked into, which may not be the deepest.
  4. The size is far too large, so the search diverges · Overshooting steps grow instead of settling, which is divergence.
  5. 3.2 · Slope 8 times size 0.1 is 0.8, and 4 minus 0.8 is 3.2.
  6. False · It moves against the slope, downhill toward lower error.
  7. True · Each run falls into its own nearest valley.
  8. Keep shrinking the size until it descends · Divergence means the size is still too large, so shrink it further.
Worksheet · LightMySky