How can a machine describe an image with a few numbers and create variations? A VAE learns a probabilistic route from data into a latent space and back.
Diederik Kingma and Max Welling submitted Auto-Encoding Variational Bayes in December 2013, before its ICLR 2014 publication. The encoder estimates a distribution of possible codes for each input rather than a single fixed code. The decoder learns to turn samples from that space back into data.
Why noise appears
Here μ and σ define a diagonal Gaussian distribution. Draw ε from N(0,I), then compute z = μ + σ ε. This reparameterisation lets gradients pass through the stochastic computation during training. It is not a random distortion added to the finished image.
What was trained here
The museum’s small neural VAE was trained on 4,096 original synthetic 12 × 12 images of bright spots. It has two latent coordinates and balances reconstruction error against a KL penalty towards N(0,I). It is an educational beta-VAE with fixed observation variance, not the original historical architecture. Its weights stay fixed in the browser. Inspect the encoder’s estimates, override μ and σ, and compare two samples.
Possibilities and limits
The balance between reconstruction and organisation of the space affects output quality. Smoothness supports interpolation but does not guarantee that each coordinate has a simple human meaning. These spots let us examine the method without confusing the experiment with photorealistic synthesis.
Try the model
Model loaded.
Documentation and sources
Diederik P. Kingma · Max Welling · 2013–2014 · MTN-0132
Museum suggestion for computing, probability and critical literacy. Compare two seeds, record the parameters and explain the mechanism behind the output. Older students can examine losses and the relationship between data and models.
Text, code, synthetic data, model weights, diagrams and sound patterns: original Museum of AI work, 2026, CC BY-SA 4.0. Research sources are linked, not reproduced. The existing three.js library is used under MIT.