atlas

Research map / Architectures and efficiency / Attention and transformers

Headless Language Models: Learning without Predicting with Contrastive Weight Tying

ICLR 2024 · Architectures and efficiency › Attention and transformers · approach: Language model pretraining and induction · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Contrastive Weight Tying (CWT), replacing the cross-entropy/vocabulary projection in LM pretraining with an in-batch contrastive loss that reconstructs input embeddings, yielding Headless LMs that are cheaper and often better on GLUE, LAMBADA, and XNLI.

Problem

Self-supervised language model pretraining relies on predicting distributions over large vocabularies via a projection head, which costs memory and compute and limits scaling to large vocabularies.

Approach

Drop the softmax/vocabulary projection and instead train the model's output representations to contrastively match the input embeddings of the original tokens, using in-batch samples as negatives, as the sole pretraining objective (Contrastive Weight Tying).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Contrastive Weight Tying instead of vanilla MLM pretrainingBERT-base · GLUE dev at 4.1B pretraining tokensaverage score: 82.43 -> 83.29Helped
Use Contrastive Weight Tying instead of vanilla MLM pretrainingBERT-base · GLUE dev at similar pretraining durationaverage score: 82.43 -> 84.08Helped
Use Contrastive Weight Tying instead of vanilla MLM pretrainingBERT-base · SuperGLUE devaverage accuracy: 67.9 -> 68.6Helped
Add predictive CLM fine-tuning after CWT pretraining (ablation)Pythia-70M HLM · LAMBADAaccuracy: 18.26 -> 22.2Helped
Add predictive CLM fine-tuning after CWT pretraining (ablation)Pythia-70M HLM · LAMBADAperplexity: 524.44 -> 153.5Helped
Use Contrastive Weight Tying instead of vanilla MLM pretrainingDistilBERT multilingual · XNLI dev, English-only fine-tuningaverage accuracy: 55.37 -> 57.36Helped
Use Contrastive Weight Tying instead of vanilla MLM pretrainingDistilBERT multilingual · XNLI dev, target-language fine-tuningaverage accuracy: 62.87 -> 65.54Helped
Use CWT pretraining and predictive fine-tuning instead of vanilla CLMPythia-70M · LM Evaluation Harness zero-shot BoolQaccuracy: 47.8 -> 53.0Helped
Use CWT pretraining and predictive fine-tuning instead of vanilla CLMPythia-70M · LM Evaluation Harness zero-shot PubMedQAaccuracy: 43.8 -> 47.5Helped
Use CWT pretraining and predictive fine-tuning instead of vanilla CLMPythia-70M · LM Evaluation Harness zero-shot QASPERaccuracy: 41.9 -> 66.0Helped
Use regular rather than balanced cross-entropy for fine-tuning (ablation)Monolingual encoder models · GLUE devaverage score: 81.5 vs 82.43; 83.19 vs 83.29No clear effect
Increase the CWT micro-batch size (ablation)Headless models · LAMBADAaccuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: OpenWebText2 multilingual Wikipedia CC-News GLUE SuperGLUE LAMBADA XNLI WordNet

Benchmarks: GLUE SuperGLUE LAMBADA LM Evaluation Harness subset (ARC, BoolQ, CrowS-Pairs, RACE, SciQ, PubMedQA, QASPER) XNLI

Metrics: accuracy Matthews correlation Spearman correlation perplexity GPU hours stereotype percentage

Baselines: Vanilla MLM (BERT-base) Vanilla CLM (Pythia-70M) Vanilla multilingual MLM (distilled mBERT)

Builds on: BERT weight tying Pythia ELECTRA SimCTG

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy