Skip to main content

MNIST Classifier in Pure x86-64 Assembly

Sole developer · Personal project, iterated over several weeks

systemsmlassembly 96.5% test accuracy on MNIST (9,652/10,000)27 KB training binary with sub-millisecond inference

Problem / Context

I wanted to understand what a forward pass, backpropagation step, and SGD update actually look like when you write every instruction yourself. The target was x86-64 NASM on Linux, using only syscalls and floating-point registers.

Approach

Results

What I’d Do Next