ANN Types: Autoencoders

Pack, then unpack

An autoencoder is a network that is trained to reconstruct its own input. It has two halves. The encoder compresses the input into a smaller middle — a bottleneck. The decoder tries to rebuild the original from that compact summary. If the rebuild is faithful, the bottleneck must have kept what matters.

An everyday picture is packing a suitcase and then unpacking it. You cannot take everything; you choose. Another is a zip file that the network learns, instead of using a fixed recipe. If a new example will not unpack well, it may be an odd one — which is why autoencoders are used for anomaly detection and for compression.

The training signal is simple: compare the reconstruction with the input, and walk the weights downhill with the same gradient idea as on ANN: Gradient. No extra labels are required, so this is often called self-supervised (or, in older language, unsupervised) learning.

A variational autoencoder (VAE) is a close cousin with a twist: the bottleneck is not one point, but a small distribution, and you can sample from it to invent new examples. That generative story is drafted in Variational autoencoders. Start here for the packing idea; go there when you want to generate, not only compress.

See also

Back to top