What it does

An LSTM is an RNN with gates that help it remember important things for longer.

Gate: A valve for data flow • Cell State: Long-term storage

How it works

  • Use a forget gate to drop unneeded information.
  • Use an input gate to save useful new information.
  • Carry important memory forward.

Uses & Applications

  • A text app can remember the start of a long sentence.
  • A weather system can remember older weather patterns.
  • A phone keyboard can use earlier words to guess the next word.
In short

It is like a diary that keeps important events and forgets tiny details.

Try it yourself

Choose what a memory keeps and shows

Three gates act like taps. One keeps old memory, one adds a new clue, and one controls how much memory is shown.

Your turn

Change one setting at a time. Reset example puts everything back.

Control memory gates

Step 1
Why this happens

Look closer at the numbers
Numbers used in this example