atlas

Research map / Large language models / Language, safety and interpretability

BERTs are Generative In-Context Learners

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Faithfulness of LLM explanations · 3 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.

Shows that masked language models (DeBERTa) can perform generative in-context learning via a simple input-reformatting inference trick (appending [MASK] tokens) and an interpolated pseudo-log-likelihood ranking, without any training, and compares them to GPT-3 across SuperGLUE, translation, QA and commonsense tasks.

Problem

Masked language models are assumed to be unable to perform generative in-context learning, which is usually associated only with causal LMs such as GPT-3.

Approach

Repurpose an off-the-shelf DeBERTa for left-to-right generation by appending [MASK] tokens (plus two extra masks before [SEP]) and for ranking by a PLL variant that masks two extra right-context tokens; no additional training or architectural change is needed.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use DeBERTa with the paper's masked-token inference method rather than GPT-3SuperGLUE · SuperGLUE (1-shot average)accuracy: 57.8 -> 68.4Helped
Use DeBERTa with the paper's masked-token inference method rather than GPT-3Text completion and Winograd-style tasks · Text completion and Winograd-style tasks (1-shot average)accuracy: 65.9 -> 72.8Helped
Use DeBERTa with the paper's masked-token inference method rather than GPT-3Machine translation · Machine translation (1-shot average)SacreBLEU: 18.8 -> 13.8Hurt
Use DeBERTa with the paper's masked-token inference method rather than GPT-3Closed-book QA and commonsense reasoning · Closed-book QA and commonsense reasoning (1-shot average)accuracy: 36.3 -> 33.3Hurt
Increase autoregressive generation masks from one to three (ablation)DeBERTa 1.5B · German-to-English translation (1-shot)SacreBLEU: 10.0 -> 23.7Helped
Increase autoregressive generation masks from two to three (ablation)DeBERTa 1.5B · German-to-English translation (1-shot)SacreBLEU: 22.4 -> 23.7Helped
Increase autoregressive generation masks from three to four (ablation)DeBERTa 1.5B · German-to-English translation (1-shot)SacreBLEU: 23.7 -> 23.9Helped
Use autoregressive generation instead of Markov-chain Monte-Carlo sampling (ablation)DeBERTa 1.5B · German-to-English translation (1-shot)SacreBLEU: 1.6 -> 23.7; 2.6 -> 23.7Helped
Mask the target and two following subwords instead of only the target subword (ablation)DeBERTa 1.5B ranking · ReCoRD (zero-shot)exact match: 80.9 -> 87.1Helped
Use three masks rather than two for pseudo-log-likelihood ranking (ablation)DeBERTa 1.5B ranking · ReCoRD (zero-shot)exact match: 86.0 -> 87.1Helped
Use four masks instead of three for pseudo-log-likelihood ranking (ablation)DeBERTa 1.5B ranking · ReCoRD (zero-shot)exact match: 87.1 -> 86.9Hurt
Use exact unidirectional log-likelihood instead of three-mask pseudo-log-likelihood (ablation)DeBERTa 1.5B ranking · ReCoRD (zero-shot)exact match: 87.1 -> 77.2Hurt

Surprising findings

Limitations

Experimental setup

Datasets: SuperGLUE WMT14 French-English WMT16 Romanian-English WMT16 German-English Natural Questions Web Questions TriviaQA PIQA ARC OpenBookQA HellaSwag StoryCloze

Benchmarks: SuperGLUE HellaSwag StoryCloze Winograd Winogrande WMT translation pairs Natural Questions Web Questions TriviaQA PIQA ARC-Easy ARC-Challenge

Metrics: accuracy exact match F1 SacreBLEU

Baselines: GPT-3 1.3B GPT-3 175B OPT 1.3B Gibbs sampling for BERT generation finetuned BERT-large

Builds on: GPT-3 DeBERTa pseudo-log-likelihood scoring RULER

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