03 Jan 2023
Latent (lat. being hidden) space is a representation on compressed data. Is used to simplify the data representation for the purpose of finding patterns.
In machine learning data is compressed (using lossy compression by definition) to learn important information about data points. This happens in the encoding stage,
The value of compression is that it allows us to discard the noise and only leave the information we need for learning →This “compressed state” is the Latent Space Representation.
The model needs to store all the relevant information, because it is then required to reconstruct the compressed data (in the decoding stage).
Latent space is usually a matrix that we can use to perform different operations on.
A useful property of the latent space is that “similar” values (eg. colour of object) will be closer to one another in the latent space.
(Note: “closeness” is is an ambiguous term as different models use different algorithms to denote “closeness”).