AdvancedAbout 25 min

    Regularization in Weight Space 3D

    Read the full article on Substack

    6 min read.

    SEE why L1 creates sparsity and L2 creates small weights! Visualize L1/L2 constraint regions in 3D weight space. Watch how diamond (L1) and circular (L2) constraints intersect with loss contours to produce different solutions.

    2.0
    L2 with λ = 2.0. Press Train to watch gradient descent find the best trade-off.

    Check your understanding

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

    What regularisation adds

    Sequence

    Order how a penalty changes the objective.

    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

    20 questions
    Question 1 of 20
    Score: 0

    Viewed in WEIGHT SPACE, L2 regularization constrains the weights to lie within a…

    Done with this lesson?

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

    Keep going