Papers › PromptNER: Prompt Locating and Typing for Named Entity Recognition

PromptNER: Prompt Locating and Typing for Named Entity Recognition

26 May 2023arXiv:2305.17104archive 2025-07-28

Yongliang Shen, Zeqi Tan, Shuhui Wu, Wenqi Zhang, Rongsheng Zhang, Yadong Xi, Weiming Lu, Yueting Zhuang

Prompt learning is a new paradigm for utilizing pre-trained language models and has achieved great success in many tasks. To adopt prompt learning in the NER task, two kinds of methods have been explored from a pair of symmetric perspectives, populating the template by enumerating spans to predict their entity types or constructing type-specific prompts to locate entities. However, these methods not only require a multi-round prompting manner with a high time overhead and computational cost, but also require elaborate prompt templates, that are difficult to apply in practical scenarios. In this paper, we unify entity locating and entity typing into prompt learning, and design a dual-slot multi-prompt template with the position slot and type slot to prompt locating and typing respectively. Multiple prompts can be input to the model simultaneously, and then the model extracts all entities by parallel predictions on the slots. To assign labels for the slots during training, we design a dynamic template filling mechanism that uses the extended bipartite graph matching between prompts and the ground-truth entities. We conduct experiments in various settings, including resource-rich flat and nested NER datasets and low-resource in-domain and cross-domain datasets. Experimental results show that the proposed model achieves a significant performance improvement, especially in the cross-domain few-shot setting, which outperforms the state-of-the-art model by +7.7% on average.

PaperPDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

tricktreat/promptner officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Cross-Domain Few-ShotEntity TypingGraph MatchingNERNamed Entity RecognitionNamed Entity Recognition (NER)Nested Named Entity RecognitionPrompt Learningnamed-entity-recognition

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Named Entity Recognition (NER) ACE 2005 PromptNER [RoBERTa-large] F1 88.26 #3 of 20 Archive leaderboard report
Named Entity Recognition (NER) ACE 2005 PromptNER [BERT-large] F1 87.21 #5 of 20 Archive leaderboard report
Named Entity Recognition (NER) CoNLL 2003 (English) PromptNER [RoBERTa-large] F1 93.08 #31 of 73 Archive leaderboard report
Named Entity Recognition (NER) CoNLL 2003 (English) PromptNER [BERT-large] F1 92.41 #42 of 73 Archive leaderboard report
Nested Named Entity Recognition ACE 2004 PromptNER [RoBERTa-large] F1 88.72 #1 of 24 Archive leaderboard report
Nested Named Entity Recognition ACE 2004 PromptNER [BERT-large] F1 88.16 #5 of 24 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections