Deep Learning (DEEP-0001)�
Prof. André E. Lazzaretti
https://sites.google.com/site/andrelazzaretti/graduate-courses/deep-learning-cpgei/2025
12 – RNNs
Biological sequence
Sequence learning problems
In sequence problems, the current output is dependent on the previous input and the length of the input may be not fixed.
Time series
Natural Language Processing
Computer Vision
Protein secondary structure prediction
stock market price predictions
Machine Translation, Language generation
Human Action Recognition
Recurrent Neural Networks
Recurrent Neural Network
RNN
Simple/Standard
MLP
input
output
Recurrent Neural Network Structure
Recurrent Neural Network Structure
RNN Models
RNN
MLP
RNN Models
Recurrent Neural Network
RNN Forward Pass
Wxh (hidden_size, vocab_size)
Whh (hidden_size, hidden_size)
Why (vocab_size, hidden_size)
Backpropagation Through Time
RNN – Challenges
Long Short-Term Memory (LSTM)
“I grew up in France… I speak fluent French.”
Long Short-Term Memory (LSTM)
Cell State (Long-Term)
Forget gate layer
Input Gate Layer
Input Gate Layer
Output Gate (Short-Term)
Dimensionality
Variations - Bidirectional RNN�
Variations - Deep/Stacked RNN�
Convolutional RNN�
Sliding Window technique on RNN