Latent Space
A compressed internal representation in which models capture the underlying structure of data.
What happens between two encoded vessels?
A shape model encodes a tall jug as point A and a shallow bowl as point B. Sample five equally spaced positions along the straight line between their codes. Decode each position to see what the model represents there.
- At the endpoints
- Compare each reconstruction with its source. A distorted endpoint already signals that the model discarded some information.
- At the midpoint
- The vector is halfway between the two endpoint vectors. Its decoded shape might look intermediate, jump to another family or lose a handle.
- Along the path
- Inspect every decoded result. An orderly row in this illustration suggests a question to test; it cannot establish that a learned space will behave smoothly.
Does one coordinate stand for height?
A latent coordinate may mix several properties, and several coordinates may jointly encode height. To investigate, vary a coordinate while tracking shape changes across many starting points. One appealing interpolation is weak evidence for a general interpretation.

Why can distance be misleading?
The meaning of “near” depends on the learned representation and the distance measure. Neighbors useful for finding similar silhouettes may be poor matches for material, age or provenance. Evaluate neighbors using the purpose of the search.
Follow the idea
Autoencoder · See how reconstruction constrains a learned representation.
Embedding · Compare ways to represent similarity.
Source · Kingma and Welling on learning latent representations
Return to Latent Space in the A–Z glossary