Vanilla RNN
Process a sequence one step at a time by passing a hidden state forward, though it struggles to remember long-range context.
A fixed-size network treats a sentence as a bag of independent words, discarding the order and dropping all context.
State that steps forward
Process the sequence one token at a time. The cell computes a running summary — the hidden state — and carries it into the next step.
The exact same weights
It is one cell, running in a loop. The weights and the bias are identical across every single time step.
Infinite sequences
This weight reuse allows the network to handle an input sequence of any length without altering its architecture.
Where It Breaks
Backpropagation through time pushes gradients backwards. Because of repeated multiplications, the error signal decays to zero, causing vanishing gradients.
The Quick Version
- Sequences require memory.
- A hidden state carries context.
- One cell is reused every step.
- Variable lengths are handled.
- Gradients vanish over time.