DL
    intermediate

    RNN Architecture (Unrolled)

    algorithms.live

    RNN Architecture Visualizer

    Watch how recurrent networks process sequences step by step

    Step 1/5

    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

    5
    4
    1.2s

    Display Options

    Step 1 Computation

    xt = [1.0, 0.0, 0.0]

    ht = tanh(Wxh·x + Whh·ht-1)

    ht = [0.70, -0.53, 0.56, 0.76]

    SHARED WEIGHTS: W_xh, W_hh, W_hy (same at every step!)x0INPUTh0HIDDENy0OUTPUTt=0x1h1y1t=1x2h2y2t=2x3h3y3t=3x4h4y4t=4Legend:Input (x)Hidden (h)Output (y)W_hh

    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.

    Sequence Modeling
    RNN
    BPTT
    NLP
    Time Series
    Vanishing Gradients

    Unroll a recurrent step

    Sequence

    Order what happens at timestep t.

    Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.

    1. 1Drop a step here
    2. 2Drop a step here
    3. 3Drop a step here
    4. 4Drop a step here
    5. 5Drop a step here
    5 pieces left to place

    Test your knowledge

    23 questions
    Question 1 of 23
    Score: 0

    Why do RNNs use the same weights at every time step?

    Learn these first

    Interview Questions

    Google
    Meta
    Baidu
    Microsoft
    Google
    Amazon
    Apple
    Baidu
    Google
    OpenAI
    Meta
    NVIDIA
    Google
    Meta
    Microsoft
    NVIDIA
    Salesforce
    Amazon
    Zendesk
    Google

    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