In supervised learning, we defined models that mapped observed data to output values and introduced loss functions that measured the quality of that mapping for a dataset . Then, we discussed how to fit and measure the performance of these models.

The defining characteristic of unsupervised learning models is that they are learned from a set of observed data in the absence of labels. All unsupervised models share this property, but they have diverse goals. They may be used to generate plausible new samples from the dataset or to manipulate, denoise, interpolate between, or compress examples. They can also be used to reveal the internal structure of a dataset (e.g., by dividing it into coherent clusters) or to distinguish whether new examples belong to the same dataset or are outliers.

Latent variables

A common strategy in unsupervised learning is to define a mapping between the data examples and a set of unseen latent variables . These latent variables capture the underlying structure in the dataset and usually have a lower dimension than the original data; in this sense, a latent variable can be considered a compressed version of a data example that captures its essential qualities.

Taxonomy of unsupervised learning models

In principle, the mapping between the observed and latent variables can be in either direction.

  • Some models map from the data to the latent variables . For example, the K-means algorithm maps the data to cluster assignment .
  • Other models map from the latent variables to the data . Consider defining a distribution over the latent variable in these models. New examples can now be generated by (i) drawing from this distribution and (ii) mapping the sample to the data space . These are termed generative models.

dl
Latent variable
?

  • Latent variables capture the underlying structure in the dataset
  • Usually have a lower dimension than the original data; in this sense, a latent variable can be considered a compressed version of a data example that captures its essential qualities.
  • Generative models map from latent variables to the data .

+++