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

MetricPrompt:将提示模型用作少样本文本分类的相关性度量

MetricPrompt: Prompting Model as a Relevance Metric for Few-shot Text Classification

Harbin Institute of Technology(哈尔滨工业大学)

Hongyuan Dong, Weinan Zhang, Wanxiang Che

AI总结:

针对少样本文本分类中提示模型依赖言语化器设计的问题,提出将任务重构为文本对相关性估计的MetricPrompt方法,用提示模型作相关性度量,在多数据集少样本设置下达SOTA性能。

摘要:

提示方法在各类文本挖掘任务与应用中展现出了出色性能,尤其在少样本场景下表现突出。尽管前景可观,提示模型的性能很大程度上依赖于提示模板与言语化器(verbalizer)的设计。本研究提出MetricPrompt,通过将少样本文本分类任务重构为文本对相关性估计任务,降低了言语化器的设计难度。MetricPrompt采用提示模型作为相关性度量,进一步缩小了预训练语言模型(PLM)的预训练目标与文本分类任务之间的差距,使PLM能够平滑适配。该方法同时输入一个训练样本与一个查询样本,捕捉跨样本相关性信息,以实现精准的相关性估计。我们在三个广泛使用的文本分类数据集上、四种少样本设置下开展实验。结果表明,MetricPrompt在所有少样本设置下均优于手动言语化器及其他自动言语化器设计方法,取得了全新的当前最优(SOTA)性能。

英文摘要:

Prompting methods have shown impressive performance in a variety of text mining tasks and applications, especially few-shot ones. Despite the promising prospects, the performance of prompting model largely depends on the design of prompt template and verbalizer. In this work, we propose MetricPrompt, which eases verbalizer design difficulty by reformulating few-shot text classification task into text pair relevance estimation task. MetricPrompt adopts prompting model as the relevance metric, further bridging the gap between Pre-trained Language Model's (PLM) pre-training objective and text classification task, making possible PLM's smooth adaption. Taking a training sample and a query one simultaneously, MetricPrompt captures cross-sample relevance information for accurate relevance estimation. We conduct experiments on three widely used text classification datasets across four few-shot settings. Results show that MetricPrompt outperforms manual verbalizer and other automatic verbalizer design methods across all few-shot settings, achieving new state-of-the-art (SOTA) performance.

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

↑