Gates Are Not What You Need in RNNs

Ronalds Zakovskis, Andis Draguns, Eliza Gaile, Emils Ozolins, Karlis Freivalds
8/1/2021
cs.LGcs.NE

Official code: LUMII-Syslab/RRU (4 stars, Python, MIT, last commit 2023-03-24).

Abstract

Recurrent neural networks have flourished in many areas. Consequently, we can see new RNN cells being developed continuously, usually by creating or using gates in a new, original way.

Show full abstract

But what if we told you that gates in RNNs are redundant? In this paper, we propose a new recurrent cell called Residual Recurrent Unit (RRU) which beats traditional cells and does not employ a single gate. It is based on the residual shortcut connection, linear transformations, ReLU, and normalization. To evaluate our cell's effectiveness, we compare its performance against the widely-used GRU and LSTM cells and the recently proposed Mogrifier LSTM on several tasks including, polyphonic music modeling, language modeling, and sentiment analysis. Our experiments show that RRU outperforms the traditional gated units on most of these tasks. Also, it has better robustness to parameter selection, allowing immediate application in new tasks without much tuning. We have implemented the RRU in TensorFlow, and the code is made available at https://github.com/LUMII-Syslab/RRU .

View on arXivView PDF

Code Implementations(1)

LUMII-Syslab/RRUOfficial100%
MIT

Official TensorFlow implementation of the paper "Gates are not what you need in RNNs"

41Python, ShellJun 12, 20203 years agoMIT

Similar Papers

Cite this paper

@article{zakovskis2021gates,
  title  = {Gates Are Not What You Need in RNNs},
  author = {Ronalds Zakovskis and Andis Draguns and Eliza Gaile and Emils Ozolins and Karlis Freivalds},
  year   = {2021},
  eprint = {2108.00527},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.00527}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.00527.svg)](https://codeofpaper.com/paper/2108.00527)

Discussion