Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
LSTM to GRU
Search
CookieBox26
June 06, 2020
320
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
LSTM to GRU
CookieBox26
June 06, 2020
More Decks by CookieBox26
See All by CookieBox26
ずんだもんと雪さんとDeepSeek-R1-Zero
cookiebox26
0
1.4k
svm as a constrainted optimization
cookiebox26
0
140
最近のTransformer関連の論文から
cookiebox26
0
340
KDD2021の多変量時系列関連のタイトルいくつか
cookiebox26
0
330
固有表現抽出をドメイン外の弱いラベリングたちから学習する
cookiebox26
0
120
Speech and Language Processing 9章 RNNによる系列の処理
cookiebox26
0
2.3k
Speech and Language Processing 5章 ロジスティック回帰
cookiebox26
0
380
「統計的因果推論」勉強会 「1. 古典的問題意識」
cookiebox26
0
980
レヴィ過程の経験尤度推定の紹介
cookiebox26
0
720
Featured
See All Featured
Building Adaptive Systems
keathley
44
3.3k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
350
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
650
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
800
Designing for Performance
lara
612
70k
Intergalactic Javascript Robots from Outer Space
tanoku
273
28k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
470
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
520
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
370
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
300
Transcript
Uc + tanh Wc Ui + sigmoid Wi × ×
+ Uf + sigmoid Wf tanh × Uo + sigmoid Wo 入力から特徴を 読み取る 記憶を出力すべ きか制御する 特徴を記憶すべ きか制御する 記憶を忘却すべ きか制御する 出力 h 記憶 c 特徴 bo bc bi bf LSTMは https://en.wikipedia.org/wiki/Long_short-term_memory を参考にした. Output Gate Input Gate Forget Gate GRUは https://en.wikipedia.org/wiki/Gated_recurrent_unit を参考にした. LSTM を用意する。 出力 h(前) 記憶 c(前) 入力 x LSTM
Uc + tanh Wc Ui + sigmoid Wi × ×
+ Uf + sigmoid Wf 入力から特徴を 読み取る 特徴を記憶すべ きか制御する 記憶を忘却すべ きか制御する 記憶 c 記憶 c(前) 記憶 c(前) 特徴 bc bi bf LSTMは https://en.wikipedia.org/wiki/Long_short-term_memory を参考にした. Input Gate Forget Gate GRUは https://en.wikipedia.org/wiki/Gated_recurrent_unit を参考にした. 出力 h の出力を廃止し記憶 c に一本化する。これにより Output Gate の使用機会がなくなり消滅する。 前ステップの出力 h を利用していた箇所は前ステップの記憶 c を利用するように変更する。 入力 x
Uc + tanh Wc Ui + sigmoid Wi × ×
+ Uf + sigmoid Wf 入力から特徴を 読み取る 出力を特徴で更新 すべきか制御する 出力を忘却すべ きか制御する 出力 h 入力 x 出力 h(前) 特徴 bc bi bf Input Gate Forget Gate LSTMは https://en.wikipedia.org/wiki/Long_short-term_memory を参考にした. GRUは https://en.wikipedia.org/wiki/Gated_recurrent_unit を参考にした. 記憶 c を新たに出力 h とする。
Uc + tanh Wc Ui + sigmoid Wi × ×
+ 入力から特徴を 読み取る 出力を特徴で更新 すべきか制御する 出力 h 入力 x 出力 h(前) 特徴 bc bi Update Gate LSTMは https://en.wikipedia.org/wiki/Long_short-term_memory を参考にした. GRUは https://en.wikipedia.org/wiki/Gated_recurrent_unit を参考にした. 出力と記憶を統合したことにより Input Gate と Forget Gate の役割が重複してしまったため、2つの Gate を統合して Update Gate とする。
Uc + tanh Wc Ui + sigmoid Wi × ×
+ 入力から特徴を 読み取る 出力を特徴で更新 すべきか制御する 出力 h 入力 x 出力 h(前) 特徴 bc bi Update Gate LSTMは https://en.wikipedia.org/wiki/Long_short-term_memory を参考にした. GRUは https://en.wikipedia.org/wiki/Gated_recurrent_unit を参考にした. Ur + sigmoid Wr 内部状態を利用す べきか制御する br × Reset Gate 出力と記憶を統合したことにより、現時点の特徴を生成するのに常に前ステップの出力=記憶を100%利用する状態になっていた。 特徴生成に使用する出力=記憶をリセットするための機構として Reset Gate を設置する( Fully Gated Unit )。 Fully Gated Unit arXiv:1406.1078
Uc + tanh Wc × × + 入力から特徴を 読み取る 出力
h 入力 x 出力 h(前) 特徴 bc LSTMは https://en.wikipedia.org/wiki/Long_short-term_memory を参考にした. GRUは https://en.wikipedia.org/wiki/Gated_recurrent_unit を参考にした. Ur + sigmoid Wr 内部状態を忘却す べきか制御する br × Forget Gate Forget Gate (shared) Reset Gate と Upgate Gate の類似性から、この2つの Gate は統合してもよさそうである。 これらを統合して Forget Gate にする( Minimal Gated Unit ) 。 Minimal Gated Unit arXiv:1701.03452