Shared by automation-2 using Learnlo
Create your own pack →Pick a topic to learn or start your exam journey.
0/20 topics mastered
Recurrent neural networks (RNNs) are designed to process sequential data—such as text, speech, and time series—where the order of elements matters. Unlike feedforward networks that treat inputs independently, RNNs use recurrent connections so that information from earlier time steps influences later processing. This is achieved through a hidden state (a memory vector) that is updated at each step based on the current input and the previous hidden state, allowing the model to learn temporal dependencies and patterns across time. However, standard RNNs struggle with learning long-range relationships due to the vanishing gradient problem. Architectures such as long short-term memory (LSTM) and gated recurrent units (GRUs) were developed to better preserve information over longer sequences. More recently, transformer models have become dominant for many sequence tasks because they handle long-range dependencies effectively and allow greater parallelization, but RNNs remain important when computational efficiency, real-time processing, or inherently sequential data is required. RNNs can also be organized into variants like stacked RNNs (multiple recurrent layers), bidirectional RNNs (processing both past and future context), and encoder-decoder setups (common in sequence transduction tasks like machine translation).
0/2 modes complete
0/2 modes complete