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

面向少样本层次文本分类的检索式上下文学习

Retrieval-style In-Context Learning for Few-shot Hierarchical Text Classification

Institute of Computing and Intelligence, Harbin Institute of Technology(哈尔滨工业大学计算与智能学院);College of Intelligence and Computing, Tianjin University(天津大学智能与计算学院)

Huiyao Chen, Yu Zhao, Zulong Chen, Mengjia Wang, Liangyue Li, Meishan Zhang, Min Zhang

AI总结:

本文提出首个基于LLM的检索式上下文学习框架用于少样本层次文本分类,通过标签感知检索表示和迭代标签管理策略,在三个基准数据集上取得最先进结果。

摘要:

层次文本分类(HTC)是一项具有广泛应用的重要任务,而少样本HTC近年来受到越来越多的关注。虽然基于大语言模型(LLMs)的上下文学习(ICL)在少样本学习中取得了显著成功,但由于层次标签集庞大且标签极其模糊,ICL在HTC上效果不佳。本文提出了首个基于LLM和ICL的少样本HTC框架。我们利用检索数据库来识别相关演示,并采用迭代策略来管理多层层次标签。特别地,我们为输入文本配备了具有HTC标签感知表示的检索数据库,该表示通过在预训练语言模型上进行持续训练获得,训练目标包括掩码语言建模(MLM)、逐层分类(CLS,专门用于HTC)以及一种新颖的发散对比学习(DCL,主要针对相邻语义相似标签)目标。在三个基准数据集上的实验结果表明,我们的方法具有优越的性能,并且我们能够在少样本HTC中取得最先进的结果。

英文摘要:

Hierarchical text classification (HTC) is an important task with broad applications, while few-shot HTC has gained increasing interest recently. While in-context learning (ICL) with large language models (LLMs) has achieved significant success in few-shot learning, it is not as effective for HTC because of the expansive hierarchical label sets and extremely-ambiguous labels. In this work, we introduce the first ICL-based framework with LLM for few-shot HTC. We exploit a retrieval database to identify relevant demonstrations, and an iterative policy to manage multi-layer hierarchical labels. Particularly, we equip the retrieval database with HTC label-aware representations for the input texts, which is achieved by continual training on a pretrained language model with masked language modeling (MLM), layer-wise classification (CLS, specifically for HTC), and a novel divergent contrastive learning (DCL, mainly for adjacent semantically-similar labels) objective. Experimental results on three benchmark datasets demonstrate superior performance of our method, and we can achieve state-of-the-art results in few-shot HTC.

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

↑