Abstract
Gated recurrent unit (GRU) is a variant of the recurrent neural network (RNN). It has been widely used in many applications, such as handwriting recognition and natural language processing. However, GRU can only memorize the sequential information, but lacks the capability of adaptively paying attention to important parts in the sequences. In this paper, we propose a novel RNN model, called recurrent attention unit (RAU), which can seamlessly integrate the attention mechanism into the interior of the GRU cell by adding an attention gate. The attention gate enhances the ability of RAU to remember long-term information and pay attention to important parts in the sequential data. Extensive experiments on adding problem, image classification, sentiment classification and language modeling show that RAU consistently outperforms GRU and other related models.
Original language | English |
---|---|
Pages (from-to) | 1-9 |
Number of pages | 9 |
Journal | Neurocomputing |
Volume | 517 |
Early online date | 2 Nov 2022 |
DOIs | |
Publication status | Published - 14 Jan 2023 |
Keywords
- attention mechanism
- gated recurrent unit (GRU)
- memory
- recurrent attention unit (RAU)
- recurrent neural networks (RNNs)