# What is LSTM? Definition and meaning

A recurrent network with gates that control what is stored, forgotten and emitted over time.

## Definition

**LSTM**: A recurrent network with gates that control what is stored, forgotten and emitted over time.

In short: Recurrent network that remembers long-range patterns.

## When it is used

Sensor streams, sequences and remaining-useful-life estimation.

## Where it fits

LSTM belongs to **Architectures** in the [Deep learning](/topics/deep-learning) topic. These are the other terms in the same group:

- **[CNN](/glossary/cnn)**: Networks that apply learned filters across local neighbourhoods, sharing weights over positions.
- **[Recurrent neural networks](/glossary/recurrent-neural-networks)**: A neural network that processes a sequence one step at a time, updating a hidden state that summarises everything seen so far.
- **[GRU](/glossary/gru)**: A recurrent unit with fewer gates than an LSTM, often similarly accurate and faster to train.
- **[Transformers](/glossary/transformers)**: Neural networks built on self-attention, letting every element of the input weigh every other element.
- **[ResNet](/glossary/resnet)**: A convolutional architecture whose residual connections make very deep networks trainable.
- **[ViT](/glossary/vit)**: Splits an image into patches and processes them as a sequence with a transformer.
- **[Autoencoders](/glossary/autoencoders)**: A network that encodes an input into a smaller code and decodes it back, learning what matters.
- **[VAE](/glossary/vae)**: An autoencoder that learns a distribution over a latent space and is trained with a variational objective.
- **[GAN](/glossary/gan)**: Two networks compete: a generator produces samples and a discriminator tries to tell them from real data.
- **[Diffusion models](/glossary/diffusion-models)**: Generative models that learn to denoise data step by step, turning noise into a sample.

## Learn more

The full guide to **[LSTM](/tools/lstm)** explains how it works, when to use it and how it compares with the alternatives, with examples. The [glossary](/glossary) lists every term on the site from A to Z.

Previous term: [Loss functions](/glossary/loss-functions) · Next term: [LwF](/glossary/lwf)
