AutoPrompt:利用自动生成的语句从语言模型中获取知识
AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts
摘要:
预训练语言模型的巨大成功促使人们研究这些模型在预训练过程中学习到了什么样的知识。将任务重新表述为填空题(例如,完形填空)是测量这些知识的自然方法,然而,它的使用受限于书写适当提示所需的手工努力和猜测。为了解决这个问题,我们开发了AutoPrompt,这是一种自动化的方法,可以根据梯度引导搜索为不同的任务创建提示。使用AutoPrompt,我们表明,掩蔽的语言模型(MLMs)具有固有的能力,执行情感分析和自然语言推理,而无需额外的参数或微调,有时达到与最近的国家的最先进的监督模型的性能。我们还表明,我们的提示引起更准确的事实知识MLMs比手动创建的提示LAMA基准,MLMs可以更有效地作为关系提取器比监督关系抽取模型。这些结果表明,自动生成的提示是现有探测方法的可行的无参数替代方案,并且随着预先训练的LM变得更加复杂和有能力,可能会取代微调。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。