arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2111.01998cs.CLcs.AIcs.LG
收藏

OpenPrompt:一个开源的自主学习框架

OpenPrompt: An Open-source Framework for Prompt-learning

Tsinghua University(清华大学)

Ning Ding, Shengding Hu, Weilin Zhao, Yulin Chen, Zhiyuan Liu, Hai-Tao Zheng, Maosong Sun

摘要:

自动学习已经成为现代自然语言处理中的一种新范式,它直接使预训练的语言模型(PLM)适应$cloze$风格的预测、自回归建模或序列到序列生成,从而在各种任务上产生有希望的性能。然而,没有标准的实现框架,提出了尚未,和大多数现有的学习代码库,往往是不规范的,只提供有限的实现特定的场景。由于即时学习中需要考虑模板化策略、初始化策略、语言化策略等诸多细节,因此从业者面临着快速适应所需的即时学习方法以应用于其应用的障碍。在本文中,我们提出了{OpenPrompt},一个统一的易于使用的工具包进行跨PLM的学习。OpenPrompt是一个研究友好的框架,具有效率,模块化和可扩展性,其可组合性允许在统一的范式中自由组合不同的PLM,任务格式和提示模块。用户可以方便地部署自动学习框架,并评估它们在不同的NLP任务上的泛化能力,而不受限制。OpenPrompt在{ \url{ https://github.com/thunlp/OpenPrompt} }公开发布。

英文摘要:

Prompt-learning has become a new paradigm in modern natural language processing, which directly adapts pre-trained language models (PLMs) to $cloze$-style prediction, autoregressive modeling, or sequence to sequence generation, resulting in promising performances on various tasks. However, no standard implementation framework of prompt-learning is proposed yet, and most existing prompt-learning codebases, often unregulated, only provide limited implementations for specific scenarios. Since there are many details such as templating strategy, initializing strategy, and verbalizing strategy, etc. need to be considered in prompt-learning, practitioners face impediments to quickly adapting the desired prompt learning methods to their applications. In this paper, we present {OpenPrompt}, a unified easy-to-use toolkit to conduct prompt-learning over PLMs. OpenPrompt is a research-friendly framework that is equipped with efficiency, modularity, and extendibility, and its combinability allows the freedom to combine different PLMs, task formats, and prompting modules in a unified paradigm. Users could expediently deploy prompt-learning frameworks and evaluate the generalization of them on different NLP tasks without constraints. OpenPrompt is publicly released at {\url{ https://github.com/thunlp/OpenPrompt}}.

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

↑