Recurrent Neural Network
Also known as: RNN
Neural network architecture that processes sequences step by step while carrying a hidden state, giving it a form of memory of earlier inputs.
A recurrent neural network handles sequential data, such as text, speech or sensor readings, by reading one element at a time and updating an internal hidden state that summarizes what it has seen so far. The same weights are applied at every step, and the hidden state feeds back into the network along with the next input. This loop lets RNNs handle sequences of any length and, in principle, carry information across long spans. Variants process sequences in both directions or stack several recurrent layers.
Early recurrent designs appeared in the 1980s, including the Hopfield network of 1982, and Jeffrey Elman's simple recurrent networks were studied around 1990. Training them with backpropagation through time proved difficult because gradients tend to vanish or explode over long sequences. Sepp Hochreiter and Juergen Schmidhuber addressed this with long short-term memory, or LSTM, published in 1997, which uses gates to control what is stored and forgotten. The gated recurrent unit, introduced in 2014, offered a simpler alternative.
LSTMs powered major advances in speech recognition, handwriting recognition and machine translation during the 2010s, including sequence-to-sequence models, later enhanced with an attention mechanism, that encoded a sentence in one language and decoded it in another. Their step-by-step processing, however, made them hard to parallelize on GPUs, and they still struggled with very long contexts. After 2017 the transformer largely replaced RNNs for language tasks, though recurrent-style and state space models attract continuing research interest for their efficiency.
Key points
- RNNs process sequences one step at a time, carrying a hidden state that acts as memory.
- Vanishing and exploding gradients made plain RNNs hard to train on long sequences.
- Long short-term memory networks, published in 1997, used gates to preserve information over longer spans.
- Transformers largely displaced RNNs for language after 2017 because they parallelize better.
Related entries
Computational model made of interconnected units, loosely inspired by biological neurons, whose connection strengths are learned from data.
Neural network architecture based on self-attention, introduced in 2017, that underlies most large language models and many vision and audio models.
Neural network technique that lets a model weigh the relevance of different parts of its input when producing each part of its output.
Algorithm that computes how much each weight in a neural network contributed to an error, enabling efficient training of multi-layer networks.
Speech Recognition
Technology that converts spoken language into text, enabling dictation, voice assistants, captioning and voice control of devices.
Field of AI and linguistics concerned with enabling computers to analyze, understand and generate human language in text and speech.
Approach to machine learning that trains neural networks with many layers to learn increasingly abstract representations directly from raw data.
Referenced by
Other entries that discuss or point to Recurrent Neural Network.