Paper deep dive
URA-NER: A Unified Retrieval-Augmented Framework with Retrieval Alignment and Uncertainty Reduction for Low-Resource NER
Jingyu Wang, Shijie Wu, Fusheng Jin
Intelligence
Status: not_run | Model: - | Prompt: - | Confidence: 0%
Entities (0)
Relation Signals (0)
No relation signals yet.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:In-context learning (ICL) based on large language models (LLMs) has shown promising potential in alleviating performance bottlenecks caused by the limited availability of annotated data in Named Entity Recognition (NER). However, existing methods still face issues of retrieval misalignment and generation uncertainty, making their performance heavily dependent on the LLM's capabilities. As the parameter scale of LLMs decreases, their performance in few-shot settings deteriorates significantly. In this paper, we propose a novel unified retrieval-augmented framework, URA-NER, including three key components: Progressive Granularity Retrieval (PGR), Model-aware Representation Enhancement (MaRE), and Reason-aware Knowledge Verification. PGR is a two-stage retrieval mechanism that achieves stage alignment. It first retrieves demonstrations for span detection based on the query's global semantics, and then for type classification based on the specific entity context, providing fine-grained local information. Moreover, MaRE employs entity pre-recognition to guide the construction of representations, ensuring the query and demonstrations are aligned within the LLM's semantic space and attention pattern. In addition, to mitigate generation uncertainty, we propose RaKV, a closed-loop "generation-retrieval-verification" process. It explicates the LLM's reasoning paths, leverages them for the retrieval of external knowledge, and reorganizes the knowledge into verification evidence aligned with the original reasoning paths. We conduct extensive experiments on multiple low-resource NER datasets. Results demonstrate that URA-NER significantly enhances the performance of LLMs under low-resource settings, with particularly pronounced gains for smaller LLMs, achieving new state-of-the-art results on several benchmarks.
Tags
Links
- Source: https://arxiv.org/abs/2609.24372v1
- Canonical: https://arxiv.org/abs/2609.24372v1
Trouble viewing inline? Open PDF directly â
Full Text
45,906 characters extracted from source content.
Expand or collapse full text
URA-NER: A Unified Retrieval-Augmented Framework with Retrieval Alignment and Uncertainty Reduction for Low-Resource NER Jingyu Wang 1 , Shijie Wu 1 , Fusheng Jin 1,â 1 School of Computer Science and Technology, Beijing Institute of Technology, Beijing, China â Corresponding author jyw.bit.2003@gmail.com, wsj1595, jfs21cn@bit.edu.cn AbstractâIn-context learning (ICL) based on large language models (LLMs) has shown promising potential in alleviating performance bottlenecks caused by the limited availability of annotated data in Named Entity Recognition (NER). However, existing methods still face issues of retrieval misalignment and generation uncertainty, making their performance heavily de- pendent on the LLMâs capabilities. As the parameter scale of LLMs decreases, their performance in few-shot settings deteri- orates significantly. In this paper, we propose a novel unified retrieval-augmented framework, URA-NER, including three key components: Progressive Granularity Retrieval (PGR), Model- aware Representation Enhancement (MaRE), and Reason-aware Knowledge Verification. PGR is a two-stage retrieval mechanism that achieves stage alignment. It first retrieves demonstrations for span detection based on the queryâs global semantics, and then for type classification based on the specific entity context, providing fine-grained local information. Moreover, MaRE employs entity pre-recognition to guide the construction of representations, ensuring the query and demonstrations are aligned within the LLMâs semantic space and attention pattern. In addition, to mitigate generation uncertainty, we propose RaKV, a closed- loop âgeneration-retrieval-verificationâ process. It explicates the LLMâs reasoning paths, leverages them for the retrieval of exter- nal knowledge, and reorganizes the knowledge into verification evidence aligned with the original reasoning paths. We conduct extensive experiments on multiple low-resource NER datasets. Results demonstrate that URA-NER significantly enhances the performance of LLMs under low-resource settings, with partic- ularly pronounced gains for smaller LLMs, achieving new state- of-the-art results on several benchmarks. Index TermsâNamed Entity Recognition, Large Language Model, Low-Resource, Representation and Reasoning I. INTRODUCTION Named Entity Recognition (NER) is a fundamental task in information extraction, aiming to identify entities of prede- fined types from unstructured text [1], [2], such as persons, locations, and organizations. As a crucial step in text under- standing, NER plays a vital role in a wide range of natural language processing (NLP) tasks, including knowledge graph construction [35], [40], [41], question answering [15]â[17], and information retrieval [18], [19]. With sufficient annotated data, existing neural network-based models have achieved remarkable progress on NER through supervised learning ap- proaches [3]â[5], [14]. However, in complex scenarios where annotated data is scarce, models struggle to acquire enough data to learn effective entity recognition capabilities, leading to a substantial drop in performance. Recently, researchers have begun to explore the use of large language models (LLMs) [6]â[9], [11] for NER, trans- forming the sequence labeling task into a generation task. Some studies attempt to guide LLMs to perform NER via in- context learning (ICL), where a small number of annotated demonstrations are incorporated into the input as context to help the LLM learn the task effectively. This approach shows promising performance under low-resource settings. Early studies [6], [42] adopt a fixed context. They provide the same demonstrations for different query texts and achieve notable improvements. However, this approach lacks dynamic interaction with the query text, making it difficult to capture semantic alignment across different inputs and thus limiting the modelâs performance. To address this issue, some studies [10]â[13] have introduced retrieval-augmented and dynamic demonstrations. They build a pool of annotated demonstrations and retrieve the most relevant ones for each query text using retrieval algorithms. The retrieved demonstrations help LLMs identify similar entity boundaries and types in the query text. Current methods depend on the intrinsic abilities of LLMs. Although large-scale LLMs (eg, GPT, Gemini) achieve strong performance, smaller models exhibit notable degradation in low-resource scenarios. Current methods still face several key challenges that limit the performance of LLMs on low-resource NER: (1) Lack of stage alignment in the retrieval mechanism. Existing retrieval methods typically use a single granularity, such as retrieving based on the entire text or specific segments within the text, which fails to meet the stage-specific require- ments of NER. Span extraction requires global context to iden- tify all potential entities in the text, while type classification relies on local context around each entity. This mismatch leads to a misalignment between retrieved demonstrations and the objectives of each stage. (2) Lack of representation alignment with the LLM. Existing retrieval methods rely on independent encoders (e.g., BERT, BGE) to generate text representations. However, these encoders differ from the LLM performing NER in terms of pretraining objectives and attention mechanisms, leading to a misalignment in representation spaces. As a result, the re- arXiv:2609.24372v1 [cs.CL] 21 Sep 2026 trieved demonstrations may deviate from the LLMâs semantic understanding, introducing potential bias. (3) Generation uncertainty of LLMs. In low-resource scenarios, LLMs with relatively small parameter scales often generate unstable outputs due to limited internal knowledge or biased in-context learning. The same query text may lead to inconsistent results across different generations. Existing methods lack effective validation mechanisms during the gen- eration process, making it difficult to identify and correct reasoning errors or deviations in model predictions. To address the challenges, we propose a novel unified retrieval-augmented framework, URA-NER, which focuses on retrieval alignment and uncertainty Reduction in LLM generation. (1) We introduce Progressive Granularity Re- trieval (PGR) to achieve stage alignment through a two-stage âglobal-to-localâ retrieval strategy. In the first stage, global demonstrations with similar entity distribution are retrieved based on the global semantics of the query text, providing macro-level guidance for span extraction. In the second stage, for each extracted entity span, demonstrations with more accurate type annotations are retrieved by focusing on the entityâs local context, offering micro-level support for type classification. (2) Furthermore, we incorporate Model-aware Representation Enhancement (MaRE) into the retrieval process to align the LLMâs semantic space and attention pattern. Specifically, we construct text representations that reflect the LLMâs inherent semantic preferences through entity pre-recognition by leveraging its autoregressive attention and internal representation. (3) Lastly, we propose Reason-aware Knowledge Validation (RaKV) to mitigate generation un- certainty through a âgenerationâretrievalâvalidationâ process. The LLM is instructed to generate reasoning paths. External knowledge is then retrieved based on key semantic nodes in the reasoning paths and reorganized following the paths, forming evidence that closely aligns with the LLMâs internal logic and inference process to facilitate self-validation of the outputs. We conduct extensive experiments on the five low-resource subsets (Science, Politics, Music, Literature, and AI) of the CrossNER dataset [36] and general-domain CoNLL2003 dataset [37]. Results show that URA-NER achieves new state- of-the-art performance across all five CrossNER subsets under low-resource settings, outperforming even methods that rely on large-scale LLMs like GPT, despite running on smaller LLMs. This significantly reduces dependence on the LLM scale, demonstrating the effectiveness and generalization of URA-NER in low-resource NER. The code and data for this work have be made publicly available: https://github.com/2025-NLP/NER. I. RELATED WORK A. Named Entity Recognition With the development of deep learning, neural network- based methods have become mainstream. Models such as LSTM [20] and those [22]â[24] based on the transformer architecture [21] can automatically learn contextual seman- tic information and have achieved significant performance. In high-resource settings, neural networks [25], [26] have shown remarkable effectiveness in NER. However, under low- resource scenarios where annotated training data is scarce, these models often suffer substantial performance degradation. Large Language Models (LLMs), endowed with rich prior knowledge and strong language understanding capabilities, have demonstrated superior performance in low-resource NER. Recent studies based on LLMs can be broadly divided into two categories: one uses LLMs as auxiliary tools for smaller models, enabling data augmentation [7], [27], [28], knowledge distillation [29], [30], etc.; the other directly employs LLMs as the backbone through instruction tuning [8], [12] or in-context learning [6], [10], [11]. In this paper, we focus on the latter. B. In-Context Learning Brown et al. [31] propose in-context learning (ICL), a method that enables LLMs to perform tasks without updating parameters by providing a few annotated demonstrations in the input. Due to its strong few-shot generalization ability, ICL has been widely applied in various NLP tasks [32]â[34]. In NER, recent efforts focus on optimizing the demonstration retrieval strategy, on how to retrieve the most beneficial demonstrations from the training set to improve performance. Shiraishi et al. [10] adopt BM25 and [CLS] token-based global semantic representations from BGE to measure relevance. Wang et al. [11] and Nandi et al. [12] use token-level and word- level granularity combined with the KNN strategy for finer- grained semantic matching. Wu et al. [13] further propose a dual relevance measure combining ontology and contextual consistency. These methods improve the performance of LLMs on low-resource NER to varying degrees, highlighting the importance of retrieving beneficial demonstrations. C. Differences between URA-NER and Previous Methods In this paper, we focus on the optimization of the re- trieval mechanism. Unlike previous studies that adopt single- stage retrieval, we propose PGR that aligns with the distinct characteristics of the two phases in NER through a two- stage design, thus achieving stage alignment. Moreover, unlike prior methods that rely solely on independent encoders for text representations, we introduce MaRE, which constructs representation vectors using the LLMâs attention patterns to achieve representation alignment. Finally, we propose RaKV, which retrieves external knowledge using reasoning paths generated by the LLM to validate predictions and reduce generation uncertainty. In contrast to prior work that relies on either closed-source large LLMs or fine-tuned small LLMs, URA-NER achieves substantial improvements on small LLMs without fine-tuning, reducing dependence on model scale. I. METHODOLOGY A. Task Description Given a query text X q =x 1 q ,x 2 q ,...,x n q , which represents a text composed of n tokens, the objective of NER is to identify all named entities in the text, formally represented as an entity set E q = (s (i) q : y (i) q ) N i=1 , where s (i) q denotes the [CLS] Amazon introduced AWS and has since contributed to cloud computing, with major operations based in Seattle Query Text : Amazon introduced AWS and has since contributed to cloud computing, with major operations based in Seattle Amazon introduced AWS and has since contributed to cloud computing, with major operations based in Seattle Instruction: Identify all Person, Location, Organization, and Misc entities in the text in the format: Type: entity LLM Person : Amazon, Organisation : AWS, Location : Seattle 1. Text: Elon Musk founded SpaceX. EntityïŒElon MuskïŒSpaceX 2.The Eiffel Tower is in Paris. EntityïŒEiffel TowerïŒPairs ................................................................... ................................................................... 1. Text: Elon Musk founded SpaceX. Elon Musk : Person 2. Text: Elon Musk founded SpaceX. SpaceX : Organization ................................................................... ................................................................... Instruction: Learn from the demonstrations and extract all entity spans from the query text in the same format. Demonstrations: 1. Text: Elon Musk founded SpaceX. EntityïŒElon MuskïŒSpaceX ................................................... Query Text: Amazon introduced AWS and has since contributed to cloud computing, with major operations based in Seattle LLM Span Extraction : EntityïŒAmazon, AWS, Seattle LLM Type Classificaiton: Person : Amazon Organisation : AWS Location : Seattle K-shotK-shot Instruction: Learn from the demonstrations and Classify the entity in the query text into four types: Person, Location, Organization, and Misc. Demonstrations: 1. Text: Elon Musk founded SpaceX. Elon Musk : Person ................................................... Query Text: Amazon introduced AWS and has since contributed to cloud computing, with major operations based in Seattle Amazon ïŒ Attention WeightsHidden States Instruction: You are given a text and a list of extracted named entities. For each entity, reason step by step to determine why it might be classified into its predicted type. Provide your explanation in numbered format (e.g., 1., 2.). Query: Text : Amazon introduced AWS and has since contributed to cloud computing, with major operations based in Seattle Person : Amazon Organisation : AWS Location : Seattle "introduced AWSâ frames Amazon as an active subject, commonly associated with human agents. â ⥠⹠Since AWS is presented as something Amazon created, the model may infer Amazon is an individual founder. ............................................................................................................................................. . Instruction: You are given a text and its recognized entities, use the retrieved external entity knowledge to verify the correctness of each entity. For each entity, confirm or correct its classification based on the external knowledge, and output the final verified entities in the same format. BGE #1#2#3 #4#5#6 Query Reuslts â ⥠⹠BGE Representation Entity local representation Global Representation (a) Global and Local Representation BGE (b) Model-aware Representation Enhancement â (c) Progressive Granularity Retrieval (d) Reason-aware Knowledge Validationl Model-aware Representation LLM Input LLM Output Reasoning path Entity Knowledge íëí(í í , í í (í) ) íëí(í í , í í (í) ) Fig. 1. Architecture overview of URA-NER. span of the i-th entity and y (i) q represents its type belonging to a predefined type set Y . In in-context learning, multiple annotated demonstrations are concatenated with the query text to construct contextual prompts that guide the LLM in performing NER. For methods employing dynamic retrieval to construct contextual prompts, there exists a candidate demonstration pool D = (X (i) d ,E (i) d ) M i=1 , where each X (i) d represents an demonstration text and E (i) d denotes its entity annotations. Based on a specific retrieval mechanism Ί(·), the k most relevant demonstrations to the current query text X q are retrieved from D, forming a demonstration subset D âČ â D. Finally, the subset D âČ is concatenated with the query text X q to construct contextual prompts that guide the LLM. B. Architecture Overview Figure 1 illustrates the overall framework of URA-NER, which processes a given query text X q through four steps: (a) We obtain both global and local representations of X q using the BGE encoder; (b) Model-aware representations are constructed via the MaRE module; (c) A two-stage reasoning process is conducted by PGR, where entity span extraction and type classification are performed sequentially to obtain initial NER predictions; (d) Finally, the PaKV verifies the predicted entities against external knowledge, obtaining the final NER output. C. Model-aware Representation Enhancement Prior studies [10], [12], [13] rely solely on independent encoders (e.g., BERT, BGE) to compute textual semantic rep- resentations. which decouples from the actual LLM perform- ing NER, where different LLMs possess different attention patterns and representation spaces. To ensure representation alignment in the retrieval mechanism, we propose MaRE. 1) Pre-recognition: LLMs often rely on specific key tokens when recognizing entities in text, which reflect their inherent attention patterns. Inspired by research [13], we introduce entity pre-recognition. By guiding the LLM to identify po- tential entities autoregressively under the zero-shot setting, we progressively extract the modelâs attention distribution across different tokens. For the query text X q , we obtain pre- recognition results Y T after T time steps: Y T = F LLM (X q ,I 0 ),(1) where F LLM (·) represents the LLM model, and I 0 is the instruction for pre-recognition, as shown in Figure 1. 2) Model-aware Representation Construction: We con- struct model-aware representations based on the LLMâs pre- recognition process. The LLMâs input consists of the query text and instruction [X q ,I 0 ] = x 1 q ,...,x n q ,x j q ,...,x m j . At timestep t, the sequence already generated by the LLM is Y tâ€T = y 1 ,y 2 ,...,y tâ1 . For decoder-only architecture LLMs, we treat the original input [X q ,I 0 ] and the generated sequence Y t as an integrated input [X q ,J 0 ,Y tâ€T ]. Through encoding, we extract the final hidden layer vectors H (t) llm â R (n+m+tâ1)Ăd 0 of the query text X q : H (t) llm =F Embed ([X q ,I 0 ,Y tâ€T ]),(2) where d 0 is the dimension of the LLMâs final hidden layer, and F Embed (·) represents the modelâs hidden vector computation function. In this way, we obtain semantic embeddings in the LLMâs representation space. To further analyze which tokens the LLM focuses on at timestep t, we extract the multi-head attention weights from the modelâs final layer A t =a (i) t p i=1 : a (i) t =F Attention (H (t) llm ),(3) where a (i) t âR 1Ă(n+m+tâ1) is the attention weights of the i-th head at timestep t, and F Attention (·) denotes the LLMâs attention weight computation function. Different attention heads focus on distinct sequence parts. We balance them through mean pooling of attention weights. Tokens with high attention weights carry more critical seman- tic information. We compute weighted sums of hidden vectors H (t) llm using attention weights Ìa t as model-aware representation at each timestep t, obtaining Ë H llm = Ë h (t) llm T t=1 : Ë h (t) llm = ïŁ« ïŁŹ ïŁ 1 |A t | X a (i) t âA t a (i) t ïŁ¶ ïŁ· ïŁž ·H (t) llm ,(4) where Ë h (t) llm âR 1Ăd 0 is the model-aware representation of the token generated at timestep t. To mitigate the influence of stopwords in the LLMâs generated output, we remove these tokensâ model-aware representations to obtain Ë H âČ llm . We apply mean pooling to the token representations in Ë H âČ llm : h q llm = 1 | Ë H âČ llm | X Ë h llm â Ë H âČ llm Ë h llm .(5) Through this process, we obtain the model-aware represen- tation h q llm for X q . For each demonstration text inD, we apply the same procedure to obtain its model-aware representations, which are precomputed and stored locally to support efficient retrieval and ensure representation alignment. D. Progressive Granularity Retrieval Although we build model-aware representations via the LLMâs pre-recognition for consistency, the LLM mainly fo- cuses on contextual generation, not explicit semantic align- ment. Therefore, we also use the BGE model to compute semantic embeddings. We insert a [CLS] token at the start of X q and input it into BGE, extracting the final hidden layer vectors H q bge = h h q [cls] ,h q 1 ,...,h q n i âR (n+1)Ăd 1 : H q bge =F BGE ([CLS],X q ),(6) where h q [cls] is the global semantic features of the query text, F BGE (·) denotes the BGE model, and d 1 is the dimension of BGEâs final hidden layer. 1) Span Extraction: In span extraction, LLMs focus more on the global semantics of the query text X q . We compute BGEâs global semantic similarity and model-aware represen- tation similarity between X q and each demonstration in D using cosine similarity, with different weights assigned: sim(X q ,X (j) D ) = λ 0 · cos(h q llm ,h (j) llm ) + (1â λ 0 )· cos h q [cls] ,h (j) [cls] , (7) where cos denotes the cosine similarity function and λ 0 is the weight for model-aware representation similarity in the span extraction phase, the similarity score sim measures the relevance between the query and each demonstration. We retrieve the top-k most relevant demonstrations as context, based on which the LLM generates a set S q containing N âČ potential entity spans S q . 2) Type Classification: Unlike span extraction, the type classification phase focuses more on entities themselves and their contextual information. For each entity span s q â S q , we extract its token vectors fromH s âH q bge and average them to obtain the semantic representation h span of the entity span: h span = 1 |H s | X hâH s h.(8) For D, where each demonstration has annotated entity spans, we compute semantic representations for all entities in the same way. We use cosine similarity to compute both the entity similarity and model-aware representation similarity between entity spans in the query text and each entity in the example library, with different weights assigned: sim s q ,s (j) D = λ 1 · cos(h q llm ,h (j) llm ) + (1â λ 1 )· cos(h s ,h (j) s ), (9) where λ 1 is the weight for model-aware representation similar- ity in the type classification phase. We select the top-k most relevant demonstrations for the LLM to classify each entity span. By classifying each entity span s q in the query text X q , the LLM outputs the final NER result E q = n s (i) q ,y (i) q o N âČ i=1 . E. Reason-aware Knowledge Validation LLMs exhibit inherent generation uncertainty, particularly in low-resource scenarios. The lack of sufficient prior knowl- edge and contextual demonstrations may cause LLMs to generate inconsistent or even contradictory outputs. To address this, we propose the RaKV. 1) Reasoning Path Explicitness: The reasoning path cap- tures the LLMâs decision process during task execution, re- vealing its focus and the basis for its predictions. By making these paths explicit, we can use them as cues to retrieve relevant information from external knowledge bases for ver- ification. Given a query text X q and its recognition results E q = n (s (i) q ,y (i) q ) o N âČ i=1 , we feed them into the LLM along with instruction I 1 to generate reasoning paths for each entity, resulting in a set of reasoning paths R q =r (i) N âČ i=1 : R q = F LLM X q , n (s (i) q ,y (i) q ) o N âČ i=1 ,I 1 .(10) Each entityâs reasoning path contains several reasoning steps, as shown in Figure 1. TABLE I THE STATISTICS OF ALL DATASETS USED IN EXPERIMENTS. DatasetType NumTrainDevTest Politics9200541651 Science17200450543 Music13100380456 Literature12100400416 AI14100350431 CoNLL200341498734663684 2) Entity Knowledge Retrieval: For each entity (s (i) q ,y (i) q ) in E q , we retrieve relevant external knowledge from Wikipedia and segment it into knowledge chunks to ensure semantic completeness and contextual coherence. We then extract [CLS] global semantics using the BGE model for each reasoning step of r (i) and knowledge chunk, selecting the most relevant knowledge chunk for each reasoning step of r (i) via cosine similarity. These are concatenated according to the reasoning path to form external entity knowledge K (i) . 3) Validation: For each entity (s (i) q ,y (i) q ), we provide cor- responding external knowledge K (i) to the LLM, along with instruction I 2 (as shown in Figure 1), to perform verification. The LLM then outputs the validated result: (Ës (i) q , Ëy (i) q ) = F LLM X q , (s (i) q ,y (i) q ),K (i) ,I 2 .(11) Finally, we obtain the named entity recognition results Ë E q = Ës (i) q , Ëy (i) q N âČ i=1 for the query text X q . IV. EXPERIMENTS A. Datasets Table I presents the statistics of the experimental datasets. We conduct experiments on a wide range of datasets, including five domain-specific subsets from the CrossNER dataset [36] (i.e., Science, Politics, Music, Literature, and AI) as well as one general-domain dataset: CoNLL2003 [37]. Each CrossNER subset contains entity types specific to its corresponding domain, with training set sizes of 100 or 200 samples, making them suitable for evaluating low-resource NER. CoNLL2003, as a general-domain dataset, includes common entity types such as person and location. Given the significantly smaller training sets in CrossNER, low-resource NER becomes more challenging. Thus, we primarily focus our experiments and analysis on the five subsets of the CrossNER. B. Settings We conduct our experiments on two NVIDIA RTX A6000 GPUs with 48 GB of memory. The backbone language models are instruction-tuned versions of Qwen2.5-7B and Qwen2.5-14B [38], which enhance the modelsâ ability to follow input instructions. To verify the generalizability of our method, we also evaluate it on Deepseek-R1 (API) [39]. External entity knowledge is retrieved via the Wikipedia API. Both the semantic representations of the demonstration pool and the external entity knowledge are stored locally using FAISS-GPU to improve retrieval efficiency. Follow- ing the SOTA baseline [10], we use the same pre-trained bge-base-en model as our external encoder. Following previous studies [10], [11], [13], we construct the demonstration pool from all samples in the training set. Based on ablation studies, we set the hyperparameters λ 1 to 0.5 and λ 2 to 0.3, respectively, which achieve the best performance. We conduct experiments under both 1-shot and 5-shot settings. We adopt micro-F1 as the evaluation metric and report the average and standard deviation over five runs on the test set. C. Baselines We select representative LLM-based ICL methods for low- resource NER as baselines: (1) PromptNER [6]: It employs statically constructed demonstration prompts and guides the GPT to perform NER via chain-of-thought reasoning. (2) GPT-NER [11]: Based on GPT-3, it performs token-level kNN matching to retrieve relevant texts containing similar tokens as demonstrations. (3) ConsistNER [13]: Introduces ontological and contextual consistency to measure textual similarity for retrieval. (4) IF-WRANER [12]: Utilizes word-level kNN matching and applies instruction tuning to the LLaMA. (5) RENER [10]: Retrieves demonstrations by computing inter- text similarity using [CLS] representations extracted via the encoder or by employing BM25. This method represents the current SOTA on the CrossNER dataset. (6) Deepseek- R1 [39]: We evaluate the [CLS] method from RENER [10] using the LLM Deepseek-R1 under the 10-shot setting. D. Experimental Results 1) Main Results: In Table I, we present the main results. On the five CrossNER subsets, Qwen2.5-14B achieves new SOTA results, surpassing prior methods based on larger LLMs such as GPT and Gemini. A smaller k-shot corresponds to fewer demonstrations, which increases task difficulty. Specifi- cally, under the 5-shot setting, our method using Qwen2.5-14B outperforms RENER and Deepseek-R1 even when they use more than 10 demonstrations. In the 1-shot setting, Qwen2.5- 7B and Qwen2.5-14B achieve comparable performance to PromptNER using GPT-3.5 and GPT-4 under 2-shot settings, demonstrating the robustness of our method in low-resource NER. Moreover, our 5-shot results with Qwen2.5-7B are comparable to IF-WRANER, which requires instruction tun- ing on LLaMA-7B and extra computation. On the general- domain CoNLL2003 dataset, our method achieves 87.02% F1 with Qwen2.5-14B under the 5-shot setting, slightly below GPT-NERâs 90.91% with GPT-3. We attribute this to GPT- NERâs token-level kNN retrieval strategy and the properties of CoNLL2003: its shorter texts and fewer entities allow more demonstrations to be recalled under the same k-shot setting, thereby improving performance. 2) Ablation Study: In Table I, we conduct an abla- tion study using Qwen2.5-7B to validate the contribution of each component in URA-NER. Additionally, we report the performance of two baseline methods implemented with Qwen2.5-7B: [CLS] [10] and token kNN [11]. We observe TABLE I MICRO-F1 OF DIFFERENT METHODS UNDER VARIOUS K-SHOT SETTINGS. A SMALLER K-SHOT MEANS FEWER DEMONSTRATIONS. BOLD: BEST RESULTS. Methodk-shotSciencePoliticsMusicLiteratureAICoNLL2003 PromptNER (GPT3.5)264.8371.7477.7864.1559.3578.62 GPT-NER (GPT-3)1-3270.7774.7178.3062.1866.0790.91 PromptNER (GPT4)272.5978.6184.2674.4464.8383.48 ConsistNER (GPT-3.5)5â78.87 IF-WRANER (LLaMA)575.3179.8085.4375.5268.81â RENER (Gemini-1.5-pro)13-2178.4382.0283.2172.1172.0986.10 Deepseek-R1 + [CLS]1077.89±0.382.52±0.185.06±0.276.91±0.272.58±0.386.79±0.2 Qwen2.5-7B + URA-NER169.58±0.573.64±0.479.96±0.367.29±0.461.67±0.477.23±0.3 Qwen2.5-14B + URA-NER173.38±0.477.21±0.282.37±0.371.86±0.566.50±0.381.62±0.2 Qwen2.5-7B + URA-NER577.76±0.380.40±0.383.43±0.474.56±0.472.82±0.385.59±0.2 Qwen2.5-14B + URA-NER579.41±0.383.97±0.286.02±0.277.23±0.374.55±0.287.02±0.2 TABLE I ABLATION STUDY OF QWEN2.5-7B UNDER THE 5-SHOT SETTING. BOLD: BEST RESULTS. MethodSciencePoliticsMusicLiteratureAICoNLL2003 Qwen2.5-7B + [CLS]68.45±0.669.92±0.675.41±0.464.77±0.758.73±0.879.83±0.4 Qwen2.5-7B + token kNN69.31±0.670.48±0.775.65±0.567.52±0.660.97±0.780.42±0.3 Qwen2.5-7B + PGR71.18±0.773.57±0.677.51±0.569.09±0.763.54±0.881.36±0.4 Qwen2.5-7B + PGR & MaRE (w/o LLM attention)71.92±0.574.65±0.777.98±0.469.27±0.564.82±0.781.94±0.3 Qwen2.5-7B + PGR & MaRE (w/ LLM attention)73.23±0.675.42±0.678.36±0.470.29±0.665.87±0.782.46±0.3 Qwen2.5-7B + URA-NER77.76±0.380.40±0.383.43±0.474.56±0.472.82±0.385.59±0.2 that incorporating the PGR leads to a significant perfor- mance gain over both baselines. This demonstrates that our two-stage retrieval strategy better aligns demonstrations with the distinct needs of the two NER stages. Building upon PGR, we implement MaRE in two settings - w/ and w/o LLM attention, controlling whether the LLMâs attention weights are used in representation construction. Both settings yield additional performance gains over PGR alone. This demonstrates that considering the LLMâs internal semantic space when computing demonstration relevance can reduce bias of the external encoder during retrieval. Incorporating LLM attention weights improves performance by better align- ing representations with the LLMâs internal attention pattern. With the addition of RaKV, performance improves signifi- cantly. This demonstrates that RaKV effectively leverages ex- ternal knowledge to verify the modelâs predictions, thereby in- creasing accuracy. Moreover, the standard deviation decreases, indicating that RaKV can reduce generation uncertainty in low-resource NER. In addition, compared to CoNLL2003, the five subsets of CrossNER show more substantial im- provements in F1. Since CrossNER contains longer texts and more entities, it presents a more complex context. This result suggests that in more complex contexts with higher entity density, RaKV is more important for enhancing model robustness and output reliability. 3) λ Weights Analysis: In Figure 2, we report the per- formance of Qwen2.5-7B on the dev sets of Politics and Literature under Qwen2.5-7B + PGR&MaRE. We investigate the effect of different λ weights for model-aware representational similarity on Span Extraction (SE) and Type Classification (TC). For SE, we report the F1 score of entity 70 80 010305070100 SE í í íä° í í 65 75 85 010305070100 SE í í íä° í í F1(%) F1(%) í(%) í(%) (a)Politics (b)Literature Fig. 2. The performance of the Qwen2.5-7b across different λ weights. spans; for TC, we report the overall F1 score. As the weight increases, both F1 scores improve significantly, indicating that incorporating the LLMâs own representation space and attention patterns into the retrieval mechanism enhances the relevance of retrieved demonstrations. Notably, TC achieves its best performance when the weight is 30%, while SE peaks at 50%. We speculate that this is because SE relies more on the global semantics of the input, and model-aware representations enhance it. However, as the weight increases, both SE and TC experience a sharp drop in F1 scores and a rise in standard deviation. The generation of LLMs under the zero-shot setting is unstable, with outputs varying across multiple runs. This variability leads to fluctuations in the computed model-aware representations. When λ is high, the instability is further amplified, indicating the necessity to incorporate the fixed representation from the external encoder. 4) Effect of Demonstration Numbers: Figure 3 presents the F1 of Qwen2.5-7B under different k-shot settings. We compare three configurations: +[CLS], +PGR and +PGR&MaRE. We observe that as the number of demonstrations decreases, the TABLE IV PERFORMANCE OF DEEPSEEK-R1 UNDER DIFFERENT CONFIGURATIONS. VALUES IN PARENTHESES ARE GAINS OVER +[CLS]. MethodSciencePoliticsMusicLiteratureAICoNLL2003 Deepseek-R1+URA-NER(λ = 0)78.81 (+4.46)81.67 (+3.56)84.06 (+2.00)75.91 (+3.23)73.99 (+4.92)85.19 (+1.90) Deepseek-R1+PGR75.02 (+1.33)79.23 (+1.12)82.97 (+0.91)73.09 (+0.41)70.50 (+1.43)84.11 (+0.82) Deepseek-R1+[CLS]74.3578.1182.0672.6869.0783.29 55 70 85 1351020 Qwen2.5-7B + [CLS] Qwen2.5-7B + PGR Qwen2.5-7B + PGR & MaRE Qwen2.5-7B + URA-NER Entity Span F1 F1(%) k-shot Entity Span F1 Score Fig. 3. Effect of demonstration numbers in Science. performance gap among them widens significantly. This sug- gests that in extremely low-resource scenarios, stage alignment and representation alignment can greatly improve generaliza- tion. Moreover, after introducing RaKV (+URA-NER), the F1 score consistently improves across all k-shot settings. Notably, the F1 score in the 1-shot setting is significantly lower than in 3-shot and above, mainly due to suboptimal span extraction in the 1-shot setting. From 3-shot onward, the performance stabilizes. This demonstrates that RaKV enhances type classi- fication by retrieving relevant external entity knowledge based on LLM-generated reasoning paths, thereby overcoming the inherent knowledge limitations of the LLM. 5) The Performance of Deepseek-R1: Table IV reports the 1-shot performance of URA-NER with Deepseek-R1. As the API restricts access to attention weights and hidden states, the related components are disabled (λ = 0) during inference. Compared to +[CLS], we observe that the performance gain of Deepseek-R1 after incorporating stage alignment (PGR) is relatively small across all six datasets. This is because PGR primarily enhances the type classification capability of LLMs, while Deepseek-R1, as a large-scale model, already exhibits strong performance in this aspect. Therefore, the benefit it gains from PGR is limited. In contrast, for smaller LLMs with clearly weaker type classification ability, PGR proves to be more effective. Moreover, after incorporating RaKV, Deepseek-R1 exhibits limited performance gains compared to smaller LLMs. This suggests that for extremely large-scale LLMs that possess rich prior knowledge and strong reason- ing capabilities, the marginal utility of introducing external knowledge remains limited. 6) The Order of Knowledge Chunks: To validate the ne- cessity of reorganizing external knowledge chunks based on the reasoning path, we report in Table V the experimental results of randomly shuffling the retrieved knowledge chunks (Random). Under the 5-shot setting, we compare the average TABLE V EFFECT OF THE ORDER OF KNOWLEDGE CHUNKS. DomainReasoning PathRandomâF1 Science77.76± 0.476.01± 0.9â1.75 Politics80.40± 0.377.96± 1.1â2.44 Music83.43± 0.482.32± 0.7â1.11 Literature74.56± 0.472.73± 0.9â1.83 AI72.82± 0.369.84± 1.3â2.98 CoNLL200385.59± 0.285.12± 0.4â0.47 TABLE VI DEPLOYMENT ANALYSIS OF DIFFERENT METHODS. MethodInferenceScaleAPI costF1 RENER (Gemini-1.5-pro)3.9s >100Bâ78.3 Deepseek-R1 + [CLS]9.2s >100Bâ79.9 Qwen2.5-7B + URA-NER4.2s7BĂ79.1 Qwen2.5-14B + URA-NER5.1s14BĂ81.4 F1 scores of Qwen2.5-7B across six datasets. The results show that randomly disrupting the order of knowledge chunks leads to performance degradation across all datasets, along with a significant increase in standard deviation. This demonstrates that organizing knowledge chunks according to the reasoning path facilitates more effective integration of external informa- tion and enhances the stability of model outputs. 7) Deployment Analysis: Table VI presents the per-query inference time, parameter scale, API cost, and average F1 scores across six datasets for Qwen2.5-7B and Qwen2.5- 14B, alongside comparisons with two strong baselines: RENER (Gemini-1.5-pro) and Deepseek-R1 + [CLS]. All experiments are conducted under the 5-shot setting. Both URA-NER models (Qwen2.5-7B/14B) achieve competitive F1 scores (79.1% and 81.4%) while operating at significantly smaller scales (7B and 14B parameters). Notably, these mod- els eliminate API costs, making them more economical for deployment. In contrast, the Gemini-1.5-pro and Deepseek- R1, which rely on larger than 100B parameters LLMs and in- cur API expenses. Specifically, Qwen2.5-7B + URA-NER demonstrates a favorable balance between efficiency and per- formance, with an inference time of 4.2 seconds and an F1 score comparable to the baselines. This analysis highlights the practical benefits of URA-NER in reducing computational and monetary burden while maintaining strong performance and inference efficiency in low-resource NER. V. CONCLUSION In this paper, we focus on improving the ICL retrieval mechanism to enhance LLMsâ performance in low-resource NER. We propose URA-NER, a novel unified retrieval- augmented framework comprising three key components: PGR for stage-aligned retrieval, MaRE for representation-aligned retrieval, and RaKV to reduce LLM generation uncertainty. Extensive experiments across multiple datasets demonstrate that URA-NER significantly improves performance in low- resource NER, where smaller LLMs outperform existing meth- ods using GPT and other large-scale LLMs, while achieving new state-of-the-art results on CrossNER. REFERENCES [1] J. Li, A. Sun, J. Han, and C. Li, âA Survey on Deep Learning for Named Entity Recognition: Extended Abstract,â in ICDE, 2023, p. 3817-3818. [2] D. Nadeau and S. Sekine, âA survey of named entity recognition and classification,â Lingvisticae Investigationes, 2007, p. 3-26. [3] I. Yamada, A. Asai, H. Shindo, H. Takeda, and Y. Matsumoto, âLUKE: Deep Contextualized Entity Representations with Entity-aware Self- attention,â in EMNLP, 2020, p. 6442-6454. [4] D. Ye, Y. Lin, P. Li, and M. Sun, âPacked Levitated Marker for Entity and Relation Extraction,â in ACL, 2022, p. 4904-4917. [5] J. Li, H. Fei, J. Liu, S. Wu, M. Zhang, C. Teng, D. Ji, and F. Li, âUnified Named Entity Recognition as Word-Word Relation Classification,â in AAAI, 2022, p. 10965-10973. [6] D. Ashok and Z. C. Lipton, âPromptNER: Prompting For Named Entity Recognition,â arXiv preprint arXiv:2305.15444, 2023. [7] Z. Zhang, S. Y. M. Lee, J. Wu, D. Zhang, S. Li, E. Cambria, and G. Zhou, âCross-domain NER with Generated Task-Oriented Knowledge: An Empirical Study from Information Density Perspective,â in EMNLP, 2024, p. 1595-1609. [8] J. Lu, Z. Yang, Y. Wang, X. Liu, B. Mac Namee, and C. Huang, âPaDeLLM-NER: Parallel Decoding in Large Language Models for Named Entity Recognition,â in NeurIPS, 2024, p. 117853-117880. [9] A. Zamai, A. Zugarini, L. Rigutini, M. Ernandes, and M. Maggini, âShow Less, Instruct More: Enriching Prompts with Definitions and Guidelines for Zero-Shot NER,â in IJCNN, 2025, p. 1-8. [10] E. Shiraishi, R. Y. de Camargo, H. L. P. Silva, and R. C. Prati, âRetrieval- Enhanced Named Entity Recognition,â arXiv preprint arXiv:2410.13118, 2024. [11] S. Wang, X. Sun, X. Li, R. Ouyang, F. Wu, T. Zhang, J. Li, G. Wang, and C. Guo, âGPT-NER: Named Entity Recognition via Large Language Models,â in NAACL Findings, 2025, p. 4257-4275. [12] S. Nandi and N. Agrawal, âImproving Few-Shot Cross-Domain Named Entity Recognition by Instruction Tuning a Word-Embedding based Retrieval Augmented Large Language Model,â in EMNLP Industry Track, 2024, p. 686-696. [13] C. Wu, W. Ke, P. Wang, Z. Luo, G. Li, and W. Chen, âConsistNER: To- wards Instructive NER Demonstrations for LLMs with the Consistency of Ontology and Context,â in AAAI, 2024, p. 19234-19242. [14] L. Qiao, P. Li, T. Jin, and X. Li, âFinding Cycles in Graph: A Unified Approach for Various NER Tasks,â in IJCNN, 2023, p. 1-8. [15] J. Zhao and W. Wan, âBoosting Temporal Question Answering via Two- Stage Entity Fusion,â in IJCNN, 2025, p. 1-8. [16] D. Xu, X. Li, Z. Zhang, Z. Lin, Z. Zhu, Z. Zheng, X. Wu, X. Zhao, T. Xu, and E. Chen, âHarnessing Large Language Models for Knowl- edge Graph Question Answering via Adaptive Multi-Aspect Retrieval- Augmentation,â in AAAI, 2025, p. 25570-25578. [17] I. Abdelaziz, S. Ravishankar, P. Kapanipathi, S. Roukos, and A. Gray, âA Semantic Parsing and Reasoning-Based Approach to Knowledge Base Question Answering,â in AAAI, 2021, p. 15985-15987. [18] A. Salemi and H. Zamani, âTowards a Search Engine for Machines: Unified Ranking for Multiple Retrieval-Augmented Large Language Models,â in SIGIR, 2024, p. 741â751. [19] Z. Long, X. Ge, R. McCreadie, and J. M. Jose, âCFIR: Fast and Effective Long-Text To Image Retrieval for Large Corpora,â in SIGIR, 2024, p. 2188â2198. [20] Z. Huang, W. Xu, and K. Yu, âBidirectional LSTM-CRF Models for Sequence Tagging,â arXiv preprint arXiv:1508.01991, 2015. [21] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ć. Kaiser, and I. Polosukhin, âAttention is All you Need,â in NeurIPS, 2017, p. 6000â6010. [22] C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu, âExploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer,â Journal of Machine Learning Research, 2020, p. 1â67. [23] A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, and I. Sutskever, âLanguage Models are Unsupervised Multitask Learners,â OpenAI, 2019. [24] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, âBERT: Pre-training of Deep Bidirectional Transformers for Language Understanding,â in NAACL, 2019, p. 4171-4186. [25] K. Tsuji, T. Hiraoka, Y. Cheng, and T. Iwakura, âSubRegWeigh: Effec- tive and Efficient Annotation Weighing with Subword Regularization,â in COLING, 2025, p. 1908-1921. [26] M. Marci Ì nczuk, âTransformer-based Named Entity Recognition with Combined Data Representation,â arXiv preprint arXiv:2406.17474, 2024. [27] X. Zhang, G. Chen, S. Cui, J. Sheng, T. Liu, and H. Xu, âExogenous and Endogenous Data Augmentation for Low-Resource Complex Named Entity Recognition,â in SIGIR, 2024, p. 630â640. [28] J. Ye, N. Xu, Y. Wang, J. Zhou, Q. Zhang, T. Gui, and X. Huang, âLLM- DA: Data Augmentation via Large Language Models for Few-Shot Named Entity Recognition,â arXiv preprint arXiv:2402.14568, 2024. [29] W. Zhou, S. Zhang, Y. Gu, M. Chen, and H. Poon, âUniversalNER: Targeted Distillation from Large Language Models for Open Named Entity Recognition,â arXiv preprint arXiv:2308.03279, 2023. [30] Y. Huang, K. Tang, and M. Chen, âLeveraging Large Language Models for Enhanced NLP Task Performance through Knowledge Distillation and Optimized Training Strategies,â arXiv preprint arXiv:2402.09282, 2024. [31] T. Brown, B. Mann, N. Ryder, M. Subbiah, J. Kaplan, P. Dhariwal, et al., âLanguage models are few-shot learners,â in NeurIPS, 2020, p. 1877-1901. [32] Y. Chen, R. Zhong, S. Zha, G. Karypis, and H. He, âMeta-learning via Language Model In-context Tuning,â in ACL, 2022, p. 719-730. [33] S. Min, X. Lyu, A. Holtzman, M. Artetxe, M. Lewis, H. Hajishirzi, and L. Zettlemoyer, âRethinking the Role of Demonstrations: What Makes In-Context Learning Work?,â in EMNLP, 2022, p. 11048-11064. [34] P. Han, P. Song, H. Yu, and J. You, âIn-Context Learning May Not Elicit Trustworthy Reasoning: A-Not-B Errors in Pretrained Language Models,â in EMNLP Findings, 2024, p. 5624-5643. [35] X. Zhang, Y. Liu, and Z. Zhao, âDual Relation-Aware Entity Alignment for Knowledge Graph,â in IJCNN, 2023, p. 1-7. [36] Z. Liu, Y. Xu, T. Yu, W. Dai, Z. Ji, S. Cahyawijaya, A. Madotto, and P. Fung, âCrossNER: Evaluating Cross-Domain Named Entity Recognition,â in AAAI, 2021, p. 13452-13460. [37] E. F. Tjong Kim Sang and F. De Meulder, âIntroduction to the CoNLL- 2003 Shared Task: Language-Independent Named Entity Recognition,â in CoNLL, 2003, p. 142-147. [38] Qwen Team, âQwen2.5: A Party of Foundation Models,â Tech. Rep., 2024. [Online]. Available: https://qwenlm.github.io/blog/qwen2.5/ [39] DeepSeek-AI, âDeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning,â arXiv:2501.12948, 2025. [40] Z. Chen, L. Bai, Z. Li, Z. Huang, X. Jin, and Y. Dou, âA New Pipeline for Knowledge Graph Reasoning Enhanced by Large Language Models Without Fine-Tuning,â in EMNLP, 2024, p. 1366-1381. [41] Z. Jin, P. Cao, Y. Chen, K. Liu, and J. Zhao, âA Good Neighbor, A Found Treasure: Mining Treasured Neighbors for Knowledge Graph Entity Typing,â in EMNLP, 2022, p. 480-490. [42] J. Chen, Y. Lu, H. Lin, J. Lou, W. Jia, D. Dai, H. Wu, B. Cao, X. Han, and L. Sun, âLearning In-context Learning for Named Entity Recognition,â in ACL, 2023, p. 13661-13675.