# Contrastive predictive coding

Type: Concept

Contrastive predictive coding is a method for learning representations from unlabelled data by predicting related future observations in a latent space. Aäron van den Oord, Yazhe Li and Oriol Vinyals described the approach in 2018.[1]

## Prediction in the learned representation

The method encodes observations and summarizes the available past. It compares the encoded observation that actually follows that context with examples sampled elsewhere. Its contrastive objective encourages the representation to preserve the aspects of the observation that are useful in predicting future samples. [1]

## Experiments across data types

The original paper studied the resulting representations in speech, images, text and reinforcement learning in three-dimensional environments. The authors used these experiments to test whether the same basic predictive objective could produce useful features in settings that otherwise have very different input structures. [1]

## Related articles

- [Self-supervised pretraining](/wiki/self-supervised-pretraining/)

## References

1. [Contrastive predictive coding learns representations by predicting future inputs](https://arxiv.org/abs/1807.03748)
