Headless Language Models: Learning without Predicting with Contrastive Weight Tying

Nathan Godey, Eric Villemonte de la Clergerie, Benoît Sagot
2/12/2026

No official code found. Best implementation: NathanGodey/headless-lm (29 stars, last commit 2024-04-17).

Abstract

Self-supervised pre-training of language models usually consists in predicting probability distributions over extensive token vocabularies. In this study, we propose an innovative method that shifts away from probability prediction and instead focuses on reconstructing input embeddings in a contrastive fashion via Constrastive Weight Tying (CWT). We apply this approach to pretrain Headless Language Models in both monolingual and multilingual contexts. Our method offers practical advantages, substantially reducing training computational requirements by up to 20 times, while simultaneously enhancing downstream performance and data efficiency. We observe a significant +1.6 GLUE score increase and a notable +2.7 LAMBADA accuracy improvement compared to classical LMs within similar compute budgets.

View on arXivView PDF

Code Implementations(1)

Training and evaluation code for the paper "Headless Language Models: Learning without Predicting with Contrastive Weight Tying" (https://arxiv.org/abs/2309.08351)

295PythonSep 20, 20232 years ago

Similar Papers

Cite this paper

@article{godey2026headless,
  title  = {Headless Language Models: Learning without Predicting with Contrastive Weight Tying},
  author = {Nathan Godey and Eric Villemonte de la Clergerie and Benoît Sagot},
  year   = {2026},
  eprint = {2309.08351},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2309.08351},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.08351.svg)](https://codeofpaper.com/paper/2309.08351)

Discussion