CSCI-SHU 376: Natural Language Processing
Hua Shen
Course Agenda: 2026 Fall-NLP-[CSCI-SHU-376]-Class Schedule
2026-09-21
Fall 2026
Lecture 6: RNNs and LSTMs
Today’s Plan
Feedforward Neural Networks
Recurrent neural networks (RNNs)
Recurrent neural networks (RNNs)
Recurrent neural networks (RNNs)
Recurrent neural networks (RNNs)
RNNs vs Feedforward NNs
Recurrent neural language models
No Markov assumption!
Recurrent neural language models
No Markov assumption!
Weight Tying
No Markov assumption!
LM Performance
RNNs: Pros and Cons
Cons
Pros
Training RNNLMs
Correct Next Word
Accumulate loss
Training RNNLMs - BPTT
Training RNNLMs - BPTT
Today’s Plan
Recurrent neural networks (RNNs)
Multi-layer RNNs
Bidirectional RNNs
Bidirectional RNNs
Bidirectional RNNs
Training RNNLMs - BPTT
Training RNNLMs - BPTT
Gradient Clipping
Vanishing gradient
Today’s Plan
Long Short-Term Memory RNNs (LSTMs)
LSTMs: Intuition
LSTMs: the formulation
LSTMs: the formulation
Visualizing LSTMs
Visualizing LSTMs
Visualizing LSTMs
Visualizing LSTMs
Forget gate
Visualizing LSTMs
Input gate
New memory Cell
Visualizing LSTMs
Final memory cell
Visualizing LSTMs
Final hidden cell
Today’s Plan
Gated Recurrent Units (GRUs)
Gated Recurrent Units (GRUs)
LSTMs vs GRUs
Music Modeling
LSTMs vs GRUs
Speech Signal modeling