IntermediateAbout 25 min

    RNN Architecture (Unrolled)

    Read the full article on Substack

    7 min read.

    Master 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.

    Bh0St=0Ah1yt=1Nh2yt=2Ah3yt=3Nh4yt=4
    t = 0 reads “B”: h0 = tanh(W_xh·x0). Output: “S” (43%).

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    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

    Quiz

    23 questions
    Question 1 of 23
    Score: 0

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

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going