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

知识型提示微调:将知识转化为文本分类提示动词

Knowledgeable Prompt-tuning: Incorporating Knowledge into Prompt Verbalizer for Text Classification

Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京信息科学与技术国家研究中心);Meituan(美团);International Innovation Center of Tsinghua University(清华大学国际创新中心)

Shengding Hu, Ning Ding, Huadong Wang, Zhiyuan Liu, Jingang Wang, Juanzi Li, Wei Wu, Maosong Sun

摘要:

调整预训练的语言模型(PLM)与特定任务的提示已经成为一种很有前途的文本分类方法。特别是,以前的研究表明,提示微调具有显着的优越性,在低数据的情况下,一般的微调方法与额外的分类器。提示微调的核心思想是插入文本片段,即,模板,并将分类问题转换为掩码语言建模问题,其中关键步骤是构建投影,即,在标签空间和标签词空间之间。语言化器通常是手工制作的或通过梯度下降搜索的,这可能缺乏覆盖范围,并给结果带来相当大的偏差和高方差。在这项工作中,我们专注于将外部知识纳入到动词,形成一个知识化的提示微调(KPT),以改善和稳定提示微调。具体来说,我们扩大的标签词空间的动词使用外部知识库(KBs)和细化扩展的标签词空间与PLM本身预测与扩展的标签词空间。零和Few-Shot文本分类任务的大量实验证明了知识提示微调的有效性。

英文摘要:

Tuning pre-trained language models (PLMs) with task-specific prompts has been a promising approach for text classification. Particularly, previous studies suggest that prompt-tuning has remarkable superiority in the low-data scenario over the generic fine-tuning methods with extra classifiers. The core idea of prompt-tuning is to insert text pieces, i.e., template, to the input and transform a classification problem into a masked language modeling problem, where a crucial step is to construct a projection, i.e., verbalizer, between a label space and a label word space. A verbalizer is usually handcrafted or searched by gradient descent, which may lack coverage and bring considerable bias and high variances to the results. In this work, we focus on incorporating external knowledge into the verbalizer, forming a knowledgeable prompt-tuning (KPT), to improve and stabilize prompt-tuning. Specifically, we expand the label word space of the verbalizer using external knowledge bases (KBs) and refine the expanded label word space with the PLM itself before predicting with the expanded label word space. Extensive experiments on zero and few-shot text classification tasks demonstrate the effectiveness of knowledgeable prompt-tuning.

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

↑