machine learning 2
play

Machine Learning 2 DS 4420 - Spring 2020 Sequence-2-sequence models - PowerPoint PPT Presentation

Machine Learning 2 DS 4420 - Spring 2020 Sequence-2-sequence models Byron C. Wallace Today Learning to map between sequences Today Learning to map between sequences Input x 1 x 2 x T-1 x T Output y 1 y 2 y T-1 y T MAGIC


  1. Machine Learning 2 DS 4420 - Spring 2020 Sequence-2-sequence models Byron C. Wallace

  2. Today • Learning to map between sequences

  3. Today • Learning to map between sequences

  4. Input x 1 x 2 x T-1 x T …

  5. Output y 1 y 2 y T-1 y T … MAGIC Input x 1 x 2 x T-1 x T …

  6. Motivating Example: Translation

  7. donde esta la bibliotheque? Spanish y 1 y 2 y T-1 y T … MAGIC English x 1 x 2 x T-1 x T … where is the library?

  8. Motivating Example: Sequence Captioning Input Example credit: https://towardsdatascience.com/understanding-encoder-decoder-sequence-to-sequence-model-679e04af4346

  9. Motivating Example: Sequence Captioning MAGIC Input Example credit: https://towardsdatascience.com/understanding-encoder-decoder-sequence-to-sequence-model-679e04af4346

  10. Motivating Example: Sequence Captioning Output MAGIC Input Example credit: https://towardsdatascience.com/understanding-encoder-decoder-sequence-to-sequence-model-679e04af4346

  11. MAGIC

  12. Encoder-Decoder Models

  13. Encoder x

  14. z Encoder x

  15. z Decoder Encoder x

  16. y z Decoder Encoder x

  17. Recall: Auto-Encoders Figure credit: https://stackabuse.com/autoencoders-for-image-reconstruction-in-python-and-keras/

  18. RNN encoder x 1 x 2 x T-1 x T … where is the library? Slide derived from Matt Gormley’s: http://www.cs.cmu.edu/~mgormley/courses/10418/

  19. RNN RNN RNN RNN x 1 x 2 x T-1 x T … where is the library? Slide derived from Matt Gormley’s: http://www.cs.cmu.edu/~mgormley/courses/10418/

  20. RNN RNN RNN RNN x 1 x 2 x T-1 x T … where is the library? Slide derived from Matt Gormley’s: http://www.cs.cmu.edu/~mgormley/courses/10418/

  21. h 1 h 2 h T-1 h T … Encoder RNN RNN RNN RNN x 1 x 2 x T-1 x T … where is the library? Slide derived from Matt Gormley’s: http://www.cs.cmu.edu/~mgormley/courses/10418/

  22. RNN refresher Credit: Christopher Olah; https://colah.github.io/posts/2015-08-Understanding-LSTMs/

  23. <latexit sha1_base64="ykFJ5c1d3j03cnvq6pmoTguSiIM=">ACXicbVDLSsNAFJ3UV62vqEs3g0WoCWpgm6EohuXFewD2hAm0k7dPJg5kYsIVs3/obF4q49Q/c+TdO0y60euDC4Zx7ufceLxZcgWV9GYWFxaXleJqaW19Y3PL3N5pqSiRlDVpJCLZ8YhigoesCRwE68SkcATrO2NriZ+45JxaPwFsYxcwIyCLnPKQEtuSYeuilk+AL7btqDIQOSVe5dOMr1Yzs7dM2yVbVy4L/EnpEymqHhmp+9fkSTgIVABVGqa1sxOCmRwKlgWamXKBYTOiID1tU0JAFTp/kuEDrfSxH0ldIeBc/TmRkCpceDpzoDAUM17E/E/r5uAf+6kPIwTYCGdLvITgSHCk1hwn0tGQYw1IVRyfSumQyIJBR1eSYdgz7/8l7RqVfukWrs5LdcvZ3EU0R7aRxVkozNUR9eogZqIogf0hF7Qq/FoPBtvxvu0tWDMZnbRLxgf3w+gmUc=</latexit> RNN refresher h t = f θ ( x t , h t − 1 ) Credit: Christopher Olah; https://colah.github.io/posts/2015-08-Understanding-LSTMs/

  24. RNN refresher Credit: Christopher Olah; https://colah.github.io/posts/2015-08-Understanding-LSTMs/

  25. donde esta la bibliotheque? y 1 y 2 y T-1 y T … h 1 h 2 h T-1 h T … Encoder RNN RNN RNN RNN x 1 x 2 x T-1 x T … where is the library? Slide derived from Matt Gormley’s: http://www.cs.cmu.edu/~mgormley/courses/10418/

  26. RNN h 1 h 2 h T-1 h T … Encoder RNN RNN RNN RNN x T x 1 x 2 x T-1 … where is the library?

  27. Decoder RNN START h 1 h 2 h T-1 h T … Encoder RNN RNN RNN RNN x T x 1 x 2 x T-1 … where is the library?

  28. donde esta la bibliotheque? y 1 y 2 y T-1 y T … Decoder … RNN RNN RNN RNN START h 1 h 2 h T-1 h T … Encoder RNN RNN RNN RNN x T x 1 x 2 x T-1 … where is the library?

  29. Let’s think about a concrete example…

  30. https://colab.research.google.com/drive/ 1z_uyUjmXjpqbPwE7JWxYX116O0229aVK

Recommend


More recommend