用上百个示例让大模型在命名实体识别上超越传统训练模型。
Scaling Performance and Low-Resource Annotation with Many-Shot In-Context Learning for Named Entity Recognition

- 用上百个示例进行上下文学习,提升大模型在命名实体识别上的表现。
- 使用约100个标注样例,生成高质量数据,使低资源任务F1提升10%。
- 适合需要少标注数据却要高精度的命名实体识别场景。
基于大语言模型的上下文学习(ICL)为命名实体识别(NER)提供了无需微调、极少标注的强性能替代方案。然而,现有研究多聚焦于少样本设置,未充分探索百样本级别的扩展潜力。本文系统研究了百样本级ICL在多个领域中的表现,并验证其在低资源场景下作为数据标注框架的可行性。实验表明:(1)当使用数百个上下文示例时,大语言模型性能可达到甚至超过全监督的BERT模型;(2)仅需约一百个人工标注示例作为示范,即可通过多示例上下文学习生成高质量标签数据,用于微调BERT,在低资源NER任务中相较现有最优方法实现约10%的绝对F1提升。
原文摘要 · Abstract (English)
In-context learning (ICL) with large language models (LLMs) has emerged as a powerful alternative to fine-tuning for Named Entity Recognition (NER), achieving strong performance with minimal annotation and no additional training. However, prior work has shown that despite their adaptability, LLMs still lag behind fully supervised models such as fine-tuned BERT in structured tasks like NER. While existing studies on ICL for NER have mainly explored few-shot settings, the potential of scaling to hundreds of demonstrations has not been thoroughly investigated. To address this gap, we conduct a comprehensive investigation of many-shot ICL for NER and further explore its effectiveness in annotating and refining data for low-resource NER tasks. Specifically, we evaluate various LLMs across multiple domains using hundreds of ICL examples and then assess the feasibility of using many-shot ICL as a data annotation framework. Our experiments demonstrate that: (1) scaling to hundreds of in-context examples enables LLMs to match or even surpass the performance of fully supervised BERT models; and (2) using about one hundred human-labeled examples as demonstrations, many-shot in-context annotation can generate high-quality labeled data, leading to approximately 10% absolute F1 improvement over existing state-of-the-art approaches when used to fine-tune BERT on low-resource NER.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。