Skip to main content
QUICK REVIEW

[Paper 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 Science6 citations
TL;DR

P-ICL enhances NER with LLMs by injecting point entities per type into prompts, improving entity type understanding and classification over standard ICL. Point entities are selected via K-Means clustering over encoder representations.

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.

Motivation & Objective

  • Highlight the limitations of standard ICL for NER, specifically the lack of explicit entity-type and entity-classification information.
  • Propose P-ICL to inject point entities for each entity type to improve NER performance.
  • Develop a K-Means based method to select representative point entities per type.
  • Empirically validate P-ICL on multiple NER benchmarks and LLMs.

Proposed method

  • Introduce point entities as per-entity-type exemplars in prompts to convey entity-type semantics.
  • Define a formal prompting scheme that lists point entities for each type (PER, ORG, LOC, MISC).
  • Use BERT-like or retrieval-based encoders to obtain entity representations and apply K-Means to identify centers.
  • Map cluster centers to actual point entities by maximizing similarity between center vectors and entity representations.
  • Compare P-ICL variants (random vs. K-Means selected point entities) against standard ICL across multiple LLMs and datasets.
  • Experiment with zero-shot and few-shot settings, and analyze the effect of the number of point entities and centers on performance.
(a) Standard In-Context Learning
(a) Standard In-Context Learning

Experimental results

Research questions

  • RQ1Can point entities in prompts improve NER accuracy of LLMs beyond standard ICL?
  • RQ2Does K-Means based selection of point entities yield better performance than random selection?
  • RQ3How do the number of point entities per type and the number of demonstrations affect NER performance across datasets and models?
  • RQ4What is the impact of different encoders for point-entity representations on final results?

Key findings

  • P-ICL consistently outperforms standard ICL at equal numbers of demonstrations across four NER benchmarks.
  • Using a K-Means based selection (P-ICL bert) yields better results than random point selection (P-ICL random).
  • Increasing the number of point entities per type generally helps up to a point, after which results fluctuate due to potential redundancy.
  • Retrieval-based encoders (BGE-large, mxba i-embed-large) outperform classic BERT-like encoders for point-entity representations.
  • Efficacy is demonstrated across GPT-3.5 Turbo, LLaMA-2-70B, and Mixtral 8x7B.
  • More representative point entities can reduce the need for many demonstrations while maintaining performance.
(b) Point In-Context Learning (P-ICL)
(b) Point In-Context Learning (P-ICL)

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.