Latent Space
Also known as: Latent representation, Embedding space
An abstract, usually lower-dimensional space in which a model represents data so that similar items sit close together and patterns become explicit.
A latent space is the internal coordinate system a model uses to represent its inputs. Each data point, such as an image, sentence or sound, is mapped to a vector of numbers, and the geometry of these vectors reflects what the model has learned: similar items end up near each other, and directions in the space can correspond to meaningful variations. The word latent means hidden, because these coordinates are not directly observed in the data but are inferred by the model during training.
Latent spaces arise in many architectures. Autoencoders compress inputs into a small latent code and reconstruct them; variational autoencoders impose structure so that any point in the space decodes into a plausible example. GANs map random latent vectors to images, and moving gradually between two vectors produces smooth transitions between generated outputs. Latent diffusion models run their generation process inside a compressed latent space rather than on raw pixels. Embeddings from language models form latent spaces in which semantic similarity becomes measurable distance.
Working in latent space makes models efficient and enables operations that would be hard on raw data, such as interpolating between styles, searching by meaning in semantic search or adjusting attributes of a generated image. Latent spaces are not always neatly organized or human-readable, and their structure can encode biases present in training data. Researchers in interpretability study these internal representations to understand which concepts models have learned and how those concepts can be located or edited.
Key points
- A latent space represents data as vectors whose geometry reflects learned similarities.
- Autoencoders, GANs and diffusion models all generate or reconstruct data from latent representations.
- Moving through a latent space can produce smooth transitions between generated outputs.
- Latent representations can encode training data biases and are a focus of interpretability research.
Related entries
Embedding
A learned numerical vector that represents an item such as a word, document, image or user so that similar items have nearby vectors.
Generative model that learns to reverse a gradual noising process, turning random noise step by step into images, audio or other data.
Generative model in which two neural networks compete, one creating synthetic samples and the other judging whether they are real or fake.
Machine learning approach that finds structure, such as clusters or compact representations, in data that has no labels or target answers.
Semantic Search
Search technique that matches queries to content by meaning and intent rather than by exact keywords, often using embeddings and language models.
Research field that seeks to understand how AI models reach their outputs, by explaining their decisions or reverse-engineering their internal mechanisms.
Vector Database
Database designed to store embeddings and quickly find the vectors most similar to a query, supporting semantic search and AI retrieval.
Referenced by
Other entries that discuss or point to Latent Space.