What is latent space in deep learning?

Definition. Formally, a latent space is defined as an abstract multi-dimensional space that encodes a meaningful internal representation of externally observed events. In the latent space, samples that are comparable in the external world are positioned near to each other.