Gradient LabSign up free

ML glossary › Latent space

What is latent space in machine learning?

The space of hidden codes a model uses. Nearby points mean similar things.

Where it shows up

Generative models

Variational autoencoders

The extra rule in the loss keeps all the clouds packed near the center and overlapping. The result is a smooth latent space: walk across it and the decoded shapes change gradually.

See latent space in motion. The lesson animates it step by step, free.

Open the lesson