ML//RNN

The architecture that tried to remember by passing notes to itself, one step at a time — then forgot what it wrote three steps ago. Processes sequences one token at a time, carrying hidden state forward.


The architecture that tried to remember by passing notes to itself, one step at a time — then forgot what it wrote three steps ago. Processes sequences one token at a time, carrying hidden state forward.

Hidden state carries "memory" from previous steps — exactly what you'd get if you saved enriched embeddings between forward passes

The problem: information from the beginning of the sequence dilutes exponentially (the vanishing gradient problem). Can't parallelize (each step depends on the previous), slow to train.

Transformers solved this by replacing recurrence with attention — every token sees every other token directly, no dilution chain.

LSTM gates partially mitigated the vanishing gradient, but couldn't match transformers at scale.