vix.ing · top · new · best · stats · spec

BERTs are Generative In-Context Learners

2024/06/07 by David Samuel, Samuel, David · 4 voices · 3 citations
Computer Science · #Teaching and Learning Programming #cs.AI #cs.CL

paper · pdf · doi:10.48550/arxiv.2406.04823

openalex publication_date 2024/06/07 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

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.

Cited by

Discussions

Related