Skip to content
Query Feedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  • News
  • Business
    • Digital Marketing
      • Marketing & Sales
      • SEO
      • Content Marketing
      • AEO and GEO
    • Startups
      • Founder Stories
      • Funding & VC
      • Product & Growth
    • Money
      • Investing
      • Markets & Economy
      • Saving & Budgeting
  • AI & Technology
    • Technology
      • Consumer Tech
      • CRM
      • Cyber Security
      • Software Engineering
      • WordPress
      • Hardware
    • Artificial IntelligenceAI Glossary
      • LLMs
      • Machine Learning
      • AI Fundamentals
      • Generative AI
      • Deep Learning
    • AI Use Cases
      • Automation
      • Content
      • Customer Support
      • Finance
      • Marketing
      • View All
  • Tools & Software
  • Account
    • Submit Guest Post
    • Submit a tool
    • My listing
  • Contact
QueryFeedz
  1. Home /
  2. AI Glossaries /
  3. Deep Learning /
  4. What is a Variational Autoencoder (VAE)?
Deep Learning

What is a Variational Autoencoder (VAE)?

Updated October 2, 2026 Read 3 min

A variational autoencoder (VAE) is a generative model that encodes data into a probability distribution rather than a fixed point, producing a smooth latent space from which new, realistic samples can be generated.

Contents 11
  1. 01Key takeaways
  2. 02A VAE explained in simple terms
  3. 03How a VAE works
  4. 04The two loss terms
  5. 05Generating new data
  6. 06VAE vs other generative models
  7. 07Where VAEs are used
  8. 08Limitations
  9. 09Common Use Cases
  10. 10Frequently Asked Questions
  11. 11Related Terms

A variational autoencoder (VAE) is a generative model that encodes each input into a probability distribution in latent space rather than a single fixed point, then decodes samples from that distribution back into data. This design makes the latent space smooth and continuous, so new points can be sampled and decoded into plausible new data. Introduced by Diederik Kingma and Max Welling in 2013, VAEs underpin parts of modern image generation systems.

Key takeaways

  • A plain autoencoder maps input to a point; a VAE maps it to a distribution.
  • Training balances reconstruction accuracy against a KL divergence term that regularises the latent space.
  • The reparameterisation trick makes sampling differentiable so backpropagation works.
  • The smooth latent space allows generation and meaningful interpolation.
  • VAE images are often blurrier than those from GANs or diffusion models.

A VAE explained in simple terms

A standard autoencoder files each photo at an exact shelf position. If you pick an empty position between shelves, you get nonsense, because nothing was ever filed there. A VAE files each photo as a fuzzy region rather than a point, and training forces those regions to cover the space without gaps. Now any position you pick decodes into something sensible, which is what makes generation possible.

How a VAE works

  1. The encoder outputs two vectors for each input: a mean and a variance, describing a distribution in latent space.
  2. A latent vector is sampled from that distribution.
  3. The reparameterisation trick expresses the sample as mean + standard deviation × random noise, so gradients can flow through the mean and variance while the randomness sits outside the computation.
  4. The decoder reconstructs the input from the sampled latent vector.
  5. The loss has two parts, together called the evidence lower bound (ELBO).

The two loss terms

TermPurposeEffect if dominant
Reconstruction lossOutput should match the inputSharp reconstructions but a gappy latent space
KL divergenceLatent distributions should stay close to a standard normal distributionSmooth, usable latent space but blurry outputs

The balance between them is the central tension in VAE training. β-VAE adds a weight on the KL term: higher β produces more disentangled, interpretable latent dimensions at the cost of reconstruction quality.

Generating new data

Because the latent space is regularised towards a standard normal distribution, you can:

  • Sample a random latent vector and decode it into a new, plausible example.
  • Interpolate between two inputs’ latent vectors and decode the path, producing a smooth morph.
  • Edit by moving along a direction in latent space that corresponds to an attribute.

A plain autoencoder supports none of these reliably, because its latent space has holes.

VAE vs other generative models

ModelStrengthWeakness
VAESmooth latent space, stable training, fast samplingBlurrier outputs
GANSharp, realistic imagesUnstable training, mode collapse
DiffusionHighest quality and diversitySlower, multi-step generation

These are complementary rather than competing. Latent diffusion systems such as Stable Diffusion use a VAE-style autoencoder to compress images into a small latent space, run diffusion there, and decode back to pixels. The VAE is doing the compression work that makes high-quality generation affordable.

Where VAEs are used

  • Compression into latent spaces for diffusion image generators.
  • Anomaly detection, where unusual inputs reconstruct poorly.
  • Molecule and drug design, where smooth latent spaces support optimisation.
  • Representation learning for downstream tasks.
  • Data generation where privacy prevents using real records.
  • Recommendation systems modelling user preferences.

Limitations

  • Reconstructions and samples tend to be blurry, since the model averages over plausible outputs.
  • Posterior collapse can occur, where the decoder ignores the latent variables entirely.
  • Balancing reconstruction and KL terms requires tuning.
  • Outperformed by diffusion models for standalone high-quality image generation.

Common Use Cases

01

Latent spaces for diffusion

Compress images so diffusion runs cheaply.

02

Anomaly detection

Flag inputs that reconstruct poorly as unusual.

03

Drug and molecule design

Search a smooth latent space for candidate compounds.

04

Representation learning

Produce features for downstream models.

05

Privacy-preserving data

Generate synthetic records resembling real ones.

06

Interpolation and editing

Morph smoothly between examples or adjust attributes.

Frequently Asked Questions

A generative model that encodes inputs into probability distributions, giving a smooth latent space from which new data can be sampled.

A plain autoencoder encodes to a fixed point. A VAE encodes to a distribution and regularises the latent space so sampling works.

Expressing a random sample as mean plus standard deviation times noise, so gradients can flow through the encoder during training.

The reconstruction objective averages over plausible outputs, which smooths fine detail.

Yes. They compress images into latent space for diffusion models and remain useful for anomaly detection and representation learning.

Related Terms

  • Autoencoder
  • Diffusion Model
  • GAN
  • Encoder
  • Decoder
  • Generative AI

Related AI Terms

What is a GAN (Generative Adversarial Network)?A GAN (generative adversarial network) is a generative model made of two competing neural networks: a generator that…What is a Decoder in Deep Learning?A decoder is the part of a neural network that turns an internal numeric representation into output, such…What is an Autoencoder?An autoencoder is a neural network trained to compress its input into a small representation and then reconstruct…What is an Encoder in Deep Learning?An encoder is the part of a neural network that converts raw input, such as text, images or…What is a Diffusion Model?A diffusion model is a generative AI model that learns to create data by reversing a noising process:…What is Backpropagation?Backpropagation is the algorithm neural networks use to learn. After a prediction, it works backwards from the error…

Contents

  1. 01Key takeaways
  2. 02A VAE explained in simple terms
  3. 03How a VAE works
  4. 04The two loss terms
  5. 05Generating new data
  6. 06VAE vs other generative models
  7. 07Where VAEs are used
  8. 08Limitations
  9. 09Common Use Cases
  10. 10Frequently Asked Questions
  11. 11Related Terms

AI Topic

  • Deep Learning

Related Terms

  • What is a GAN (Generative Adversarial Network)?
  • What is a Decoder in Deep Learning?
  • What is an Autoencoder?
  • What is an Encoder in Deep Learning?
  • What is a Diffusion Model?
  • What is Backpropagation?

Quick Navigation

  • Common Use Cases
  • Frequently Asked Questions
  • Related Terms
  • Back to top

Details

Updated
October 2, 2026
Read
3 min
  • Forum
  • Submit a tool
  • Submit Guest Post
  • List Your Startup
  • Privacy Policy
  • Editorial Policy
  • Account
  • Contact
  • AI Productivity
  • AI Video
  • AI Coding
  • AI Chatbots
  • Sales
  • AI Business
  • View All Tools

Subscribe our Newsletter

Get weekly exclusive content - No spam.

Copyright © 2026 -  Query Feedz

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}