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

检索增强的零样本文本分类

Retrieval Augmented Zero-Shot Text Classification

Tassallah Abdullahi, Ritambhara Singh, Carsten Eickhoff

AI总结:

本文提出无需训练的知识增强方法QZero,通过从Wikipedia检索支持类别重新表述查询,提升零样本文本分类性能,使小模型媲美大模型并节省计算资源。

摘要:

零样本文本学习使文本分类器能够高效处理未见过的类别,从而减轻对特定任务训练数据的需求。一种简单的方法通常依赖于将查询(文本)的嵌入与潜在类别的嵌入进行比较。然而,简单查询的嵌入有时缺乏丰富的上下文信息,这阻碍了分类性能。传统上,这一问题通过昂贵的训练来改进嵌入模型来解决。我们引入了QZero,这是一种新颖的无需训练的知识增强方法,它通过从Wikipedia检索支持类别来重新表述查询,以提高零样本文本分类性能。我们在六个多样化数据集上的实验表明,QZero无需重新训练即可提升最先进的静态和上下文嵌入模型的性能。值得注意的是,在新闻和医学主题分类任务中,QZero甚至将最大的OpenAI嵌入模型的性能分别提高了至少5%和3%。作为知识放大器,QZero使小型词嵌入模型能够达到与较大上下文模型相当的性能水平,为显著节省计算资源提供了可能。此外,QZero提供了有意义的见解,阐明查询上下文并验证主题相关性,有助于理解模型预测。总体而言,QZero在保持基于嵌入的零样本分类器简单性的同时改进了其性能。这使其特别适用于资源受限的环境和信息不断演变的领域。

英文摘要:

Zero-shot text learning enables text classifiers to handle unseen classes efficiently, alleviating the need for task-specific training data. A simple approach often relies on comparing embeddings of query (text) to those of potential classes. However, the embeddings of a simple query sometimes lack rich contextual information, which hinders the classification performance. Traditionally, this has been addressed by improving the embedding model with expensive training. We introduce QZero, a novel training-free knowledge augmentation approach that reformulates queries by retrieving supporting categories from Wikipedia to improve zero-shot text classification performance. Our experiments across six diverse datasets demonstrate that QZero enhances performance for state-of-the-art static and contextual embedding models without the need for retraining. Notably, in News and medical topic classification tasks, QZero improves the performance of even the largest OpenAI embedding model by at least 5% and 3%, respectively. Acting as a knowledge amplifier, QZero enables small word embedding models to achieve performance levels comparable to those of larger contextual models, offering the potential for significant computational savings. Additionally, QZero offers meaningful insights that illuminate query context and verify topic relevance, aiding in understanding model predictions. Overall, QZero improves embedding-based zero-shot classifiers while maintaining their simplicity. This makes it particularly valuable for resource-constrained environments and domains with constantly evolving information.

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

↑