ES 667 · Deep Learning Lecture 5 · Optimization

From a running average to momentum.

First smooth a noisy signal. Then apply the same memory idea to an actual gradient path and inspect every measure, remember, and move step.

Memory

Keep 90% of the previous memory; add 10% of today’s reading.

Signal

Before day 1 m₀ = 0
First reading m₁ = x₁

Choice used in this signal plot: seed the smoother at the first observation, then apply mₜ = βmₜ₋₁ + (1−β)xₜ from day 2 onward. The momentum section instead applies its recurrence immediately from m₀ = 0.

The same 120 readings, one adjustable memory

daily reading constructed trend EWMA through today
Noisy temperature readings and their exponentially weighted moving average Use the day control or left and right arrow keys to inspect each update.

Click the plot or use ← → to choose a day

before day 1 · m₀ = 0

One number is carried forward

m stands for memory. mt is the running summary after reading day t; m0 is its state before any reading.

Retained memory
Today’s contribution
New memory