05 · 2013 · Compress, then rebuild
An autoencoder is trained on a strange task: copy the input to the output, but through a bottleneck. Here a 28×28 image (784 numbers) is squeezed into just two numbers, then rebuilt. To do that well, the network must discover what matters about handwritten digits.
Those two numbers are coordinates on a map. Similar digits end up close together, and the space between them is smooth, so you can walk across the map and watch one digit morph into another. This is a variational autoencoder (Kingma and Welling, 2013).
How it works
Decoded from this point
Encode your own