thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

AI & Machine Learning · Intermediate

Long Short-Term Memory (LSTM)

An RNN variant with gates that control what information to keep, forget and output, enabling long-range memory.

Definition

LSTM cells maintain a cell state regulated by input, forget and output gates, which mitigates vanishing gradients over long sequences. They were the leading sequence model before transformers and remain useful for some time-series tasks.

Exam tip

LSTM gates address the vanishing-gradient problem of plain RNNs on long sequences.

Related terms