Overview
Direct Answer
A Variational Autoencoder (VAE) is a generative deep learning model that encodes input data into a probabilistic latent space and reconstructs it through a decoder, enabling both data compression and synthesis of novel samples. Unlike standard autoencoders, VAEs impose a prior distribution on the latent representation, making the learned space suitable for generative tasks.
How It Works
The encoder network maps input data to parameters of a probability distribution (typically Gaussian) in latent space rather than fixed point values. The decoder samples from this distribution and reconstructs the input, whilst the model optimises a loss function combining reconstruction error and a Kullback–Leibler divergence term that regularises the latent distribution towards the prior. This dual objective ensures the latent space remains continuous and well-structured for interpolation and sampling.
Why It Matters
VAEs provide a principled framework for learning interpretable, continuous latent representations whilst maintaining tractable inference and generation. This capability reduces data annotation burden, enables anomaly detection through reconstruction likelihood, and supports downstream machine learning tasks through dimensionality reduction without sacrificing generative capability.
Common Applications
Applications include image generation and manipulation in computer vision, anomaly detection in manufacturing and healthcare diagnostics, and feature learning for semi-supervised classification. VAEs are also employed in drug discovery for molecular generation and in recommendation systems for learning latent user preferences.
Key Considerations
VAEs typically produce blurrier reconstructions than deterministic autoencoders due to the stochastic sampling process. The model's performance depends heavily on appropriate weighting between reconstruction and regularisation terms, and the choice of prior distribution significantly influences the learned latent structure and generative quality.
More in Deep Learning
State Space Model
ArchitecturesA sequence modelling architecture based on continuous-time dynamical systems that processes long sequences with linear complexity, offering an alternative to attention-based transformers.
ReLU
Training & OptimisationRectified Linear Unit — an activation function that outputs the input directly if positive, otherwise outputs zero.
Fully Connected Layer
ArchitecturesA neural network layer where every neuron is connected to every neuron in the adjacent layers.
Exploding Gradient
ArchitecturesA problem where gradients grow exponentially during backpropagation, causing unstable weight updates and training failure.
LoRA
Language ModelsLow-Rank Adaptation — a parameter-efficient fine-tuning technique that adds trainable low-rank matrices to frozen pretrained weights.
Residual Network
Training & OptimisationA deep neural network architecture using skip connections that allow gradients to flow directly through layers, enabling very deep networks.
Capsule Network
ArchitecturesA neural network architecture that groups neurons into capsules to better capture spatial hierarchies and part-whole relationships.
Contrastive Learning
ArchitecturesA self-supervised learning approach that trains models by comparing similar and dissimilar pairs of data representations.