← 🧊 Algorithms & AI

🧊 Weight Init Lab

Strong gradient signal
Vanished gradient
Pre-activation z:
Sigmoid output σ(z):
Local derivative σ′(z):
Gradient after full depth:
FPS:
Drag — rotate · Scroll — zoom

🧊 Why Big Starting Weights Can Stall a Neural Network Before It Learns Anything

A 3D sigmoid curve with a live neuron marker shows exactly why oversized starting weights push a network into its flat, saturated tails — and a chain of gradient pillars shows that same collapsing slope multiplying away through the layers of backpropagation.

🔬 What It Demonstrates

The ball's position on the curve is the neuron's pre-activation value and output; the tangent arrow's length is the local gradient. As weight scale grows, the ball slides into the flat tails and the arrow shrinks toward nothing — the vanishing-gradient problem made visible.

🎮 How to Use

Increase the weight-scale slider to watch the neuron saturate, adjust the input value, pick how many layers the gradient must travel through, and press "Simulate gradient step" to see how little a saturated weight actually moves on one update.

💡 Did You Know?

The sigmoid's derivative peaks at only 0.25, at z = 0 — meaning even under ideal conditions each sigmoid layer can pass along at most a quarter of the gradient it receives, which is why deep networks moved toward ReLU-family activations and careful weight initialisation schemes.