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
Summary
Ukrainian already appears in multilingual training collections, but it can account for a small share even when those collections contain billions of Ukrainian words or tokens. Mykola Haltiuk and Aleksander Smywiński-Pohl address the supply of usable text by assembling Kobza. The finished corpus has 59,582,213,563 tokens in 96,918,916 documents. The authors know of no larger Ukrainian corpus available to the public, and they offer theirs both for use by itself and for inclusion in multilingual training. The biggest contributions by token count come from HPLT 2.0, FineWeb 2 and CulturaX. Ukrainian News and UberText 2.0 add material from collections built specifically around Ukrainian.
A page can enter several web collections, and different extraction pipelines can leave behind different versions of its text. The authors first use details such as a URL or timestamp to identify likely repetitions. In a sample of the pairs found this way, similarity averaged 92.9% on a measure that asks how much of the shorter text survives in the same order in the longer one. A further pass looks directly for shared fragments and removes an additional 33% of documents. The release keeps the source and subsource of each document, together with its timestamp and URL, so users can select material by provenance.
The authors also train Modern-LiBERTa, an encoder that builds representations of text using context on both sides of a token. They start from the English-trained ModernBERT Large and use aligned translations to initialize vocabulary entries for Ukrainian. Kobza supplies the Ukrainian training text, with English Wikipedia making a smaller contribution. Training starts with a limit of 1,024 tokens per input and later raises it to 8,192. According to the authors, Modern-LiBERTa is the first encoder for Ukrainian to have that capability. They release the corpus as Goader/kobza and the encoder as Goader/modern-liberta-large through Hugging Face, with source code in Goader/ukr-lm.
When both encoders see at most 512 tokens, Modern-LiBERTa recovers hidden Ukrainian tokens more successfully than LiBERTa v2 on every reported collection. Its masked-token perplexity, a measure that falls as the encoder assigns more probability to the correct tokens, is 8.96 versus 15.51 on Ukrainian Universal Dependencies, 4.28 versus 8.77 on Ukrainian Wikipedia, and 22.22 versus 76.00 on UA-GEC. It also improves on Spivavtor. The supervised results vary by task. Modern-LiBERTa leads on WikiANN with a mean micro-F1 of 93.37 for named entity recognition. It comes close to LiBERTa v2 on the original NER-UK and on grammatical tagging, with less variation across NER-UK runs. WECHSEL-RoBERTa leads the news classification test, and every reported competitor scores higher on NER-UK 2.0.
Most supervised examples are short, so the tests leave open how much the longer window helps when an answer depends on distant parts of a document. The authors also leave retrieval unevaluated because they know of no comparable Ukrainian information retrieval benchmark. Their plans for the corpus include reaching at least 100 billion tokens and developing tools to score 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 expands the supply of Ukrainian training text, and Modern-LiBERTa tests what an encoder trained on it can do on Ukrainian benchmarks. · about 33 minutes to read
The problem and its context
How a language can be present and still underrepresented
The paper concerns the resources needed to learn from written Ukrainian at scale. The authors describe Ukrainian as having tens of millions of speakers and active linguistic and technology communities. The gap they identify arises when training data are prepared. A language may have many speakers, public writing and dedicated corpora, yet supply only a small part of the text available for a large run. A corpus builder has to locate that writing, extract and label it, remove unsuitable material, and make the resulting collection accessible in a form other people can use. This is the sense in which the paper discusses low-resource languages.
The authors point to widely different conditions for English and Ukrainian. English has large collections as well as established tools for assembling new ones, checking their contents and generating additional training material. The examples in the paper give a sense of the scale at which contemporary encoders were trained. It cites 600 billion training tokens for NeoBERT, 2 trillion for ModernBERT and 5 trillion for EuroBERT. These figures count material processed in the corresponding runs. The authors use them to explain why the supply of text and the tools for preparing it both matter to pretraining.
A multilingual collection can look quite different depending on whether one asks how much Ukrainian it contains or how much of the collection Ukrainian represents. CulturaX contains 38 billion Ukrainian tokens, reported as 0.61% of its total volume. FineWeb 2 describes its Ukrainian portion as 23 billion words and reports a share of 0.86%. A word count and a token count measure different units, so those volume figures should be read in the terms of their respective sources. Both examples illustrate the paper’s concern. Although Ukrainian text is already abundant, it may account for only a small fraction of the data an encoder learns from in a large collection. Preparing a substantial Ukrainian corpus separately makes that share a choice for researchers working in multilingual and cross-lingual NLP.
Where the existing collections get their text
The paper describes open web crawls as the main source of material for large pretraining collections. A crawl records pages from many sites. Producing a corpus from it involves deciding which parts of the pages count as text, assigning a language and filtering the material. OSCAR, mC4, CC100 and Pile-CC draw on Common Crawl. Their use of a shared upstream collection makes it possible for the same document to survive into several releases, even when each release has rules for dealing with repetition internally. The paper situates this earlier generation of corpora through work such as CCNet.
The newer collections vary in what they check and how they check it. CulturaX takes material from OSCAR and mC4 and checks the language assignments again. A document is dropped if its new FastText label disagrees with the original one. The pipeline also uses domain filters intended to exclude harmful material, applies basic quality checks and looks for near-duplicates. Each of these decisions can change which Ukrainian documents remain available for a subsequent merge. CulturaX
FineWeb 2 uses GlotLID, which the paper describes as covering more languages than FastText. It filters and deduplicates text by language, with settings that can draw on language-specific resources such as lists of common words. Its pipeline also restores some repetition based on how frequently documents appeared in the crawl. The authors note a special case for material that appeared more than 1,000 times. FineWeb 2 keeps a single instance of such material on the assumption that extreme frequency can signal lower quality. An integrator working from the published collection therefore starts with repetition already shaped by a frequency policy.
HPLT 2.0 draws heavily on the Internet Archive, giving it a different starting point from collections built around Common Crawl. It identifies languages with OpenLID and uses the Web Document Scorer, which estimates document quality from linguistic signals. The paper gives WDS < 5 as an example of a discard threshold. The distinction between crawl sources matters because different archives can reach different material. The distinction between filtering pipelines matters because even papers that begin with similar material can end up retaining different documents or extracting different amounts of text from them.
The authors see a role for purpose-built Ukrainian collections alongside these broad web resources. They mention Zvidusil, ukTenTen and Brown-UK, and discuss Malyuk as a particularly substantial compilation of Ukrainian News, OSCAR and UberText 2.0. UberText 2.0 uses crawlers built for selected Ukrainian sources. That gives its curators direct control over where the text comes from, although the resulting range of domains can be narrower. It also includes information such as base word forms and grammatical categories through linguistic annotation.
Why change both the vocabulary and the input length?
The paper’s other starting point is earlier work on transferring an encoder from one language to another. The authors describe reuse of trained parameters as an established alternative to beginning with random weights, especially when target-language data are scarce. A transferred encoder already has layers that transform representations of tokens in context. A vocabulary change, however, breaks the correspondence between the entries those layers were trained with and the entries the new encoder must read and predict. A row associated with an English token in the old vocabulary can be assigned a different unit in the new one. Transfer therefore needs a way to give the new entries meaningful starting values.
The paper describes several approaches to that mapping. To learn a linear mapping from one embedding space to another, WECHSEL uses a bilingual dictionary. FOCUS uses sub-word units shared across its source and target vocabularies. Trans-Tokenization derives correspondences from parallel text and includes alignment procedures for matches that involve several tokens. The authors place earlier Ukrainian encoders in this line of work, including adaptations of RoBERTa. They characterize the earlier Ukrainian efforts as using comparatively small corpora and conventional input lengths.
A separate line of research addresses how much text an encoder can process in a single input. The paper discusses changes in training objectives, hardware efficiency and the ability to work with longer sequences. It also places encoder development in the context of retrieval, where a useful representation can help a system locate relevant material. A system using retrieval-augmented generation, for example, obtains documents or passages to inform a response. Representing a long document involves deciding how much of its text the encoder can see together. This gives the authors a reason to look at document length when building the corpus and to make sequence length a distinct part of the training procedure.
The method, step by step
From source collections to a training corpus
The project produces a corpus and an encoder. Kobza is the public Ukrainian collection that results from merging and filtering the sources. Modern-LiBERTa is trained on a mixture that adds English Wikipedia to Kobza. Within that training run, the authors first limit the length of individual inputs, then resume from the resulting checkpoint with a longer limit and a different mix of document lengths. A document’s length, a sequence’s maximum length and the amount of text processed over an entire phase are separate quantities throughout the method.
Building Kobza and training Modern-LiBERTa
The steps in order.
The authors start from public, processed collections. This avoids repeating much of the work of turning raw crawl records into text and lets them use several approaches to gathering Ukrainian documents. It also means that each contribution comes with upstream choices about crawl coverage, language identification and what counts as suitable text. The merge can bring together the text those choices allowed through. Any text discarded upstream is outside the pool.
CulturaX brings an initial Ukrainian portion of approximately 44 million documents. Ukrainian ranks 21st in that collection by token count. FineWeb 2 ranks Ukrainian 24th by representation and contains 47 million Ukrainian documents. HPLT 2.0 supplies material from its cleaned release, which has 47 million Ukrainian documents and 25 billion Ukrainian tokens. The latter count places Ukrainian 21st in HPLT 2.0. These are descriptions of the inputs, before the combined corpus is screened for redundancy.
Ukrainian News starts from 16 million media articles and over 6.5 million posts from Telegram. The posts bring less formal writing and contribute to the collection’s supply of short texts. The authors use Trafilatura to obtain clean content. On a page that contains an article, boilerplate can include surrounding material that appears again and again because it is part of the site’s layout. Extracting the article reduces this repeated material before the combined document collection is screened. The authors also address duplication while preparing this source.
UberText 2.0 contributes material gathered expressly for a Ukrainian corpus. The original source has approximately 2.5 billion tokens and 8.5 million documents. Its domains include fiction, news, social writing and legal text, with Wikipedia making up another domain. This source and Ukrainian News add kinds of material whose provenance is more specific than a Ukrainian language label assigned to general web data. Keeping source information through the merge preserves the ability to select these contributions later.
Use the record to find likely duplicate documents
Imagine an article included in separate web collections. One extraction pipeline keeps the headline and body. Another also preserves a caption inside the article. A rule that compares the complete text for exact equality would treat those outputs as different. If the records point to the same URL and carry timestamps that indicate a shared origin, their metadata can give the pipeline evidence that the text alone would require more work to recover. The paper uses details such as URLs and timestamps in its initial deduplication pass, with repeated processing of Common Crawl documents as an important case.
The authors check the text of a sample of the pairs found by this pass. Their comparison looks for elements present in both sequences in the same order, permitting gaps. A common subsequence could include the headline and the paragraphs on either side of a caption. It can skip the caption in the version that has it and continue matching the rest of the article. The longest common subsequence gives the greatest amount of material that can be matched in order under that rule.
sim(a, b) = LCS(a, b) / min(|a|, |b|)
Here a and b stand for the document texts being checked. The quantity sim(a, b) is their normalized similarity, and the equals sign defines it. LCS(a, b) is the length of their longest common subsequence. The vertical bars in |a| and |b| indicate the respective text lengths. The function min chooses the smaller length, and / divides the subsequence length by that value. Parentheses enclose the arguments to each function, with commas separating the arguments.
Using the shorter text as the denominator makes the score an account of how fully that text is present in the other record in the same order. When one document is a substring of the other, the score reaches 100%. The denominator also explains how a pair can receive a high score when the longer document has substantial material of its own. This is useful for checking extraction variants because one collection may have kept a more complete page. The paper uses this measure to evaluate the metadata matches. Its next pass uses a different measure to search for further duplicates.
Search for shared fragments among the remaining records
The second pass works with document content. Copies of a text can have different URLs or timestamps, and extraction differences can leave them with enough variation to resist exact matching. The authors represent documents through n-grams, short runs of consecutive text units. They use 5-grams. Documents that share passages will tend to share many of those fragments even when the beginning or end of a passage differs.
The similarity underlying this pass is Jaccard similarity. Given the fragment set of each document, Jaccard compares what the sets have in common with everything present in either set. A pair with many shared fragments and few fragments unique to either record has a high score. This comparison measures shared text at the level of the fragment sets. The order within a fragment matters, while the fragment’s position in the document does not enter the set comparison.
At the size of the merge, explicitly comparing every pair would require a great many calculations. MinHash builds compact signatures that approximate Jaccard similarity. Locality-sensitive hashing, the LSH part of MinHashLSH, groups signatures so that likely matches can be considered together. The authors use a similarity threshold of 0.7 and run the pass with text-dedup on Apache Spark. The threshold describes the content comparison configured for Kobza. The paper’s reported removal count comes from applying it to the documents that remain after the metadata pass.
The release keeps document provenance after these operations. A user can select by source or subsource and can consult the timestamp and URL attached to an entry. This supports uses of the corpus with different rules about which material to include. The files use Parquet with Snappy compression and occupy 474GB. They form the Ukrainian corpus itself, which has an identity distinct from the mixture used for the encoder.
Decide what the encoder reads and predicts
For general pretraining, the authors combine Kobza with English Wikipedia. They describe the English contribution as roughly 6 billion tokens, about 10% of the mixture. Their starting point is the presence of English words and entities in some Ukrainian texts, particularly in journalism and in technical and academic writing. They also expect general encyclopedic material to be relevant to tasks where a reader must identify an entity or find material about it. The English Wikipedia contribution is part of training Modern-LiBERTa. The Wikipedia domain contributed by UberText 2.0 is part of Kobza.
A tokenizer determines how the encoder turns written text into a sequence of vocabulary entries. With subword tokenization, a word can occupy several positions if the vocabulary represents it with pieces. Each position then consumes part of the sequence allowance and can become a separate prediction target. As a consequence, an input length stated in tokens describes what the encoder can accept under a particular tokenizer. It cannot be read as a fixed allowance of whole words.
The authors use the existing LiBERTa v2 tokenizer, which has 64,000 vocabulary entries. Its training material came from Ukrainian CC100 text and a small amount of English news. The English news was included to improve coverage of names that appear in English. Those choices determine how the tokenizer divides a piece of text, while encoder pretraining determines what the resulting sequence of pieces can tell the system. English news in the tokenizer’s history and English Wikipedia in the encoder’s mixture play distinct roles. Reusing the tokenizer also means that LiBERTa v2 and Modern-LiBERTa can later be compared on the same hidden units.
Make an English checkpoint work with Ukrainian vocabulary
The authors adopt the Large architecture of ModernBERT. Modern-LiBERTa has 28 layers, a hidden size of 1,024 and 410 million parameters. The hidden size is the width of the internal representation carried at a token position. Each layer transforms the representations it receives, using attention to take account of other positions. A bidirectional encoder can use text on either side of a masked position when deciding what belongs there. These are the operations of a transformer.
The architecture inherits features intended to make longer sequences practical. Rotary position embeddings make position information available in the attention calculation, following RoFormer. The paper also identifies memory-efficient attention computation using FlashAttention-2. Alternating attention patterns reduce the work that would come from using the costliest pattern throughout the encoder. The authors start with this existing design and focus their adaptation on vocabulary and training.
The English-trained checkpoint provides the initial weights for the layers. The vocabulary-specific input and output embeddings are the exceptions. An input embedding gives a token its initial vector representation. The output side uses vocabulary-associated weights to score possible tokens for a prediction. Both sets of weights need to agree with the units and identifiers in the LiBERTa v2 vocabulary. An identifier taken over unchanged from an English checkpoint would still point to weights learned for its former entry. What needs transferring is a relationship between the old and new vocabulary entries, as represented by their embeddings.
To build those relationships, the authors apply Trans-Tokenization. They use Ukrainian and English passages from NLLB and OpenSubtitles. Since the passages are translations, tokens in one language can be associated with tokens that carry corresponding content in the other. FastAlign supplies the alignments used to connect Ukrainian vocabulary entries with entries in the original English vocabulary. The source of the correspondence is the aligned text, so the procedure can use relationships that go beyond identical written forms.
The authors use the transtokenizers toolkit to initialize a new vector from the corresponding English vectors. The paper describes a weighted linear combination. Each corresponding English vector contributes according to its weight, and those contributions are added to form the starting Ukrainian vector. The resulting weights give the transferred layers an initial way to handle the new vocabulary, while the layers themselves retain the transformations learned in English. Further pretraining on the Ukrainian-heavy mixture updates the adapted encoder.
Run general pretraining with shorter sequences
The objective is masked language modeling, abbreviated MLM. During training, selected words are hidden, and the encoder learns to predict the tokens that belong in the hidden positions using the visible text. Following MosaicBERT, the authors use a full-word masking rate of 30%. If a selected word consists of several pieces, the mask covers the pieces together. A learner therefore has to use the surrounding text to predict those pieces without seeing the visible remainder of the same word.
The general pretraining phase processes 140 billion tokens with a maximum input length of 1,024 tokens. The phase total counts tokens processed over the course of training rather than tokens in the corpus release. It describes how much material passes through the encoder, whereas the per-input limit controls how much material can be seen together. This phase establishes the checkpoint from which the authors continue when they increase the length.
The optimizer is StableAdamW, implemented in optimi. The learning rate controls the scale of the updates applied to the weights. Weight decay provides a separate pressure on the size of the weights, following the principle of Decoupled Weight Decay Regularization. StableAdamW also incorporates an update-clipping technique adapted from Adafactor. The paper describes this as a modification of the effective learning rate for individual parameters. The optimizer settings include betas of (0.90, 0.98) for its running estimates and an epsilon of 1e-6 for the numerical calculation.
In the first phase, the warmup covers 5 billion training tokens. The peak learning rate is 5e-4, and cosine decay brings it to 5e-5 at the end of the phase. Warmup allows the rate to rise at the start, and decay reduces the size of updates as training proceeds. The weight decay setting for this phase is 1e-5. These settings describe the schedule the authors used for the encoder, including the learning rate from which the context extension starts.
The training run uses four nodes of the CYFRONET Helios Cluster, each equipped with four GH200 96GB Superchips. The authors use Distributed Data Parallel to process batches on different devices while synchronizing the information needed for updates. In the first phase a device handles batches of 16 sequences. Gradients are accumulated over 16 steps, so that successive batches can contribute to a shared update. The reported effective batch contains 4,096 sequences. The first phase takes 133 hours. Device batch size matters later because a sequence with more positions requires more work and memory even when each device processes fewer sequences at a time.
Increase the window and keep some short documents
The authors resume from the final general pretraining checkpoint for 20 billion tokens with the input limit raised to 8,192 tokens. For this phase the device batch size falls to 4 sequences. The gradient accumulation setting stays at 16 steps, and the effective batch size is 1,024 sequences. The learning rate begins at 5e-5, with no further warmup, and gradually reaches 0 on a cosine schedule. The weight decay is 1e-6. The reported duration of the extension phase is 24 hours.
The extension mixture is chosen by document length. Documents with at least 4,096 tokens provide 8 billion tokens. Another 8 billion come from documents described as ranging between 1,024 and 4,096 tokens. The remaining contribution described by the authors is 4 billion tokens from documents shorter than 1,024 tokens. These are allocations of training material by the length of the source document. The limit of 8,192 describes the longest sequence that can enter the encoder. Each quantity is needed to understand the phase. The limit establishes what the encoder can receive in one input, and the allocations describe the material it encounters while adapting to that limit.
The paper follows Fu and colleagues in trying to retain properties of the original data distribution during the extension. It also cites work by Gao and colleagues showing that leaving short documents out of long-context training can hurt some tasks. The authors therefore continue to supply short texts while giving the encoder experience with longer ones. They also increase the representation of sources judged to be higher quality. The rationale for the mixture is to give the encoder opportunities to learn from long sequences while continuing to train on the shorter inputs it may frequently receive.
Score the probabilities of the hidden tokens
In the intrinsic evaluation, the authors select 15% of words for masking. They use the tokenizer to determine how many positions a selected word occupies and put a mask at each of those positions. The correct answer at a position is the token originally present there. The encoder supplies a probability for that token, given the visible context. Perplexity aggregates the probabilities assigned to the correct tokens.
ppl(X) = exp(−(1 / |M|) × Σₓ∈M log pθ(x | X − M))
X represents the original input sequence, and ppl(X) is its masked-token perplexity. The equals sign defines that quantity. M is the collection of masked positions, with x representing the original token at a position as the sum visits it. In Σₓ∈M, Σ denotes summation, and ∈ indicates that the term is included for each masked position. The bars in |M| give the number of such positions. The factor 1 / |M| is its reciprocal, and × multiplies the sum by that factor to take the mean.
pθ is the probability assigned by the encoder with parameters θ. In its arguments, | means “given,” and X − M stands for the context available after the selected tokens have been hidden. log takes the logarithm of the probability. The minus sign before the averaging factor takes the negative of the mean log probability, and exp exponentiates the result. The parentheses group the expressions to which those operations apply. Greater probability on the correct tokens in aggregate yields lower perplexity.
The authors also report token-level accuracy. Accuracy counts the occasions on which the predicted token is the original one. Perplexity can improve when the encoder puts more probability on a correct token even if another token still ranks first there. Accuracy responds when the first choice changes to the correct token. A word broken into several masked pieces can supply several predictions to both measures. This is why the shared tokenizer matters for the comparison.
Experiments and results
What the corpus contains after filtering
The finished Kobza has 96,918,916 documents and 59,582,213,563 tokens. High document counts and high token counts come from somewhat different sources. FineWeb 2 contributes 32,124,035 documents, the largest document count among the sources, and 19,114,177,138 tokens. HPLT 2.0 contributes 26,244,485 documents and leads by token count, with 20,709,322,905. CulturaX contributes 24,942,577 documents and 15,002,455,535 tokens. For someone choosing material for training, the document count describes how many records are available, while the token count describes how much text those records contain.
The ordering also differs between the Ukrainian-focused sources. Ukrainian News contributes 7,175,971 documents and 1,852,049,111 tokens. UberText 2.0 contributes 6,431,848 documents and 2,904,208,874 tokens. The larger document contribution from Ukrainian News fits the authors’ description of it as a source of many short items. UberText 2.0 contributes more tokens with fewer documents. These final token counts use the unit in the Kobza statistics. Counts given for the original sources describe the inputs in the units the paper reports for those sources.
The corpus figure shows how much text comes from documents above a given length. A point on its horizontal axis gives a document length cutoff, and the vertical axis gives the cumulative number of tokens belonging to documents longer than that cutoff. This answers a practical question about the supply of text for long inputs. A corpus may have many short documents and still have a substantial portion of its tokens in longer ones. The paper reports that Kobza has substantial token volume at longer document lengths, which supports the construction of the extension mixture.
Set up the comparison for hidden-token prediction
The intrinsic test compares LiBERTa v2 with Modern-LiBERTa. They share the tokenizer, so the original words are divided into the same prediction units. The authors truncate evaluation documents to 512 tokens for both systems. This puts their predictions within a common limit on available context. The scores are reported by evaluation collection or by the indicated target subset. The paper gives no separate development or test split name for each of these rows.
Ukrainian Universal Dependencies contributes curated Ukrainian text with detailed linguistic annotations and over 100,000 tokens. The intrinsic evaluation uses its text to test recovery of hidden tokens. The same resource later serves a different purpose in grammatical tagging, where the annotations provide the expected labels. Ukrainian Wikipedia supplies encyclopedic documents. The paper describes them as longer and richer in background information, but the 512-token truncation also applies there.
Spivavtor and UA-GEC supply target texts from editing tasks. Spivavtor covers simplification, coherence, paraphrasing, and corrections of grammar or fluency. The authors use only the desired outputs of these tasks. The fluency and grammatical error correction subset, approximately 44.5% of Spivavtor, is manually annotated in Ukrainian. The rest is machine-translated from English. UA-GEC contributes to the editing data in Spivavtor and is also evaluated separately using only its targets. That separate evaluation focuses on manually annotated Ukrainian correction data. In both evaluations, the encoder predicts masked tokens in the target text.
Compare predictions across the Ukrainian collections
Masked-token perplexity on Ukrainian Universal Dependencies
Modern-LiBERTa gives the correct hidden tokens more probability in aggregate under the shared input cap.
The numbers
| System or setting | perplexity |
|---|---|
| LiBERTa v2 | 15.51 |
| Modern-LiBERTa (this paper) | 8.96 |
On Ukrainian Universal Dependencies, Modern-LiBERTa’s 8.96 perplexity is accompanied by 58.82% token accuracy. LiBERTa v2 has perplexity of 15.51 and accuracy of 52.81%. Both measures favor the new encoder on the curated text. The correct answers receive more probability in aggregate, and the most probable prediction is correct more frequently.
The Ukrainian Wikipedia evaluation gives Modern-LiBERTa a perplexity of 4.28 and token accuracy of 69.03%. LiBERTa v2 has 8.77 perplexity and 59.87% accuracy on that collection. Wikipedia has the lowest perplexity of the collections for each encoder. The direct evidence for improvement comes from the paired comparison within Wikipedia, where both encoders face the same kind of text under the same input cap. Comparisons across collections also reflect how predictable their texts are under masking.
On Spivavtor’s targets, Modern-LiBERTa records 18.01 perplexity and 48.42% token accuracy. Its predecessor records 54.07 and 37.00%, respectively. On the UA-GEC targets evaluated separately, Modern-LiBERTa gives 22.22 perplexity and 44.71% accuracy, compared with 76.00 and 33.77% for LiBERTa v2. This shows that the advantage on editing targets extends to the separately reported, manually annotated collection. The connection between the editing resources matters when reading the results together, since UA-GEC also supplies data to Spivavtor.
Modern-LiBERTa thus leads on both masked-token measures for every reported collection. The consistency is across several styles of Ukrainian text and across measures that give different weight to the probabilities of the correct answers. All of it is observed with the same short cap on what each encoder receives. These outcomes establish the improvement in the finished encoder’s predictions under the reported masking procedure.
How the supervised benchmarks score different decisions
The supervised tasks ask the encoder to support a decision about a word, a named mention or a news item. In part-of-speech tagging, the required decision is the grammatical category of a token. The Universal Dependencies benchmark supplies those categories, and accuracy measures the share of assignments that agree with the annotations. The news benchmark asks for a news agency class. It has uneven representation across classes and is evaluated using macro-F1 in the text classification comparison.
Entity recognition asks the system to locate names or other annotated mentions and identify their types. The paper evaluates NER-UK, its more comprehensively annotated successor NER-UK 2.0, and WikiANN. NER-UK 2.0 includes additional entity types. WikiANN supplies short examples whose wording can offer little guidance about what the name refers to. The paper connects that benchmark to earlier work on Cross-lingual Name Tagging and Linking and Massively Multilingual Transfer for NER.
F1 combines precision and recall. Precision reflects how many predicted answers agree with the annotations, and recall reflects how many annotated answers are recovered. The micro-F1 reported on the entity tasks pools the counts before calculating the score, so examples or types with more occurrences can contribute more to it. The news task uses macro-F1, which averages class-level F1 scores. Each news agency class receives equal weight in that average even though the available examples are imbalanced. The scores capture performance on their specified tasks under their respective aggregation rules.
The paper follows the evaluation protocol used for WECHSEL-RoBERTa and LiBERTa. It reports the average and standard deviation across 5 runs with different random seeds. The mean describes the scores across those runs and the standard deviation describes their spread. The comparison includes XLM-R and earlier Ukrainian encoders. Several figures are drawn from earlier work, including the LiBERTa v2 figures from its conference presentation. The comparison therefore uses the reported results under the shared protocol, with some entries left missing where a score is unavailable.
Where entity recognition improves and where it falls behind
Mean micro-F1 on Ukrainian WikiANN
Modern-LiBERTa has the highest reported mean on the short entity recognition 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 |
WikiANN is the strongest downstream result for Modern-LiBERTa relative to the other systems. Its mean micro-F1 is 93.37, with a standard deviation of 0.16. WECHSEL-RoBERTa and LiBERTa v2 share a reported mean of 93.22, with standard deviations of 0.17 and 0.14 respectively. XLM-R has a mean of 92.92 and a standard deviation of 0.19, and the original LiBERTa has 92.50 and 0.07. The values after the means describe variation across runs on the benchmark.
The authors suggest that the result on WikiANN may reflect the value of background knowledge acquired during pretraining. In a short example, a name may be present without an informative description around it. Recognizing the name from earlier exposure could then help identify its type. The authors raise English Wikipedia as a possible source of relevant knowledge. The result shows that the completed encoder leads by the reported mean on this benchmark. It leaves the source of the advantage open.
On the original NER-UK, LiBERTa v2 leads with a mean micro-F1 of 91.73 and a standard deviation of 1.81. Modern-LiBERTa reports a mean of 91.66 with a standard deviation of 0.57. The original LiBERTa records 91.27 with 1.22, WECHSEL-RoBERTa records 91.24 with 1.16, and XLM-R records 90.16 with 2.98. Here the strongest mean and the smallest spread belong to different systems. The narrow spread of Modern-LiBERTa is part of the result, especially given how close its mean is to the leading one.
Mean micro-F1 on NER-UK 2.0
Modern-LiBERTa scores below both systems with reported results on the updated entity benchmark.
The numbers
| System or setting | micro-F1 |
|---|---|
| Modern-LiBERTa (this paper) | 84.17 |
| LiBERTa v2 | 85.47 |
| WECHSEL-RoBERTa | 85.72 |
For NER-UK 2.0, the standard deviations are 0.18 for Modern-LiBERTa, 0.24 for LiBERTa v2 and 0.43 for WECHSEL-RoBERTa. XLM-R and the original LiBERTa have no score reported on this benchmark in the comparison. The wider entity inventory and fuller annotations make NER-UK 2.0 a distinct evaluation from the original. The aggregate results establish a weaker ranking for Modern-LiBERTa on this version. They give no breakdown identifying which types of entity account for it.
Grammatical tagging and news classification
On the Universal Dependencies grammatical tagging task, Modern-LiBERTa has mean accuracy of 98.78 with a standard deviation of 0.07. LiBERTa v2 reaches 98.79 with 0.06. WECHSEL-RoBERTa has mean accuracy of 98.74 with 0.06, and XLM-R has 98.71 with 0.04. The original LiBERTa has 98.62 with 0.08. The authors describe the top tagging results as nearly identical. This comparison also illustrates how a strong change on masked-token prediction can coexist with similar accuracy on grammatical categories. Predicting the missing token requires assigning probability to a particular vocabulary entry. Predicting its part of speech asks for a grammatical label.
On the Ukrainian News Classification benchmark, Modern-LiBERTa has mean macro-F1 of 96.37 with a standard deviation of 0.07. WECHSEL-RoBERTa leads with 96.48 and a standard deviation of 0.09. LiBERTa v2 reports 95.67 and 0.12, the original LiBERTa reports 95.44 and 0.04, and XLM-R reports 95.13 and 0.49. The outcome puts Modern-LiBERTa close to the leader and ahead of the earlier LiBERTa encoders on the metric that averages across the imbalanced agency classes. The aggregate score leaves the performance of individual agencies unspecified.
Together the supervised results show that changing the encoder has different effects depending on which labeled distinction the task requires. Modern-LiBERTa leads on WikiANN, closely approaches the strongest scores for grammatical tagging and the original NER-UK, and gives a competitive news score. The NER-UK 2.0 result places a clear qualification on that pattern. The paper treats the supervised benchmarks as evidence about the respective tasks, most of which provide short inputs.
What the ablations show
The paper reports no component ablation of Modern-LiBERTa and instead analyzes successive deduplication stages, compares masked prediction with a shared tokenizer and input cap, and reports variation across supervised runs.
What the successive duplicate checks find
The metadata pass removes approximately 12% of the corpus. To check what it is removing, the authors calculate the normalized longest common subsequence on a large sample of matched pairs. Their average of 92.9% similarity indicates substantial ordered overlap within those pairs under a measure that normalizes by the shorter text. A small difference in what the pair of extraction pipelines retained could still yield a high score. The measure is suited to recognizing that kind of shared content.
The next pass removes an additional 33% of documents using the fragment-based comparison. It therefore finds substantial redundancy among the records that had already made it through the metadata checks. The figures describe what happened in that order. The first is an approximate removal share reported for the corpus, while the second describes documents removed during the subsequent pass. A run using MinHashLSH alone on the original merge could find some of the material the metadata stage removed. The paper does not report that experiment, so the overlap in what the two methods would find independently remains unknown.
The similarity sample answers a question about the pairs flagged by metadata. It supports the idea that the pass is reaching texts with a large amount of shared content. To learn how many redundant pairs the metadata missed would require a different comparison, with judgments about pairs outside the flagged set. The content pass gives its own estimate of repetition among the remainder under its threshold. Neither statistic measures the effect on encoder quality of removing those documents, since there are no reported training runs that compare intermediate versions of Kobza.
What the common input cap isolates
A masking comparison can be difficult to interpret when systems predict different units. One encoder might read a word as a whole, while another must recover it as several parts. Their probabilities then answer different questions. Sharing the LiBERTa v2 tokenizer controls the units of prediction. The common 512-token limit also controls the maximum amount of input context either encoder can use when making that prediction. Modern-LiBERTa’s improvement on each collection therefore holds in a comparison where its extra capacity brings no additional visible text at evaluation time.
The comparison still changes the encoder and its training as a whole. Modern-LiBERTa inherits a different architecture and English weights, uses a vocabulary initialized from translation alignments, and sees a different mixture and training schedule. The phase with longer inputs could itself affect predictions on shorter documents. The paper gives no before-and-after evaluation of that phase with the same masking setup. The observed improvement belongs to the final system evaluated at a common cap, and the effect of any particular training change remains unresolved.
How to interpret the WikiANN lead and the seed results
The contrast among entity benchmarks helps interpret the authors’ account of WikiANN. The short length of its examples makes background knowledge a plausible explanation for some correct predictions. Such knowledge can help when the name in an input has little descriptive wording around it. The stronger mean on WikiANN is consistent with that explanation, and the authors suggest that English Wikipedia may have contributed. Testing the prediction with a corresponding run that omits English Wikipedia would make it possible to assess that specific account. The experiments reported here compare encoders whose data, initialization and training differ in several ways.
The original NER-UK offers a separate view of the comparison because the means and the spreads rank the systems differently. Modern-LiBERTa has a slightly lower mean than LiBERTa v2 and varies less across seeds. The NER-UK 2.0 result likewise shows a relatively narrow spread for Modern-LiBERTa even though its mean trails both reported competitors. The repeated runs therefore provide evidence about the consistency of benchmark adaptation alongside its average quality. They leave open why the adaptation is more consistent in some comparisons and how it would respond to a change in the labeled data.
Limitations
Limits identified by the authors
A reused corpus inherits decisions made by its original builders. The authors point out that language identifiers and quality filters in multilingual pipelines can work unevenly for Ukrainian. The source collections have already applied checks or have used curated sources, but gaps in those checks can leave machine-translated text, spam and misinformation in the material. Duplicate removal helps with repetition even when repeated pages have been processed differently. A unique page still passes that particular test regardless of its factual quality, style or usefulness for training.
The authors also identify possible gaps in whose writing and what kinds of writing are represented. Web collections can give sensationalist reporting a large place and give marginalized voices less space. Some topics, genres and registers may occur much more often than others. A large number of retained documents can coexist with a narrow distribution in any of those respects. The authors caution that Modern-LiBERTa may inherit imbalances from its training data, with possible effects on fairness, generalization and performance across uses. The reported benchmarks do not directly measure those effects.
A Ukrainian-specific document scorer is still an open piece of the data pipeline. The authors want tools that can pick out low-value or unsuitable material using signals appropriate to Ukrainian. This matters for expanding the collection because acquiring more records and screening their quality present different problems. The reported totals describe the amount of text retained after the stated collection and deduplication procedures. The paper does not give a corpus-wide estimate of how many documents meet a Ukrainian-specific quality standard.
The authors also explain why retrieval quality is unmeasured. The original ModernBERT paper reported strong performance on BEIR even though it did not lead on general language understanding in GLUE. The authors cite these tasks to motivate evaluation of a strength that the Ukrainian supervised benchmarks might miss. They know of no comparable Ukrainian retrieval benchmark available for Modern-LiBERTa. The English results supply context for that question, while performance of the Ukrainian encoder at retrieving relevant text is still unknown. BEIR · GLUE
Limits that follow from the evaluation design
The capacity to accept 8,192 tokens describes the encoder’s input. Demonstrating a benefit from that capacity would require tasks whose answer depends on material made visible by the longer window. For example, evidence introduced early in a document could be needed to identify a mention near its end. If both passages already fit in the shorter input used for a benchmark, that item gives little reason to expect an advantage from extra positions. The intrinsic test deliberately caps both systems at 512 tokens, and the paper says most supervised examples are short. Those choices leave unanswered how reliably the encoder uses distant evidence and which document-level tasks benefit from having more of the text available together.
There is a related distinction between the evaluation of a Ukrainian encoder and the proposed use of Kobza in multilingual training. Kobza is packaged for incorporation into multilingual mixtures, but the reported training run uses it to produce a Ukrainian encoder with some English text. The paper does not vary the fraction of Ukrainian in a larger multilingual run or measure the effects of introducing Kobza on other languages. The release makes such a comparison possible. The numbers reported here indicate what happened on the Ukrainian benchmarks for the completed encoder.
The nature of the intrinsic datasets limits the conclusions that can be drawn about editing and unseen text. A low perplexity on a UA-GEC target shows that the encoder assigns substantial probability to hidden material in a corrected sentence. An editing system would have to identify what needs changing in an original text and decide how to change it. Those decisions are outside the target-only test, as they are for Spivavtor. On Ukrainian Wikipedia, the score concerns masked text in the evaluation collection. UberText 2.0 includes a Wikipedia domain, and the paper does not provide an audit of overlap between the encyclopedia evaluation and training data. The result therefore leaves open how the encoder performs on a set verified to consist entirely of unseen articles.
The comparisons across seeds help describe how much results vary under the benchmark protocol. The means and standard deviations allow readers to see that several leading scores are close. They provide no formal test of whether the rankings would remain in the same order under further runs or changed evaluation samples. Some baselines also come from earlier reports. Accordingly, claims about the strongest reported mean, a similar level of performance or a smaller spread can be read directly from the results. Broad claims about superiority across applications would require evidence on a wider set of inputs and decisions.
Finally, the tests of the completed encoder leave attribution unresolved. The release pairs a much larger Ukrainian corpus with a different architecture, transfer from an English checkpoint, aligned initialization of the vocabulary, English Wikipedia and a phase at the longer sequence limit. The paper establishes the performance of that combination on the stated evaluations. It gives no basis for estimating the individual contribution of a particular Ukrainian source, a deduplication pass or the choice of length mixture. In particular, WikiANN is informative about task performance on short, potentially knowledge-dependent examples. Identifying where the knowledge in any successful prediction came from would require a comparison that controls the relevant source of training text.
What came after
No follow-up study is documented. The authors plan both to grow Kobza to a minimum of 100 billion tokens and to develop lightweight tools for evaluating and filtering documents in Ukrainian. The expansion concerns the supply of text available for training. The scoring work concerns the quality and range of the text retained as that supply grows. The provenance included in Kobza would let subsequent work examine particular source collections or subsets while investigating those questions.
The authors also call for a Ukrainian retrieval benchmark and encourage future multilingual efforts to give Ukrainian text more representation. Kobza makes a substantial collection available for experiments on data composition, and Modern-LiBERTa supplies a benchmarked Ukrainian encoder with a longer input window. Retrieval quality, the effect of distant context on answers, and the consequences of including Kobza in a larger multilingual mixture remain open research questions.
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.
@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}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/haltiuk-2025-high-resource/