What are LSTM and GRU, and why were they introduced?medium
Answer
LSTM and GRU are gated RNN variants that use learned gates to control what information to keep, forget, or output, giving them much better long-term memory than vanilla RNNs.
Explanation
LSTM has forget, input, and output gates around a memory cell. GRU simplifies this to an update gate and a reset gate, making it lighter and faster while still handling long-range dependencies far better than a plain RNN.
Follow-upWhy did GRU become popular as a lighter alternative to LSTM?