1 of 22

Deep Generative Models

2025

NYCU

Tzer-jen Wei

Understanding LSTM

2 of 22

3 of 22

Recurrent Neural Networks have loops.

4 of 22

An unrolled recurrent neural network.

5 of 22

“LSTMs,” a very special kind of recurrent neural network.

6 of 22

Training an RNN

7 of 22

The Problem of Long-Term Dependencies

8 of 22

Sadly, in practice, RNNs don’t seem to be able to learn them. The problem was explored in depth by Hochreiter (1991) [German] and Bengio, et al. (1994),

9 of 22

The repeating module in a standard RNN contains a single layer.

​

10 of 22

The repeating module in an LSTM contains four interacting layers.

​

11 of 22

The Core Idea Behind LSTMs

​

12 of 22

Cell states

13 of 22

Gate

14 of 22

Step-by-Step LSTM Walk Through

15 of 22

16 of 22

17 of 22

18 of 22

19 of 22

Variants on Long Short Term Memory

20 of 22

Peephole Gers & Schmidhuber (2000),

21 of 22

Coupled forget and input gates.

22 of 22

Gated Recurrent Unit, or GRU