Take a microscopic look inside a single Long Short-Term Memory cell. Visualize the internal architecture, the conveyor belt, and the four gates that control memory.
The internal architecture of a Long Short-Term Memory cell is designed to act like a smart computer memory module. It decides what to remember, what to forget, and what to output.
The key to LSTMs is the Cell State ($C_t$), visualized as the horizontal line running across the top of the diagram. It acts like a conveyor belt.
Information can flow along it easily with only minor linear interactions. The LSTM has the ability to remove or add information to this cell state, carefully regulated by structures called gates.
When the simulation runs, watch the data flow through these sequential steps inside the cell:
Because there are four distinct neural network layers inside this one cell (Forget, Input, Candidate, Output), an LSTM is much more computationally heavy than a standard RNN. Check the Parameters button to see how the matrix dimensions are multiplied by 4.
Take a microscopic look inside a single Long Short-Term Memory cell. Visualize the internal architecture, the conveyor belt, and the four gates that control memory.