arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.02318cs.LGcs.CL
收藏

循环中的语言模型:将编译转换为弱监督

Language Models in the Loop: Incorporating Prompting into Weak Supervision

Snorkel AI;Stanford University(斯坦福大学);Brown University(布朗大学)

Ryan Smith, Jason A. Fries, Braden Hancock, Stephen H. Bach

摘要:

我们提出了一种新的策略,当标记的训练数据有限时,将大型预训练语言模型应用于新任务。而不是在一个典型的zero-shot或Few-Shot的时尚应用模型,我们把模型作为标记功能在一个弱监督框架的基础。为了创建一个分类器,我们首先提示模型回答关于一个例子的多个不同的查询,并定义如何将可能的响应映射到标签和弃权的投票。然后,我们去噪这些嘈杂的标签源使用的Snorkel系统和训练的最终分类与所得的训练数据。我们的实验评估表明,在弱监督框架内提示大语言模型可以显著提高准确性。在WRENCH弱监督基准测试中,这种方法可以显著提高超过zero-shot的性能,平均减少19.5%的错误。我们还发现,这种方法产生的分类器具有可比或更高的准确性,从手工设计的规则训练。

英文摘要:

We propose a new strategy for applying large pre-trained language models to novel tasks when labeled training data is limited. Rather than apply the model in a typical zero-shot or few-shot fashion, we treat the model as the basis for labeling functions in a weak supervision framework. To create a classifier, we first prompt the model to answer multiple distinct queries about an example and define how the possible responses should be mapped to votes for labels and abstentions. We then denoise these noisy label sources using the Snorkel system and train an end classifier with the resulting training data. Our experimental evaluation shows that prompting large language models within a weak supervision framework can provide significant gains in accuracy. On the WRENCH weak supervision benchmark, this approach can significantly improve over zero-shot performance, an average 19.5% reduction in errors. We also find that this approach produces classifiers with comparable or superior accuracy to those trained from hand-engineered rules.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑