TransPrompt v2:用于跨任务文本分类的可迁移提示框架
TransPrompt v2: A Transferable Prompting Framework for Cross-task Text Classification
AI总结:
TransPrompt v2提出一种可迁移提示框架,通过元学习和去偏技术实现跨任务少样本文本分类,提升模型在未见任务上的性能。
摘要:
文本分类是自然语言处理(NLP)中最关键的任务之一。近年来,预训练语言模型(PLMs)在该任务上取得了显著的成功。然而,PLMs所取得的令人满意的结果在很大程度上依赖于大量的任务特定标注数据,在许多应用场景中,由于数据访问和隐私限制,这可能不可行。最近提出的基于提示的微调范式通过任务特定的模板提高了PLMs在少样本文本分类中的性能。然而,目前尚不清楚提示知识如何在任务之间进行迁移,以实现相互增强。我们提出了TransPrompt v2,一种新颖的可迁移提示框架,用于在相似或不同的文本分类任务中进行少样本学习。对于相似任务间的学习,我们采用多任务元知识获取(MMA)程序来训练一个元学习器,该元学习器捕获跨任务的可迁移知识。对于不同任务间的学习,我们进一步将任务类型描述注入提示中,并捕获多个不同任务之间的类型内和类型间提示嵌入。此外,还设计了两种去偏技术,使训练好的元学习器更加任务无关,并对任何任务无偏见。之后,元学习器可以通过更好的参数初始化适应每个特定任务。大量实验表明,TransPrompt v2在多个NLP任务和数据集上优于单任务和跨任务的强基线。我们进一步表明,元学习器可以有效提高PLMs在未见过的任务上的性能。此外,当使用完整训练集进行学习时,TransPrompt v2也优于强微调基线。
英文摘要:
Text classification is one of the most imperative tasks in natural language processing (NLP). Recent advances with pre-trained language models (PLMs) have shown remarkable success on this task. However, the satisfying results obtained by PLMs heavily depend on the large amounts of task-specific labeled data, which may not be feasible in many application scenarios due to data access and privacy constraints. The recently-proposed prompt-based fine-tuning paradigm improves the performance of PLMs for few-shot text classification with task-specific templates. Yet, it is unclear how the prompting knowledge can be transferred across tasks, for the purpose of mutual reinforcement. We propose TransPrompt v2, a novel transferable prompting framework for few-shot learning across similar or distant text classification tasks. For learning across similar tasks, we employ a multi-task meta-knowledge acquisition (MMA) procedure to train a meta-learner that captures the cross-task transferable knowledge. For learning across distant tasks, we further inject the task type descriptions into the prompt, and capture the intra-type and inter-type prompt embeddings among multiple distant tasks. Additionally, two de-biasing techniques are further designed to make the trained meta-learner more task-agnostic and unbiased towards any tasks. After that, the meta-learner can be adapted to each specific task with better parameters initialization. Extensive experiments show that TransPrompt v2 outperforms single-task and cross-task strong baselines over multiple NLP tasks and datasets. We further show that the meta-learner can effectively improve the performance of PLMs on previously unseen tasks. In addition, TransPrompt v2 also outperforms strong fine-tuning baselines when learning with full training sets.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。