Skip to content

Autoencoders

Neural networks that learn to compress and reconstruct data, and their uses in dimensionality reduction, denoising and anomaly detection.

Editorial team 1 min read

An autoencoder is a neural network trained to reproduce its input after passing it through a narrow bottleneck.

Structure

  • Encoder: compresses input into a smaller representation.
  • Bottleneck: the compressed code.
  • Decoder: reconstructs the input from the code.

Because the bottleneck is small, the network must learn the most important features of the data.

Uses

  • Dimensionality reduction: a non-linear alternative to PCA.
  • Anomaly detection: trained on normal data, the autoencoder reconstructs normal examples well and unusual ones poorly; high reconstruction error flags anomalies.
  • Denoising: trained to reconstruct clean data from noisy inputs.
  • Pretraining and feature learning.

Variants

  • Denoising autoencoders.
  • Variational autoencoders (VAEs): learn a smooth probabilistic latent space useful for generating new data, and a component of some image generation systems.
  • Sparse autoencoders: encourage few active features — used in interpretability research to find meaningful features inside language models.

Limitations

Reconstructions can be blurry; anomaly thresholds need careful tuning.

More in Machine learning

All Machine learning guides →
Machine learning Guide · 2 min

Linear Regression Explained

The simplest predictive model: how linear regression fits a line through data, how to read its coefficients, and when it breaks down.

Machine learning 2 min read 1 Sep 2026

Machine learning Guide · 2 min

Logistic Regression for Classification

Despite its name, logistic regression is a classification method. How it produces probabilities and why it remains a strong baseline.

Machine learning 2 min read 31 Aug 2026

Machine learning Guide · 2 min

Decision Trees

How decision trees split data with simple questions, why they are easy to explain, and why single trees overfit.

Machine learning 2 min read 30 Aug 2026

Machine learning Guide · 2 min

Random Forests

Why averaging many randomised decision trees produces a robust, accurate model with little tuning.

Machine learning 2 min read 29 Aug 2026