arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.01958cs.CLcs.AI
收藏

预训练语言模型的实例提示微调

Instance-wise Prompt Tuning for Pretrained Language Models

Peking University(北京大学);Alibaba Group(阿里巴巴集团)

Yuezihan Jiang, Hao Yang, Junyang Lin, Hanyu Zhao, An Yang, Chang Zhou, Hongxia Yang, Zhi Yang, Bin Cui

摘要:

快速学习最近在弥合预训练任务和各种下游任务之间的差距方面获得了很大的普及。它冻结了预训练的语言模型(PLM),只为下游任务调整了一些与任务相关的参数(提示),大大降低了调整巨型模型的成本。实现这一点的关键是使用提示中包含的特定于任务的知识查询PLM的想法。本文揭示了现有方法的一个主要局限性,即对任务中所有输入数据的无差别提示忽略了来自输入数据的内在知识,导致次优性能。我们介绍实例明智的提示微调(IPT),第一提示学习范式,注入知识的输入数据实例的提示,从而提供更丰富和更具体的上下文信息的PLM。我们设计了一系列策略来生成实例提示,解决模型质量和成本效率等各种问题。在多个任务和资源设置中,IPT的性能明显优于基于任务的即时学习方法,并且仅用0.5% - 1.5%的调整参数就达到了与传统微调相当的性能。

英文摘要:

Prompt Learning has recently gained great popularity in bridging the gap between pretraining tasks and various downstream tasks. It freezes Pretrained Language Models (PLMs) and only tunes a few task-related parameters (prompts) for downstream tasks, greatly reducing the cost of tuning giant models. The key enabler of this is the idea of querying PLMs with task-specific knowledge implicated in prompts. This paper reveals a major limitation of existing methods that the indiscriminate prompts for all input data in a task ignore the intrinsic knowledge from input data, resulting in sub-optimal performance. We introduce Instance-wise Prompt Tuning (IPT), the first prompt learning paradigm that injects knowledge from the input data instances to the prompts, thereby providing PLMs with richer and more concrete context information. We devise a series of strategies to produce instance-wise prompts, addressing various concerns like model quality and cost-efficiency. Across multiple tasks and resource settings, IPT significantly outperforms task-based prompt learning methods, and achieves comparable performance to conventional finetuning with only 0.5% - 1.5% of tuned parameters.

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

↑