---
title: "Development of Pre-Trained Transformer-based Models for the"
description: "Thapa and colleagues pretrain Nepali Transformers on a news corpus and test them on language understanding and abstractive summarization."
canonical: "https://research.elamur.ai/free/en/papers/thapa-2025-development-pre-trained-transformer-based/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/thapa-2025-development-pre-trained-transformer-based/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2025](https://md.research.elamur.ai/free/en/papers/2025/) / Development of Pre-Trained Transformer-based Models for the Nepali Language

# Development of Pre-Trained Transformer-based Models for the Nepali Language

Paper · 2025 · Prajwal Thapa, Jinu Nyachhyon, Mridul Sharma et al.

**Authors:** Prajwal Thapa, Jinu Nyachhyon, Mridul Sharma and [Bal Krishna Bal](https://md.research.elamur.ai/free/en/authors/bal-krishna-bal/) · **Year:** 2025 · **Venue:** Proceedings of the First Workshop on Challenges in Processing South Asian Languages (CHiPSAL 2025) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the First Workshop on Challenges in Processing South Asian Languages (CHiPSAL 2025) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2025.chipsal-1.2/)
- [PDF](https://aclanthology.org/2025.chipsal-1.2.pdf)

## Summary

Developing software that can label, classify, or summarize Nepali text requires training material in Nepali. Thapa and colleagues argue that a shortage of large text collections has limited that work, even though Nepali has approximately 32 million speakers worldwide. Earlier research had produced dedicated Nepali systems for analyzing text. The authors wanted to improve those systems and give comparable attention to generating text. They collected articles from 99 Nepali news websites and retained 27.5 GB after cleaning, a corpus they describe as approximately 2.4x larger than earlier available Nepali collections. They used it to pretrain three [Transformers](https://md.research.elamur.ai/free/en/concepts/transformer/), neural architectures that use attention to determine which parts of an input matter to a prediction.

The study takes two routes through the same training material. [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) and [RoBERTa](https://md.research.elamur.ai/free/en/papers/liu-2019-roberta-robustly-optimized-bert-pretraining/) learn to infer hidden text from the words around it. That training prepares them for tasks such as determining the grammatical role of a word or assigning a category to a text. GPT-2 learns to predict what comes next in a passage, which lets it write by extending a sequence. The authors also make a version of GPT-2 that receives extra training on Nepali instructions and their expected responses. They use both versions in a separate [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) stage that teaches them to turn articles into summaries.

Both encoders lead the earlier systems on every task in Nep-gLUE, a Nepali benchmark for language understanding. The overall test scores are 95.18 for BERT and 95.60 for RoBERTa, compared with 93.55 for NepBERTa, the strongest earlier system in the comparison. On the held-out portion of a separate summarization dataset, both GPT-2 variants lead a previously available Nepali generator on all reported ROUGE measures, which compare generated summaries with reference wording. The instruction-tuned version finishes highest, with 20.42 on ROUGE-1, 15.89 on ROUGE-2, and 17.76 on ROUGE-L.

The clearest evidence is for the complete training recipes on these particular tasks. The study changes the corpus, tokenization, and other training choices together when it compares the new encoders with earlier systems. The GPT-2 comparison gets closer to isolating a change by starting from the same pretrained system and adding instruction training to one branch before both learn summarization. The authors also observed that long inputs could produce invented content or poor summaries. The generation results therefore establish an advantage on reference overlap in the authors’ experiment, while the reliability of longer summaries and the ability to follow instructions across tasks remain open.

## Deep dive: Development of Pre-Trained Transformer-based Models for the Nepali Language

Thapa and colleagues pretrain Nepali Transformers on a news corpus and test them on language understanding and abstractive summarization. · about 30 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Nepali needs training material as well as language support

A language can have millions of speakers and still offer relatively little material for training digital systems. For this study, the relevant resources are large collections of machine-readable text, tokenizers that handle that text effectively, and labeled datasets on which trained systems can be compared. Thapa and colleagues describe Nepali as one of the [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/) in this technical sense. Their starting point is that a system’s ability to accept Nepali input leaves open how well it has learned to analyze or generate it.

The paper illustrates the issue with word order and [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/), the structure and variation of word forms. It describes English as usually putting the verb between the subject and object, while Nepali usually places the object before the verb. In the Nepali order, the verb comes after the material that identifies both who acted and what the action concerned. That matters to a system learning which parts of a sentence can inform a prediction. The paper also describes inflection in Nepali nouns, adjectives, and verbs. For nouns, it calls out gender, case, and number. A tokenizer and a vocabulary have to accommodate different forms that can arise from related words.

These observations motivate the use of a Nepali training corpus and a vocabulary learned from that corpus. They also explain why corpus size and lexical coverage matter together. A larger collection can give training more occasions to encounter a form in context. A vocabulary that can break a less frequent form into usable pieces gives the system a way to process it when the whole form has no entry. The authors treat each piece of this design as part of making training work for Nepali. They evaluate the complete design on downstream tasks, where a score reflects the combined effect of the choices.

#### From neighboring words to attention

The paper places its work in a progression from hand-built rules and statistical [n-grams](https://md.research.elamur.ai/free/en/concepts/n-gram/) to neural sequence prediction. An n-gram works with a stretch of neighboring units. A rule can encode a particular pattern explicitly. The authors describe both approaches as useful foundations that have difficulty accommodating context, variation, and the subtleties of ordinary communication. These issues become especially visible when relevant information appears farther away than a local pattern can reach.

Recurrent neural networks and long short-term memory networks offered a way to process a sequence while carrying information forward through it. The authors credit them with advances in sequence prediction while describing long-range dependencies and computational efficiency as continuing difficulties. Their discussion of [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) follows a related development. Word2Vec and [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/) used large text collections to learn numerical representations of words. Those representations helped capture relationships among words. Contextual representations, exemplified by ELMo, went further by allowing a word’s representation to depend on its surroundings. The paper points to improved benchmark performance in question answering and entity recognition in its account of [ELMo](https://md.research.elamur.ai/free/en/papers/peters-2018-deep-contextualized-word-representations/).

The Transformer lets a position draw information from other positions through attention. The paper presents this mechanism as a better way to learn dependencies in text and describes different ways to use it in pretraining. An encoder can look to either side of a missing word. A generator can learn a continuation by looking back over the preceding text. The difference is which information the prediction is allowed to use. Both can create training examples from ordinary text, since the hidden item or next item already exists in the source. This is the role of self-supervision in the paper’s account of [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/).

The authors use *pretraining* for this broad learning stage, before a system specializes in a task with its own examples and expected outputs. A newspaper article supplies many possible token predictions at pretraining time. A labeled collection then supplies a different kind of supervision, such as the expected category for a document or a reference summary for an article. Thapa and colleagues follow this sequence for both understanding and generation. What the system predicts changes when it moves from general language training to the downstream task.

#### The multilingual and monolingual starting points

The paper describes multilingual pretraining as a way of expanding the number of languages with usable software. Multilingual BERT, XLM, and XLM-RoBERTa appear in its account of this development. A system that shares training and a vocabulary across languages can include Nepali without having been built around it. The authors identify several possible sources of uneven performance across languages, including how much data each receives, how its words get divided into tokens, and how much of the vocabulary is suited to its linguistic patterns. They cite [multilingual BERT](https://md.research.elamur.ai/free/en/papers/pires-2019-how-multilingual-is-multilingual-bert/) and [XLM-RoBERTa](https://md.research.elamur.ai/free/en/papers/conneau-2020-unsupervised-cross-lingual-representation-learning/) in that context.

Language-specific training was already an active alternative. The authors mention Finn­ish, German, and Chinese work among their examples of tailoring training and vocabularies to particular languages. Closer to Nepali, they discuss IndicBERT, which covers several Indic languages including Nepali, and describe prior evidence favoring language-specific configurations on specialized tasks. These examples motivate the comparison between Nepali-only and multilingual systems. They also establish that building a Nepali-only encoder was already a recognized approach, so the paper’s encoder contribution has to be understood in terms of its new corpus, training choices, and benchmark comparison.

NepBERTa is the closest predecessor in that account. Its developers trained a Nepali encoder on a corpus of 0.8 billion words gathered from multiple sources. They also introduced Nep-gLUE, enabling later work to compare Nepali encoders on the same set of tasks. The paper discusses NepaliBERT as another dedicated BERT effort. Those projects provided both systems to compare with and a way to judge whether a new Nepali encoder made progress. The authors could spend their effort collecting and training on a broader corpus while continuing to use an established evaluation.

The authors saw less exploration of decoder architectures, which learn to produce a continuation and can be adapted to generate an answer or a summary. The paper’s generation comparison includes an existing Nepali generator, so there was already a point of comparison on that side as well. The gap the authors set out to address was the limited body of work on decoder training and evaluation relative to encoder work. Building both kinds of system let them use the new corpus for different purposes and made it necessary to choose an evaluation appropriate to each.

#### Why give a generator instruction examples?

A continuation objective supplies information about how text proceeds. An instruction example supplies information about what kind of continuation counts as a response to a request. In their related-work discussion, the authors describe instruction tuning as additional training on requests paired with outputs that demonstrate the desired behavior. They point to earlier research in which this form of training helped systems respond to tasks they had not been explicitly trained to perform. That motivation comes in part from [Finetuned Language Models Are Zero-Shot Learners](https://md.research.elamur.ai/free/en/papers/wei-2021-finetuned-language-models-zero-shot/).

For the Nepali experiment, this idea raises a practical question about what can be done with a publicly available collection of instructions after cleaning it for use in Nepali. The authors can give one copy of a pretrained GPT-2 that additional experience, then compare it with a copy that proceeds straight to the downstream generation task. The question they eventually measure is whether the instruction-trained starting point helps on abstractive summarization after both copies receive task training. That experimental choice gives the paper a narrower question than the general promise discussed in the related work.

### The method, step by step

#### From news sites to a training corpus

The authors started with digital news because the growth of Nepali-language websites offered a way to gather a large amount of text directly. Their scraping effort covered 99 websites and produced 30.4 GB of raw material. That size describes what the collection process brought in. Before using the material for training, the authors had to decide which content belonged in the corpus and in what form.

From Nepali text collection to task evaluation The steps in order.

They assembled the corpus from fresh scrapes instead of joining existing collections together. The paper names the Nepali Wikipedia collection, which it sizes at less than 1GB, and OSCAR, at approximately 3GB. It also cites the 12.5 GB collection associated with NepBERTa. The reason the authors give for avoiding a merger is overlap with news sites already in their crawl. With overlapping sources, adding collections could increase the amount of text stored without increasing the range of material by a corresponding amount.

The next decision was what to keep from the crawl. The authors applied deduplication, the process of finding and removing repeated content. They also encountered material in languages other than Nepali and handled it by removal or translation, depending on context. These are distinct operations. Deduplication reduces how often repeated material can enter training. Language filtering determines which text belongs in a monolingual corpus, while translation can retain content in a different linguistic form. The paper gives these stages as operations on the crawl without quantifying their individual contributions to the final size.

They then removed markup and formatting debris through scripts written for the task. HTML belongs to the way the website presents an article and can enter the crawl alongside the article’s prose. The cleaning process also addressed special characters and other formatting artifacts. Finally, the authors applied text normalization, including Unicode normalization, to make character representation consistent. This matters ahead of vocabulary learning because different encodings of equivalent text can otherwise be treated as different input patterns.

The resulting corpus measures 27.5 GB. It is the source for both the encoder and decoder pretraining. Using one collection gives the architectures access to the same body of source material, though they use it to practice different prediction tasks. The diversity the corpus can offer still depends on what the selected websites publish and how the preprocessing stages handle it. Its stated size answers how much text was retained. The breadth of contexts in that text is a separate property.

#### Learn how to divide Nepali text

[Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) converts text into discrete units that the system can look up and predict. The units can be smaller than words. A system with a fixed vocabulary can use a whole word when that form has a suitable entry or represent it as a sequence of smaller entries. This is useful in a language with inflection because encountering a new combination of familiar pieces does not have to make the whole string unusable.

The authors use byte-pair encoding, or BPE, for [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/). Its purpose here is to learn a vocabulary from recurring patterns in the corpus while preserving a way to represent rarer forms in smaller pieces. The result is a compromise between assigning dedicated entries to common sequences and relying on smaller units for less frequent sequences. That is the specific connection the authors draw between vocabulary design and the variation of Nepali word forms. The paper cites the work on [subword units for rare words](https://md.research.elamur.ai/free/en/papers/sennrich-2016-neural-machine-translation-rare-words/) for this approach.

The tokenization section says that the authors learned two BPE vocabularies from the entire corpus. It lists their sizes as 30,522 and 50,256. The encoder training section explicitly assigns the 30,522-entry version to BERT and gives 50,257 for RoBERTa. Both figures for the larger vocabulary appear in the paper. The difference matters for someone trying to reproduce the exact configuration, and the paper gives no reconciliation between them. The GPT-2 training description specifies the decoder’s objective and optimization settings while leaving its exact vocabulary assignment unclear.

Vocabulary capacity is part of what changes between the encoders. The larger vocabulary allows more sequences to have dedicated entries, but the paper gives no direct measure of how that affected the segmentation of Nepali. For example, it does not report how often inflected forms stayed intact or how many tokens different vocabularies produced from the same input. Its stated design goal is to balance coverage with computational efficiency. The benchmark later measures how well the complete systems perform after using their respective tokenizers.

#### Pretrain BERT and RoBERTa on missing text

The encoders learn to build useful representations of an input by practicing predictions about it. In masked language modeling, parts of a tokenized passage are hidden. The encoder has access to the surrounding context, including material after the masked position, and it predicts the hidden item. The original passage determines the correct answer automatically. Where a sentence has grammatical or semantic clues on both sides of a gap, either side can help resolve it. That practice is relevant to downstream tasks in which the system receives an entire sentence before judging one of its parts.

BERT has an additional pretraining task called next sentence prediction. In the paper’s description, it receives two sentences and must decide whether the latter is the continuation of the former or a randomly chosen sentence. The hidden-token task asks for the identity of a unit inside a passage. The sentence-pair task asks about the relationship between larger pieces of text. RoBERTa uses the masked objective alone. Both encoders can attend to context in both directions when learning to fill a gap.

The training narrative describes one BERT variant and one RoBERTa variant, each with 110 million parameters. Parameters are learned numerical values that determine how the architecture transforms its inputs and makes predictions. The benchmark table instead lists 110M for BERT and 125M for RoBERTa. The count discrepancy leaves the exact size of the reported RoBERTa configuration uncertain. The experimental comparison is between the named configurations, so even the narrative’s equal-size description would leave both their objectives and their tokenizers as differences.

For pretraining, both encoders use a batch size of 256 and run for 400k steps. A batch gathers training examples for an update. A step refers to updating the parameters using the prediction errors supplied by training. The authors use [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/), an optimizer that maintains running estimates from previous updates to determine how to adjust the parameters. The encoder and decoder descriptions use the same stated learning rate:

```
1 × 10⁻⁴
```

Here `1` is the coefficient, `×` denotes multiplication, and `10⁻⁴` means ten raised to the power of negative four. The whole expression is the stated learning-rate setting. The learning rate governs the size of the parameter updates. The schedule includes a warmup over the first 10,000 steps and a linear decline afterward, so the rate changes during a run.

For both encoders, the authors give 0.9 for β₁ and 0.999 for β₂. These are the coefficients that control how much of Adam’s past estimates of the gradient and squared gradient, respectively, is carried forward. A gradient describes how a change in a parameter affects the training loss. The reported L2 weight decay is 0.01. Weight decay is a regularization setting that discourages parameters from growing unchecked. Dropout, which temporarily removes some activations during training, is set to a probability of 0.1 across the layers. Both encoders use the Gaussian Error Linear Unit, or GELU, as their activation function. The paper specifies that choice without setting out the function as an equation.

These settings describe how the encoders learn from their assigned objectives. They are distinct from the settings used afterward to train on labeled Nep-gLUE tasks. For instance, the 256-example batch setting belongs to pretraining. The task adaptation uses smaller batches and explores several learning rates. The measured Nep-gLUE scores come after that second stage.

#### Pretrain GPT-2 to extend a passage

GPT-2 takes a different route through the corpus. Its training task is causal language modeling, often called next-token prediction. At each position, the system has the sequence of tokens that came before and tries to predict the next one. The architecture uses information from earlier positions to make that prediction. During generation, the same direction of prediction allows a response to grow one token at a time. Each new token becomes part of the context for predicting the next.

The two approaches can be understood by considering where the answer would lie in an ordinary article. In the encoder task, a piece in the middle can be hidden while the rest of the article supplies clues on both sides. In the decoder task, the prediction is made at the end of the available prefix. The remainder of the article supplies the correct continuation during training, but it lies outside the information available when making the prediction. The method trains the generator to continue from what it has already received or written.

The authors describe their GPT-2 as a 124M-parameter configuration. Its batch size is 256, and pretraining runs for 500k steps. They report the same learning-rate setting, 10,000-step warmup, and linear decay afterwards as for the encoders. Adam’s β₁ is 0.9, while β₂ is 0.98 on this run. The L2 weight decay is 0.01 and the dropout probability is 0.1 across layers. The decoder also uses GELU. These shared settings provide some consistency across the recipes, while the prediction objective, training duration, and β₂ differ.

According to the paper, GPT-2’s initial training used sequences that were 512 tokens long. A token represents whatever unit the tokenizer has assigned to the relevant stretch of text. An article’s length in words is consequently a different quantity from its length in tokens. The sequence length defines the amount of tokenized text in the training examples described by the paper. It becomes important when the authors discuss summarizing articles whose inputs consume much of that space.

#### Add instruction training to a copy of GPT-2

The instruction collection enters after general pretraining. The starting resource is the publicly available Nepali Alpaca dataset, which the paper lists under the name `alpaca-nepali-sft`. It contains 52k rows of instructions before cleaning. The authors worked on the non-Nepali material by removing or translating it, leaving 40k rows. These sizes refer to the instruction collection and have no connection to the later train and evaluation counts for the summarization examples.

The authors use supervised fine-tuning for this stage. The training examples supply requests and responses that show what a suitable output should look like. This changes the kind of text on which the decoder practices prediction. It has already spent pretraining learning continuations from news. It now sees continuations chosen to answer requests, which gives it examples of the relationship between asking for a task and performing it. The reported procedure uses a batch size of 16, the same stated learning rate as pretraining, and attention dropout of 0.01. That dropout setting applies to attention during instruction tuning, whereas the earlier 0.1 setting is reported across the layers during pretraining.

The study keeps the original pretrained GPT-2 available and evaluates the instruction-trained branch alongside it. Both go through another fine-tuning stage on the same summarization task. That ordering is essential to interpreting the result. The comparison measures the effect of starting summarization training from two different checkpoints. One has already seen the cleaned instruction collection. The other enters from general news pretraining. The reference summaries used to train them at this last stage supply supervision to both.

### Experiments and results

#### How the tasks were evaluated

The authors use separate evaluations for language understanding and generation. On the encoder side, Nep-gLUE has four tasks. [Named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/) identifies mentions of entities and assigns their types. [Part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) labels grammatical categories in context. [Text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/) assigns a category to a piece of text. Categorical pair similarity asks for a judgment about the relationship between two inputs. The mix gives the study evidence at the level of individual items in a sentence, whole texts, and pairs of texts.

The authors fine-tune the encoders for the Nep-gLUE tasks using batches of 32. They try training durations of 3-10 epochs, with an epoch representing a pass through the training examples. The learning rates explored are 5e-5, 4e-5, 3e-5, 2e-5, and 1e-5. Their stated selection rule is to take the best performer on the test set for each task. As a consequence, reported results describe systems chosen with access to the scores on the same test set used to report performance. This distinction is relevant when reading the benchmark as evidence of how the recipes would fare on a further, untouched sample.

The benchmark table reports NER for entity recognition, POS for part-of-speech tagging, CC for the text classification task, and CPS for categorical pair similarity. It also gives an overall Nep-GLUE Score. The paper does not specify the calculation of each task metric in its evaluation description. The values below are therefore labeled by task and reported as benchmark scores. In particular, they should be distinguished from the explicitly percentage-form training accuracies in the encoder’s pretraining discussion.

#### Nep-gLUE test results

The strongest previous entry overall is NepBERTa at 93.55. The new BERT scores 95.18, and RoBERTa reaches 95.60, the highest reported aggregate. Among the multilingual baselines, XLM-Rbase earns 92.11, and multilingual BERT earns 91.19. The other monolingual baselines are NepBERT and NepaliBERT, with aggregate test scores of 87.94 and 88.42, respectively. The full ordering matters because a Nepali-only training label alone does not predict where a system finishes in this comparison.

Encoder comparison on the Nep-gLUE test aggregate The new Nepali encoders lead the published comparison, with RoBERTa in first place.

**The numbers**

| System or setting | Nep-gLUE score |
| --- | --- |
| NepBERT | 87.94 |
| NepaliBERT | 88.42 |
| Multilingual BERT | 91.19 |
| XLM-Rbase | 92.11 |
| NepBERTa | 93.55 |
| BERT (authors) | 95.18 |
| RoBERTa (authors) (this paper) | 95.60 |

The result extends across the tasks that make up the benchmark. For named entity recognition, the new BERT scores 93.57 on the test set, and RoBERTa scores 93.74. NepBERTa, the strongest earlier entry on this task, scores 91.09. XLM-Rbase receives 87.59 and multilingual BERT 85.45. NepBERT and NepaliBERT score 79.12 and 82.45, respectively. Identifying and classifying mentions in a sentence thus contributes to the lead seen in the overall benchmark.

For part-of-speech tagging, RoBERTa scores 97.52, BERT scores 96.94, and NepBERTa scores 95.56. Among the multilingual entries, XLM-Rbase scores 94.88 and multilingual BERT scores 94.65. The other dedicated Nepali baselines receive 90.63 for NepBERT and 91.67 for NepaliBERT. This task adds evidence about assigning grammatical labels in context. Its comparison tests a different kind of prediction from entity recognition, even though both tasks assign labels within an input sequence.

The text classification scores on the Nep-gLUE test set are 94.68 for RoBERTa and 94.47 for BERT. NepBERTa scores 93.13. XLM-Rbase and multilingual BERT score 92.33 and 91.08, respectively. NepBERT scores 90.98 and NepaliBERT 90.10. Here the output concerns the text as a whole. The ranking shows that the strongest two systems retain their advantage when task adaptation calls for a document-level judgment.

Categorical pair similarity gives RoBERTa 96.49, BERT 95.72, and NepBERTa 94.42. XLM-Rbase gets 93.65 and multilingual BERT 93.60. NepBERT receives 91.05 and NepaliBERT receives 89.46. In this case, the judgment depends on two inputs. That makes it useful to read alongside the single-input tasks when considering whether the overall lead reflects improvement concentrated in one type of decision. The results show a consistent ordering at the top across the four tasks. The table gives little information about which kinds of category or input account for that ordering.

The paper also gives parameter counts for the baselines. In its benchmark table, multilingual BERT has 172M parameters and XLM-Rbase has 270M. NepBERT, NepaliBERT, and NepBERTa are listed at 110M. These figures show that a higher reported parameter count by itself did not secure the strongest scores in this comparison. The architectures, data, vocabularies, and task training vary across systems. The table therefore serves as a performance comparison rather than a test that holds those factors constant while varying capacity.

#### The summarization dataset and comparison

The authors report that there was no established Nepali benchmark for generation tasks in their setup. They use a publicly available dataset that the paper credits to Bhandari and lists as `Xlsum-nepali-summerization-dataset`. The task is abstractive [text summarization](https://md.research.elamur.ai/free/en/concepts/text-summarization/). A system receives a source text and generates a compact account of its contents. The output can use newly composed wording and is evaluated against a reference summary. In this experiment, the same kind of decoder that learned to complete a sequence is trained to generate a particular kind of completion from the article.

The dataset has 7,258 examples. The authors use 5,806 (80%) to train GPT-2 and GPT-2-Instruct for summarization, and reserve 1,452 (20%) for evaluation. Both variants are fine-tuned with a batch size of 8 for 3,000 steps. Those are the settings for learning the summarization task, after the general pretraining and the extra instruction stage for GPT-2-Instruct. This makes the final comparison a test of adapted summarizers. One starting checkpoint carries the additional exposure to instructions.

The baseline appears as `distilgpt-nepali` in the results table and is credited to Maskey. The table gives it 88.2M parameters and lists both of the authors’ GPT-2 variants at 124M. For the two GPT-2 branches, the reported parameter count is the same while their prior training differs. Compared with the external baseline, both parameter count and training history can differ. The result table provides the scores for all three systems, while the protocol specifically describes the summarization fine-tuning of the authors’ two systems.

ROUGE compares a generated summary with a reference through overlap. ROUGE-1 considers individual units of wording, and ROUGE-2 considers adjacent pairs. ROUGE-L looks for an ordered sequence of matching units shared by the two summaries. Its matches can span gaps, so the metric can reflect how much phrasing survives in order across a longer stretch. The paper cites Lin and Lin and Och in introducing ROUGE and does not give its implementation settings. The reported comparison uses a reference-based measure of textual agreement of the kind discussed in [Lin and Och’s evaluation work](https://md.research.elamur.ai/free/en/papers/lin-2004-automatic-evaluation-machine-translation-quality/).

Generator comparison on held-out Nepali summarization by ROUGE-1 Both pretrained GPT-2 variants lead the baseline, and the instruction-tuned variant has the highest overlap.

**The numbers**

| System or setting | ROUGE-1 |
| --- | --- |
| distilgpt-nepali | 10.16 |
| GPT-2 (authors) | 19.66 |
| GPT-2-Instruct (authors) (this paper) | 20.42 |

On the 1,452-example evaluation split, the baseline scores 10.16 on ROUGE-1, 8.63 on ROUGE-2, and 9.19 on ROUGE-L. GPT-2 scores 19.66 on ROUGE-1, 14.51 on ROUGE-2, and 16.84 on ROUGE-L. GPT-2-Instruct scores 20.42 on ROUGE-1, 15.89 on ROUGE-2, and 17.76 on ROUGE-L. The same system order holds when overlap is measured through individual units, adjacent pairs, and longer ordered matches.

That agreement makes the advantage less dependent on one definition of textual overlap. The scores also show how much of the observed ordering is already present in the system that went from news pretraining straight to summary fine-tuning. On each measure, this branch is ahead of the external baseline before instruction tuning enters the comparison. The branch with instruction training adds a further gain on the same evaluation. Because the systems are scoreable on the same three measures, the results allow those two comparisons to be read independently.

#### How the pretraining curves behave

The paper also presents training curves for BERT and RoBERTa. The loss is the quantity the optimizer attempts to reduce. Accuracy in this context is a success rate for training predictions, reported separately from the later task scores. For BERT, the paper reports training loss moving from 8.34 to 1.51 and training accuracy moving from 3% to 68.11% by 400k steps. RoBERTa starts at a reported training loss of 7.45 and reaches 1.47 at 400k steps, with a final training accuracy of 69.72%. The authors interpret the trajectory as faster convergence for RoBERTa.

GPT-2’s training plot traces loss and perplexity. Perplexity summarizes how uncertain the predictor is about the tokens it encounters, with lower values indicating more confident prediction of the text being scored. The paper reports loss going from 10.34 to 3.001 and perplexity from 60.03 to 24.13 over 500k steps. The trends describe progress in causal pretraining. The paper gives both pairs of endpoints as reported training measures and leaves the details of their calculation unspecified.

These plots answer a question that the downstream tables cannot answer by themselves. They show that the pretraining predictions improved during the reported runs. The benchmark comparisons answer what the resulting checkpoints could do after task-specific fine-tuning. Because the reading of a training curve depends on what is being predicted, the absolute encoder and decoder losses are unsuitable for ranking their language abilities against each other. The encoder learns to fill a gap using surrounding material, while the decoder learns to predict a continuation from the preceding material.

### What the ablations show

The paper contains no systematic ablation of corpus, tokenizer, and architecture, and its closest controlled comparison is GPT-2 with and without the added instruction stage, alongside less controlled contrasts between encoders and observations about training and input length.

#### The comparison that most directly tests a training choice

GPT-2 and GPT-2-Instruct start from the same pretrained decoder. Their parameter counts in the results table are equal. The instruction branch then receives supervised training on the cleaned Nepali Alpaca collection. Both branches are subsequently fine-tuned on the same summarization training split with the reported batch size and step count. Their results are measured on the same reserved examples. Of the comparisons in the paper, this one changes the most clearly identifiable part of the preparation for a downstream task.

The instruction-trained branch scores higher on each of the reported ROUGE measures. Its advantage extends to adjacent wording and ordered overlap as well as individual units. This is evidence that the extra stage can help prepare this decoder for the authors’ summarization procedure. The input to the experiment is a particular collection of instructions and responses, and the measured outcome is reference overlap after summarization training. The effect belongs to that full sequence of stages.

Instruction tuning introduces both a different form of supervision and further updates on extra examples. The comparison therefore addresses the value of including the stage as implemented. Pinning the gain specifically on the instruction-response relationship would require a comparison with extra training of similar duration and on comparable text, but without that relationship. The paper reports the branch scores directly, with no repeated runs or uncertainty estimates that would show how closely a rerun follows the same ordering.

The low-resource instruction-tuning motivation is broader than this test. The experiment gives each branch summarization labels and then asks it to perform summarization. A direct test of transfer to an unseen instruction would evaluate a task without that final task-specific training. The observed advantage is useful precisely because it concerns a practical choice the experiment actually makes, namely which checkpoint to start from when labeled summary examples are available.

#### The encoder comparison changes several parts of the recipe

RoBERTa finishes above BERT on each Nep-gLUE task and on the aggregate. It also finishes with the better reported pretraining accuracy and lower final reported pretraining loss. The downstream consistency gives more evidence for the RoBERTa configuration than an aggregate alone. There is still a difference between ranking two configurations and accounting for the difference in their scores.

The encoders share the corpus, batch size, number of updates, and several optimizer and regularization settings. They use different vocabulary sizes. They also use different combinations of pretraining tasks, since BERT uses both masked prediction and next sentence prediction while RoBERTa uses the masked task. The differing parameter counts in the benchmark table add another uncertainty to the comparison. These factors move together, leaving the removal of next sentence prediction or the change in vocabulary size without an independent measured effect.

The same qualification applies to the paper’s explanation that the new corpus was the primary reason the encoders improved on prior work. The corpus is the paper’s main intervention, and both new encoders lead the baselines after using it. No comparison in the study trains the same encoder and vocabulary on a smaller subset of this corpus under the same conditions. Nor do the tables compare equivalent configurations trained on the earlier and newer text collections. The evidence links the improved results to systems built using the new corpus. Attribution to its size, its content, or a particular part of its cleaning remains an interpretation.

The training curves help establish what happened within each run. They show the direction of learning and the reported values at the end of pretraining. They do not isolate which property of either encoder makes its loss fall as it does. For example, the objective and the range of possible vocabulary entries are already different at the point the initial losses are observed. A lower loss at a reported checkpoint thus describes that run under its own prediction task.

#### The authors identify a long-input failure mode

The generation analysis includes a qualitative observation about length. The authors found that GPT-2 tended to hallucinate on very long contexts, meaning it generated material that was unsupported by the input. They say performance was generally poor on inputs exceeding 400 tokens and relate this to training on sequences of 512 tokens. The first figure describes where they usually observed problems. The second describes an aspect of the training setup they offer as an explanation.

The paper does not give a length-by-length score breakdown or compare decoders trained with different sequence lengths. This makes the length observation different from the instruction comparison. It identifies an operating condition under which the authors saw failures and suggests a plausible contributor, while leaving the frequency, severity, and onset of failure uncertain. The aggregate ROUGE scores average over the evaluation examples and cannot supply those missing details. This analysis is a reason to read the best summary scores together with the reported behavior on long articles.

### Limitations

#### Limits the authors acknowledge

The authors describe generation evaluation as constrained by the absence of an established benchmark in their setup. They choose a public summarization dataset and compare their systems with an available Nepali generator. That choice gives them a common task and a held-out set of reference summaries. The resulting evidence concerns the kind of generation tested there. Whether the same training improves different forms of generation requires observations from those tasks.

The authors also explicitly raise the problem of very long inputs. They associate unreliable summaries and invented content with cases that typically exceed 400 tokens, and they point to the original 512-token training sequences. The two figures identify a symptom and a proposed explanation. The paper treats the long-context issue as a limitation on its systems’ summarization performance, even though the best version leads the comparison on average overlap. A higher score over the set and individual unfaithful summaries can occur in the same experiment.

The discussion of instructions is exploratory. The paper frames the Nepali experiment as a basis for further research, with evidence from one downstream generation task. The starting motivation includes earlier gains from following unseen requests. Here the decoder learns from instructions, then receives direct training on the target summarization task. What the authors observe is compatible with benefits from instruction tuning while leaving the breadth of instruction following to be established.

#### Limits visible in the experimental setup

On the encoder side, selection on the test set is the clearest qualification. The authors report trying several learning rates and training durations and selecting the strongest test performer for each task. A test set used for those decisions participates in configuration selection. Its highest observed score can partly reflect which settings happen to suit the particular examples in that set. Reporting the strongest score under the specified procedure is informative about the benchmark experiment, while a further independent evaluation would be needed to judge how much of that advantage carries over unchanged.

The paper presents one reported score for each system and task. It does not show variation across repeated training runs, provide uncertainty intervals, or report performance broken down by label or type of input. The same limitation applies to ranking the two GPT-2 branches. Agreement across ROUGE measures strengthens the descriptive result, but the measures use the same set of generated summaries and references. They are multiple views of the same predictions. The paper leaves the stability of the ranking across new samples and fresh runs unmeasured.

Comparisons with earlier systems combine multiple differences. Some baselines share training across languages. Some are dedicated to Nepali but use different corpora. The new encoders also differ from one another in vocabulary and objective. Parameter counts establish how the systems are described in the table and help a reader see that size varies. They do not provide a way to divide the performance gains among capacity, monolingual training, vocabulary design, and corpus construction. Even for the larger vocabulary and RoBERTa’s parameter count, the paper gives inconsistent descriptions, which makes a capacity-matched reconstruction of the contrast harder.

The training collection also comes from a particular source type. A corpus drawn from news websites can be broad in subject matter while containing the recurrent wording and conventions of published articles. The paper does not evaluate how the resulting systems transfer to other Nepali genres or varieties. Nor does it characterize the cleaned corpus by topic, register, or other divisions that could be matched against task-level outcomes. Its size supports the claim that the authors assembled a substantial training resource. The number alone cannot establish how evenly that resource represents the different ways people use Nepali.

Deduplication and collection from scratch are described as ways of reducing repeated training material. The paper does not report checks for overlap between the news crawl and examples in the downstream evaluation datasets. That leaves train-to-evaluation overlap as an unanswered question. It is distinct from whether the authors removed duplicate material within the crawl. The available results give no basis for estimating either the presence or the effect of downstream overlap.

There are also reproducibility details that remain unresolved. The tokenization and encoder sections disagree on the size of the larger vocabulary, and the RoBERTa parameter counts differ between the training narrative and the result table. The paper identifies the cleaning operations, but it does not quantify how much text was deduplicated, discarded for language reasons, or translated. For the instruction collection, it gives the initial and retained row counts without a breakdown by cleaning operation. The paper thus documents the major stages and settings while leaving choices that could affect an independently prepared version of the data.

#### What the reported metrics measure

A benchmark aggregate is convenient for ranking systems across several tasks. It cannot tell the reader which names, constructions, or pairs of documents caused errors. The individual Nep-gLUE scores show that the advantage is distributed across the task categories. They leave open the behavior of specific kinds of examples within each task. The paper’s inference about broader linguistic coverage is consistent with its aggregate results, but a direct demonstration would have to connect particular linguistic patterns to measured improvements.

ROUGE has an analogous boundary. It rewards wording that agrees with a reference according to a specified matching rule. Factual faithfulness asks whether the generated claims are supported by the source article. A summary can share wording with the reference and still introduce an unsupported detail. It can also express a correct point in language with fewer matching units. The authors’ long-input observation makes that distinction concrete in this study. Without separate factuality judgments or human evaluations, the reported scores establish a ranking in reference overlap and leave the quality of individual summaries partly unresolved.

Finally, the paper’s evidence for instruction tuning is specific to the reported path through training. The added stage includes instruction examples, their associated responses, and additional optimization. Its advantage comes after both branches receive summarization supervision. The comparison gives an observed result for that package of changes. A stronger causal account would have to distinguish the effect of extra practice from the form of the examples and show whether the gains persist on tasks other than summarization. Those are open questions about the mechanism and scope of the result.

### What came after

No subsequent citing study is documented. The authors close by treating their news corpus, pretrained checkpoints, and instruction-tuning experiment as starting points for further Nepali research. The open questions follow directly from what their experiments measured. The encoder comparison leaves the contribution of corpus size and vocabulary design to be isolated. The generation comparison leaves open whether instruction training helps on other tasks and whether summaries can remain faithful as article length increases. These are directions suggested by the paper’s findings. A documented account of later work would be needed to say which were pursued and what they established.

## Cite

Cite as Prajwal Thapa, Jinu Nyachhyon, Mridul Sharma and Bal Krishna Bal. 2025. Development of Pre-Trained Transformer-based Models for the Nepali Language. Proceedings of the First Workshop on Challenges in Processing South Asian Languages (CHiPSAL 2025).

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{thapa2025development,
  title = {{Development of Pre-Trained Transformer-based Models for the Nepali Language}},
  author = {Prajwal Thapa, Jinu Nyachhyon, Mridul Sharma and Bal Krishna Bal},
  booktitle = {Proceedings of the First Workshop on Challenges in Processing South Asian Languages (CHiPSAL 2025)},
  year = {2025},
  url = {https://aclanthology.org/2025.chipsal-1.2/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
