CS6501: Deep Learning for Visual Recognition Recurrent Neural Networks (RNNs)
Today’s Class • Recurrent Neural Network Cell • Recurrent Neural Networks (RNNs) • Bi-Directional Recurrent Neural Networks (Bi-RNNs) • Multiple-layer / Stacked / Deep Bi-Direction Recurrent Neural Networks • LSTMs and GRUs. • Applications in Vision: Caption Generation.
ACM Turing Award 2019 Geoff Hinton Backpropagation Yann LeCun Yoshua Bengio CNNs GANs
Recurrent Neural Network Cell ℎ & ℎ " #$$ ! "
Recurrent Neural Network Cell ℎ " = tanh (. // ℎ & + . /1 ! " ) ℎ & ℎ " #$$ ! "
Recurrent Neural Network Cell 3 " ℎ " ℎ & ℎ " #$$ ℎ " = tanh (. // ℎ & + . /1 ! " ) ! " 3 " = softmax (. /9 ℎ " )
Recurrent Neural Network Cell ' " ℎ " ℎ & ℎ " #$$ ! "
Recurrent Neural Network Cell e (0.7) - $ = [0.1, 0.05, 0.05, 0.1, 0.7] ℎ $ = [0.1 0.2 0 − 0.3 − 0.1 ] ℎ , = [0 0 0 0 0 0 0 ] ℎ $ = [0.1 0.2 0 − 0.3 − 0.1 ] !"" # $ = [0 0 1 0 0] a b c d e c
Recurrent Neural Network Cell ' " ℎ " ℎ & ℎ " #$$ ! "
Recurrent Neural Network Cell ℎ " ℎ & ℎ " #$$ ! "
(Unrolled) Recurrent Neural Network a t <<space>> ) " ) ' ) ( ℎ " ℎ ' ℎ ( ℎ & ℎ " ℎ ' ℎ ( #$$ #$$ #$$ ! " ! ' ! ( c a t
(Unrolled) Recurrent Neural Network cat likes eating ) " ) ' ) ( ℎ " ℎ ' ℎ ( ℎ & ℎ " ℎ ' ℎ ( #$$ #$$ #$$ ! " ! ' ! ( the cat likes
(Unrolled) Recurrent Neural Network positive / negative sentiment rating ) ℎ ( ℎ & ℎ " ℎ ' ℎ ( #$$ #$$ #$$ ! " ! ' ! ( the cat likes
Bidirectional Recurrent Neural Network comer gato quiere + " + ( + * ℎ " ℎ ( ℎ * ℎ ' ℎ " ℎ ( ℎ * #$%% B$%% #$%% ! " ! ( ! * wants the cat
Stacked Recurrent Neural Network ) " ) ' ) ( ℎ " ℎ ' ℎ ( ℎ * ℎ " ℎ ' ℎ ( #$$ #$$ #$$ & " & ' & ( ℎ ℎ ℎ & " & * & ' & ( ℎ ℎ ℎ ℎ #$$ #$$ #$$ ! " ! ' ! ( c a t
Stacked Bidirectional Recurrent Neural Network ) " ) ' ) ( ℎ " ℎ ' ℎ ( ℎ * ℎ " ℎ ' ℎ ( #$$ #$$ #$$ & " & ' & ( ℎ ℎ ℎ & " & * & ' & ( ℎ ℎ ℎ ℎ #$$ #$$ #$$ ! " ! ' ! ( c a t
RNN in Pytorch
LSTM Cell (Long Short-Term Memory) ℎ " ℎ ( #$%& ) ( ) " ! "
LSTM in Pytorch
GRU in Pytorch
Questions? 21
Recommend
More recommend