Weight Decay
- ← → / mouse / finger
- move the η paddle
- Space / tap
- launch the gradient
- P
- pause
- M
- sound on/off
- Esc
- back to the terminal
At the top there is a weight matrix W, cell by cell, with its values. Your paddle is the learning rate η and the ball is the gradient ∇: every time it hits a cell, the weight drops by 1. When the whole matrix is zero, the loss is 0.000 and you move on to a new matrix with larger weights.
D (dropout) cells drop a bonus when they reach zero: η↑ (higher learning rate, faster and worth more points), B×3 (mini-batch: three gradients at once), L2 (regularisation: a wider paddle).
Weight decay is a regularisation technique that, at every training step, pushes the weights towards zero to avoid overfitting. Here you do it by hand, hit after hit.
The game is a single HTML file: download it and use it offline, even without an internet connection. Licence: CC BY-NC 4.0 — you may share it, crediting the author and this page, but not for commercial purposes.