Cardiff University | Prifysgol Caerdydd ORCA
Online Research @ Cardiff 
WelshClear Cookie - decide language by browser settings

Knowledge enhanced prompting for few-shot named entity recognition

Liu, Zhaoli, Qin, Tao, Liu, Bohao, Sun, Qindong and Li, Shancang 2026. Knowledge enhanced prompting for few-shot named entity recognition. International Journal of Machine Learning and Cybernetics 17 , 60. 10.1007/s13042-025-02902-8

Full text not available from this repository.

Abstract

Named entity recognition (NER) refers to recognize entity spans from text and categorize them into predefined entity types, which is significant for tasks such as knowledge graph construction. However, most existing entity recognition methods perform poorly in professional domains, such as cybersecurity, since they rely heavily on large amounts of high-quality labeled data for model training. In this paper, we introduce prompt-based learning and reformulate the NER task into a generation problem, and propose a knowledge enhanced prompting framework for few-shot NER, which can identify the named entities based on few labeled data. Firstly, we present a knowledge-enhanced template generation method, which integrates the entity domain knowledge and uses BART to generate templates automatically, which helps to overcome the difficulties caused by manual template engineering. Secondly, we construct prompts for each entity type and feed them into the masked language model (MLM) for entity prediction, which do not need to enumerate all the candidate spans, thus reducing the computational complexity. Thirdly, an interaction detection module is designed for entity prediction to constrain the identified entity spans in the input text, which can reduce the uncertainty and unstructured problem for NER. Finally, we perform comparison experiments with existing competitive models on three public datasets and a cybersecurity dataset constructed for professional domain, and the experimental results demonstrate that our method outperforms the existing models on both rich-resource and few-shot settings.

Item Type: Article
Date Type: Publication
Status: Published
Schools: Schools > Computer Science & Informatics
Publisher: Springer Science and Business Media LLC
ISSN: 1868-8071
Date of Acceptance: 5 November 2025
Last Modified: 09 Feb 2026 13:45
URI: https://orca.cardiff.ac.uk/id/eprint/184551

Actions (repository staff only)

Edit Item Edit Item