arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.04392cs.CLcs.AIcs.IRcs.LG
收藏

面向预训练语言模型的对比演示调优

Contrastive Demonstration Tuning for Pre-trained Language Models

Zhejiang University(浙江大学);Hangzhou Innovation Center, Zhejiang University(浙江大学杭州创新中心);Alibaba Group(阿里巴巴集团)

Xiaozhuan Liang, Ningyu Zhang, Siyuan Cheng, Zhenru Zhang, Chuanqi Tan, Huajun Chen

AI总结:

本文提出对比演示调优方法,无需采样演示即可增强预训练语言模型的提示调优性能,可插拔扩展至多类别分类任务,并在16个数据集上验证优于LM-BFF和P-tuning。

摘要:

预训练语言模型可以通过文本提示或演示被有效激发,尤其是在低数据场景下。最近的工作集中于自动搜索离散或连续的提示或优化的verbalizer,然而针对演示的研究仍然有限。具体而言,演示示例对于提示调优最终性能的优异表现至关重要。本文提出了一种新颖的可插拔、可扩展且高效的方法,称为对比演示调优(contrastive demonstration tuning),该方法无需进行演示采样。此外,所提出的方法可以:(i)插入到任何先前的提示调优方法中;(ii)扩展到具有大量类别的广泛分类任务。在16个数据集上的实验结果表明,我们的方法与先前方法LM-BFF和P-tuning集成后能够取得更好的性能。代码可在 https://github.com/zjunlp/PromptKG/tree/main/research/Demo-Tuning 获取。

英文摘要:

Pretrained language models can be effectively stimulated by textual prompts or demonstrations, especially in low-data scenarios. Recent works have focused on automatically searching discrete or continuous prompts or optimized verbalizers, yet studies for the demonstration are still limited. Concretely, the demonstration examples are crucial for an excellent final performance of prompt-tuning. In this paper, we propose a novel pluggable, extensible, and efficient approach named contrastive demonstration tuning, which is free of demonstration sampling. Furthermore, the proposed approach can be: (i) Plugged into any previous prompt-tuning approaches; (ii) Extended to widespread classification tasks with a large number of categories. Experimental results on 16 datasets illustrate that our method integrated with previous approaches LM-BFF and P-tuning can yield better performance. Code is available in https://github.com/zjunlp/PromptKG/tree/main/research/Demo-Tuning.

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

↑