What is an RNN (Recurrent Neural Network)?

An RNN is a computer model that remembers past information to understand things that come in order, like words in a sentence or numbers over time.

7 min read min de lecture

~$ man rnn

What is an RNN (Recurrent Neural Network)?

Machine & Deep Learning gneurone encyclopedia
An RNN is a computer model that remembers past information to understand things that come in order, like words in a sentence or numbers over time.

definition

A recurrent neural network processes data sequences by maintaining a hidden state that carries information from previous steps to the current one.

This loop structure lets the model handle inputs where order matters, such as speech, video frames, or stock prices.

Training uses backpropagation through time, though basic RNNs often face issues with long sequences.

An RNN works like a person taking notes while listening to a story, using earlier notes to make sense of each new sentence instead of starting fresh each time.

key takeaways

  • RNNs pass a hidden state forward to remember context across sequence steps.
  • They suit tasks with ordered data such as language modeling and sensor readings.
  • Variants like LSTM and GRU fix the vanishing gradient problem in long sequences.
  • RNNs require sequential computation, making parallel training slower than feedforward models.
  • They laid groundwork for later sequence architectures used in production systems.

the 2026 job market

Knowledge of RNNs supports specialized 2026 roles in time-series forecasting and legacy NLP pipelines in finance and healthcare, even as transformer models lead new development.

Machine Learning Engineer · US: $135,000-$210,000 / Canada: CAD 115,000-185,000 / UK: £68,000-108,000Data Scientist · US: $115,000-175,000 / Canada: CAD 95,000-155,000 / UK: £58,000-92,000

frequently asked questions

How do RNNs differ from CNNs?

RNNs maintain memory across time steps for sequences while CNNs focus on spatial patterns in grid data like images.

What problems do RNNs solve best?

They excel at next-word prediction, speech-to-text, and any task where past inputs influence future outputs.

Why do RNNs need variants like LSTM?

Standard RNNs lose information over long sequences due to gradient issues, and LSTM units add gates to retain relevant details longer.

Are RNNs still used in new projects?

They appear in production for lightweight sequence tasks, though many teams now prefer transformers for large-scale work.

courses to go further

$ cat ./full-guide.mdRNN Séquences expliqué simplement (avec schémas et vrai code)read the guide →

related terms

< back to the encyclopedia

Auteur(s)

R

REHOUMA Haythem

Haythem Rehouma est un ingénieur et architecte IA et cloud, formateur et enseignant technique, avec un profil orienté IA médicale, AWS, MLOps, LLM/RAG et vision par ordinateur.