A comparison of LSTM and GRU networks for learning symbolic sequences

Roberto Cahuantzi, Xinye Chen, Stefan Güttel
7/5/2021
cs.LGcs.NE

Official code: nla-group/slearn (0 stars, Python, MIT, last commit 2026-09-23).

Abstract

We explore the architecture of recurrent neural networks (RNNs) by studying the complexity of string sequences it is able to memorize. Symbolic sequences of different complexity are generated to simulate RNN training and study parameter configurations with a view to the network's capability of learning and inference.

Show full abstract

We compare Long Short-Term Memory (LSTM) networks and gated recurrent units (GRUs). We find that an increase in RNN depth does not necessarily result in better memorization capability when the training time is constrained. Our results also indicate that the learning rate and the number of units per layer are among the most important hyper-parameters to be tuned. Generally, GRUs outperform LSTM networks on low-complexity sequences while on high-complexity sequences LSTMs perform better.

View on arXivView PDF

Code Implementations(1)

nla-group/slearnOfficial100%
MIT

Learn symbolic sequence with machine learning methods

00Python, ShellSep 23, 20262 months agoMIT
machine-learningsymbolic-sequence

Similar Papers

Cite this paper

@article{cahuantzi2021comparison,
  title  = {A comparison of LSTM and GRU networks for learning symbolic sequences},
  author = {Roberto Cahuantzi and Xinye Chen and Stefan Güttel},
  year   = {2021},
  eprint = {2107.02248},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.02248}
}

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/2107.02248.svg)](https://codeofpaper.com/paper/2107.02248)

Discussion