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

通过指令微调基于词嵌入的检索增强大型语言模型来改进少样本跨域命名实体识别

Improving Few-Shot Cross-Domain Named Entity Recognition by Instruction Tuning a Word-Embedding based Retrieval Augmented Large Language Model

IIT Kanpur(印度坎普尔理工学院);IISc Bangalore(班加罗尔理工学院)

Subhadip Nandi, Neeraj Agrawal

AI总结:

本文提出IF-WRANER,通过指令微调、正则化和词级嵌入检索增强LLM,提升少样本跨域NER性能,并在CrossNER及企业客服场景验证效果。

摘要:

少样本跨域NER是利用来自数据丰富的源域知识,在数据稀缺的目标域上执行实体识别的过程。以往大多数最先进(SOTA)方法使用预训练语言模型(PLM)进行跨域NER。然而,这些模型通常具有领域特定性。为了成功将这些模型用于新的目标域,我们需要修改模型架构,或者使用来自新域的数据进行模型微调。这两种方式都会为每个目标域创建全新的NER模型,在实际场景中并不可行。最近,若干研究尝试使用LLM解决少样本跨域NER。然而,其中大多数方法要么对于实际用途而言过于昂贵,要么难以遵循LLM提示指令。本文提出IF-WRANER(Instruction Finetuned Word-embedding based Retrieval Augmented large language model for Named Entity Recognition,用于命名实体识别的指令微调基于词嵌入的检索增强大型语言模型),这是一种为NER任务微调的检索增强LLM。凭借LLM微调期间使用的正则化技术,以及在检索提示内示例时采用词级嵌入而非句子级嵌入,IF-WRANER能够优于以往的SOTA少样本跨域NER方法。我们通过在开源CrossNER数据集上对模型性能进行基准测试,证明了其有效性;在该数据集上,模型相比此前的SOTA模型取得了超过2%的F1分数提升。我们还将该模型部署到一家企业的多个客户服务领域。通过IF-WRANER进行准确的实体预测,有助于将客户引导至相应领域的自动化工作流,从而将转接人工客服的情况减少近15%,并为公司每年节省数百万美元。

英文摘要:

Few-Shot Cross-Domain NER is the process of leveraging knowledge from data-rich source domains to perform entity recognition on data scarce target domains. Most previous state-of-the-art (SOTA) approaches use pre-trained language models (PLMs) for cross-domain NER. However, these models are often domain specific. To successfully use these models for new target domains, we need to modify either the model architecture or perform model finetuning using data from the new domains. Both of these result in the creation of entirely new NER models for each target domain which is infeasible for practical scenarios. Recently,several works have attempted to use LLMs to solve Few-Shot Cross-Domain NER. However, most of these are either too expensive for practical purposes or struggle to follow LLM prompt instructions. In this paper, we propose IF-WRANER (Instruction Finetuned Word-embedding based Retrieval Augmented large language model for Named Entity Recognition), a retrieval augmented LLM, finetuned for the NER task. By virtue of the regularization techniques used during LLM finetuning and the adoption of word-level embedding over sentence-level embedding during the retrieval of in-prompt examples, IF-WRANER is able to outperform previous SOTA Few-Shot Cross-Domain NER approaches. We have demonstrated the effectiveness of our model by benchmarking its performance on the open source CrossNER dataset, on which it shows more than 2% F1 score improvement over the previous SOTA model. We have deployed the model for multiple customer care domains of an enterprise. Accurate entity prediction through IF-WRANER helps direct customers to automated workflows for the domains, thereby reducing escalations to human agents by almost 15% and leading to millions of dollars in yearly savings for the company.

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

↑