Sneak peek: I implemented a 3 layer MLP that predicts the fashion MNIST dataset using SQL (with my own autograd impl inside the database). Apparently einsum notation is better expressed as a JOIN. github.com/xqlsystems/x...
- The benchmark trains a 784→196→32→10 MLP on Fashion-MNIST with forward pass, backpropagation, and SGD all expressed as SQL queries.
- A SKIP_ZERO_PIXELS flag drops background pixels via a WHERE clause and delivers roughly a 1.8x speedup on Fashion-MNIST.
- Hyperparameters are demo-scale: 500 training samples, 200 test samples, learning rate 0.5, 60 steps, chunk size 250.