Glossary

What is Recurrent neural network?

In Turkish: Tekrarlayan sinir ağı (RNN) · Topic: Models and training

A type of neural network that reads input one step at a time and carries an internal state, called the hidden state, forward from earlier steps. It is used for sequential data such as text, audio and time series.

How does it work?

The network takes each element of the sequence in order. At every step it combines the new input with the hidden state left over from the previous step to produce a new hidden state and, if needed, an output. The same weights are reused at every step, which is where the word recurrent comes from. In training, the error is propagated backward through the time steps. As sequences grow longer, this signal can fade or blow up, which makes it hard to learn long-range dependencies.

Why does it matter?

Before Transformers, RNNs were the basic building block for language, speech and translation. Because they process data in sequence, training is hard to parallelize and they struggle to carry long contexts, which helped speed the rise of Transformers. Still, the idea continues to inspire today's state space models.

Example

An RNN reading the words 'Last night we went to the' uses the hidden state it has built up so far to predict a likely next word such as 'cinema'.

FAQ

What is the main difference between an RNN and a Transformer?

An RNN processes text step by step and carries the past in a single hidden state. A Transformer looks at all the tokens at once, which makes training easier to parallelize and long context easier to handle.

Are RNNs still used?

In large language models they have mostly been replaced by Transformers. They are still used in small, resource-limited applications and some time-series tasks, and newer recurrent designs are being researched.

All terms