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

PTR:基于文本分类规则的提示微调

PTR: Prompt Tuning with Rules for Text Classification

Tsinghua University(清华大学)

Xu Han, Weilin Zhao, Ning Ding, Zhiyuan Liu, Maosong Sun

摘要:

微调的预训练语言模型(PLM)在几乎所有NLP任务上都取得了令人敬畏的性能。通过使用额外的提示来微调PLM,我们可以进一步激发分布在PLM中的丰富知识,以更好地服务于下游任务。提示微调在情感分类和自然语言推理等少类分类任务上取得了可喜的成果。然而,手工设计大量的语言提示是繁琐和容易出错的。对于那些自动生成的提示,在非少数拍摄场景中验证其有效性也是昂贵且耗时的。因此,它仍然是具有挑战性的提示微调,以解决多类分类任务。为此,我们提出了提示微调与规则(PTR)的多类文本分类,并应用逻辑规则来构建提示与几个子提示。以这种方式,PTR能够将每个类的先验知识编码为提示微调。我们进行实验的关系分类,一个典型的和复杂的多类分类任务,结果表明,PTR可以显着和一贯优于现有的最先进的基线。这表明,PTR是一种很有前途的方法,利用人类的先验知识和PLM的复杂的分类任务。

英文摘要:

Fine-tuned pre-trained language models (PLMs) have achieved awesome performance on almost all NLP tasks. By using additional prompts to fine-tune PLMs, we can further stimulate the rich knowledge distributed in PLMs to better serve downstream tasks. Prompt tuning has achieved promising results on some few-class classification tasks such as sentiment classification and natural language inference. However, manually designing lots of language prompts is cumbersome and fallible. For those auto-generated prompts, it is also expensive and time-consuming to verify their effectiveness in non-few-shot scenarios. Hence, it is still challenging for prompt tuning to address many-class classification tasks. To this end, we propose prompt tuning with rules (PTR) for many-class text classification and apply logic rules to construct prompts with several sub-prompts. In this way, PTR is able to encode prior knowledge of each class into prompt tuning. We conduct experiments on relation classification, a typical and complicated many-class classification task, and the results show that PTR can significantly and consistently outperform existing state-of-the-art baselines. This indicates that PTR is a promising approach to take advantage of both human prior knowledge and PLMs for those complicated classification tasks.

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

↑