LSTM Gate Equations › Complete LSTM Equations
Michael BrenndoerferUpdated May 11, 20251 min read
Language AI HandbookAll chapters Part 11 of 67Recurrent Neural Networks
LSTM Gate Equations › Complete LSTM EquationsOne section · Sections in this chapter9 / 17 ↓
Sections in this chapter17
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Let's collect all the equations in one place for reference. Given inputs , , and , the LSTM computes:
These six equations fully specify the LSTM cell. Notice the symmetry: three gates (forget, input, output) all have the same structure, differing only in their learned parameters. The candidate has the same structure but uses instead of sigmoid. The cell state and hidden state updates are simple element-wise operations.