HM LABS / 002
Gradient descent
Observe how the learning rate changes convergence on a quadratic loss.
L(x) = x² / 2; xₜ₊₁ = xₜ − ηxₜ
x = 0.225 · L = 0.025 · Converges to zero
For this quadratic, 0 < η < 2 guarantees convergence; this is not a universal rule.
Other experiments
Sigmoid function ↗
Explore the effect of weight and bias on a logistic curve.
Neural network ↗
Trace a forward pass through a fixed 2–2–1 network.
Embedding space ↗
Rank synthetic 2D vectors by cosine similarity.
Self-attention ↗
Compute scaled dot-product attention over three synthetic tokens.
Binary search ↗
Step through a sorted array and observe the search interval.