Elamur Research

Improving Named Entity Recognition for Low-Resource Languages Using Large Language Models: A Ukrainian Case Study

Paper · 2025 · Vladyslav Radchenko and Nazarii Drushchak

Summary

A system that finds names in Ukrainian text has to recognize them in the form the writer used. It must also decide where each mention begins and ends and what kind of entity it denotes. These decisions matter when extracting facts from documents, answering questions, or identifying material for anonymization. Ukrainian makes the task demanding because words inflect, word order is flexible, and relatively little text has been annotated for the task. The authors ask whether generative systems can make named entity recognition work well with limited supervision and how close they can come to a dedicated recognizer trained on Ukrainian examples.

The comparison uses NER-UK 2.0, which the authors identify as the largest publicly available Ukrainian corpus manually annotated for this task. It has 560 texts and 21,993 entity mentions across 13 categories. The authors train encoder-only recognizers in spaCy, test generative systems with instructions alone or with worked examples, and adapt selected generative systems through supervised training with LoRA adapters. A further prompting condition asks for intermediate reasoning. Because a generated answer can be close to the source wording while differing in its exact form, the authors score it at successive stages. Bronze uses the response as returned. Silver cleans it and tries to align noisy mentions with the input. Gold also applies rules about which predictions can survive.

The strongest result on the benchmark is 0.890 overall entity-level F1 for the trained roberta-large-NER encoder. Supervised tuning brings Gemma-3-27B-IT close, at 0.888, with substantially greater computational demands and limited gains on sparsely represented categories such as TIME, MISC, and DOC. The headline prompted results are 0.724 for zero-shot GPT-4o and 0.712 for few-shot Gemma-3-27B-IT. The general-purpose recognizer GLiNER reaches 0.670 in its zero-shot comparison with little setup. Examples typically help the prompted systems, with exceptions, while asking for intermediate reasoning gives uneven results. Cleaning and filtering often improve F1 enough to change how a prompting result should be interpreted.

For this Ukrainian benchmark, a dedicated encoder offers the strongest combination of reported recognition quality and practical cost. Prompting remains a workable option when little labeled material is available, while supervised adaptation lets a generator compete with the best encoders when training data and compute are available. The authors release their experimental code and prompt templates in the NER-Ukrainian-LLMs repository. They also propose using the best recognizer to annotate social media text from UberText 2.0 for a future automatically labeled corpus.

Deep dive: Improving Named Entity Recognition for Low-Resource Languages Using Large Language Models: A Ukrainian Case Study

A Ukrainian named entity recognition study compares trained encoders, prompted language models, and supervised tuning on the NER-UK 2.0 benchmark. · about 32 minutes to read

The problem and its context

Recognizing a mention in ordinary text

Named entity recognition turns part of a document into structured information. A recognizer identifies a stretch of text and assigns a type to it, such as person, organization, or location. Both decisions are important. A system may recognize that a passage names an organization while omitting part of the name. It may recover the entire phrase and assign the wrong type. A reader can often infer what the system was trying to identify. A downstream process needs the location of the mention and a category it can act on.

The paper motivates the task with applications in information extraction and question answering, as well as data anonymization. Recognition gives an extraction system places to look for facts about people or organizations. In question answering, a category can help identify what sort of phrase could answer the question. In anonymization, a missed mention can leave sensitive text visible, while an incorrect prediction can remove material a reader needs. The paper cites domains such as healthcare, law, and finance to explain why these decisions matter. Its own experiment measures recognition against a corpus of annotated Ukrainian text.

The mention as it appears in the document is central to the task. A system that supplies a familiar form of a name may have identified the intended referent while failing to locate the actual expression. The difficulty is especially relevant to Ukrainian morphology. A name can take a different form in different grammatical contexts, so memorizing its citation form covers only some appearances. Ukrainian word order also gives fewer guarantees that a useful cue will occur at a familiar position relative to the mention. The authors give these characteristics as reasons to test transfer to Ukrainian directly.

The annotations define additional distinctions beyond familiar proper-name categories. The benchmark includes labels for expressions such as dates and times, as well as categories such as DOC and MISC. A system must learn where the benchmark draws those boundaries. For example, recognizing that an expression refers to a document is only part of what the annotator decides. The span and category must also follow the corpus convention. With few examples of a type, a system has less evidence about the convention and an evaluation has fewer cases on which to show whether the system learned it.

How recognition systems acquired their rules

The authors trace earlier recognition methods from hand-built rules to learned representations. Rule-based systems used dictionaries and regular expressions, among other manually specified cues. Where text follows predictable patterns, a rule can give a direct account of why a span was selected. The difficulty is maintaining coverage when the same entity appears in a different form or the recognizer moves to a genre with different conventions. The paper describes this as a limit on flexibility and scale.

Feature-based statistical methods moved some of that decision-making into a training procedure. The paper mentions conditional random fields and support vector machines as examples. These approaches could learn from combinations of linguistic features, reducing the need to write a rule for every situation. They still depended on labeled instances from which to learn. Changing the source of the rules therefore eased one kind of manual work while leaving the need for annotated text.

In the authors’ account, recurrent neural networks and long short-term memory networks reduced the need for hand-selected features by learning representations from text. Encoders using a Transformer then made it possible to use self-attention to represent each position in relation to its context. The authors identify BERT as an influential encoder architecture in this development. Contextual representations are useful for deciding whether a word is part of a mention and what the rest of that mention includes. The paper argues that good training data still matters when the recognizer has to transfer across languages and domains. Attention Is All You Need

The earlier responses to scarce labels included transferring knowledge from other languages, augmenting available data, selecting examples through active learning, and asking pretrained systems to perform extraction from instructions. These approaches address different parts of the shortage. Transfer aims to reuse what was learned elsewhere. Augmentation increases the material available to train on. Active learning concentrates annotation on selected examples. Prompted extraction uses the knowledge acquired during pretraining and moves task instructions into the request. The Ukrainian study tests that last option alongside supervised adaptation and dedicated recognition.

What Ukrainian resources make possible

The paper distinguishes corpora by how their labels were obtained and what kinds of text they cover. It mentions a news-focused Ukrainian effort whose data were unavailable publicly. A resource can establish that annotation is feasible while remaining difficult for other researchers to build on if they cannot use the texts and labels. The authors also discuss corpora with automatically assigned labels, including POLYGLOT-NER, WikiANN, and Ukr-Synth. Such resources offer broader coverage, with the limitations that come from smaller entity inventories and the absence of manual verification. Cross-lingual Name Tagging and Linking for 282 Languages

SlavNER offers another point of comparison. It includes manually annotated Ukrainian material, but its Ukrainian examples come from Wikipedia-derived text and the inventory covers five entity types. Manual verification and scope are separate properties. A corpus can offer careful judgments on its own material while giving a recognizer little practice with genres or categories outside that collection. NER-UK 2.0 gives the authors a common standard that includes several genres and a wider category inventory.

The use of one common corpus addresses a specific problem in comparing approaches. If a dedicated recognizer is scored on one label inventory and a prompted generator on another, differences in the reported scores can reflect what counts as an entity. Using NER-UK 2.0 keeps the target definitions shared. It leaves open how each approach would respond to new domains or different annotation policies. The authors address the consistency of scoring within the chosen benchmark through their output-processing procedure.

Why instructions were a plausible alternative

The paper describes few-shot learning as a way of giving a pretrained generator a small amount of task-specific evidence at the time of prediction. In zero-shot prompting, an instruction tells the system what to find. In few-shot prompting, worked examples also show how input text should map to an answer. This distinction matters for a task with a local annotation policy. Category descriptions tell the system the intended meaning of each label. Demonstrations can also communicate what the authors expect to see in the response and how much of the source wording to retain. Language Models are Few-Shot Learners

The paper cites GPT-NER and PromptNER as earlier work on framing recognition as an instruction-following task. It also discusses more general instruction tuning and reports prior applications to specialized recognition, including biomedical work. These examples motivate testing the approach on Ukrainian, where its value depends on how well it handles the language and the benchmark’s categories. The study also considers chain-of-thought prompting, which asks the system to work through intermediate reasoning before returning an answer. For a span task, any benefit from that reasoning still has to appear in the extracted text and its label. GPT-NER · Finetuned Language Models Are Zero-Shot Learners

General-purpose generation also changes where mistakes can enter. A dedicated encoder analyzes the input and can assign labels directly to positions in it. A generator writes an answer whose words have to be mapped back to those positions. A correct answer in ordinary language may consequently be awkward to score as extraction. The authors make this distinction part of the experiment by measuring what comes out initially, what can be recovered through surface alignment, and what survives explicit constraints.

The method, step by step

Establishing what the system must predict

The procedure starts with annotated documents from NER-UK 2.0. Its annotation uses the IOB labeling scheme. A beginning marker identifies the start of a mention, an inside marker identifies a continuation, and an outside marker identifies material that belongs to no annotated mention. The entity category accompanies the markers for a span. Distinguishing a start from a continuation lets an evaluator recover separate mentions even when adjacent words carry the same category.

The labels give the experiments a shared destination, although the systems reach it in different ways. A dedicated recognizer can make decisions over the source text. A prompted generator returns candidate mentions in its answer. Once the answer can be interpreted as spans and types, both kinds of prediction can be compared with manual annotation. The crucial unit of evaluation is the complete entity mention. Getting an interior word right provides evidence about what the system recognized, but does not by itself recover the entity for this evaluation.

From annotated Ukrainian text to entity-level evaluation

The steps in order.

From annotated Ukrainian text to entity-level evaluationStep 1: Start with annotated NER-UK 2.0 documents1. Start with annotated NER-UK 2.0 documentsStep 2: Train encoders on labeled Ukrainian examples2. Train encoders on labeled Ukrainian examplesStep 3: Test instruction-only, example-based, and reasoning prompts3. Test instruction-only, example-based, and reasoning promptsStep 4: Adapt selected generators with supervised LoRA training4. Adapt selected generators with supervised LoRA trainingStep 5: Score raw predictions at Bronze5. Score raw predictions at BronzeStep 6: Align and clean predictions for Silver6. Align and clean predictions for SilverStep 7: Apply entity constraints for Gold7. Apply entity constraints for GoldStep 8: Compare predicted mentions with human annotations8. Compare predicted mentions with human annotations

The training and prompting steps are experimental branches. An encoder is trained as a recognizer, while an untuned generator is tested with prompts or adapted in a separate supervised experiment. The processing stages describe the successive treatment of returned predictions. The authors present them most directly for prompted generation and also report stage-by-stage results for zero-shot generalist recognizers. Their encoder and final supervised-tuning results are reported as aggregate and per-category comparisons.

Training a dedicated encoder

The encoder experiments use the spaCy training pipeline. Fine-tuning adapts a pretrained system using labeled examples of the target task. During supervised training, the system can learn from both the text around a mention and the benchmark’s labeling choices. It can adjust its judgments across many training instances, whereas a prompt demonstrates the task only through the material supplied in the current request.

The authors choose encoders that offer different starting points for Ukrainian recognition. The reported comparison includes roberta-large-NER, xlm-roberta-large, Modern-BERT-large, and a trained GLiNER variant. It also includes the retrained uk-ner-web-trf-13class recognizer. The inclusion of a multilingual encoder is relevant because exposure to more than one language offers a way to reuse representation learning for Ukrainian. The article on ModernBERT cited by the authors provides the background for another encoder family they evaluate. Unsupervised Cross-lingual Representation Learning at Scale · ModernBERT

The previous release of uk-ner-web-trf-13class needed a correction before it could serve as a comparison. The authors found that the earlier training procedure had used the test set to choose the best checkpoint. A checkpoint is a saved state of the system during training. When its selection depends on the test set, the procedure has already used that set to make a training decision. The authors retrain the recognizer using a validation setup intended for checkpoint choice, keeping the benchmark test separate from that choice.

GLiNER has two roles in the paper. In the supervised comparison, a GLiNER variant learns from the Ukrainian task data. In the generalist experiment, a recognizer is applied zero-shot to the target categories. Comparing these roles requires attention to the preparation each result received. A score for a trained GLiNER recognizer answers a different question from the score for a generalist recognizer used with minimal task-specific setup. GLiNER

Giving instructions, examples, or a reasoning task

In the prompting branch, the authors use pretrained generative systems to produce candidate entities. They select open systems from strong entries on the Hugging Face Open LLM Leaderboard and include a proprietary system through API access. The stated computational ceiling for open systems is 27 billion parameters. The size inventory gives 27.4B for Gemma-3-27B-IT and 27.2B for Gemma-2-27B-IT, so the stated ceiling is best read as an approximate description of the range they included. The authors use vLLM for scalable decoding in the prompting setup.

Zero-shot prompting gives the generator a task instruction with no labeled demonstration in the prompt. The system has to apply what it already knows about text and categories to the new input. Few-shot prompting adds worked examples of the extraction task. Those examples can communicate expectations that are awkward to specify in a label name alone, including how a mention appears in the returned answer and which contextual expressions receive a label. Both settings give the system task information. They differ in the kind of evidence that accompanies the request.

The chain-of-thought condition changes the instructions to elicit intermediary reasoning. A generator might use this space to consider possible types or decide where a phrase stops. The measure of success remains the final set of typed mentions. An explanation of a choice can sound reasonable while the chosen span is inaccurate. Conversely, a short response can provide a valid span with no account of how it was chosen. This experiment asks whether requesting the reasoning step helps the output that is ultimately scored.

The authors make code and prompt templates available in the NER-Ukrainian-LLMs repository. Those templates are part of the experimental setup because the scores apply to the task formulations used. The paper compares the prompt conditions as practical ways of eliciting predictions. Its results do not isolate the effect of every phrase in the instructions or separately measure how much of a demonstration’s benefit comes from teaching the response format.

Adapting generation with supervised examples

The supervised fine-tuning branch uses labeled data to change the generator’s behavior during training. Here, the association between an input and its expected extraction is learned from supervised examples. This exposes the generator to the annotation conventions across training items. The result is still a generator whose output can require interpretation as spans. The authors use Unsloth for training and Transformers for inference in this branch.

The training uses LoRA adapters. LoRA makes adaptation parameter-efficient by expressing updates through smaller trainable components in the network, retaining the original pretrained weights. This matters in a study that includes generators much larger than the dedicated encoders. Reducing the parameters updated in training makes adaptation more tractable. The generator’s underlying capacity still has to be available when producing answers, which helps explain why the paper continues to treat the tuned generator as the more resource-intensive option.

The rank of a LoRA adapter controls how much flexibility its update has. A higher rank permits a larger family of updates, but the empirical question is whether the additional flexibility improves recognition on the data used in the comparison. The rank experiment evaluates settings denoted by r=16, r=32, and r=64 in the paper’s 80% Data condition. The authors limit their hyper-parameter search. The rank comparison gives evidence about this particular training choice within the tested range, while the final tuned runs provide the headline results.

For the supervised generative comparison, the authors are interested in more than whether aggregate F1 rises. The trained generator has access to labeled examples, so a natural question is whether it learns the categories that prompting handles poorly and whether it can improve categories for which the benchmark offers little evidence. The paper reports per-category results to make those questions distinguishable. A generator can become a good recognizer overall while remaining unreliable for particular rare classes.

Cleaning the returned entities

Bronze is the evaluation of the raw prediction. At this stage, the score reflects how well the system both identifies mentions and returns them in a form that can be used. A surface discrepancy can hurt extraction even when a reader would connect the returned name to the text. Bronze preserves that friction in the measurement, which matters in applications where the response must be consumed directly.

Silver introduces light cleaning. The authors describe removing hallucinated mentions and using character-level similarity to align variants with valid spans in the source text. In this task, a hallucinated mention is a returned entity that is unsupported by the document. Correcting a variant is a different operation. The answer suggests a plausible source mention, and alignment attempts to recover the wording the document actually contains. This is relevant to names returned in a different inflected form.

The similarity measure is cosine similarity over character n-grams. An n-gram is a contiguous sequence of a specified length, here made of characters. A short sequence can occur in both the predicted wording and a source expression even when the complete strings differ. A standard mathematical description of the named similarity measure is:

cos(u, v) = (u · v) ÷ (‖u‖ × ‖v‖)

Here u and v are vectors representing the character n-grams in the generated mention and a candidate source span. The notation cos(u, v) denotes the cosine similarity between those vectors. The dot in u · v is their dot product, which measures how the corresponding features agree. The expressions ‖u‖ and ‖v‖ are the vector lengths. The multiplication sign combines the lengths, and the division sign normalizes the dot product by that product. This describes the measure. The paper names it without stating all the choices that govern which candidate spans are considered or when a match is accepted.

Cosine similarity can help match overlapping spellings. The category still comes from the recognition process, and an orthographic match alone has no way to establish that the benchmark labels the aligned phrase with that category. This is one reason the paper separates alignment from the next stage. The stages intervene on different properties of the prediction.

Gold adds rule-based filtering. The paper gives the examples of excluding person predictions that begin with a lower-case letter and excluding pronouns returned as people. The pronoun check uses part-of-speech tags from Stanza. A part-of-speech tag describes a word’s grammatical role, such as pronoun. It gives the filter an additional clue beyond the letters of a candidate name. The rule is applied to the prediction after generation, so any benefit belongs to the combined extraction procedure.

In this paper, Gold is a name for the last processing stage. The reference against which it is scored is still the manual annotation. This distinction matters when comparing the results with the authors’ future plan for a silver-standard corpus. The latter describes the provenance of new labels. Bronze, Silver, and Gold in the experiment describe what happens to predictions before scoring.

Measuring a correct entity

The paper uses entity-level F1 as its primary metric. Precision measures the share of returned mentions that count as correct. Recall measures the share of annotated mentions that the system successfully recovers. A system that predicts many extra mentions can hurt precision, and a system that keeps only a narrow set of guesses can miss annotated entities and hurt recall. F1 brings both quantities into one number. In standard notation, the metric named by the authors is:

F₁ = 2 × P × R ÷ (P + R)

Here F₁ is the F1 score, P is entity-level precision, and R is entity-level recall. The 2 is the constant in the harmonic mean of the pair. The multiplication signs form the scaled product of precision and recall, the plus sign forms their sum, and the division sign divides the product by that sum. The subscript in F₁ identifies the version of the F measure that balances precision and recall equally.

The paper follows the entity-level evaluation of NER-UK 2.0 and reports overall F1 alongside F1 by category. The overall score shows how a recognizer fares across the task. The category scores reveal whether it handles person mentions as well as document mentions, for example. Because some labels occur much less often, those category scores are important for understanding practical behavior. The overall ordering between systems need not repeat itself for every label.

Experiments and results

The benchmark and the comparison

NER-UK 2.0 has 560 documents and 21,993 annotated entities in 13 categories. It brings together procurement contracts and legal documents with news and social media. These sources put recognizers in contact with different styles of writing within the same benchmark. A result on the combined data summarizes performance across that mixture. The paper’s overall and per-entity results leave the contribution of each genre to the aggregate unresolved.

Persons, tagged PERS, and organizations, tagged ORG, are relatively common. DOC and TIME occur less often. The authors also identify subjective decisions for MISC. This gives the benchmark more than one kind of difficulty. Scarcity limits how frequently a category is seen during supervised training. A category boundary that depends on judgment creates a different challenge, since a system must conform to how the annotation was applied. Category-level F1 shows which labels are difficult for a system without deciding how much each source of difficulty contributed.

The comparisons use a strong supervised reference point. If the encoder baselines were weak, a generator could appear competitive without demonstrating that its recognition matched existing supervised approaches. The authors train several such baselines, correct the earlier validation problem, and report an overall leader as well as a category breakdown. They then compare that reference with prompted extraction, the zero-shot generalist route, and supervised adaptation of generators.

The headline comparison below uses the overall benchmark F1 figures from the paper’s main cross-approach table. Each row retains the preparation associated with its score. The prompted GPT-4o result, for example, comes from zero-shot use, while the two Gemma-3-27B-IT rows correspond to separate prompting and supervised-tuning experiments.

Best reported approaches on NER-UK 2.0 by overall entity-level F1

The trained encoder leads, with the supervised Gemma run close behind.

Best reported approaches on NER-UK 2.0 by overall entity-level F1roberta-large-NER, encoder fine-tuning (this paper): 0.890roberta-large-NER, encoder fine-tuning(this paper)0.890Gemma-3-27B-IT, supervised fine-tuning: 0.888Gemma-3-27B-IT, supervised fine-tuning0.888GPT-4o, zero-shot prompting: 0.724GPT-4o, zero-shot prompting0.724Gemma-3-27B-IT, few-shot prompting: 0.712Gemma-3-27B-IT, few-shot prompting0.712GLiNER, zero-shot recognition: 0.670GLiNER, zero-shot recognition0.670
The numbers
System or settingF1
roberta-large-NER, encoder fine-tuning (this paper)0.890
Gemma-3-27B-IT, supervised fine-tuning0.888
GPT-4o, zero-shot prompting0.724
Gemma-3-27B-IT, few-shot prompting0.712
GLiNER, zero-shot recognition0.670

Dedicated encoders

Among the tuned encoders, roberta-large-NER reaches 0.890 overall entity-level F1 on NER-UK 2.0. The authors describe it as a new benchmark best. Xlm-roberta-large reaches 0.889, and the retrained uk-ner-web-trf-13class reaches 0.887. The close ordering of these runs is worth retaining when interpreting the leader. Multiple supervised encoders achieve similar aggregate performance, and their category-level results give different reasons to favor a particular run for a narrower extraction task.

For example, roberta-large-NER and xlm-roberta-large both score 0.968 F1 for PERS in the encoder results. On DOC, the retrained uk-ner-web-trf-13class reaches 0.574, compared with 0.561 for roberta-large-NER. On TIME, the retrained system reaches 0.700, while xlm-roberta-large reaches 0.609 and roberta-large-NER reaches 0.500. The overall leader’s strength comes from its performance across the benchmark. The category table shows why its aggregate ranking does not settle a comparison for infrequent types.

The tuned gliner-multi-v2.1 entry reaches 0.855 overall F1. Modern-BERT-large reaches 0.762. This is the clear outlier below the other encoder results, which run from 0.855 to 0.890 overall F1. Modern-BERT-large records 0.862 on PERS and 0.791 on ORG, compared with 0.968 and 0.916 for roberta-large-NER. On TIME it scores 0.000. Its weaker position therefore appears in frequent labels as well as in that rare category.

The authors suggest that Modern-BERT-large’s monolingual orientation and limited exposure to Ukrainian may contribute to its performance. That account is consistent with the problem that motivates the paper, since a strong encoder in one language can still face poor transfer to another. The benchmark compares systems with different starting points and training histories. It does not vary Ukrainian pretraining exposure within a fixed encoder to estimate its independent effect.

Some less common categories also help explain the encoder leader’s overall result. For roberta-large-NER, ART has F1 of 0.737 and JOB has 0.699. The same run scores 0.344 for MISC, so the performance on less common categories varies considerably by label. A method that learns one relatively uncommon category can still struggle with another whose examples or annotation decisions are different.

Prompting with scarce supervision

The main table gives GPT-4o’s zero-shot result as 0.724 overall entity-level F1. For Gemma-3-27B-IT, the selected few-shot result is 0.712 in that table. The stage-by-stage results give GPT-4o’s Gold zero-shot result as 0.72 and Gemma-3-27B-IT’s Gold few-shot result as 0.71. The paper’s detailed side-by-side table additionally lists 0.713 for the prompted Gemma entry. Taken as reported, these figures place both systems in the same general range. The conflicting Gemma figures at the finer precision should stay attached to their respective tables.

The comparison establishes that instructions and a limited amount of example material can support substantial Ukrainian extraction without supervised adaptation of the generator. It also shows a sizable separation from the trained encoders in the chosen benchmark. The practical comparison depends on what a user has available. Prompting avoids a dedicated training run. Each extraction still requires decoding a response and, for the Gold results, cleaning or filtering it before scoring.

The overall F1 scores for prompted extraction conceal sharp differences among categories. In the detailed comparison, zero-shot GPT-4o reaches 0.900 for PERS and 0.809 for ORG. Its DOC score is 0.122 and its MISC score is 0.077. The few-shot Gemma-3-27B-IT entry reaches 0.870 for PERS and 0.782 for LOC, with 0.000 for DOC and MISC. These results distinguish the ability to recognize familiar name types from the ability to follow the full benchmark inventory.

The detailed comparison also shows that the two leading prompted entries do not produce identical profiles. Gemma-3-27B-IT has 0.738 F1 for DATE against 0.650 for GPT-4o. For MON, GPT-4o reaches 0.916 and Gemma-3-27B-IT reaches 0.525. Those rows concern different systems and different prompting conditions. They show where the reported configurations differ, but cannot say whether a gap is due to pretraining, architecture, a demonstration, or how the answers interacted with the processing rules.

The paper describes a broad benefit from few-shot examples, with visible exceptions in the detailed results. Gemma-3-27B-IT is a clear case in favor of demonstrations. Its Bronze zero-shot F1 is 0.39, and its Bronze few-shot F1 is 0.67. At Gold the corresponding scores are 0.56 and 0.71. For GPT-4o, examples improve the Bronze comparison from 0.67 in zero-shot to 0.71 in few-shot, while at Gold the zero-shot result of 0.72 is ahead of the few-shot result of 0.71. The ordering can depend on what happens after generation.

A general-purpose recognizer used directly

The zero-shot experiment with generalist recognizers gives a comparison for situations in which a full generative prompt setup may be unnecessary. At Gold, gliner-multi-v2.1 scores 0.67 overall F1 on NER-UK 2.0. Gliner-multi-pii-v1 reaches 0.62 and NuNER-Zero reaches 0.58. The main cross-approach table writes the leading GLiNER score as 0.670. The detailed per-category comparison writes its overall figure as 0.669. As with prompted Gemma, the reported precision depends on which table is being read.

The authors present the generalist approach as accessible because it requires little setup. Its score is lower than those of the leading prompted generators. It retains useful performance on some categories. In the detailed comparison, GLiNER reaches 0.863 for PERS and 0.812 for MON, while scoring 0.111 on DOC and 0.000 on MISC. The relevant practical question is which categories the intended extraction needs. The overall F1 gives a benchmark comparison, and the rows explain why the same recognizer can appear quite usable for one category and weak for another.

The two GLiNER comparisons also show how much the setup matters when reporting a system name. Gliner-multi-v2.1 at 0.855 belongs to the supervised encoder experiment. Its 0.67 result belongs to zero-shot use with Gold processing. The former asks how well the recognizer can learn from Ukrainian annotation. The latter asks how well the generalist system can be applied to the benchmark with minimal adaptation. Both are useful comparisons under their own supervision conditions.

Supervised adaptation of generators

After supervised adaptation, Gemma-3-27B-IT reaches 0.888 overall entity-level F1. That makes it the closest generative result to the leading encoder in the headline comparison. The final supervised results also give Qwen2.5-14B-Instruct an overall F1 of 0.867. Supervised adaptation can therefore produce competitive results beyond the leading run, although the aggregate scores differ among tuned generators.

A comparison of the strongest tuned systems shows where the aggregate similarity comes from. Gemma-3-27B-IT has F1 of 0.929 on LOC, 0.906 on DATE, and 0.923 on ORG. The corresponding scores for roberta-large-NER are 0.916, 0.895, and 0.916. The encoder leads on JOB, with 0.699 against 0.642, and on ART, with 0.737 against 0.716. Gains in some categories accompany weaker performance in others. The aggregate comparison summarizes how those profiles fare on the benchmark as a whole.

The sparsely represented categories give a mixed answer to the authors’ question about whether adaptation helps. Gemma-3-27B-IT scores 0.632 F1 for TIME, above the leading encoder’s 0.500, while the retrained uk-ner-web-trf-13class has 0.700. On DOC, Gemma-3-27B-IT scores 0.514 and roberta-large-NER scores 0.561. For MISC, those systems score 0.350 and 0.344 respectively. Supervised adaptation makes generation much more competitive overall. The results provide no general pattern of superiority on rare labels.

For a reader choosing among approaches, there are distinct comparisons in the result. The headline rank favors a dedicated encoder. The supervised Gemma experiment demonstrates that a generator can approach that level within the tested conditions. The prompting and generalist experiments show what is available with much less task-specific supervision. The paper’s judgment about computational cost is qualitative. The F1 values quantify recognition performance, while the authors describe the tuned generative route as more demanding to train and use.

What the ablations show

Instructions, examples, and intermediate reasoning

The closest controls on prompting come from comparing settings for the same system and at the same stage of processing. That is a narrower comparison than putting the best proprietary result beside the best open result. When the system and scoring stage are fixed, changing the prompting condition shows how the tested instructions affect that system’s extractable output. It still measures the particular prompt and examples used, including their presentation and their relevance to the test inputs.

Gemma-3-27B-IT shows a large and persistent advantage for examples in the reported stage comparison. Its few-shot F1 is 0.67 at Bronze, 0.69 at Silver, and 0.71 at Gold. Its zero-shot F1 is 0.39 at Bronze, 0.41 at Silver, and 0.56 at Gold. The demonstrations help in the raw output, and the advantage remains after processing. The stage comparison cannot determine whether the benefit comes primarily from recognizing more entities, labeling them more accurately, or presenting them in a form easier to recover. All of these changes can affect entity-level F1.

The benefit from chain-of-thought is less consistent. For Gemma-3-27B-IT at Gold, it scores 0.58, alongside 0.56 in zero-shot and 0.71 in few-shot. Gemma-2-9B-IT has 0.60 with chain-of-thought at Gold, between its zero-shot score of 0.55 and its few-shot score of 0.62. GPT-4o’s Gold chain-of-thought score is 0.68, compared with 0.72 in zero-shot and 0.71 in few-shot. These examples show why adding a reasoning instruction cannot be counted on to help extraction. The result depends on the system and on the comparison used.

The authors connect this variability to the span-based character of the task. A reasoning prompt may encourage the system to discuss why an expression seems to name a person or an organization. F1 rewards the subsequent entity prediction according to the reference. A narrative that correctly recognizes something about the mention can still accompany a poor boundary or a wrong label. The experiment measures the effect of asking for reasoning on the scored answer. It offers no separate measure of the quality of the reasoning itself.

There are exceptions to the broad few-shot pattern beyond the GPT-4o Gold result. DeepSeek-R1-Distill-Qwen-14B has Gold F1 of 0.42 in zero-shot, 0.13 in few-shot, and 0.46 with chain-of-thought. Its examples condition performs poorly at Bronze and Silver as well. The rank ordering across prompts can therefore differ markedly by system. The paper supports demonstrations as a good general starting point in its benchmark, while individual systems still require empirical comparison of the available prompts.

Where post-processing contributes

The successive Bronze, Silver, and Gold comparisons measure what response processing adds to a fixed system and prompting condition. With Gemma-3-27B-IT in zero-shot mode, the movement from raw output to light cleaning is from 0.39 to 0.41 overall entity-level F1 on NER-UK 2.0, followed by 0.56 under Gold. The chart shows the three observed stages. Each includes the processing inherited from the preceding stage.

Gemma-3-27B-IT zero-shot processing stages on NER-UK 2.0 by overall F1

The filtering stage gives the strongest result for the same prompted system.

Gemma-3-27B-IT zero-shot processing stages on NER-UK 2.0 by overall F1Bronze, raw predicted entities: 0.39Bronze, raw predicted entities0.39Silver, cleaned and aligned entities: 0.41Silver, cleaned and aligned entities0.41Gold, additional rule-based filtering (this paper): 0.56Gold, additional rule-based filtering(this paper)0.56
The numbers
System or settingF1
Bronze, raw predicted entities0.39
Silver, cleaned and aligned entities0.41
Gold, additional rule-based filtering (this paper)0.56

For this setting, the raw output substantially understates what the complete extraction procedure recovers. The Silver change is modest relative to the Gold change. This tells a reader which transition matters more for the reported configuration. It cannot identify which individual rule was responsible, since the paper groups the Gold filters and does not give separate metrics for removing lower-case person predictions and removing pronouns.

Silver itself combines more than one change. It removes unsupported predictions and attempts to align usable variants to expressions in the input. Removal can prevent false predictions. Realignment can recover a mention that would otherwise fail the comparison because of its wording or boundaries. F1 captures their combined consequences. The stage scores provide no counts of the mentions repaired, the predictions rejected, or the valid mentions lost in processing. Separate precision and recall at each stage would be needed to trace their effects in that detail.

The generalist experiment offers a useful contrast within the paper’s own results. Gliner-multi-v2.1 has F1 of 0.53 at both Bronze and Silver and 0.67 at Gold. Gliner-multi-pii-v1 records 0.46 at both earlier stages and 0.62 at Gold. NuNER-Zero has 0.41 at Bronze and Silver and 0.58 at Gold. At the displayed precision, the Silver intervention gives no gain for these entries. The improvement appears in the stage that applies the additional rules. Gold can therefore help predictions beyond the generative prompt branch.

The stage comparison also changes how to understand a number such as GPT-4o’s zero-shot score. This run has F1 of 0.67 at Bronze, 0.68 at Silver, and 0.72 at Gold. Its strongest reported zero-shot result describes the system plus the rules used to process its answer. The Bronze result has a separate use as a measure of how well the response works with no cleanup. Results on other corpora would depend on how those corpora treat the forms affected by the filters.

Across these cases, the authors interpret some generated errors as near misses that a normalization procedure can repair. The staged evidence is consistent with that interpretation, especially where Silver improves the score. When most of the observed gain arrives with Gold, the evidence points more directly to the value of filtering candidate entities. A higher F1 after filtering can follow from rejecting bad predictions even if the system located no additional correct mentions.

How much adapter rank helps

The adapter experiment varies LoRA rank under the configuration labeled 80% Data. The paper evaluates r=16, r=32, and r=64 within that configuration. In the Gemma-3-27B-IT row, overall F1 is 0.867 at r=16, 0.879 at r=32, and 0.882 at r=64. The largest tested rank gives the strongest result for that row. This gives a concrete reason to prefer the higher rank for the tested Gemma configuration even though the authors do not perform an extensive search.

Gemma-3-27B-IT LoRA ranks on NER-UK 2.0 in the 80% Data condition

Overall entity-level F1 rises across the tested adapter ranks.

Gemma-3-27B-IT LoRA ranks on NER-UK 2.0 in the 80% Data conditionLoRA rank 16: 0.867LoRA rank 160.867LoRA rank 32: 0.879LoRA rank 320.879LoRA rank 64 (this paper): 0.882LoRA rank 64 (this paper)0.882
The numbers
System or settingF1
LoRA rank 160.867
LoRA rank 320.879
LoRA rank 64 (this paper)0.882

In the Qwen-2.5-14B-Instruct row, the same rank settings produce 0.851, 0.851, and 0.853 overall F1. The reported Gemma-2-27B-IT results are 0.865, 0.860, and 0.864. The pattern across rank settings thus depends on the starting system. Increasing the flexibility of the adapter helps the strongest Gemma row in this test, while another row is highest at the smallest tested rank. The experiment does not establish a common rank rule for all the systems studied.

The rank sweep and the final supervised results answer different questions. The sweep reports sensitivity under the 80% Data condition, and the final comparison reports the selected supervised runs. Comparing 0.882 in the Gemma sweep directly with its final 0.888 does not isolate the benefit of changing the amount of data or any other training choice. The most direct rank evidence comes from holding the reported data condition fixed and reading across a row.

What the category comparisons add

The cross-approach breakdown is a diagnostic instead of a controlled removal of a component. It shows where the aggregate scores come from. PERS is relatively strong even in the prompted runs, and DOC remains difficult across them. Training improves DOC substantially in the Gemma comparison, from 0.000 in the highlighted few-shot result to 0.514 in the supervised result. The trained encoder still reaches 0.561. The comparison shows the practical gains associated with the two preparations without isolating which training examples were decisive.

TIME and MISC complicate any simple account of rare-category performance. On TIME, the tuned Gemma lead over roberta-large-NER coexists with a stronger result from another encoder. On MISC, both leading tuned approaches have low F1 relative to their strong categories. The paper gives scarcity and subjective annotation as relevant context. The results do not tell how much improvement would follow from collecting more examples and how much would follow from making a category easier to annotate consistently.

The correction of uk-ner-web-trf-13class is also important to the experimental comparisons, though it is distinct from an ablation. It removes the use of test data for checkpoint selection. The retrained result provides a supervised reference on the intended terms of the comparison. The paper gives no matched before-and-after scores from which to estimate the magnitude of the earlier selection effect.

Limitations

Limits identified by the authors

All experiments use NER-UK 2.0. Its range of genres makes it valuable for Ukrainian recognition, but all the genres still belong to the same corpus and annotation policy. The authors note domain bias within the collection as well as unequal category frequencies and the subjectivity of judgments such as MISC. A recognizer that does well on the combined benchmark has demonstrated its ability on that particular mix of texts and labels. How well it transfers to other Ukrainian collections or to another language is open.

The authors also limit the scale of systems they test. Their open-system selection concentrates around the stated 27B scale and below, and access to proprietary systems is limited. The proprietary result is enough to compare one strong API-based approach with the tested open systems. It provides little basis for an overall ranking of proprietary and open systems. Differences between individual results can reflect language exposure and other aspects of pretraining as well as parameter count.

Several prominent approaches to generative recognition were explored only to a limited extent because of time and computational constraints. The supervised runs use minimal hyper-parameter tuning. These design choices make the study a comparison of practical configurations, with an adapter rank experiment to check one training variable. The authors leave open how much can be gained through a wider search of prompts, training settings, or recognition methods.

The generative systems are used as generators in the experiments. The authors leave a different architectural possibility for future work, in which a pretrained generative system is used in an encoder-style arrangement to predict directly at text positions. That distinction matters to the conclusions about efficiency and output processing. The paper measures a route that writes answers and then interprets them as spans. An adaptation that assigns labels directly to input positions could behave differently.

Limits of the reported comparisons

The headline F1 results favor the dedicated encoder, but the small separation between the leading supervised runs is difficult to interpret beyond their reported order. The paper gives point estimates without an uncertainty interval or a repeated-run distribution for the headline comparison. The benchmark establishes which entry scored highest in the experiments. It leaves unresolved whether another training run or a differently composed test set would preserve the fine-grained order among the leaders.

The prompt comparison keeps annotation requirements distinct in practical terms. A zero-shot recognizer has no worked example in its prompt. A few-shot recognizer receives examples. The trained systems learn from an annotated corpus. These are useful settings to compare because they reflect different choices a practitioner could make. They do not form a matched study of how much F1 each architecture can recover per labeled example. The reported 80% Data condition is a rank experiment. It does not trace a series of label budgets for both encoders and generators.

Likewise, the paper describes resource demands without reporting a shared accounting of latency, training time, memory, or cost per document. The generator’s larger size and decoding procedure give context for the authors’ efficiency judgment. A deployment decision still calls for measurements under the intended hardware and workload. The authors also use different software pipelines for supervised encoders, prompted decoding, and supervised generative inference. Their comparison evaluates those combinations as configured.

The stage analysis shows the value of rules within the benchmark. Generality of individual rules remains open. For example, a lower-case filter assumes that a lower-case beginning is grounds to reject a predicted person span. Since the dataset includes social media, the question of what such a rule does to unusual capitalization is relevant. The paper does not give a genre-specific or individual-rule breakdown that would show which valid mentions, if any, are lost under that filter. It measures the combined effect on F1.

Finally, the per-category tables reveal weaknesses but have limited power to attribute them. The paper names rare labels and reports their scores without giving a class-support count next to each headline comparison. That makes it hard to judge how stable an unusual per-category result is or distinguish a small set of difficult cases from a wider failure pattern. The uneven category results warrant treating the benchmark leader as an aggregate leader. Recognition of a specific rare category remains a separate empirical question.

What came after

No later citing study is available to establish how the method performed in a subsequent experiment. The paper itself describes follow-up work the authors intend to pursue. The plans address two practical constraints exposed here. Generated answers incur a decoding and alignment cost, and the Ukrainian benchmark offers limited supervised evidence for some kinds of text and entities.

One proposed direction is to adapt generative systems for encoder-style prediction directly on tokens, the units to which recognition decisions can be assigned. In the current study, output processing can be needed because the system writes a response separately from the text it analyzes. Direct prediction would tie the decision to input positions from the start. It could retain useful pretrained representations while changing the mechanism by which the span is produced. The authors also propose exploring tuning with reinforcement learning from human feedback. The paper gives plans for these directions and no completed comparison for either.

The data proposal is to apply the best recognizer to the social media portion of UberText 2.0. That would create a silver-standard Ukrainian recognition resource, meaning the labels would come from automatic annotation. The authors propose this as a way to increase coverage in a genre already represented in NER-UK 2.0. The current experiments give a benchmark reason for selecting a recognizer for such a project. They provide no measurements of the quality or category distribution of the resulting annotations, which remain outcomes for the proposed follow-up.

Cite

Cite as Vladyslav Radchenko and Nazarii Drushchak. 2025. Improving Named Entity Recognition for Low-Resource Languages Using Large Language Models: A Ukrainian Case Study. Proceedings of the Fourth Ukrainian Natural Language Processing Workshop (UNLP 2025).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2025.unlp-1.3

@inproceedings{radchenko2025improving,
  title = {{Improving Named Entity Recognition for Low-Resource Languages Using Large Language Models: A Ukrainian Case Study}},
  author = {Vladyslav Radchenko and Nazarii Drushchak},
  booktitle = {Proceedings of the Fourth Ukrainian Natural Language Processing Workshop (UNLP 2025)},
  year = {2025},
  doi = {10.18653/v1/2025.unlp-1.3},
  url = {https://doi.org/10.18653/v1/2025.unlp-1.3}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/radchenko-2025-improving-named-entity-recognition-low/