English

BERTs are Generative In-Context Learners

Computation and Language 2024-11-01 v2 Artificial Intelligence

Abstract

While in-context learning is commonly associated with causal language models, such as GPT, we demonstrate that this capability also 'emerges' in masked language models. Through an embarrassingly simple inference technique, we enable an existing masked model, DeBERTa, to perform generative tasks without additional training or architectural changes. Our evaluation reveals that the masked and causal language models behave very differently, as they clearly outperform each other on different categories of tasks. These complementary strengths suggest that the field's focus on causal models for in-context learning may be limiting - both architectures can develop these capabilities, but with distinct advantages; pointing toward promising hybrid approaches that combine the strengths of both objectives.

Keywords

Cite

@article{arxiv.2406.04823,
  title  = {BERTs are Generative In-Context Learners},
  author = {David Samuel},
  journal= {arXiv preprint arXiv:2406.04823},
  year   = {2024}
}

Comments

26 pages, NeurIPS 2024

R2 v1 2026-06-28T16:57:07.792Z