The gated recurrent unit strips the LSTM to two gates and no separate cell state: an update gate z that decides how much of the past to keep, and a reset gate that decides how much to forget when proposing a new state. hᵗ = (1−z)·hᵗ₋₁ + z·h̃. Fewer parameters, often the same accuracy — a leaner memory that trains a little faster.
The demo shows the update gate z control the blend: z=0 keeps the past, z=1 fully updates: live demo
“GRU is strictly worse than LSTM because it is simpler.” — on many tasks GRU matches or beats LSTM with fewer parameters; neither dominates. cited
The same idea, fewer moving parts. recurrence
On i-13, update gate z=0 keeps h=100; z=1 replaces it with the new value 5 — two gates vs the LSTM’s three: