Skip to main content
QUICK REVIEW

[论文解读] P-ICL: Point In-Context Learning for Named Entity Recognition with Large Language Models

Guochao Jiang, Zepeng Ding|arXiv (Cornell University)|May 8, 2024
Topic ModelingComputer Science被引用 6
一句话总结

P-ICL 通过在提示中为每种类型注入点实体来提升带有大模型的命名实体识别(NER)的能力,相较于标准 ICL,提升了实体类型的理解与分类。点实体通过对编码器表示的 K-Means 聚类来选择。

ABSTRACT

In recent years, the rise of large language models (LLMs) has made it possible to directly achieve named entity recognition (NER) without any demonstration samples or only using a few samples through in-context learning (ICL). However, standard ICL only helps LLMs understand task instructions, format and input-label mapping, but neglects the particularity of the NER task itself. In this paper, we propose a new prompting framework P-ICL to better achieve NER with LLMs, in which some point entities are leveraged as the auxiliary information to recognize each entity type. With such significant information, the LLM can achieve entity classification more precisely. To obtain optimal point entities for prompting LLMs, we also proposed a point entity selection method based on K-Means clustering. Our extensive experiments on some representative NER benchmarks verify the effectiveness of our proposed strategies in P-ICL and point entity selection.

研究动机与目标

  • 突出标准 ICL 在 NER 上的局限性,具体表现为缺乏显式的实体类型和实体分类信息。
  • 提出 P-ICL,为每种实体类型注入点实体以提升 NER 性能。
  • 开发基于 K-Means 的方法,为每种类型选择具有代表性的点实体。
  • 在多个 NER 基准和多种大模型上进行实证验证。

提出的方法

  • 在提示中引入按实体类型的点实体作为示例,以传达实体类型语义。
  • 定义一个正式的提示方案,为每种类型(PER、ORG、LOC、MISC)列出点实体。
  • 使用类似 BERT 的编码器或基于检索的编码器获取实体表示,并应用 K-Means 确定中心。
  • 通过最大化中心向量与实体表示之间的相似性,将聚类中心映射到实际的点实体。
  • 将 P-ICL 的变体(随机点实体 vs. K-Means 选择的点实体)与标准 ICL 在多种 LLMs 与数据集上进行比较。
  • 在零-shot 与少量示例设置下进行实验,并分析点实体数量与中心数量对性能的影响。
(a) Standard In-Context Learning
(a) Standard In-Context Learning

实验结果

研究问题

  • RQ1点实体在提示中是否能够提升大模型的 NER 准确性超过标准 ICL?
  • RQ2基于 K-Means 的点实体选择是否比随机选择带来更好的性能?
  • RQ3每种类型的点实体数量以及演示数量对跨数据集与模型的 NER 性能有何影响?
  • RQ4用于点实体表征的不同编码器对最终结果的影响如何?

主要发现

  • P-ICL 在四个 NER 基准上以相同的演示示例数量持续优于标准 ICL。
  • 使用基于 K-Means 的选择(P-ICL bert)比随机点选择(P-ICL random)得到更好的结果。
  • 每种类型的点实体数量的增加通常有帮助,直到达到某个点后由于潜在冗余导致结果波动。
  • 基于检索的编码器(BGE-large、mxba i-embed-large)在点实体表征方面优于传统的 BERT 式编码器。
  • 在 GPT-3.5 Turbo、LLaMA-2-70B、Mixtral 8x7B 上的有效性得到证明。
  • 更多具有代表性的点实体可以在保持性能的同时减少对大量示例的需求。
(b) Point In-Context Learning (P-ICL)
(b) Point In-Context Learning (P-ICL)

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。