Interactive tutorial that explains softmax, cross-entropy loss, and gradient descent from first principles.
Walk through the complete prediction → loss → learning pipeline that runs inside every modern language model:
- Logits — raw compatibility scores from the network
- Exponentiation — mapping to positive values with e^z
- Softmax — normalizing into a probability distribution
- Target — encoding the correct answer as one-hot
- Cross-entropy loss — measuring prediction quality with −log(p)
- Loss in logit form — the tug-of-war between two forces
- Gradient — the elegant p − y
- Gradient descent — updating logits to reduce loss
- Temperature — controlling distribution sharpness
- Attention — softmax's second job in transformers
bun install
bun run devVue 3, TypeScript, Vite, Tailwind CSS v4, ECharts