ElemedexA pocket encyclopedia of AI architectures

Glossary (TM) › Machine learning fundamentals

TM030

Self-supervised learning

Also: self-supervision

In Spanish: Aprendizaje autosupervisado

Learning in which the correct answers are extracted automatically from the data themselves, for example by hiding a word and asking for it to be guessed.

The trick is to manufacture a supervised problem without a supervisor. Take a piece of data, hide or corrupt part of it, and train the model to reconstruct it: the correct answer was already in the data. Chollet (2021) defines it as the case in which targets are obtained from the inputs themselves (2021, sec. 7.4). Examples:

Its practical importance is enormous. Since it requires no human annotation, it makes web-scale text usable: a corpus of trillions of tokens (Llama 2 was trained on 2 trillion (Alammar & Grootendorst, 2024, p. 26)) becomes trillions of exercises that grade themselves. This is the basis of the pretraining of large language models, and the reason human data annotation has been pushed to later, smaller stages such as fine-tuning or RLHF.

For the philosopher, the word "supervised" deserves suspicion. Nobody judges here whether a prediction was correct in any normative sense: the only yardstick is which word actually appeared in the text. The corpus acts as teacher, but a teacher who knows only what was said, not what ought to have been said. Whether that is enough to acquire something like meaning is one of the deep questions about language models (see form vs meaning).

Sources

  • Alammar, J., & Grootendorst, M. (2024). Hands-on large language models: Language understanding and generation. O’Reilly Media. §
  • Chollet, F. (2021). Deep learning with Python (2nd ed.). Manning Publications. §
  • Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019). BERT: Pre-training of deep bidirectional transformers for language understanding. In J. Burstein, C. Doran, & T. Solorio (Eds.), Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) (pp. 4171–4186). Association for Computational Linguistics. https://doi.org/10.18653/v1/N19-1423 §