---
title: "Mykola Haltiuk; Aleksander Smywiński-Pohl. On the Path to"
description: "Kobza combines Ukrainian text from five sources, and Modern-LiBERTa tests what that corpus can support in a long-context Ukrainian encoder."
canonical: "https://research.elamur.ai/free/en/papers/haltiuk-2025-high-resource/"
---
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/haltiuk-2025-high-resource/)

[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/) / Mykola Haltiuk; Aleksander Smywiński-Pohl. On the Path to Make Ukrainian a High-Resource Language // UNLP 2025

# Mykola Haltiuk; Aleksander Smywiński-Pohl. On the Path to Make Ukrainian a High-Resource Language // UNLP 2025

Paper · 2025 · Mykola Haltiuk and Aleksander Smywiński-Pohl

**Authors:** Mykola Haltiuk and [Aleksander Smywiński-Pohl](https://md.research.elamur.ai/free/en/authors/aleksander-smywinski-pohl/) · **Year:** 2025 · **Venue:** UNLP 2025 · **Licence:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

UNLP 2025 · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2025.unlp-1.14/)
- [PDF](https://aclanthology.org/2025.unlp-1.14.pdf)
- [DOI 10.18653/v1/2025.unlp-1.14](https://doi.org/10.18653/v1/2025.unlp-1.14)

## Summary

Ukrainian has a much smaller presence than English in the text collections used for multilingual pretraining. A collection can cover Ukrainian while giving it only a small share of the material from which a system learns. Mykola Haltiuk and Aleksander Smywiński-Pohl address this problem by building Kobza, a corpus with 59,582,213,563 tokens across 96,918,916 documents. They describe it as the largest publicly available Ukrainian corpus they know of. It brings together the Ukrainian portions of HPLT 2.0, FineWeb 2 and CulturaX with the Ukrainian News dataset and UberText 2.0. The authors release the corpus so it can be used for Ukrainian pretraining or included in a multilingual mixture.

Several of the source collections draw from the same parts of the web. To keep repeated material from taking up a large share of Kobza, the authors look for duplicates first through metadata, including URLs and timestamps, and then through similarities in document text. In a sample of pairs identified through metadata, the average normalized longest common subsequence similarity was 92.9%. The subsequent comparison of document content removed an additional 33% of documents. HPLT 2.0, FineWeb 2 and CulturaX supply the largest portions of the finished corpus. Each retained document carries its source, subsource, timestamp and URL, which allow users to select subsets of the data.

The authors use Kobza and a smaller contribution from English Wikipedia to train Modern-LiBERTa. The Ukrainian encoder starts from the English-trained ModernBERT Large and adapts its vocabulary using translations. Training first uses sequences of up to 1,024 tokens and then extends the window to 8,192 tokens. The authors identify Modern-LiBERTa as the first Ukrainian encoder with that input capacity. They release Kobza and Modern-LiBERTa through Hugging Face under the identifiers `Goader/kobza` and `Goader/modern-liberta-large`, along with the source code in `Goader/ukr-lm`.

When asked to recover hidden tokens using inputs truncated to 512 tokens, Modern-LiBERTa beats its predecessor LiBERTa v2 on all the reported datasets. Masked-token perplexity is 8.96 against 15.51 on Ukrainian Universal Dependencies, 4.28 against 8.77 on Ukrainian Wikipedia, and 22.22 against 76.00 on UA-GEC. Spivavtor also shows improvement. In supervised tests, the clearest lead is on WikiANN, a [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/) benchmark with short examples that can depend on background knowledge. Modern-LiBERTa has the highest mean micro-F1 there, at 93.37. It nearly matches LiBERTa v2 on part-of-speech tagging and on the original NER-UK benchmark, with less variation across runs on NER-UK. WECHSEL-RoBERTa leads the news classification comparison, and Modern-LiBERTa trails the other reported systems on NER-UK 2.0.

The short inputs in most of these tests leave the practical benefit of the extended window open. The authors also report that they know of no comparable Ukrainian benchmark for [information retrieval](https://md.research.elamur.ai/free/en/topics/information-retrieval/), so they leave retrieval quality unmeasured. They plan to grow Kobza to 100 billion tokens or more and build tools specifically to assess and filter Ukrainian documents.

## Deep dive: Mykola Haltiuk; Aleksander Smywiński-Pohl. On the Path to Make Ukrainian a High-Resource Language // UNLP 2025

Kobza combines Ukrainian text from five sources, and Modern-LiBERTa tests what that corpus can support in a long-context Ukrainian encoder. · about 32 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

#### Why the amount of Ukrainian text matters

In [multilingual and cross-lingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/), a language can appear in a training collection and still account for very little of it. The authors point to data availability and curation as part of the explanation for why otherwise capable multilingual systems can perform less well on Ukrainian inputs. They describe Ukrainian as a language with tens of millions of speakers and active linguistic and technical communities. The scarcity they are addressing concerns text prepared for large-scale pretraining. It includes the amount of text that can be found, the ability to filter it, and the ease of adding a Ukrainian collection to a broader mixture.

The paper sets this problem against the scale of contemporary [pretraining](https://md.research.elamur.ai/free/en/topics/language-models/). It cites 2 trillion training tokens for ModernBERT, 600 billion for NeoBERT and 5 trillion for EuroBERT. These are figures for the training runs discussed in the related work. They describe the scale at which the authors' contemporaries were operating, with English benefiting from established resources for acquiring, filtering and synthesizing text. Kobza tackles one part of that disparity by making a substantially sized Ukrainian collection available in a form that can be handled at the document level.

The scale of a multilingual collection can also hide differences between its languages. The paper gives Ukrainian's share of CulturaX as 0.61% by token count, even though CulturaX contains 38 billion Ukrainian tokens before the Kobza pipeline. It reports FineWeb 2's Ukrainian share as 0.86%, describing that portion as 23 billion words. Those figures reflect the source collections' own units. What the authors take from them is that several multilingual resources already hold substantial Ukrainian material, while each source sees only part of the material available across collections.

#### How earlier collections found and filtered web text

Common Crawl underlies several of the collections the authors discuss. OSCAR, mC4, CC100 and Pile-CC illustrate the approach of producing training corpora from web snapshots. A raw snapshot is a starting point. Before its text can be assigned to a Ukrainian collection, a pipeline has to identify the language and decide which documents to keep. These choices carry forward into any dataset assembled from the resulting collections. The paper discusses the lineage of these corpora through work including [CCNet](https://md.research.elamur.ai/free/en/papers/wenzek-2020-ccnet-extracting-high-quality-monolingual/) and [Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer](https://md.research.elamur.ai/free/en/papers/raffel-2019-exploring-limits-transfer-learning-unified/).

[CulturaX](https://md.research.elamur.ai/free/en/papers/nguyen-2023-culturax-cleaned-enormous-multilingual-dataset/) starts from material in OSCAR and mC4 and filters it further. As the authors describe it, CulturaX checks language assignments with FastText and discards documents when the new assignment disagrees with the original one. It applies URL filters to domains it considers toxic or harmful, checks documents with basic quality measures, and uses approximate matching for deduplication. Its Ukrainian segment therefore comes with decisions already made at several levels, from the language of a document to the suitability of its domain.

FineWeb 2 and HPLT 2.0 make different choices. FineWeb 2 uses GlotLID for language identification and applies some filters and deduplication separately by language. Its parameters can use resources such as lists of common words for the language being processed. FineWeb 2 also restores repetitions based on frequency in the original crawl, with a special rule that reduces texts seen more than 1,000 times to a single copy. HPLT 2.0 depends heavily on Internet Archive crawls, adding coverage beyond that of a Common Crawl source alone. It uses OpenLID for language identification and applies the Web Document Scorer after deduplication. The paper gives a score below 5 as an example of the kind of threshold used to discard documents. These upstream decisions matter when the Ukrainian segments are merged, since a unique document in one processed collection may still repeat a document retained by another.

The authors also describe Ukrainian resources assembled with a different starting point. Zvidusil, ukTenTen and Brown-UK are examples of Ukrainian-focused corpora. Malyuk is particularly relevant because it already brings together OSCAR, Ukrainian News and UberText 2.0. UberText 2.0 uses crawlers developed for selected Ukrainian sources, which gives its curators greater control over those sources and may reduce the range of domains. The corpus also includes [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/), with information such as lemmas and grammatical categories. In Kobza, targeted collections complement the broader web collections. Their role in the mixture follows from how they were gathered as well as from their size.

#### How earlier systems adapted to another language

The paper situates Modern-LiBERTa in work on cross-lingual transfer. An existing encoder has already learned to turn sequences of input symbols into representations that depend on the surrounding text. Reusing its parameters gives training in a new language a different starting point from random initialization. A complication arises at the vocabulary. A parameter row trained for an English token has meaning in relation to that token. If a Ukrainian vocabulary assigns the same row number to a different token, carrying over the row as it stands fails to preserve that relationship.

Earlier approaches addressed this problem by finding correspondences between vocabularies. According to the paper, WECHSEL learns a linear mapping from one embedding space to another using a bilingual dictionary. FOCUS exploits overlapping sub-words to initialize the new vocabulary. Trans-Tokenization uses translated text to identify correspondences and can handle cases where a unit in one vocabulary matches several units in the other. The paper places Ukrainian variants of [RoBERTa](https://md.research.elamur.ai/free/en/papers/liu-2019-roberta-robustly-optimized-bert-pretraining/) in this line of research, while describing the earlier Ukrainian efforts as limited in corpus size and sequence length.

The paper also places its choice of encoder in a separate line of work on faster processing and longer inputs. Earlier research explored objectives for improving performance on downstream tasks, including [DeBERTaV3](https://md.research.elamur.ai/free/en/papers/he-2021-debertav3-improving-deberta-using-electra/). The authors discuss architectures better suited to modern graphics hardware and the use of encoders for finding relevant documents. Retrieval matters in applications such as [retrieval-augmented generation](https://md.research.elamur.ai/free/en/concepts/retrieval-augmented-generation/), where a system gathers material that can inform a generated response. The prospect of encoding more of a document in one pass makes the length of an input a design consideration. It also makes document length a property to retain and examine during corpus construction.

### The method, step by step

#### Assemble Ukrainian documents from complementary sources

The method has two connected parts. The authors first prepare Kobza as a standalone Ukrainian corpus. They then use it as the Ukrainian component of a training mixture for an encoder, adapting an English checkpoint and extending the input length in a later phase. Keeping track of the corpus separately matters because the documents in the release and the tokens processed during training are different quantities.

From source documents to Modern-LiBERTa The steps in order.

The starting point for Kobza is material that has already been collected and processed. By merging existing corpora, the authors avoid the work of extracting and classifying the entire collection from raw crawls themselves. The tradeoff is that Kobza begins with documents shaped by several upstream policies. A source can contribute text gathered from a different crawl, a different document domain, or a filtering process that retained a different set of pages.

CulturaX contributes from an initial Ukrainian collection of roughly 44 million documents. Ukrainian ranks 21st in that corpus by token count. FineWeb 2 has 47 million Ukrainian documents, with Ukrainian ranked 24th among its languages by representation. The cleaned Ukrainian portion of HPLT 2.0 also has 47 million documents. Its 25 billion Ukrainian tokens place the language 21st in that collection. The paper uses these figures to characterize the inputs to the merge. The final Kobza figures use a common token column in the corpus statistics, whereas the initial FineWeb 2 quantity is expressed as words. The two quantities have different units.

The Ukrainian News contribution starts with 16 million articles from media outlets and more than 6.5 million Telegram posts. Together they offer edited news and less formal writing, including many short documents. For this source, the authors use Trafilatura to extract text and remove boilerplate, the material around the main article that tends to recur across pages. Processing also addresses duplicate content. This source-level preparation precedes the comparison of documents across the merged collection.

UberText 2.0 starts with roughly 2.5 billion tokens and 8.5 million documents. It supplies news and fiction alongside social, legal and Wikipedia material. These domains help explain why the authors included a corpus built from selected Ukrainian sources even though larger web collections dominate the eventual token counts. The targeted resource contributes particular kinds of writing, while the web collections cover a broader range of sites. The paper presents source provenance and length as useful ways to describe that mixture.

#### Use metadata to find repeated pages

Suppose two collections obtained a page from the same web crawl. Their text extraction procedures might cut the page at different places. One version might preserve a passage or a heading that the other drops. A comparison that demands identical text would miss some such pairs. The authors first look at information attached to the documents, such as URLs and timestamps. This gives the pipeline a way to recognize records that may come from the same page before considering stricter comparisons of the text.

To check how similar the resulting matches are, the authors use a longest common subsequence. A subsequence keeps elements in their original order and can skip intervening material. This lets it capture text that stays in the same order even if one record includes extra material partway through. The paper normalizes the overlap by the length of the shorter text.

```
sim(a, b) = LCS(a, b) / min(|a|, |b|)
```

Here `a` and `b` are the two document texts, and `sim(a, b)` is the paper's similarity score. `LCS(a, b)` is the length of their longest common subsequence. The bars in `|a|` and `|b|` denote the lengths of the texts, and `min` selects the smaller of those lengths. The slash denotes division. With the shorter document length in the denominator, the score reaches 100% when the shorter text is a substring of the longer one. A longer version can therefore contain extra material and still receive the highest score.

That normalization suits a check on text extraction. If one corpus retains an article intact and another keeps only a portion of it, a high value expresses that the shorter text is largely accounted for by the longer record. It gives a specific meaning to the average reported for a sample of metadata matches. The score gives little weight to the amount of additional material in the longer record when the shorter record is preserved in it. The paper uses it to validate the metadata stage. It describes a different similarity measure for finding the remaining near-duplicates.

#### Compare content across the merged collection

Once duplicate records identifiable through metadata have been removed, the next stage looks for repetitions in the words and passages themselves. Similar copies can carry different metadata, as when collections draw on different records for overlapping content. The paper uses MinHashLSH to approximate the similarity of documents from their [n-grams](https://md.research.elamur.ai/free/en/concepts/n-gram/), contiguous groups of text elements. Its configuration uses 5-grams and a similarity threshold of 0.7.

The underlying measure is Jaccard similarity. For this application, each document is represented by a set of fragments. Similarity measures how much the sets share relative to the fragments present in either document. The MinHash part builds a compact representation of the sets, and locality-sensitive hashing helps bring likely matches together without requiring a full comparison of every possible pair. This use of 5-grams gives the comparison access to short runs of text. It is a test for repeated material, with the threshold defining how much estimated overlap is enough under the chosen procedure.

The authors run this stage with the `text-dedup` package on Apache Spark. The implementation is part of the method because it lets them make content comparisons at the scale of the combined corpus. It operates after the metadata stage, so the documents eligible for this pass have already survived the first round of filtering. The statistics the paper gives for the two stages describe the sequence as actually run.

The final corpus preserves source, subsource, timestamp and URL for each document. These fields have a purpose beyond the initial deduplication. Source and subsource allow a user to choose parts of the corpus by provenance. URLs and timestamps retain information about where material came from and when it was recorded. The corpus is distributed in Parquet with Snappy compression. Kobza is the resulting Ukrainian dataset. The English documents used for the encoder come from a separate source.

#### Build a training mixture and reuse the tokenizer

For Modern-LiBERTa, the authors combine Kobza with English Wikipedia. They report roughly 6 billion English Wikipedia tokens, accounting for about 10% of the training mixture. Ukrainian writing can contain English words and names, especially in the technical, academic and news texts the authors mention. They include English Wikipedia partly to give the encoder exposure to such material and in part because encyclopedic text could supply background information relevant to recognizing names or representing documents for retrieval.

The next choice is how to turn text into tokens. [Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) defines the units the encoder reads and later predicts. With [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/), an unfamiliar or complex word can be represented by a sequence of smaller units drawn from a fixed vocabulary. The same written word can therefore take up different numbers of positions under different tokenizers. This is important for understanding both what the input limit covers and how the paper compares masked-token predictions.

Modern-LiBERTa uses the LiBERTa v2 tokenizer, whose vocabulary has 64,000 tokens. It was trained on Ukrainian material from CC100 with a small contribution from English news. In the authors' account, the English news helps cover named entities that appear in English. This tokenizer training is distinct from the encoder's pretraining with English Wikipedia. The tokenizer determines the units and their identifiers. The encoder learns from the sequences of those units that it encounters in the training mixture.

Sharing the tokenizer with LiBERTa v2 also gives the authors a cleaner intrinsic comparison. If a word is split into a different set of tokens by each system, the systems are assigning probabilities to different units. Here the units can be kept the same. The authors use this fact later when they compare the ability of the two systems to recover missing text.

#### Transfer the encoder and initialize the new vocabulary

Modern-LiBERTa follows the Large configuration of [ModernBERT](https://md.research.elamur.ai/free/en/papers/warner-2024-smarter-better-faster-longer-modern/). It has 28 layers, a hidden size of 1,024 and 410 million parameters. Hidden size is the width of the internal representation at a token position. In a [transformer](https://md.research.elamur.ai/free/en/concepts/transformer/), attention lets a position's representation depend on other positions it can attend to. In a bidirectional encoder, this can include material preceding and following the position. For a hidden word, both sides can supply evidence about what belongs there.

The architecture uses rotary positional embeddings to represent position in the attention calculation. The paper traces that technique to [RoFormer](https://md.research.elamur.ai/free/en/papers/su-2021-roformer-enhanced-transformer-rotary-position/). It also uses [FlashAttention-2](https://md.research.elamur.ai/free/en/papers/dao-2023-flashattention-2-faster-attention-better/), which the authors cite for memory-efficient attention computation. Alternating attention patterns reduce the work of processing longer sequences. The paper presents these choices as features inherited from an architecture designed for efficient operation on modern graphics hardware. Their combination gives the authors a starting point for increasing input length during training.

The checkpoint comes from ModernBERT Large trained on English. The authors reuse its layers directly, with the exception of the input and output embeddings. [Word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) and sub-word embeddings are learned vector representations tied to vocabulary entries. The input embeddings provide the starting vectors for tokens read by the encoder. The output embeddings are tied to its vocabulary predictions. Both interfaces must correspond to the LiBERTa v2 vocabulary for the transferred layers to be used with that tokenizer.

The authors initialize those vocabulary-specific weights with Trans-Tokenization. They take parallel Ukrainian and English material from [OpenSubtitles](https://md.research.elamur.ai/free/en/papers/lison-2016-opensubtitles2016-extracting-large-parallel-corpora/) and NLLB. Parallel material supplies corresponding passages across languages. FastAlign is used to identify which Ukrainian tokens align with which English tokens. A Ukrainian entry can draw on the vectors of the English entries to which it is aligned. The authors form its initial vector as a weighted linear combination of those vectors using the official `transtokenizers` toolkit. A combination gives aligned entries different contributions according to their weights, so the method can use several English correspondences for a Ukrainian token.

The intent is to preserve part of what the English encoder has learned while making its input and prediction vocabulary appropriate for Ukrainian. The transferred layers and the initialized embeddings play different roles. Layers carry over the learned transformations of token representations. The new embeddings give those layers a starting interpretation for the tokens they receive and predict. Continued pretraining on the Ukrainian-heavy mixture then updates the adapted system.

#### Train first at a shorter length

Training uses masked language modeling, abbreviated MLM. The procedure hides selected words and asks the encoder to predict the removed tokens from the visible context. The authors follow MosaicBERT in using a full-word masking rate of 30%. With full-word masking, when a selected word has several sub-word tokens, the parts of that word are hidden together. This prevents the visible remainder of a selected word from giving away its masked pieces.

The first phase processes 140 billion training tokens at a maximum sequence length of 1,024. That token total is the amount processed in training. The released Ukrainian corpus is the collection of available texts, and the training mixture includes the English contribution. Reading the phase total as a corpus size would conflate the amount of material available with the amount presented to the encoder over the course of optimization.

The authors use StableAdamW from the `optimi` package. They describe it as combining fully decoupled weight decay with a form of update clipping adapted from Adafactor. Weight decay governs shrinkage of parameter values. Decoupling keeps that operation separate from the gradient-based update, as in the earlier work on [Decoupled Weight Decay Regularization](https://md.research.elamur.ai/free/en/papers/loshchilov-2017-decoupled-weight-decay-regularization/). In StableAdamW, the clipping mechanism adjusts the learning rate for individual parameters. The learning rate sets the scale of changes made during training.

In the first phase, the warmup spans 5 billion training tokens. The peak learning rate is 5e-4, and the cosine schedule brings it to 5e-5 at the end of the phase. Cosine decay changes the learning rate along a smooth schedule. The authors use a weight decay of 1e-5 in this phase. The training configuration gives optimizer betas of (0.90, 0.98), which govern the running estimates used in the update, and an epsilon of 1e-6, a small constant used in the optimizer calculation.

The run uses the CYFRONET Helios cluster with 4 nodes, each equipped with 4x GH200 96GB Superchips. Distributed Data Parallel divides the work across devices and synchronizes gradient calculations. Each device processes batches of 16 sequences in the first phase. Gradient accumulation lets the run combine contributions from successive batches before updating the parameters. With 16 accumulation steps, the paper reports an effective batch size of 4,096 for this phase and a duration of 133 hours. The authors list the complete hardware and batch settings because these affect how the work of pretraining is distributed, especially as sequences become longer.

#### Continue on a mixture of document lengths

The second phase starts from the last checkpoint of the first. It processes 20 billion training tokens with sequences as long as 8,192 tokens. The maximum is a count of tokens under the inherited LiBERTa v2 tokenizer. Longer inputs change how many sequences can be processed per device in a batch. The second phase uses 4 sequences per device and 16 gradient accumulation steps, for a reported effective batch size of 1,024 sequences. It starts at a learning rate of 5e-5 without another warmup and uses cosine decay to reach 0. Weight decay is 1e-6 during this phase, which the paper reports took 24 hours.

The authors construct a special mixture for the second phase. They allocate 8 billion tokens to documents with at least 4,096 tokens and 8 billion tokens to documents described as ranging between 1,024 and 4,096 tokens. Documents under 1,024 tokens supply 4 billion tokens. These are contributions from document length ranges. They express which kinds of documents the authors draw on during the phase, while the sequence limit governs how much text the encoder can receive in an input.

The length mixture follows earlier work by Fu and colleagues on preserving properties of the initial data distribution during context extension. The authors also cite Gao and colleagues for the observation that omitting short documents during long-context training can degrade performance on some tasks. Short material therefore remains part of pretraining after the input limit increases. The authors give sources judged to be higher quality more representation in the mixture, again following the earlier work. The paper specifies the token allocations by length and the fact that it upsamples preferred sources. These choices describe the schedule used for the released encoder.

#### Define the masked-token test

For evaluation, the authors mask 15% of the words in an input, then use the encoder's tokenizer to determine how many mask positions to insert for each selected word. A word split into several tokens contributes a mask position for each token. Each such position has an original token that serves as the target. The encoder predicts token probabilities using the visible content, and the authors aggregate the probabilities assigned to the correct tokens. The resulting quantity is called masked language modeling perplexity.

```
ppl(X) = exp(−(1 / |M|) × Σₓ∈M log pθ(x | X − M))
```

In this expression, `X` is the input sequence and `M` is the set of masked token positions. `ppl(X)` is the masked-token perplexity for that input. The bars in `|M|` give the number of masked positions, and `1 / |M|` averages the terms in the sum. `Σₓ∈M` means to include the term for every masked position, with `x` standing for the original token at that position. `pθ` is the probability assigned by an encoder with parameters `θ`. The vertical bar in `pθ(x | X − M)` means “given,” and `X − M` denotes the visible context after hiding the selected tokens. `log` takes the logarithm of the probability, the minus sign reverses the sign of the average log probability, and `exp` takes its exponential. The multiplication sign joins the averaging factor and the sum.

A lower value means that the encoder placed greater probability on the correct tokens in aggregate. The authors also count token-level accuracy, which registers how frequently the predicted token matches the original. These measurements capture different properties of the same predictions. Accuracy records whether the prediction is right at a position. Perplexity depends on how much probability the encoder offers the correct answer, including at positions it predicts incorrectly. In the paper's test, a masked word may contribute several token predictions to both measures.

### Experiments and results

#### What is in the finished corpus

Kobza's 96,918,916 documents occupy 474GB in the compressed Parquet release. HPLT 2.0 contributes 26,244,485 documents and 20,709,322,905 tokens. FineWeb 2 contributes 32,124,035 documents and 19,114,177,138 tokens. CulturaX accounts for 24,942,577 documents and 15,002,455,535 tokens. FineWeb 2 supplies the most documents of those sources, while HPLT 2.0 supplies the most tokens. The separate columns show why a document count gives an incomplete description of where the input to pretraining comes from.

Of the two Ukrainian-focused contributions, UberText 2.0 supplies 6,431,848 documents and 2,904,208,874 tokens. Ukrainian News supplies 7,175,971 documents and 1,852,049,111 tokens. The ordering by document count and token count differs here as well. That is consistent with the authors' description of Ukrainian News as a source with many short items, including posts. The corpus gives these kinds of document a visible place alongside the material from multilingual web collections.

The authors also plot how much of the corpus comes from documents above different lengths. The horizontal position on the plot sets a document length cutoff. The vertical quantity counts the tokens available from documents longer than that cutoff. Thus the figure answers a question about how much text can supply longer examples. It shows substantial token mass in longer documents, even though the corpus contains many short documents. This supports the feasibility of constructing the length mixture for context extension from the available material.

#### Predicting hidden Ukrainian tokens

The intrinsic evaluation compares Modern-LiBERTa with LiBERTa v2, which uses the same tokenizer. The authors truncate documents to 512 tokens for both systems. This keeps the comparison within a common input length and withholds the extra context that Modern-LiBERTa could otherwise see. The scores are for masked-token recovery on the reported evaluation collections. The paper does not attach train, development or test split names to the individual rows of this comparison.

The Ukrainian [Universal Dependencies](https://md.research.elamur.ai/free/en/concepts/universal-dependencies/) corpus is a curated resource with linguistic annotations and over 100,000 tokens. It supplies well-formed Ukrainian text for this test and also underlies the supervised part-of-speech benchmark. Ukrainian Wikipedia provides encyclopedic material from a different style of writing. The paper describes its documents as longer and richer in background information, although the shared truncation applies here as well.

The two other collections are drawn from editing tasks. The authors use target texts from Spivavtor, including intended outputs for simplification, paraphrasing, coherence and correction. Its data combine work annotated in Ukrainian with material translated from English. The authors report that roughly 44.5% of Spivavtor lies in the manually annotated fluency and [grammatical error correction](https://md.research.elamur.ai/free/en/topics/grammatical-error-correction/) subset. They also evaluate the targets from UA-GEC separately as manually annotated Ukrainian correction data. These evaluations hide tokens from the target texts. They measure the probability of recovering the targets' words or word pieces under masking.

Masked-token perplexity on Ukrainian Universal Dependencies Modern-LiBERTa assigns greater probability to the hidden tokens under the shared input limit.

**The numbers**

| System or setting | perplexity |
| --- | --- |
| LiBERTa v2 | 15.51 |
| Modern-LiBERTa (this paper) | 8.96 |

On Universal Dependencies, token-level accuracy is 58.82% for Modern-LiBERTa and 52.81% for LiBERTa v2. Together with the lower perplexity in the chart, this indicates improvement in both how often the new encoder recovers the correct token and the probability it assigns to the correct answers. On Ukrainian Wikipedia, Modern-LiBERTa records 4.28 perplexity and 69.03% token accuracy. LiBERTa v2 records 8.77 perplexity and 59.87% accuracy on the same collection. The within-collection comparisons are the informative ones here, since a corpus of encyclopedic text can have a different level of predictability from a collection of edited sentences.

On the target texts from Spivavtor, the scores go in the same direction. Modern-LiBERTa achieves 18.01 perplexity and 48.42% accuracy, against 54.07 and 37.00% for LiBERTa v2. On the separately reported UA-GEC targets, it achieves 22.22 perplexity and 44.71% accuracy, against 76.00 and 33.77% for LiBERTa v2. The Spivavtor and UA-GEC evaluations have some relationship in their provenance, because the paper identifies UA-GEC as a contributor to Spivavtor's correction data. The separate result establishes how the encoders compare when the test focuses on the carefully annotated correction targets.

Across the reported collections, Modern-LiBERTa is ahead on both measures. The pattern spans text from a curated linguistic resource, encyclopedic pages and the outputs of editing tasks. The comparison gives evidence about the completed encoder's recovery of hidden text within a common window. It provides a different kind of evidence from that obtained by adapting the encoder to predict task-specific labels.

#### Assigning labels to words, entities and news texts

The supervised evaluation covers three tasks at different units of analysis. In [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), the task is to assign a grammatical category to each token in the annotated Universal Dependencies data. Accuracy counts the share of correct tags. In named entity recognition, the task is to identify the mentions in a passage and assign the corresponding entity types. The paper evaluates it on NER-UK, NER-UK 2.0 and WikiANN. NER-UK 2.0 includes more entity types and fuller annotations than NER-UK. WikiANN supplies short examples in which the surrounding text can offer little evidence about the type of a name. The paper traces the latter benchmark to [Cross-lingual Name Tagging and Linking](https://md.research.elamur.ai/free/en/papers/pan-2017-cross-lingual-name-tagging-linking/) and [Massively Multilingual Transfer for NER](https://md.research.elamur.ai/free/en/papers/rahimi-2019-massively-multilingual-transfer-ner/).

The news experiment is [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/) using a news agency benchmark with an imbalance across classes. The paper reports macro-F1 there and micro-F1 for the entity tasks. F1 combines precision, the share of predictions that are correct, and recall, the share of expected answers that are found. Micro-F1 pools the underlying counts before calculating the score, so more frequent labels can contribute more. Macro-F1 averages F1 across classes, giving each class equal weight in that average. That distinction matters when interpreting the news result, because an aggregate that gives frequent classes greater weight would answer a different question.

The experiments follow the evaluation protocol used in the earlier WECHSEL-RoBERTa and LiBERTa work. The paper reports means and standard deviations across 5 runs with different random seeds. A standard deviation describes how much a score varied over those runs. The comparison includes published baseline values, with LiBERTa v2 scores taken from the authors' earlier conference presentation. The table also identifies values attributed to the earlier WECHSEL-RoBERTa and LiBERTa work. This is a comparison under a shared benchmark protocol. Some entries come from previous reports, and some systems have no reported score for NER-UK 2.0.

#### Entity recognition depends on the benchmark

Modern-LiBERTa's leading entity recognition result is on WikiANN. Its mean micro-F1 is 93.37, with a standard deviation of 0.16. LiBERTa v2 and WECHSEL-RoBERTa both report 93.22, with standard deviations of 0.14 and 0.17 respectively. XLM-R scores 92.92 with a standard deviation of 0.19. The earlier LiBERTa records 92.50 with a standard deviation of 0.07. The lead for Modern-LiBERTa is a ranking of the reported means.

Mean micro-F1 on Ukrainian WikiANN Modern-LiBERTa has the highest reported mean for recognizing entities in the short WikiANN examples.

**The numbers**

| System or setting | micro-F1 |
| --- | --- |
| LiBERTa | 92.50 |
| XLM-R | 92.92 |
| LiBERTa v2 | 93.22 |
| WECHSEL-RoBERTa | 93.22 |
| Modern-LiBERTa (this paper) | 93.37 |

The authors suggest that background knowledge can help with WikiANN because local wording sometimes gives few clues about a name. They raise English Wikipedia as a possible contributor to the encoder's performance on those examples. That interpretation concerns the information learned in pretraining, which is available even when a particular benchmark input is short. A larger input window and better use of prior knowledge would have different observable effects. WikiANN is mainly informative about the latter possibility because its examples already supply very little surrounding text.

On NER-UK, Modern-LiBERTa has a mean micro-F1 of 91.66 and a standard deviation of 0.57. LiBERTa v2 reaches 91.73 with a standard deviation of 1.81. The earlier LiBERTa has a mean of 91.27 and a standard deviation of 1.22. WECHSEL-RoBERTa has 91.24 and 1.16, while XLM-R has 90.16 and 2.98. This set of results puts LiBERTa v2 first by the mean and Modern-LiBERTa first by the observed consistency of its scores. The amount of variation is informative alongside the ranking because the two leading means are close.

NER-UK 2.0 gives the least favorable downstream comparison for Modern-LiBERTa. It has a mean micro-F1 of 84.17, with a standard deviation of 0.18. LiBERTa v2 scores 85.47 with a standard deviation of 0.24, and WECHSEL-RoBERTa scores 85.72 with a standard deviation of 0.43. The table leaves the entries for the earlier LiBERTa and XLM-R blank. The ranking therefore concerns the systems with reported scores on NER-UK 2.0. Its wider annotation scheme and lower Modern-LiBERTa score make it important to keep this result alongside the leading WikiANN result when describing the encoder's entity recognition performance.

Mean micro-F1 on NER-UK 2.0 The broader entity benchmark gives Modern-LiBERTa its weakest ranking among the reported downstream comparisons.

**The numbers**

| System or setting | micro-F1 |
| --- | --- |
| Modern-LiBERTa (this paper) | 84.17 |
| LiBERTa v2 | 85.47 |
| WECHSEL-RoBERTa | 85.72 |

#### Grammatical categories and news agencies

On Universal Dependencies part-of-speech tagging, Modern-LiBERTa reports mean accuracy of 98.78 and a standard deviation of 0.07. LiBERTa v2 reports 98.79 and 0.06. Those values support the authors' description of the two systems as performing very similarly on this benchmark. WECHSEL-RoBERTa scores 98.74, XLM-R scores 98.71, and the earlier LiBERTa scores 98.62. All these scores measure the accuracy of grammatical tags. The masked-token scores on Universal Dependencies measure how well hidden text is recovered. An encoder can improve substantially on the latter while showing very little movement on the tagging task.

For Ukrainian News Classification, Modern-LiBERTa records a mean macro-F1 of 96.37 with a standard deviation of 0.07. WECHSEL-RoBERTa leads at 96.48 with a standard deviation of 0.09. LiBERTa v2 has 95.67 and 0.12. The earlier LiBERTa scores 95.44 and XLM-R scores 95.13. This benchmark places Modern-LiBERTa near the strongest reported comparison and ahead of its predecessor. Because it aggregates scores across imbalanced news agency classes, the reported result characterizes the classifier's class-level performance. The table gives a single macro-F1 for each system and leaves the individual classes' results unspecified.

### What the ablations show

The paper reports no ablation that changes a single component and retrains Modern-LiBERTa. Its analyses instead compare the stages of corpus processing, hold the tokenizer and input limit fixed for masked prediction, and examine where downstream results and their variability differ.

#### How much redundancy each pass reaches

The metadata stage removes approximately 12% of the corpus. In a large sample of the pairs it marks, the authors find average normalized longest common subsequence similarity of 92.9%. The removal statistic indicates the scale of this stage, while the similarity statistic describes the texts it pairs. Together they support the use of metadata to locate substantial repeated content. The metric's normalization is relevant to the interpretation. A record that contains all of a shorter copy can count as a strong match even when the longer record includes more text. This is precisely one of the relationships that can arise when two pipelines retain different portions of the same page.

The content stage then removes an additional 33% of the documents. It applies to the collection remaining after metadata filtering. That result indicates that there is substantial repeated material among the remaining records under the 5-gram procedure and its 0.7 threshold. The two figures describe an ordered series of operations, with the paper expressing the first removal relative to the corpus and the second in terms of documents. They give evidence about how the stages contribute in the implemented sequence. The amount that content matching alone would have removed from the original merge, or the amount that metadata matching would reach after content matching, is undetermined.

The sample statistic is also narrow in scope. It measures how alike the metadata matches look on average under a text overlap metric. It provides a check on the premise that metadata can identify repeated pages across source collections. The average leaves the distribution of individual matches unspecified and gives no estimate of how many duplicates metadata misses. The second removal statistic shows that the content method finds additional matches by its own rules. The paper offers those process measures as evidence about deduplication, without a corresponding comparison of encoders trained on intermediate versions of the corpus.

#### What a common tokenizer and input limit control

The contrast between LiBERTa v2 and Modern-LiBERTa controls two ingredients relevant to masked-token scores. The tokenizer determines the candidate tokens and how much of a word each prediction represents. The 512-token cap determines the maximum amount of visible material in the comparison. The reported improvements under these conditions show that the new encoder's ability to predict hidden material improves even when its larger context capacity is unavailable during evaluation.

Other differences remain bundled. The Modern-LiBERTa result reflects the architecture, transferred English weights, the procedure for initializing new embeddings, its training mixture, and the two phases of pretraining. The longer phase can affect how the encoder represents even short inputs, although its extra input capacity is unavailable in this test. The paper gives no comparison of a checkpoint made immediately before extension with the final encoder under the same evaluation. The experiment therefore supports an improvement in the finished system at a common test length and leaves its attribution to individual training choices open.

#### What the task rankings and seed variation add

The same entity recognition encoder ranks differently on WikiANN, NER-UK and NER-UK 2.0. This variation narrows the interpretation of the WikiANN lead. The authors emphasize that a short WikiANN example can depend on knowing what a name refers to. The result is consistent with a pretraining mixture that helped the encoder acquire relevant background knowledge. A version trained without English Wikipedia would have provided a more direct test of that explanation. The reported comparison involves whole systems, including differences in Ukrainian data and initialization, so it leaves several explanations compatible with the lead.

Seed variation is particularly informative on NER-UK. The lower mean of Modern-LiBERTa comes with a much smaller standard deviation than that of LiBERTa v2. Mean score and variability answer different questions. One summarizes performance across runs. The other shows how reliably the reported procedure reproduced a score near that mean. The standard deviations do not identify which aspects of the encoder or adaptation procedure account for the observed stability. On NER-UK 2.0, Modern-LiBERTa again has a smaller standard deviation than the other systems with reported scores, but those systems attain higher means. Read together, the results show why stability and average performance each deserve attention in the comparison.

### Limitations

#### Limits the authors state

The authors distinguish access to a large amount of Ukrainian material from access to uniformly good Ukrainian text. Several sources were filtered by general multilingual methods. The quality criteria and language identification methods used upstream may be better suited to languages with more training resources and stronger tooling. Combining and deduplicating their outputs still leaves room for noisy or machine-translated documents. A unique document can be spam, misinformation, or writing that represents a narrow range of topics and styles. Removal of repetition addresses a different property of the corpus from any of those quality concerns.

The authors identify social and linguistic imbalances as well. A web collection can overrepresent sensationalist news while giving marginalized groups too little representation. A concentration of particular styles, genres or registers can narrow the kinds of Ukrainian that are prevalent in the training mixture. The authors say these patterns may be inherited by Modern-LiBERTa and affect fairness, generalization or performance across applications. They present the risks as consequences that remain possible given the source material. The downstream evaluations measure performance on their particular tasks and offer no direct measurement of these social or stylistic effects.

A quality scorer designed for Ukrainian is still missing from the pipeline. The authors propose one as future work because more reliable filtering would require signals appropriate to the language. The provenance fields and the existing filters give some control over the data, while source-level curation can still leave uneven quality within a source. This distinction matters when interpreting the corpus size. The token count describes what is available after the merge and deduplication. It does not establish how much of that material meets a particular quality standard.

The authors also identify a gap in retrieval evaluation. They cite the original ModernBERT study's performance on [BEIR](https://md.research.elamur.ai/free/en/papers/thakur-2021-beir-heterogenous-benchmark-zero/) and its more modest showing on [GLUE](https://md.research.elamur.ai/free/en/papers/wang-2018-glue-multi-task-benchmark-analysis/) as evidence that conventional language understanding tests and retrieval can give different pictures of an encoder's strengths. They know of no comparable Ukrainian retrieval benchmark with which to test Modern-LiBERTa. The architecture and training mixture give a rationale for investigating retrieval, but the paper reports no retrieval scores for the Ukrainian encoder.

#### Limits visible in the experimental setup

The ability to accept up to 8,192 tokens is a property of the encoder the authors trained. Evidence that those extra positions improve decisions would require evaluations where relevant material actually lies beyond a shorter window. For instance, a useful long-document test would depend on evidence from widely separated parts of the input, so that retaining the whole passage could affect the correct prediction. The masked-token evaluation uses the shared 512-token cap, and the authors say that most downstream inputs are short. These experiments cannot establish how much Modern-LiBERTa benefits from distant evidence, how well it retains information across a long document, or which document-level tasks would benefit most.

Similarly, the corpus release is intended to make it easier to increase the representation of Ukrainian in multilingual mixtures. The experiments train an encoder for Ukrainian using a smaller English contribution. They do not compare multilingual training runs with different shares of Kobza or measure how adding Kobza would affect other languages in a mixture. The release changes the material available for such a comparison. Its effects in that setting remain open, including how a different sampling policy might change the contribution of the Ukrainian documents.

The intrinsic comparison is strongest as evidence about paired prediction on the evaluation collections with the same tokenization. Lower perplexity on UA-GEC target sentences measures the probability assigned to their hidden tokens. It does not measure the ability to find errors in an original sentence or produce an appropriate correction. The Spivavtor evaluation has a similar scope because it uses target texts only. The encyclopedic evaluation likewise tests recovery of masked Ukrainian Wikipedia text. Wikipedia is among the domains represented in Kobza through UberText 2.0. The paper provides no overlap audit linking the Ukrainian Wikipedia evaluation documents to the training corpus. The result establishes performance under the reported masking procedure, leaving the extent of generalization to entirely unseen articles unresolved.

For the downstream tests, repeated seeds give information about variability under the stated protocol. The reported means and standard deviations leave the statistical reliability of small differences between systems open. This matters especially where the means are close, as on WikiANN, news classification and part-of-speech tagging. Several baseline values also come from earlier reports. The benchmark protocol provides a basis for comparison, while the table gives limited information about variation beyond the seeds summarized for each system.

Finally, the paper's main training run changes several ingredients together. The intrinsic gains and the competitive downstream scores establish what the released Modern-LiBERTa can do under the reported tests. They leave open how much each source contributed, whether the same gains would arise with different embedding initialization, and whether another context extension mixture would preserve short-input performance as well. In particular, attributing the WikiANN result to a specific source of factual knowledge would require evidence connecting the relevant predictions to that source. The paper offers a plausible explanation based on the character of the benchmark and the choice of pretraining data, with no source-specific test of that explanation.

### What came after

No follow-up study is documented here. The paper describes plans to bring Kobza to a minimum of 100 billion tokens and build lightweight tools that filter and score Ukrainian documents. The expansion would address how much Ukrainian text is available. The scoring work would address which documents to keep when more material is gathered. The metadata already retained with Kobza gives future corpus builders a way to work with particular sources and subsets as they investigate those questions.

For the encoder, the authors describe Ukrainian retrieval evaluation as unfinished work. A retrieval benchmark would let researchers test whether the representations are useful for finding relevant material, and comparisons across input lengths could establish where the extended window matters. The paper also encourages future multilingual training efforts to include more Ukrainian data. These are directions opened by the corpus and encoder release. The reported experiments establish a Ukrainian masked-prediction and supervised benchmark baseline for such work, while the effects of larger multilingual mixtures and long-document retrieval remain to be measured.

## Cite

Cite as Mykola Haltiuk and Aleksander Smywiński-Pohl. 2025. Mykola Haltiuk; Aleksander Smywiński-Pohl. On the Path to Make Ukrainian a High-Resource Language // UNLP 2025. UNLP 2025.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2025.unlp-1.14](https://doi.org/10.18653/v1/2025.unlp-1.14)

```bibtex
@inproceedings{haltiuk2025mykola,
  title = {{Mykola Haltiuk; Aleksander Smywiński-Pohl. On the Path to Make Ukrainian a High-Resource Language // UNLP 2025}},
  author = {Mykola Haltiuk and Aleksander Smywiński-Pohl},
  booktitle = {UNLP 2025},
  year = {2025},
  doi = {10.18653/v1/2025.unlp-1.14},
  url = {https://doi.org/10.18653/v1/2025.unlp-1.14}
}
```

> 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)
