LSTM — Forget, Input, Output Gates & Cell State

Long Short-Term Memory: gating mechanisms for selective memory

Manual Gate Control

Cell c(t)0.000
Hidden h(t)0.000
f = sigmoid(·) — forget
i = sigmoid(·) — input
= tanh(·) — candidate
o = sigmoid(·) — output

c(t) = f·c(t-1) + i·g̃
h(t) = o·tanh(c(t))