{"slug":"contrastive-predictive-coding","article":{"kind":"article","title":"Contrastive predictive coding","category":"Concepts","entityType":"concept","summary":"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.","sources":["source:ref-58eb91c07ab3"],"relations":[{"to":"article:self-supervised-pretraining","rel":"related"}],"id":"article:contrastive-predictive-coding","from":"2026-11-28","revision":"58ff02f4b64d6aecc1e9fd90152fc89af0215a25d336308b35b4b75833582534","recordedAt":"2026-11-28T23:42:44.620Z"},"sections":[{"kind":"section","article":"article:contrastive-predictive-coding","title":"Prediction in the learned representation","text":"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.","order":0,"sources":["source:ref-58eb91c07ab3"],"id":"section:contrastive-predictive-coding-objective","from":"2026-11-28","revision":"58ff02f4b64d6aecc1e9fd90152fc89af0215a25d336308b35b4b75833582534","recordedAt":"2026-11-28T23:42:44.620Z"},{"kind":"section","article":"article:contrastive-predictive-coding","title":"Experiments across data types","text":"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.","order":1,"sources":["source:ref-58eb91c07ab3"],"id":"section:contrastive-predictive-coding-evaluation","from":"2026-11-28","revision":"58ff02f4b64d6aecc1e9fd90152fc89af0215a25d336308b35b4b75833582534","recordedAt":"2026-11-28T23:42:44.620Z"}],"events":[],"examples":[],"links":[],"sources":[{"kind":"source","title":"Contrastive predictive coding learns representations by predicting future inputs","url":"https://arxiv.org/abs/1807.03748","id":"source:ref-58eb91c07ab3","from":"2026-11-25","revision":"20585ad96f8a42f359db8075c5966dc2f17a11f966f4395d28677f15b20f36c0","recordedAt":"2026-11-25T10:40:20.496Z"}],"related":[{"slug":"self-supervised-pretraining","title":"Self-supervised pretraining","category":"AI Engineering Subjects","entityType":"pattern","rel":"related"}],"backlinks":[],"history":[{"id":"58ff02f4b64d6aecc1e9fd90152fc89af0215a25d336308b35b4b75833582534","recordedAt":"2026-11-28T23:42:44.620Z","message":"Publish sourced articles and connect reviewed subjects and dated records"}]}
