Exploring the Potential of Large Language Models (LLMs) for Low-resource Languages: A Study on Named-Entity Recognition (NER) and Part-Of-Speech (POS) Tagging for Nepali Language
Paper · 2024 · Bipesh Subedi, Sunil Regmi, Bal Krishna Bal et al.
Summary
A tagger reading a Nepali sentence can be asked to identify the words that form a person’s name or to decide what grammatical role each word plays. Those are different jobs. Named entity recognition identifies mentions of people, places, organizations and other categories defined by the dataset. Part-of-speech tagging assigns grammatical categories to words in context. Both jobs require annotated examples for training and assessment. For Nepali, the supply of such examples is limited. Subedi and colleagues ask how well existing pretrained systems can learn these tasks from the available data, and whether systems pretrained in Nepali have an advantage over multilingual alternatives.
The authors compare eight systems in a shared experimental setup. The candidates include systems pretrained exclusively in Nepali, one pretrained in Hindi, one trained primarily in English, and multilingual systems that include Nepali. The authors adapt each candidate to the tagging tasks by continuing its training on labeled data, a procedure called fine-tuning. They use the ILPRL and EBIQUITY datasets, which supply annotations for both tasks and differ in size and tag inventory. The comparison uses F1, a score that brings together how often predicted labels are correct and how much of the annotated material the tagger recovers.
NepBERTa, pretrained exclusively in Nepali, leads the entity recognition comparison on both test sets. Its entity recognition F1 is 0.76 on ILPRL and 0.79 on EBIQUITY. Its part-of-speech F1 is 0.90 on ILPRL, the highest reported there, and 0.97 on EBIQUITY, where XLM-RoBERTa and HindBERT-scratch also reach 0.97. NepaliBERT, the other Nepali-only candidate, scores lower across both tasks and datasets. The results show that a Nepali-specific system can lead this comparison. They also show how much performance can vary among systems chosen for the same pretraining language.
The aggregate scores leave room for substantial errors on particular tags. The authors’ analysis of NepBERTa finds difficulties with some entity beginnings and continuations, alongside grammatical classes that are often confused. Earlier Nepali entity recognition studies report higher F1 scores than this study does, including work with a support vector machine and with a hybrid neural system. Those scores come from separate experiments. The paper establishes the standing of the pretrained candidates on its own datasets, while leaving the ranking between these candidates and earlier methods open under common test conditions.
Deep dive: Exploring the Potential of Large Language Models (LLMs) for Low-resource Languages: A Study on Named-Entity Recognition (NER) and Part-Of-Speech (POS) Tagging for Nepali Language
The study compares pretrained systems for finding named entities and assigning parts of speech in Nepali, with NepBERTa leading across two datasets. · about 30 minutes to read
The problem and its context
Learning to tag Nepali with limited annotated data
The study begins with a resource problem. A tagger can learn from sentences whose words have already been labeled, but producing such material requires someone to define the categories and apply them to examples. The resulting collection has to cover enough of the language for the tagger to learn useful distinctions. The authors identify the availability of quality linguistic data as a central obstacle for Nepali. They also point to the computing resources needed to adapt and evaluate existing systems. These are related constraints. Access to a pretrained starting point makes an experiment possible, while the cost of adapting several candidates still affects what can be tested.
The paper describes Nepali as an Indic language written in Devanagari. It gives an inventory of 33 consonants and 11 vowels and draws attention to the variety of combinations in the script and to the language’s grammatical structure. These are part of the authors’ explanation for why a system needs representations that work well with Nepali text. In the experiments, the practical question is whether those representations support the decisions a tagger must make. A system encounters words embedded in a sentence and must work out which labels the annotation scheme calls for at those positions. Knowing how to handle Devanagari text is one consideration in choosing a pretrained starting point. Success also requires learning the distinctions used by the task.
For entity recognition, the output has to mark the boundaries of a mention as well as its class. A person’s name can occupy several words. The beginning and later words belong to the same mention, with different position labels in the tagging schemes used here. A prediction can therefore miss the mention, assign the wrong type or identify only part of it. Words outside mentions also receive a label. Ordinary text supplies many opportunities to learn what an outside label looks like, while some kinds of entity may provide much less evidence for learning when a mention begins or continues. The paper returns to that asymmetry when discussing its test errors.
Part-of-speech tagging asks for the grammatical category assigned to a word where it occurs. The relevant clue can be the word itself or its relationship to the neighboring text. A dataset’s tag inventory determines how finely the tagger has to separate its categories. A broad category and several narrower labels impose different decisions on the learner, even when they cover related material. ILPRL and EBIQUITY use different inventories, so learning to reproduce the annotations of one dataset does not on its own establish how well a system will handle the labels of the other.
The practical appeal of pretraining is that the work of learning from text can begin before task annotations enter the picture. In the family of systems studied here, a pretraining objective asks the system to recover concealed text from the surrounding input. This gives a way to train on material that has no entity or grammatical tags. Task-specific supervision then supplies the information that pretraining leaves open, including the available labels and the boundaries annotators assign to mentions. The paper asks how far this arrangement can take Nepali tagging with existing alternatives for the pretrained component. Language models and pretraining
What earlier Nepali studies had tried
The related work spans approaches that learn from supplied features, methods that combine rules and statistical sequence decisions, and neural systems that learn features from text. The paper cites earlier named entity recognition work with support vector machines, hidden Markov models and rules. A support vector machine, abbreviated SVM, learns to separate labels using a representation of the examples. A hidden Markov model, abbreviated HMM, represents a sequence of observed words and underlying labels with probabilistic dependencies. A rule-based component uses explicit conditions to identify likely instances. These approaches provide ways of modeling the same task without adapting a large pretrained encoder. One of the studies reviewed uses an SVM specifically for Nepali entity recognition. Bam and Shahi’s Nepali named entity recognizer
Another line of work uses a hybrid referred to as BiLSTM+CNN. The name combines a bidirectional long short-term memory network with a convolutional neural network. In broad terms, the former follows a sequence in both directions, and the latter can detect patterns in local groups of input units. The study by Singh and colleagues applies this combination at the grapheme level, working with units of written text. Its place in the comparison matters because it shows what an earlier neural approach to Nepali tagging looked like. It could learn from fine-grained written patterns without relying on the same workflow as the pretrained Transformer comparisons in Subedi and colleagues’ study.
Other researchers had already explored pretrained representations for Nepali. The paper describes a named entity recognition study by Niraula and Chapagain that considers rules, a BERT-based system called BERT-bbmu, and bidirectional sequence networks paired with a conditional random field. A conditional random field in this setting represents dependencies among proposed labels in a sequence. The authors also discuss work by Maskey and colleagues on Nepali news classification. News classification assigns a label to a text, while the tagging tasks studied here assign labels within a sentence. The earlier work made pretrained systems a relevant starting point for Nepali without settling which one to use for the tagging tasks. Niraula and Chapagain’s Nepali entity recognition study
Within the family of pretrained systems, the paper traces the role of the Transformer to work introducing attention-based processing. Attention lets the representation at a position depend on information from other positions in the input. A word can therefore be interpreted with information from its surrounding sentence, including words that follow it. This is pertinent to both tasks. Later words may help establish whether a preceding expression is a name and where that name ends. They can also help identify the grammatical category of a word with several plausible readings. The authors place BERT and its variants in that line of work. Attention Is All You Need
The earlier work also motivates comparisons within the pretrained family. BERT gives the study a family of contextual encoders with both single-language and multilingual variants. DistilBERT supplies a compressed variant designed with efficiency in mind. RoBERTa represents a different pretraining approach within the Transformer family. The paper cites work on multilingual BERT and cross-language transfer to motivate trying systems whose pretraining spans several languages. It also discusses the development of NepBERTa and NepaliBERT, which make it possible to compare existing Nepali-specific starting points with those shared across languages.
Each earlier study answers a question defined by its own task, data and candidates. A result from a news classifier leaves the word-level tagging decision open. An entity recognition result from a separate corpus can establish that a method worked on that corpus, while a choice among pretrained systems needs measurements taken under common conditions. The authors identify this comparability problem explicitly. Their contribution is a common set of experiments on Nepali entity recognition and part-of-speech tagging. They retain earlier work as historical context and evaluate the pretrained candidates they selected against one another.
The method, step by step
Start with sentences that already have tags
The experiment takes an annotated sentence as its basic input. Each word in the sentence has a reference label for the task being run. The entity recognition version of the example marks whether the word participates in an entity, its position within that entity, and the entity type where applicable. The part-of-speech version gives the word a grammatical tag. The authors prepare these task labels separately. The same collection can support both experiments because it carries annotations for both jobs.
The two sources have different scales and label inventories. ILPRL contains manually annotated Nepali text. The exact total in the paper’s split accounting is 13,834 words. Its entity labels follow the IOB convention associated with CoNLL-2003, and its inventories contain 11 entity tags and 56 part-of-speech tags. EBIQUITY contains 3,606 sentences and has a reported total of 93,958 words. Its entity annotations use a CoNLL-formatted BIO scheme. The paper lists 7 entity tags and 68 part-of-speech tags for EBIQUITY. Each inventory defines the possible predictions in that particular task and dataset.
Both entity schemes described in the paper use labels for the beginning, interior and outside of a mention. The distinction appears in tags such as B-PER and O. B-PER marks the beginning of a person mention. B-LOC and B-ORG mark the beginnings of location and organization mentions. An I-LOC tag belongs to a continuation within a location mention, and I-ORG belongs to a continuation within an organization mention. O marks a word outside an entity. In a multiword mention, a sequence of labels carries information that a single category per mention would leave implicit, namely which words make up the annotated span.
This representation turns entity recognition into a sequence of classification decisions. Each decision concerns one position, and the sentence provides context for making it. The position labels make it possible to recover a multiword expression from those decisions. A correctly typed mention can still have an incorrect boundary if the tagger mishandles a continuation. Part-of-speech tagging uses a sequence too, but the label’s function is different. A grammatical category characterizes the word at that position, while an entity continuation tag ties the word to a larger span. That difference helps explain why the authors evaluate both tasks separately even though the input format is shared.
Put each sentence into a consistent input format
The authors convert the original datasets into a data frame with columns for a sentence identifier, the word and its label. A data frame is a tabular representation in which the rows here belong to word positions. The procedure preserves which words form a sentence. The authors use scikit-learn’s LabelEncoder to encode the sentence identifiers, so words from the same sentence share one identifier and different sentences can be distinguished. This step concerns grouping. The labels that train the tagger come from the task annotations.
The grouping matters because the word row alone contains only part of the input needed for tagging. For example, a continuation label makes sense in relation to the mention already underway in the sentence. A grammatical label can depend on surrounding words. Keeping the grouping also gives the training interface the structure it needs to treat a sentence as a sequence of words with a corresponding sequence of labels. The original material is thus reshaped to support the same experimental procedure for the different pretrained systems.
The paper describes this preprocessing at the level of annotated words. The resulting format gives a clear account of the reference units, their sentence associations and the task labels. As a reader, it is useful to keep this word-level description distinct from the units a pretrained system may use internally. The annotation establishes what the predicted labels should correspond to. The finer details of how those labels were aligned to the pretrained input representations are outside the paper’s description of the procedure.
Choose a pretrained starting point
The authors obtain the pretrained systems through Hugging Face and use Simple Transformers to run the tagging experiments. This library provides a token classification interface, which fits tasks that attach a category to positions in the input. The common interface is what allows the same data preparation and training workflow to be applied across the candidates. The paper also identifies an accompanying code repository containing the implementation, along with the confusion matrices discussed in the results.
All the candidates are described as having used masked language modeling in their pretraining. In that kind of self-supervised training, some text is concealed and the learning signal comes from recovering it using visible context. The missing text supplies its own target. The annotations for entities and grammatical categories enter later. These two stages provide different kinds of supervision. A pretrained system has already been exposed to patterns in text, and fine-tuning adapts its parameters to predict the particular categories in an annotated dataset.
The multilingual group comprises mBERT, XLM, mDistilBERT and XLM-RoBERTa. The authors describe all of these as having had exposure to Nepali among the languages used in pretraining. They make a useful comparison group because multilingual coverage is a plausible source of transferable knowledge, but the systems differ in how they were built and trained. In particular, mDistilBERT represents a reduced version of mBERT. The comparison therefore has room for differences within the multilingual group as well as between languages of pretraining.
NepaliBERT and NepBERTa both rely on Nepali-only pretraining. The paper cites earlier work describing NepBERTa’s corpus as 0.8 billion words collected from 36 Nepali news portals. This is the material that went into developing the pretrained starting point. It is separate from the annotated tagging data used to adapt it in these experiments. The two Nepali-specific candidates let the study check whether restricting pretraining to Nepali yields similar results across different systems. They are independently developed candidates with potentially consequential differences in their prior training.
HindBERT-scratch is the Hindi-pretrained candidate. The word “scratch” in its name describes its provenance. For this experiment, the authors start from the already pretrained system and fine-tune it just as they do the other candidates. They are interested in the performance attainable across the language boundary between Hindi and Nepali, which share a writing system. The other single-language comparison is RoBERTa, described in the paper as pretrained primarily in English. Together, these starting points give the authors examples of several relationships between the languages encountered during pretraining and the language of the tagging tasks. L3Cube-HindBERT and DevBERT
Separate fitting, validation and testing
The outer split follows an 8:2 ratio for development and testing. The part available for development contains 11,067 words for ILPRL and 75,166 words for EBIQUITY. The corresponding test sets contain 2767 and 18,792 words. These are word counts for the experiment’s partitions. In particular, the larger figures are for training and validation together. The study uses the test portions to report performance after adaptation.
Within the development portion, the authors report that Simple Transformers makes another split at an 8:2 ratio, this time for training and validation. The training part provides examples used to update the parameters. The validation part is available for monitoring performance during training and detecting possible overfitting, the situation in which a system becomes increasingly fitted to its training examples without a corresponding improvement on other examples. The outer test set serves a different purpose. It is the reserved set on which the final comparison is reported.
The split procedure is repeated in the sense that both datasets have development and test portions, and each candidate is evaluated for the relevant task. An ILPRL entity run learns the ILPRL entity inventory from ILPRL development data. An EBIQUITY part-of-speech run learns the EBIQUITY grammatical inventory using EBIQUITY development data. Each test score thus belongs to a specific task and annotation scheme as well as to a pretrained candidate. The study compares candidates within these settings and examines how their scores change across them.
Preparing and evaluating the Nepali taggers
The steps in order.
Adapt the parameters and score the predictions
The authors vary batch size, learning rate and training duration. The batch size is the number of training examples handled together for a parameter update. The experiment lists 4, 8, 16 and 32 as candidate batch sizes. The learning rate governs the scale of an update. The tested rates are 1e-3, 1e-4, 1e-5 and 1e-6. An epoch is a pass through the training data. The stated range is 5 to 20 epochs, with the paper giving separate accounts of training duration for each dataset.
The optimizer is AdamW, the rule used to update the parameters during fine-tuning. The authors use weight decay of 0.01. Weight decay provides regularization by discouraging weights from growing too large. The objective of the training stage is to adapt a pretrained system to the task using the available labeled examples, under the chosen update settings. The authors describe this as tuning within their resources, so the settings belong to their experimental search rather than to a prescribed recipe for every tagger considered. Decoupled Weight Decay Regularization
The main performance measure is F1. Precision asks how many predictions of the relevant kind are correct. Recall asks how much of the relevant reference material the system recovers. F1 combines them so that achieving a high value requires strength in both. In entity recognition, this distinction matters because a tagger may be selective about announcing names and miss many annotated instances, or it may find many real mentions while proposing many unsupported ones. A single F1 score gives the reader a basis for comparing candidates within an experimental setting.
The paper introduces F1 verbally. It supplies neither a formal scoring equation nor a full account of aggregation across tag categories. It also uses confusion matrices, which record how frequently a reference class is assigned to each predicted class. Correct decisions and substitutions can be inspected separately for a given tag. This diagnostic is useful when an aggregate score combines frequent and infrequent decisions. The F1 comparison locates the systems with stronger overall reported results, and the matrices let the authors discuss what still goes wrong inside the leading system.
Experiments and results
How to read the comparison
The experiment reports a test F1 for each pairing of task and dataset for the eight pretrained candidates. ILPRL entity recognition and EBIQUITY entity recognition are separate comparisons because their data and tags differ. The same distinction applies to the two part-of-speech evaluations. The most direct question to ask of the results is how candidates rank when the task and test set are held fixed. The next question is whether the same candidate remains competitive when the setting changes.
Within a given test setting, the other pretrained systems are the comparison baselines for a candidate such as NepBERTa. For example, mBERT supplies a widely shared multilingual starting point and mDistilBERT supplies a reduced one, while NepaliBERT supplies a same-language comparison. XLM and XLM-RoBERTa broaden the multilingual group. HindBERT-scratch and RoBERTa give the authors other single-language starting points whose pretraining emphasizes a different language. The result table places all of them under the same dataset and task headings. Earlier published methods appear in a separate comparison because they were evaluated in their original studies.
The test sizes are part of the interpretation. The ILPRL test set consists of 2767 words with the ILPRL labels, and the EBIQUITY test set consists of 18,792 words with the EBIQUITY labels. The part-of-speech and entity F1s measure predictions against different kinds of reference annotation. They share a metric name, but the decisions that earn credit are task-specific. An F1 in one column can describe how strong a candidate looks within that test without supplying a uniform scale of task difficulty across all columns.
Named entity recognition on ILPRL
On the ILPRL entity test, NepBERTa reaches an F1 of 0.76. XLM-RoBERTa is next at 0.69, with mBERT at 0.67. The Hindi-pretrained HindBERT-scratch reaches 0.65. These positions show that both the multilingual and Hindi-pretrained starting points can support Nepali entity recognition under supervised adaptation. NepBERTa nonetheless has the highest reported value among the candidates on this test.
Pretrained taggers on the ILPRL named entity recognition test, F1
NepBERTa leads the comparison, followed by XLM-RoBERTa.
The numbers
| System or setting | F1 |
|---|---|
| NepBERTa (this paper) | 0.76 |
| XLM-RoBERTa | 0.69 |
| mBERT | 0.67 |
| HindBERT-scratch | 0.65 |
| XLM | 0.63 |
| mDistilBERT | 0.61 |
| NepaliBERT | 0.52 |
| RoBERTa | 0.32 |
The ILPRL comparison separates the two Nepali-only candidates clearly. NepaliBERT’s entity F1 is 0.52, below the multilingual candidates and HindBERT-scratch. This matters because pretraining language is one of the study’s motivating categories. If the only information available about the two starting points were that each had been pretrained in Nepali, that information would provide little basis for anticipating their respective positions in this table. Their differing results support inspecting the characteristics of individual pretrained systems.
RoBERTa’s reported ILPRL entity F1 is 0.32, the lowest value in this column. The authors interpret the primarily English pretraining as a plausible contributor to the weak result. Within this test, its position is consistent with that interpretation. The Hindi-pretrained system is particularly informative beside it. Both rely on pretraining centered on a language other than Nepali, yet their results differ. That comparison gives some empirical motivation for looking at which language a system encountered and what relation it bears to Nepali.
The multilingual systems also vary. XLM has an ILPRL entity F1 of 0.63 and mDistilBERT has 0.61. mBERT and XLM-RoBERTa occupy the higher multilingual positions on this setting. The category “multilingual” identifies a common feature of the pretraining regime. It leaves open several other aspects of how each system was produced and adapted. In the results, those systems occupy several positions within the overall ordering, with the reduced multilingual variant near the lower end of its group.
Named entity recognition on EBIQUITY
The EBIQUITY entity test again places NepBERTa first, at 0.79 F1. XLM-RoBERTa reaches 0.75. HindBERT-scratch follows at 0.74, with mBERT at 0.73. The higher position of the Hindi-pretrained candidate here is noteworthy because it is competitive with the multilingual systems on a second collection and under a different entity inventory. It remains below NepBERTa on both collections.
Pretrained taggers on the EBIQUITY named entity recognition test, F1
NepBERTa leads, with XLM-RoBERTa and HindBERT-scratch next.
The numbers
| System or setting | F1 |
|---|---|
| NepBERTa (this paper) | 0.79 |
| XLM-RoBERTa | 0.75 |
| HindBERT-scratch | 0.74 |
| mBERT | 0.73 |
| mDistilBERT | 0.72 |
| XLM | 0.72 |
| NepaliBERT | 0.70 |
| RoBERTa | 0.69 |
mDistilBERT and XLM each reach 0.72 entity F1 on EBIQUITY. NepaliBERT reaches 0.70 and RoBERTa reaches 0.69. The ordering again puts the Nepali-only candidates in different parts of the comparison. RoBERTa is last in both entity tests, with a much stronger reported score on EBIQUITY than on ILPRL. The larger collection gives the authors a second setting in which to judge the primarily English system, and the change in score illustrates why the ILPRL result by itself would give an incomplete picture of its performance.
Every candidate has a higher reported entity F1 on EBIQUITY than on ILPRL. The authors associate the stronger EBIQUITY results with the availability of more data. The greater number of labeled training and validation words offers a plausible advantage for adaptation. The held-out examples and entity inventories also differ, however. The measured result is an improvement across the experimental settings as they actually exist. It cannot quantify the effect of increasing annotated data alone.
NepBERTa and XLM-RoBERTa retain their order across the two entity tests. That consistency is important to the paper’s argument for NepBERTa. It leads under both annotation schemes, including a setting in which several alternatives come close to the leading values. HindBERT-scratch’s standing supplies a different observation. The Hindi-pretrained system can transfer well enough to rank among the strongest candidates on EBIQUITY, even though its position on ILPRL is lower.
Part-of-speech tagging
On the ILPRL part-of-speech test, NepBERTa has the highest F1 at 0.90. The strongest multilingual result is XLM-RoBERTa’s 0.87. mBERT and XLM both score 0.86, with mDistilBERT at 0.85. The size of the grammatical tag inventory makes an overall score useful for the initial comparison. A reader can see which candidate performed strongly over the test set before looking at the individual grammatical tags that proved difficult.
Pretrained taggers on the ILPRL part-of-speech test, F1
NepBERTa leads, and the multilingual candidates occupy the next positions.
The numbers
| System or setting | F1 |
|---|---|
| NepBERTa (this paper) | 0.90 |
| XLM-RoBERTa | 0.87 |
| mBERT | 0.86 |
| XLM | 0.86 |
| mDistilBERT | 0.85 |
| HindBERT-scratch | 0.82 |
| NepaliBERT | 0.77 |
| RoBERTa | 0.52 |
Among the remaining ILPRL part-of-speech results, HindBERT-scratch is at 0.82, NepaliBERT at 0.77 and RoBERTa at 0.52. The multilingual systems as a group do well here. They fill the positions immediately behind NepBERTa, with comparable reported F1s. HindBERT-scratch is less competitive with this group on the ILPRL grammatical task than it is on some of the entity comparisons. The usefulness of the Hindi-pretrained starting point therefore depends on the evaluation setting.
The EBIQUITY part-of-speech column is much more tightly grouped near the top. NepBERTa, XLM-RoBERTa and HindBERT-scratch each reach a test F1 of 0.97. The table gives 0.96 to each of mBERT, mDistilBERT, XLM and NepaliBERT. RoBERTa is lower at 0.86. NepBERTa is a joint leader on this test at the precision reported in the paper. The stronger reported showing of HindBERT-scratch here makes the EBIQUITY grammatical task an important qualification to the conclusion that the Nepali-specific candidate dominates the comparison.
The part-of-speech F1s reported for each system exceed its corresponding entity F1s on both datasets. The paper links the pattern to the annotation evidence available for the two tasks, describing the grammatical labels as more consistent and drawing attention to the uneven amount of data for different entity tags. The scores represent decisions about distinct outputs. Entity tags express type and mention position, while grammatical tags identify a word’s class. The comparison documents the higher grammatical scores without determining how much of that pattern comes from annotation consistency, the inventories or the nature of the decisions being made.
Earlier reported results
The paper sets its results beside scores from previous Nepali studies. For named entity recognition, it lists 0.86 F1 for the grapheme-level BiLSTM+CNN system of Singh and colleagues and 0.85 for Niraula and Chapagain’s BERT-bbmu. It also records 0.91 entity F1 from the earlier NepBERTa study and 0.96 entity F1 from Maharjan and colleagues’ SVM study. For part-of-speech tagging, the earlier NepBERTa work is listed at 0.95 F1. These are the values reported for the earlier evaluations. The paper gives them in a separate table from the ILPRL and EBIQUITY test results.
The comparison puts the main result in perspective. Across the present paper’s entity recognition tests, the leading F1s are below several published figures obtained with an assortment of approaches. A strong result for NepBERTa within the paper’s candidate set consequently leaves earlier methods relevant to the broader problem. The prior SVM score, for example, records a successful Nepali entity recognition experiment using a different approach. It gives no direct measure of how that SVM would perform on the splits used here.
The previously reported NepBERTa figures also show how much a score describes a particular evaluation. The 0.91 entity F1 listed for earlier work with NepBERTa belongs to that earlier experiment. In the present paper, NepBERTa earns 0.76 and 0.79 on the ILPRL and EBIQUITY entity tests, respectively. All of these observations concern an approach with the same name. Their different values show why the test collection and conditions need to accompany the score whenever it is used to describe performance.
What the ablations show
The paper has no component-removal ablation. Its closest evidence comes from comparisons among differently pretrained starting points, variations in fine-tuning settings, and an error analysis of NepBERTa. Each addresses a different part of the result. The candidate comparison identifies which available system works well for the tasks. The setting search describes the authors’ experience adapting those systems. The confusion matrices locate specific decisions that remain difficult after adaptation.
Comparing choices of pretrained system
One comparison holds the target language, dataset and task fixed and changes the pretrained candidate. NepBERTa and NepaliBERT are particularly informative as a pair because they start from the same broad choice of pretraining language and differ in the results they attain. The authors propose that NepBERTa benefited from a larger corpus. This is a hypothesis about the source of its advantage. The experiment uses the two systems as existing packages, so it does not vary corpus size while holding all the other pretraining choices constant.
The multilingual comparisons offer a related check. mDistilBERT’s reduced architecture is designed with efficiency in mind. Its reported entity scores fall below mBERT’s on both datasets. On EBIQUITY part-of-speech tagging, both systems reach 0.96 F1, and their ILPRL part-of-speech scores are close at the precision shown. The authors suggest that the reduced architecture may contribute to the weaker results where they observe a difference. The evidence is a comparison of resulting systems, with no separate measurement that tracks how an individual compression decision changes tagging performance. The paper also supplies no per-system speed result with which to quantify an efficiency tradeoff.
The Hindi comparison asks whether pretraining on a related language can still produce a useful starting point after adaptation to Nepali. The paper notes that Hindi and Nepali share Devanagari and some technical vocabulary. It also describes both languages as allowing flexible word order and having a subject–object–verb pattern. The strong results for HindBERT-scratch in several settings are consistent with the authors’ suggestion that those commonalities may help. The experiment leaves the contribution of each commonality open. It has no counterpart in which, for example, the writing system changes while vocabulary and grammar remain fixed.
The authors also appeal to contextual information on both sides of a word when discussing the stronger systems. Such information is relevant to identifying an entity’s extent and assigning a grammatical label in context. The experiments show that the pretrained systems can make effective use of the available inputs after adaptation. They do not include a comparison between seeing both sides of a word and seeing only preceding context. The account of bidirectionality is therefore a proposed explanation based on the architecture and the tasks.
What the setting search found
The authors report that 1e-4 gave the best results among the learning rates they tried. A batch size of 8 performed best on average in their account, while 32 performed poorly. These are observations from the study’s adaptation runs. They help describe what worked under the project’s data and computing conditions and provide some practical context for the table of final F1s. The paper gives the overall pattern without a full grid of the results for each system, task and dataset. It is therefore difficult to tell which settings would preserve the reported ordering across all conditions.
Training duration has two descriptions in the paper. It reports training for 20 epochs on ILPRL and 10 epochs on EBIQUITY in the discussion of how long the runs continued. It also says that 5 epochs gave the best performance on average. These statements concern training duration and an average performance observation, respectively. The paper does not assign an exact selected epoch to each F1 in the final comparison. The setting analysis supports the observation that improvements can level off during adaptation. It gives less detail about whether particular systems reached their best results earlier than others or how the selected epoch was established in every run.
The paper reports roughly 23 hours of GPU time for fine-tuning. This figure characterizes the effort involved in the reported experiments. It is a shared time figure, so it cannot reveal how much time went to a particular candidate or what would happen if each candidate received a separate and larger search budget. The search results are best read as empirical observations over the settings the authors could investigate.
Where NepBERTa makes mistakes
The entity confusion analysis focuses on the predictions of NepBERTa. For EBIQUITY, the authors describe relatively strong correct counts for B-PER, B-LOC and B-ORG, alongside remaining misclassifications. These tags are the beginnings of person, location and organization mentions. The ILPRL discussion identifies B-PER and B-ORG as difficult and raises concerns about I-LOC and I-ORG, which mark continuation words. This distinction matters because the difficulties extend beyond deciding an entity’s type. They also include finding the right boundary for a mention that runs across several words.
The tag O is classified effectively in both entity datasets in the authors’ account, with stronger performance on EBIQUITY. Correctly labeling words outside entities is part of the task. Its success gives a reader little information about whether the system consistently finds all the boundaries of person or organization mentions. The matrix analysis adds the missing distinction by showing that classes representing entity positions can still be difficult when decisions about outside words are generally reliable. The greater absolute number of correct decisions in a larger test set should also be read in light of how many instances of each tag that test contains.
For EBIQUITY part-of-speech tagging, the error discussion singles out NN and JX among the classes with substantial misclassifications. Several other labels receive stronger classifications, including DDM, DJX, RD and RK. For ILPRL, the difficult categories highlighted include ADJ and PP. The paper describes NN and JJ as generally handled well on ILPRL, with some errors remaining. Those observations show why the reported F1 near the top of a comparison cannot stand in for an account of individual classes. The set of tags needing attention depends on which annotation inventory the system learned and which examples it sees at test time.
The authors propose class imbalance as a cause. A tag with few training instances supplies infrequent evidence about how it is used. Frequent tags offer many more opportunities for adjustment. A small number of test examples creates a separate problem for interpretation. The test count affects how much evidence there is about class-specific performance, while the training count affects what the system had an opportunity to learn. The matrix discussion identifies error patterns compatible with the imbalance explanation. There is no intervention that resamples tags or changes their relative weight in training, so the results do not estimate how much of the error such a change would remove.
Limitations
Limits identified by the authors
The authors emphasize the size and diversity of the annotated collections. Both datasets provide usable training and test material, and EBIQUITY is considerably larger. Their combined role in the paper is still to represent a limited range of annotated Nepali. A system can learn the patterns that occur regularly in those collections while having limited exposure to other words, entities or sentence structures. The authors consider this a reason to be cautious about generalizing the scores to unfamiliar or specialized text. Their tests directly establish performance on the held-out portions of the two collections.
The training search is limited by computing resources. The authors are able to compare several learning rates, batch sizes and training durations, so the paper offers more information than a comparison made under a single arbitrary adaptation setting. A wider search could find settings that suit individual candidates better. The observed ranking describes the systems as they were adapted in the study. The authors also recognize that their selection of pretrained candidates, centered on popular BERT variants and related systems, covers a portion of the available approaches.
The authors explicitly acknowledge that they did not replicate earlier experiments. Their table of published scores cannot give every earlier method an equal opportunity on the current splits. Similarly, the present pretrained candidates were not all run on the original evaluations that produced those published scores. A reader interested in the relative merits of an SVM, a hybrid neural system and a fine-tuned encoder on one particular corpus therefore has partial evidence. The paper narrows the uncertainty about its selected pretrained candidates while leaving the comparison with earlier approaches dependent on separate studies.
The conclusion points toward larger and more varied annotated collections, broader parameter searches and additional pretrained systems. It also identifies domain-specific texts and other low-resource languages as subjects for later evaluation. These directions follow from the scope of the evidence. The studied tasks are entity recognition and part-of-speech tagging in Nepali, and their scores concern the ILPRL and EBIQUITY tests. The authors treat performance on other kinds of text or in other languages as an empirical question.
Limits visible in the experimental design
The comparison across ILPRL and EBIQUITY changes several conditions together. The annotated word counts differ, as do the inventories for both tasks. The test examples also come from separate collections. Higher scores on EBIQUITY are consistent with a benefit from having more labeled development data. Assessing that explanation on its own would require controlling the test material and annotation scheme while changing the amount of training data. The paper gives a comparison of complete experimental settings, so its cross-dataset result includes all of these differences.
The comparison across pretrained candidates has a similar feature. Language coverage is central to the question, but it comes packaged with other choices such as architecture and pretraining corpus. NepBERTa’s lead and NepaliBERT’s weaker performance establish considerable variation within Nepali-specific pretraining. They do not establish the expected effect of shifting a system from multilingual to Nepali-only training under otherwise equivalent conditions. HindBERT-scratch shows what one Hindi-pretrained candidate achieved. It cannot establish how much of that performance generalizes to other Hindi-pretrained systems or how much to attribute individually to script, vocabulary or grammar.
Some details of scoring are left implicit. For entity recognition, the results table reports F1, and the confusion discussion refers to individual tags. A tag decision and a complete entity decision can be evaluated at different levels. The paper does not state in sufficient detail whether the reported entity F1 is calculated over complete recovered spans or how different classes enter its aggregate. For part-of-speech tagging, the averaging rule is likewise unspecified. These choices affect how much weight rare tags have and how to interpret F1 when a system typically identifies common classes correctly.
The word-level format is documented, but the paper leaves open how the training implementation aligns labels to internal pieces of words. If a word is represented by multiple input pieces, an experiment needs a rule for attaching the reference label and turning the resulting predictions back into decisions about the annotated word. That is particularly relevant to entity boundaries, which the dataset expresses through word-level tags. A detailed replication would need to resolve this convention along with the split and scoring settings. The paper’s description gives the overall procedure while leaving those implementation choices to its accompanying code or to further documentation.
Uncertainty about close scores is another constraint. The table gives point estimates rounded to the paper’s reported precision, with no run-to-run variation or confidence intervals. For EBIQUITY part-of-speech tagging, the reported tie at 0.97 establishes the joint lead visible in the table. The values cannot order those candidates more finely. Likewise, a modest difference between candidates on one split does not establish that the same difference would persist under a different random initialization of fine-tuning or a different allocation of sentences. The repeated lead of NepBERTa in entity recognition is evidence across the two settings actually tested. The paper does not quantify its variability within either setting.
The matrix analysis concerns the best overall candidate. This is enough to identify hard cases for NepBERTa, including particular entity positions and grammatical tags. It offers less evidence about whether other candidates make the same errors or offset them with strengths on different labels. The paper reports selected patterns rather than reproducing the matrices, which it locates in the project repository. An aggregate F1 and the accompanying discussion therefore support conclusions at different levels. The ranking is visible across candidates, while the detailed class-level conclusions apply to the leading candidate and to the specific patterns the authors describe.
Finally, the experiment measures labeling quality and reports total fine-tuning time. It leaves per-system inference speed and deployment cost unmeasured. This matters when considering the paper’s discussion of a compressed candidate. Its design goal offers a reason to include it, and the F1s provide one side of the comparison. The study cannot determine the full practical tradeoff for a reader who needs both tagging performance and fast inference on a particular computing setup.
What came after
The later study by Regmi and colleagues cites the paper while taking up a different Nepali word-level task, lemmatization. A lemma is the base form under which related word forms are grouped. Assigning that form asks a system to recover a lexical identity for a word. Subedi and colleagues instead ask it to assign a grammatical category or to mark the word’s role in an entity mention. The later study thus extends the line of inquiry about pretrained Transformers for Nepali to another kind of linguistic analysis. Nepali Lemmatization with Multilingual Transformers
Regmi and colleagues use multilingual Transformers and frame their evaluation as both intrinsic and extrinsic. Intrinsic evaluation concerns the lemmatization output itself. Extrinsic evaluation asks what the lemmatization contributes when used in a further task. This expands the evaluation question beyond the direct tagging scores emphasized by Subedi and colleagues. It connects performance on the immediate language analysis problem with its potential value in a larger process. The documented connection is the citation and the related use of pretrained Transformers for a low-resource Nepali task. It does not establish that the lemmatization study reused the ILPRL or EBIQUITY partitions, adopted the earlier fine-tuning settings, or tested a result about NepBERTa.
Cite
Cite as Bipesh Subedi, Sunil Regmi, Bal Krishna Bal and Praveen Acharya. 2024. Exploring the Potential of Large Language Models (LLMs) for Low-resource Languages: A Study on Named-Entity Recognition (NER) and Part-Of-Speech (POS) Tagging for Nepali Language. Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024).
@inproceedings{subedi2024exploring,
title = {{Exploring the Potential of Large Language Models (LLMs) for Low-resource Languages: A Study on Named-Entity Recognition (NER) and Part-Of-Speech (POS) Tagging for Nepali Language}},
author = {Bipesh Subedi, Sunil Regmi, Bal Krishna Bal and Praveen Acharya},
booktitle = {Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)},
year = {2024},
url = {https://aclanthology.org/2024.lrec-main.611/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/subedi-2024-exploring-potential-large-language-models/