Skip to main content
Early access β€” new tools and guides added regularly
Core AI

Autoencoder

Last reviewed: April 2026

A neural network that learns to compress data into a smaller representation and then reconstruct it, useful for dimensionality reduction, denoising, and anomaly detection.

An autoencoder is a type of neural network trained to copy its input to its output β€” but with a crucial bottleneck in the middle. This bottleneck forces the network to learn a compressed representation of the data, capturing only the most important features.

How autoencoders work

An autoencoder has two parts:

  • Encoder β€” compresses the input into a smaller, dense representation called the latent space
  • Decoder β€” reconstructs the original input from this compressed representation

The network is trained by measuring how well the reconstruction matches the original. Over time, it learns which features to keep and which to discard.

Types of autoencoders

  • Vanilla autoencoders learn basic compression and reconstruction
  • Variational autoencoders (VAEs) add randomness to the latent space, making them useful for generating new data similar to the training examples
  • Denoising autoencoders are trained on corrupted inputs and learn to reconstruct clean versions, making them effective at removing noise from data
  • Sparse autoencoders add constraints that force only a few neurons to activate at once, producing more interpretable features

Practical applications

  • Anomaly detection β€” train on normal data, then flag inputs that reconstruct poorly as potential anomalies (useful in fraud detection and manufacturing quality control)
  • Dimensionality reduction β€” compress high-dimensional data for visualisation or faster downstream processing
  • Image denoising β€” clean up noisy images in medical imaging or photography
  • Feature learning β€” extract meaningful features from raw data for use in other models

Autoencoders vs. generative models

While variational autoencoders can generate new data, they have largely been superseded by diffusion models and GANs for generation tasks. However, autoencoders remain valuable for compression, anomaly detection, and representation learning.

Want to go deeper?
This topic is covered in our Advanced level. Access all 60+ lessons free.

Why This Matters

Autoencoders power practical business applications like fraud detection, quality control, and data compression. If your organisation deals with anomaly detection or needs to process high-dimensional data efficiently, understanding autoencoders helps you evaluate whether they are the right tool for your specific problem.

Related Terms

Learn More

Continue learning in Advanced

This topic is covered in our lesson: How LLMs Actually Work