LSTM Cell: Inside the Black Box
Adjust architecture, weights, and inputs to see the flow.
Force Forget
Force Input
Reset
Forget Gate
Input Gate
Output Gate
C
t-1
C
t
H
t-1
H
t
x
t
+
σ
f
t
×
+
σ
i
t
+
tanh
C̃
t
×
+
+
σ
o
t
tanh
×
0
0
0
--
0
0
--
0
0
0
0
--
0
0
0
W
f
U
f
W
i
U
i
W
c
U
c
W
o
U
o
0. Architecture Config
Input Size (d_in)
1 (Scalar)
2
3
4
Hidden Size (d_hid)
1 (Scalar)
2
3
1. Current State (Inputs)
Live Interpretation
Adjust parameters to see interpretation.
2. Gate Weights