The main difference between RNN and LSTM is in terms of which one maintain information in the memory for the long period of time. Here LSTM has advantage over RNN as LSTM can handle the information in memory for the long period of time as compare to RNN. But the question is what is different in LSTM than RNN by which LSTMs are capable of maintaining long term temporal dependencies (remembering information for long period of time). Also Read RNN vs CNN

A set of gates is used to control information within memory in general, such as when it enters the memory, how long and how much information may be kept, when it begins to provide output, and when it begins to decay or be forgotten.
Also read about MLOps Machine Learning Operations
Recurrent Neural Networks RNNs
๐ RNNs have feedback loops in the recurrent layer. This lets them maintain information in ‘memory’ over time. But, it can be difficult to train standard RNNs to solve problems that require learning long-term temporal dependencies.
๐ This is because the gradient of the loss function decays exponentially with time (called the vanishing gradient problem).
Long Short-Term Memory LSTM
๐ LSTM networks are a type of RNN that uses special units in addition to standard units. LSTM units include a ‘memory cell’ that can maintain information in memory for long periods of time. This memory cell lets them learn longer-term dependencies.
๐ LSTMs deal with vanishing and exploding gradient problem by introducing new gates, such as input and forget gates, which allow for a better control over the gradient flow and enable better preservation of โlong-range dependenciesโ.
๐๐จ๐ญ๐: The long range dependency in RNN is resolved by increasing the number of repeating layer in LSTM.
For in depth understanding you can read the paper “๐๐ฆ๐ฉ๐ข๐ซ๐ข๐๐๐ฅ ๐๐ฏ๐๐ฅ๐ฎ๐๐ญ๐ข๐จ๐ง ๐จ๐ ๐๐๐ญ๐๐ ๐๐๐๐ฎ๐ซ๐ซ๐๐ง๐ญ ๐๐๐ฎ๐ซ๐๐ฅ ๐๐๐ญ๐ฐ๐จ๐ซ๐ค๐ฌ ๐จ๐ง ๐๐๐ช๐ฎ๐๐ง๐๐ ๐๐จ๐๐๐ฅ๐ข๐ง๐ ”
Recommended Articles:
Can I use the image posted in this page in my report ? I will cite the page properly.
LikeLike
Yes, you can.
LikeLike