Research Article

From RNNs to BERT: A Review of Neural Models for Sequence Learning

Yuxuan Zhao*
University of Toronto

* Corresponding author: [email protected]

Abstract

Learning sequence data is important in machine learning fields, including speech recognition, natural language processing, and time series prediction. Various approaches have been put out in recent years to manage these jobs. Early models like the Recurrent Neural Network (RNN) were able to process sequential information but encountered vanishing and exploding gradients problems. These issues were eventually addressed with the introduction of the Long Short-Term Memory (LSTM) and the Gated Recurrent Unit (GRU), which enhanced the capacity to learn long-term dependencies. The proposal of the attention mechanisms further enhanced the GRU’s performance and led the Transformer model to replace recurrence with attention, making training faster and more effective for large-scale data. Furthermore, BERT used pre-training and fine-tuning methods that brought a remarkable improvement in many NLP tasks. This paper reviews the development of these models, introduces the mechanisms of each model, compares their strengths and weaknesses, and finally discusses the challenges that still remain.

Keywords: Recurrent Neural Network; Long Short-Term Memory; Attention Mechanism; Transformer; Bidirectional Encoder Representations from Transformers (BERT).
Published: September 16, 2025
DOI: 10.54254/2753-8818/2025.DL26846
Volume: TNS Vol.130
pp. 118-123
Download PDF

References

  1. Jurafsky, D., & Martin, J. H. (2019). Speech and language processing. Stanford University.
  2. Jordan, M. I. (1997). Serial order: A parallel distributed processing approach. Advances in Psychology, 471–495.
  3. Hochreiter, S., & Schmidhuber, J. (1997). Long short-term memory. Neural Computation, 9(8), 1735–1780.
  4. Cho, K., van Merrienboer, B., Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., & Bengio, Y. (2014). Learning phrase representations using RNN encoder–decoder for statistical machine translation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP).
  5. Bahdanau, D., Cho, K., & Bengio, Y. (2015). Neural Machine Translation by Jointly Learning to Align and Translate. arXiv: 1409.0473.
  6. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., & Polosukhin, I. (2017). Attention Is All You Need. Advances in Neural Information Processing Systems, 30, 5998–6008.
  7. Devlin, J., Chang, M. W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics (pp. 4171–4186).
  8. Elman, J. (1990). Finding structure in time. Cognitive Science, 14(2), 179–211.
  9. Mikolov, T., Karafiát, M., Burget, L., Černocký, J., & Khudanpur, S. (2010). Recurrent neural network-based language model. Interspeech 2010.
  10. Graves, A., Mohamed, A., & Hinton, G. (2013). Speech recognition with deep recurrent neural networks. 2013 IEEE International Conference on Acoustics, Speech and Signal Processing, 6645–6649.
  11. Bengio, Y., Simard, P., & Frasconi, P. (1994). Learning long-term dependencies with gradient descent is difficult. IEEE Transactions on Neural Networks, 5(2), 157–166.
  12. Sundermeyer, M., Schlüter, R., & Ney, H. (2012). LSTM neural networks for language modeling. Interspeech 2012.
  13. Ma, X., Tao, Z., Wang, Y., Yu, H., & Wang, Y. (2015). Long short-term memory neural network for traffic speed prediction using Remote Microwave Sensor Data. Transportation Research Part C: Emerging Technologies, 54, 187–197.
  14. Chung, Junyoung & Gulcehre, Caglar & Cho, KyungHyun & Bengio, Y.. (2014). Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modeling.
  15. Cahuantzi, R., Chen, X., & Güttel, S. (2023). A comparison of LSTM and GRU networks for learning symbolic sequences. Lecture Notes in Networks and Systems, 771–785.
  16. Jozefowicz, R., Zaremba, W., & Sutskever, I. (2015). An Empirical Exploration of Recurrent Network Architectures. In Proceedings of the 32nd International Conference on Machine Learning (pp. 2342–2350).
  17. Lim, B., & Zohren, S. (2021). Time-series forecasting with Deep Learning: A Survey. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 379(2194), 20200209.
  18. Xu, K., Ba, J., Kiros, R., Cho, K., Courville, A., Salakhutdinov, R., Zemel, R., & Bengio, Y. (2015). Show, Attend and Tell: Neural Image Caption Generation with Visual Attention. In Proceedings of the 32nd International Conference on Machine Learning (pp. 2048–2057).
  19. Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., & Stoyanov, V. (2019). RoBERTa: A Robustly Optimized BERT Pretraining Approach. ArXiv, abs/1907.11692.
  20. Lan, Z., Chen, M., Goodman, S., Gimpel, K., Sharma, P., & Soricut, R. (2020). ALBERT: A Lite BERT for Self-supervised Learning of Language Representations. In International Conference on Learning Representations (ICLR).