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 x↦z=f(x)↦x^=g(z) by minimising ∥x−x^∥2; if dim⁡z≥dim⁡x it can simply copy the input, so we make dim⁡z<dim⁡x.

Steps

  1. An autoencoder has an encoder f that maps the input x to a code z, and a decoder g that maps z back to a reconstruction x^. We train both to make x^ close to x with no labels.
  2. Why a bottleneck is needed: if the code z has the same size as x or larger, the network can learn the identity map and simply copy x with zero loss. Making z narrower (undercomplete) prevents copying, forcing it to keep the main structure of the data.
  3. 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.
  4. Other ways to stop it copying are a sparsity penalty on z, adding noise to x (denoising autoencoder), or a regulariser on the code (variational autoencoder).
  5. Uses: dimensionality reduction, feature learning, denoising and anomaly detection by looking at the reconstruction error.

Common mistakes

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?