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

论提示调优在自然语言处理中的可迁移性

On Transferability of Prompt Tuning for Natural Language Processing

Tsinghua University(清华大学);Tencent Inc(腾讯公司);Institute for AI Industry Research (AIR)(人工智能产业研究院(AIR))

Yusheng Su, Xiaozhi Wang, Yujia Qin, Chi-Min Chan, Yankai Lin, Huadong Wang, Kaiyue Wen, Zhiyuan Liu, Peng Li, Juanzi Li, Lei Hou, Maosong Sun, Jie Zhou

AI总结:

本文系统研究软提示在任务与模型间的可迁移性,证明其可零样本迁移、加速并改善提示调优,并发现激活神经元重叠率是关键指标。

摘要:

提示调优(PT)是一种很有前景的参数高效方法,可用于利用超大规模预训练语言模型(PLM);它只需调优少量软提示,即可达到与全参数微调相当的性能。然而,PT 所需的训练时间远多于微调。直观上,知识迁移可以帮助提升效率。为探索能否通过提示迁移改进 PT,本文通过实验研究软提示在不同下游任务和不同 PLM 之间的可迁移性。我们发现:(1)在零样本设置下,训练得到的软提示能够有效迁移到同一 PLM 上的相似任务,也可借助在相似任务上训练的跨模型投影器迁移到其他 PLM;(2)当用作初始化时,相似任务的已训练软提示以及来自其他 PLM 的投影提示能够显著加快训练,并提升 PT 的性能。此外,为探究提示可迁移性的决定因素,我们研究了多种可迁移性指标,发现激活神经元的重叠率能够强烈反映可迁移性,这表明提示如何刺激 PLM 至关重要。研究结果表明,提示迁移有望改进 PT,未来研究应更关注提示对 PLM 的刺激作用。源代码可从 https://github.com/thunlp/Prompt-Transferability 获取。

英文摘要:

Prompt tuning (PT) is a promising parameter-efficient method to utilize extremely large pre-trained language models (PLMs), which can achieve comparable performance to full-parameter fine-tuning by only tuning a few soft prompts. However, PT requires much more training time than fine-tuning. Intuitively, knowledge transfer can help to improve the efficiency. To explore whether we can improve PT via prompt transfer, we empirically investigate the transferability of soft prompts across different downstream tasks and PLMs in this work. We find that (1) in zero-shot setting, trained soft prompts can effectively transfer to similar tasks on the same PLM and also to other PLMs with a cross-model projector trained on similar tasks; (2) when used as initialization, trained soft prompts of similar tasks and projected prompts of other PLMs can significantly accelerate training and also improve the performance of PT. Moreover, to explore what decides prompt transferability, we investigate various transferability indicators and find that the overlapping rate of activated neurons strongly reflects the transferability, which suggests how the prompts stimulate PLMs is essential. Our findings show that prompt transfer is promising for improving PT, and further research shall focus more on prompts' stimulation to PLMs. The source code can be obtained from https://github.com/thunlp/Prompt-Transferability.

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

↑