Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Advanced Deep Learning with Python

You're reading from  Advanced Deep Learning with Python

Product type Book
Published in Dec 2019
Publisher Packt
ISBN-13 9781789956177
Pages 468 pages
Edition 1st Edition
Languages
Author (1):
Ivan Vasilev Ivan Vasilev
Profile icon Ivan Vasilev
Toc

Table of Contents (17) Chapters close

Preface 1. Section 1: Core Concepts
2. The Nuts and Bolts of Neural Networks 3. Section 2: Computer Vision
4. Understanding Convolutional Networks 5. Advanced Convolutional Networks 6. Object Detection and Image Segmentation 7. Generative Models 8. Section 3: Natural Language and Sequence Processing
9. Language Modeling 10. Understanding Recurrent Networks 11. Sequence-to-Sequence Models and Attention 12. Section 4: A Look to the Future
13. Emerging Neural Network Designs 14. Meta Learning 15. Deep Learning for Autonomous Vehicles 16. Other Books You May Enjoy

Seq2seq with attention

The decoder has to generate the entire output sequence based solely on the thought vector. For this to work, the thought vector has to encode all of the information of the input sequence; however, the encoder is an RNN, and we can expect that its hidden state will carry more information about the latest sequence elements than the earliest. Using LSTM cells and reversing the input helps, but cannot prevent it entirely. Because of this, the thought vector becomes something of a bottleneck. As a result, the seq2seq model works well for short sentences, but the performance deteriorates for longer ones.

Bahdanau attention

We can solve this problem with the help of the attention mechanism (see Neural Machine...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime