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

GPT-NER: 基于大语言模型的命名实体识别

GPT-NER: Named Entity Recognition via Large Language Models

Peking University(北京大学);Zhejiang University(浙江大学);Nanyang Technological University(南洋理工大学);Amazon(亚马逊)

Shuhe Wang, Xiaofei Sun, Xiaoya Li, Rongbin Ouyang, Fei Wu, Tianwei Zhang, Jiwei Li, Guoyin Wang

AI总结:

针对大语言模型在NER任务上表现不佳的问题,提出将序列标注转为生成任务并搭配自验证策略的GPT-NER,在5个数据集上性能媲美全监督基线,低资源少样本场景下优势更明显。

摘要:

尽管大语言模型(LLM)已在多种自然语言处理任务上取得了当前最优(SOTA)性能,但其在命名实体识别(NER)任务上的表现仍显著低于有监督基线。这源于NER任务与LLM之间的任务差异:前者本质上是序列标注任务,而后者是文本生成模型。\n 本文提出GPT-NER以解决这一问题。GPT-NER通过将序列标注任务转化为LLM易于适配的生成任务来弥合上述差异,例如,在输入文本“Columbus is a city”中查找位置实体的任务,被转化为生成文本序列“@@Columbus## is a city”,其中特殊标记@@##标注了待提取的实体。为有效解决LLM的“幻觉”问题——即LLM极易过于自信地将无实体的输入标注为实体,我们提出了一种自验证策略:通过提示LLM自问所提取的实体是否属于对应的标注实体标签。\n 我们在5个广泛使用的NER数据集上开展了实验,GPT-NER取得了与全监督基线相当的性能,据我们所知这是首次实现该结果。更重要的是,我们发现GPT-NER在低资源和少样本设置下展现出更强的能力:当训练数据量极少时,GPT-NER的表现显著优于有监督模型。这证明了GPT-NER在标注样本数量有限的真实世界NER应用中的实用价值。

英文摘要:

Despite the fact that large-scale Language Models (LLM) have achieved SOTA performances on a variety of NLP tasks, its performance on NER is still significantly below supervised baselines. This is due to the gap between the two tasks the NER and LLMs: the former is a sequence labeling task in nature while the latter is a text-generation model. In this paper, we propose GPT-NER to resolve this issue. GPT-NER bridges the gap by transforming the sequence labeling task to a generation task that can be easily adapted by LLMs e.g., the task of finding location entities in the input text "Columbus is a city" is transformed to generate the text sequence "@@Columbus## is a city", where special tokens @@## marks the entity to extract. To efficiently address the "hallucination" issue of LLMs, where LLMs have a strong inclination to over-confidently label NULL inputs as entities, we propose a self-verification strategy by prompting LLMs to ask itself whether the extracted entities belong to a labeled entity tag. We conduct experiments on five widely adopted NER datasets, and GPT-NER achieves comparable performances to fully supervised baselines, which is the first time as far as we are concerned. More importantly, we find that GPT-NER exhibits a greater ability in the low-resource and few-shot setups, when the amount of training data is extremely scarce, GPT-NER performs significantly better than supervised models. This demonstrates the capabilities of GPT-NER in real-world NER applications where the number of labeled examples is limited.

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

↑