English

Gates Are Not What You Need in RNNs

Machine Learning 2023-11-23 v3 Neural and Evolutionary Computing

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. 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 .

Keywords

Cite

@article{arxiv.2108.00527,
  title  = {Gates Are Not What You Need in RNNs},
  author = {Ronalds Zakovskis and Andis Draguns and Eliza Gaile and Emils Ozolins and Karlis Freivalds},
  journal= {arXiv preprint arXiv:2108.00527},
  year   = {2023}
}

Comments

Published in Artificial Intelligence and Soft Computing. ICAISC 2023. Lecture Notes in Computer Science(), vol 14125. Springer, Cham., and is available online at https://doi.org/10.1007/978-3-031-42505-9_27

R2 v1 2026-06-24T04:43:58.967Z