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

HPT:层次感知的文本分类提示微调

HPT: Hierarchy-aware Prompt Tuning for Hierarchical Text Classification

Peking University(北京大学);Tencent Cloud Xiaowei(腾讯云小微)

Zihan Wang, Peiyi Wang, Tianyu Liu, Binghuai Lin, Yunbo Cao, Zhifang Sui, Houfeng Wang

摘要:

层次文本分类(HTC)是一个具有挑战性的子任务,多标签分类,由于其复杂的标签层次。最近,预训练的语言模型(PLM)已被广泛采用的HTC通过微调范例。然而,在这种模式下,具有复杂标签层次的分类任务与PLM的屏蔽语言模型(MLM)预训练任务之间存在巨大差距,PLM的潜力无法充分发挥。为了弥补这一差距,在本文中,我们提出了HPT,层次意识的提示微调方法来处理HTC从多标签传销的角度来看。具体而言,我们构建了一个动态的虚拟模板和标签的话,采取软提示的形式融合的标签层次知识,并引入一个零界的多标签交叉熵损失,以协调HTC和传销的目标。大量的实验表明,HPT在3个流行的HTC数据集上实现了最先进的性能,并且擅长处理不平衡和低资源情况。我们的代码可在https://github.com/wzh9969/HPT上获得。

英文摘要:

Hierarchical text classification (HTC) is a challenging subtask of multi-label classification due to its complex label hierarchy. Recently, the pretrained language models (PLM)have been widely adopted in HTC through a fine-tuning paradigm. However, in this paradigm, there exists a huge gap between the classification tasks with sophisticated label hierarchy and the masked language model (MLM) pretraining tasks of PLMs and thus the potentials of PLMs can not be fully tapped. To bridge the gap, in this paper, we propose HPT, a Hierarchy-aware Prompt Tuning method to handle HTC from a multi-label MLM perspective. Specifically, we construct a dynamic virtual template and label words that take the form of soft prompts to fuse the label hierarchy knowledge and introduce a zero-bounded multi-label cross entropy loss to harmonize the objectives of HTC and MLM. Extensive experiments show HPT achieves state-of-the-art performances on 3 popular HTC datasets and is adept at handling the imbalance and low resource situations. Our code is available at https://github.com/wzh9969/HPT.

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

↑