What is an undercomplete autoencoder, and why does it need a bottleneck narrower than the input to learn anything useful?
Unsupervised learning, Autoencoders
Level L1 Beginner. Length Short. Nature Th Theoretical.
What's being asked
Whether you see that the reconstruction objective is trivial without a constraint, and that the bottleneck forces compression.
Key idea
An autoencoder learns by minimising ; if it can simply copy the input, so we make .
Steps
- An autoencoder has an encoder that maps the input to a code , and a decoder that maps back to a reconstruction . We train both to make close to with no labels.
- Why a bottleneck is needed: if the code has the same size as or larger, the network can learn the identity map and simply copy with zero loss. Making narrower (undercomplete) prevents copying, forcing it to keep the main structure of the data.
- With a linear encoder and decoder and squared error, the learned code captures the same directions as PCA (principal component analysis). Non-linear layers let it follow curved structure.
- Other ways to stop it copying are a sparsity penalty on , adding noise to (denoising autoencoder), or a regulariser on the code (variational autoencoder).
- Uses: dimensionality reduction, feature learning, denoising and anomaly detection by looking at the reconstruction error.
Common mistakes
- Thinking a bigger network always reconstructs better and therefore learns better features. Perfect reconstruction can mean the identity map.
- Calling the training supervised. The target is the input itself.
- Forgetting that with a very wide non-linear decoder even a small bottleneck can memorise the training set.
How long your answer should be
4–6 sentences.
Read this
Previous in Unsupervised learning: How does an isolation forest detect anomalies, and why do anomalous points end up with shorter average path lengths?
Next in Unsupervised learning: What is collaborative filtering, and how do user-based and item-based neighbourhood methods differ? Which one scales better when there are far more users than items, and why?