CLLGOct 29, 2020

AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts

arXiv:2010.15980v21325 citations
AI Analysis

This work addresses the challenge of efficiently eliciting knowledge from language models for researchers and practitioners, offering a parameter-free alternative to manual probing and potentially reducing reliance on finetuning as models advance.

The authors tackled the problem of manually creating prompts to probe knowledge in pretrained language models by developing AutoPrompt, an automated gradient-guided method for prompt generation, which enabled masked language models to perform sentiment analysis and natural language inference without finetuning, achieving performance competitive with state-of-the-art supervised models and improving factual knowledge extraction on benchmarks like LAMA.

The remarkable success of pretrained language models has motivated the study of what kinds of knowledge these models learn during pretraining. Reformulating tasks as fill-in-the-blanks problems (e.g., cloze tests) is a natural approach for gauging such knowledge, however, its usage is limited by the manual effort and guesswork required to write suitable prompts. To address this, we develop AutoPrompt, an automated method to create prompts for a diverse set of tasks, based on a gradient-guided search. Using AutoPrompt, we show that masked language models (MLMs) have an inherent capability to perform sentiment analysis and natural language inference without additional parameters or finetuning, sometimes achieving performance on par with recent state-of-the-art supervised models. We also show that our prompts elicit more accurate factual knowledge from MLMs than the manually created prompts on the LAMA benchmark, and that MLMs can be used as relation extractors more effectively than supervised relation extraction models. These results demonstrate that automatically generated prompts are a viable parameter-free alternative to existing probing methods, and as pretrained LMs become more sophisticated and capable, potentially a replacement for finetuning.

Code Implementations5 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes