Reading digits: pixels, convolutions and softmax

How a small network reads a handwritten digit: a weight for every pixel, local patches, shared filters (convolution), pooling and a softmax vote, with a live drawing pad.

This is the text of a chapter of the animated talk A Deep Seek into LLM Architecture by Ruben Galvão. Open the page with scripts on to play the slides, one key press per idea.

A picture as input

One neuron, every pixel

A column of neurons

The layer as an image

Local patches

Shared weights: a filter

Eight filters

Max-pooling, and again

The vote: ten neurons

Softmax

Live: draw a digit

Papers and sources