RNN Architecture (Unrolled)
AI Engineer path · lesson 47 of 124Master Recurrent Neural Networks from first principles! Watch how hidden states flow through time, understand weight sharing, and see the vanishing gradient problem in action. Compare Many-to-Many, Many-to-One, One-to-Many, and Encoder-Decoder architectures.
RNN Architecture Visualizer
Watch how recurrent networks process sequences step by step
Architecture Type
Many-to-Many
Input at each step, output at each step. Used for: Sequence labeling, Named Entity Recognition, Machine Translation.
POS Tagging: "The cat sat" → [DET, NOUN, VERB]
Parameters
Display Options
Step 1 Computation
xt = [1.0, 0.0, 0.0]
ht = tanh(Wxh·x + Whh·ht-1)
ht = [-0.51, 0.17, 0.34, -0.17]
Forward Pass
ht = tanh(Wxhxt + Whhht-1 + bh)
yt = softmax(Whyht + by)
Weight Sharing
Same Wxh, Whh, Why used at every time step. This enables generalization across sequence positions.
Vanishing Gradient
Gradients multiply through time: ∂ht/∂h0 = ∏Whh. If ||Whh|| < 1, gradients vanish exponentially.
Unroll a recurrent step
Order what happens at timestep t.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
- 5Drop a step here
Test your knowledge
Why do RNNs use the same weights at every time step?
Learn these first
Interview Questions
References & Further Reading
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required