文本嫁接:面向文本分类中少数类的近分布弱监督
Text Grafting: Near-Distribution Weak Supervision for Minority Classes in Text Classification
AI总结:
本文提出文本嫁接框架,通过从原始语料挖掘掩码模板并用大语言模型填充,为少数类合成近分布弱监督文本,从而提升极弱监督文本分类性能。
摘要:
对于极弱监督的文本分类,先驱研究通过从原始语料库中挖掘与类名相似的文本来生成伪标签,但这可能导致少数类样本非常有限甚至没有样本。近期工作开始通过使用类名或定义提示大语言模型来生成相关文本;然而,大语言模型很可能无法生成分布内(即与文本分类器将要应用的语料库相似)的数据,从而导致分类器泛化能力差。在本文中,我们结合了这两种方法的优势,并提出通过一个新颖的框架——文本嫁接——来弥合这一差距,该框架旨在为少数类获取干净且近分布的弱监督。具体来说,我们首先利用基于大语言模型的logits从原始语料库中挖掘掩码模板,这些模板具有很高的潜力将数据合成到目标少数类中。然后,这些模板由最先进的大语言模型填充,以合成落入少数类的近分布文本。文本嫁接在少数类上相比直接挖掘或直接合成显示出显著改进。我们还通过分析和案例研究来理解文本嫁接的性质。
英文摘要:
For extremely weak-supervised text classification, pioneer research generates pseudo labels by mining texts similar to the class names from the raw corpus, which may end up with very limited or even no samples for the minority classes. Recent works have started to generate the relevant texts by prompting LLMs using the class names or definitions; however, there is a high risk that LLMs cannot generate in-distribution (i.e., similar to the corpus where the text classifier will be applied) data, leading to ungeneralizable classifiers. In this paper, we combine the advantages of these two approaches and propose to bridge the gap via a novel framework, \emph{text grafting}, which aims to obtain clean and near-distribution weak supervision for minority classes. Specifically, we first use LLM-based logits to mine masked templates from the raw corpus, which have a high potential for data synthesis into the target minority class. Then, the templates are filled by state-of-the-art LLMs to synthesize near-distribution texts falling into minority classes. Text grafting shows significant improvement over direct mining or synthesis on minority classes. We also use analysis and case studies to comprehend the property of text grafting.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。