---
title: "The birth of Romanian BERT — paper by Dumitrescu et al. (2020)"
description: "Romanian BERT learns from Romanian text alone and improves on multilingual BERT in most tests of tagging, parsing, and entity recognition."
canonical: "https://research.elamur.ai/free/en/papers/dumitrescu-2020-birth-romanian-bert/"
---
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/dumitrescu-2020-birth-romanian-bert/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / The birth of Romanian BERT

# The birth of Romanian BERT

Paper · 2020 · Stefan Dumitrescu, Andrei-Marius Avram and Sampo Pyysalo

**Authors:** Stefan Dumitrescu, Andrei-Marius Avram and [Sampo Pyysalo](https://md.research.elamur.ai/free/en/authors/sampo-pyysalo/) · **Year:** 2020 · **Venue:** Findings of the Association for Computational Linguistics: EMNLP 2020 · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Findings of the Association for Computational Linguistics: EMNLP 2020 · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2020.findings-emnlp.387/)
- [PDF](https://aclanthology.org/2020.findings-emnlp.387.pdf)
- [DOI 10.18653/v1/2020.findings-emnlp.387](https://doi.org/10.18653/v1/2020.findings-emnlp.387)

## Summary

A system that can read Romanian alongside many other languages gives researchers a starting point. The question is how much they gain by building one around Romanian itself. In *The birth of Romanian BERT*, the authors train the first [Transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) language encoder devoted solely to Romanian. They compare it with multilingual BERT, called M-BERT, on tasks that require identifying a word’s grammatical category, recovering its dictionary form, finding its place in a sentence’s structure, or recognizing a named entity. In most of those tests, the Romanian system performs better.

The authors assemble a corpus of 15.2 GB after cleaning texts from OPUS, OSCAR, and Romanian Wikipedia. The sources contribute translated material, text collected from the web, and encyclopedia articles. From that corpus the authors build separate vocabularies for versions that preserve capitalization and versions that ignore it. Both Romanian vocabularies represent words with fewer pieces on a held-out text sample than their multilingual counterparts do. The cased Romanian vocabulary, for example, uses 1.37 tokens per word, compared with 1.82 for cased M-BERT. It also produces fewer unknown tokens per word. These measurements show what changes at the input before the systems are asked to make a grammatical or semantic prediction.

On the Romanian RRT [treebank](https://md.research.elamur.ai/free/en/topics/treebanks/), the clearest tagging gains come when the pretrained encoder is held fixed and only a small classifier is trained. Romanian BERT also leads when the entire system is allowed to adapt to the tagging task. In a separate setup that learns several grammatical tasks together, cased Romanian BERT reaches a labeled attachment score of 89.69 for [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/), compared with 88.05 for cased M-BERT. The joint experiment also exposes an exception. Cased M-BERT has the strongest score for recovering lemmas, the dictionary forms associated with words in a sentence.

Capitalization matters differently across the evaluations. Uncased Romanian BERT leads the stand-alone grammatical tagging tests, while its cased counterpart leads all reported measures on RONEC, a Romanian corpus for [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/). Under the strict entity matching criterion, cased Romanian BERT scores 82.54 in macro-averaged F1 and cased M-BERT scores 80.6. Taken together, the experiments establish the strength of a Romanian-specific training package on these benchmarks. The corpus and vocabulary change together, so the results leave open how much each contributes. The release includes the pretrained versions and a repository with corpus acquisition information, evaluation scripts, and practical examples of adapting and using the encoders.

## Deep dive: The birth of Romanian BERT

Romanian BERT learns from Romanian text alone and improves on multilingual BERT in most tests of tagging, parsing, and entity recognition. · about 35 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

#### What Romanian support already meant

The paper starts from a practical distinction. A pretrained system may accept Romanian input, and a researcher may be able to adapt it using labeled Romanian data. That establishes that a system is available for the language. It still leaves a question about the quality of the representations supplied before adaptation. The authors ask whether a system prepared completely from Romanian text gives researchers a better starting point for Romanian tasks than the multilingual system already available to them.

The word *starting* matters here. Pretraining uses a large collection of text to learn representations that can be used in subsequent tasks. A team interested in the grammar of a sentence can begin with those representations and then train on examples annotated for grammar. A team interested in names can start with the same pretrained encoder and train it to identify spans of text that refer to entities. The labels needed for those tasks come from separate corpora. This division lets the paper evaluate a shared resource for Romanian through tasks whose predictions and mistakes can be measured individually. [Language models and pretraining](https://md.research.elamur.ai/free/en/topics/language-models/)

The available multilingual alternative was substantial. As the authors describe it, M-BERT was trained across 100+ languages and supported Romanian. Its purpose was linguistic coverage through a shared system. A vocabulary learned and used across many languages has to encode diverse written forms, and the encoder’s training includes text from those languages. A vocabulary built solely from Romanian and an encoder trained on the resulting sequences use the same general approach with a different allocation of training material and vocabulary entries. That difference motivates the experiment. It also means the comparison changes more than the language label attached to a checkpoint.

A multilingual starting point offers a reason to examine both directions of the comparison. Romanian-specific training can concentrate on forms and contexts that occur in Romanian. Shared training can expose a system to patterns from other languages that may be relevant to Romanian. The paper raises the latter possibility in connection with a particular grammatical task, but it approaches the main question empirically. It compares predictions on annotated Romanian data and examines how each vocabulary represents text. Those are distinct observations. One characterizes the input to the encoder, and the others characterize performance after a task-specific prediction layer has been fitted. [Multilingual and cross-lingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/)

#### Why BERT was the starting point

The authors place their project in the line of work that began with the Transformer. In their account, the architecture improved on earlier neural approaches, and BERT subsequently became a common basis for language processing experiments. The role of attention in this setting is to let a representation at a position draw on other positions in the sequence. BERT is bidirectional in the sense that a representation can depend on context on either side. That property is relevant to word labeling. The words following a target can give evidence about its grammatical function or its membership in a name, just as the words preceding it can. [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/) and [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/)

The paper describes BERT as a basis for a range of applications, including question answering, summarization, and translation. It also describes research into the representations learned by BERT and the role of its attention heads. These studies situate the Romanian project within an existing research program. In particular, a result about the behavior of a Romanian encoder on a grammatical task can be interpreted against a field that was already asking how grammatical information is represented inside BERT. The authors’ own approach is to measure how well that information can be used through specific prediction setups. [BERT Rediscovers the Classical NLP Pipeline](https://md.research.elamur.ai/free/en/papers/tenney-2019-bert-rediscovers-classical-nlp-pipeline/), [Are Sixteen Heads Really Better than One?](https://md.research.elamur.ai/free/en/papers/michel-2019-sixteen-heads-really-better-than/), and [A Primer in BERTology](https://md.research.elamur.ai/free/en/papers/rogers-2020-primer-bertology-what-we-know/)

By the time of the Romanian project, work on Transformer encoders had branched in several directions. The authors mention approaches that extend the underlying pretraining method as well as versions designed with efficiency in mind. That history helps locate their design choice. Their central intervention is to develop the corpus, vocabulary, and training run for Romanian while using the established BERT recipe. Keeping the architecture family familiar makes it possible to compare a specialized release with an existing multilingual release through comparable downstream prediction setups. [XLNet](https://md.research.elamur.ai/free/en/papers/yang-2019-xlnet-generalized-autoregressive-pretraining-language/), [DistilBERT](https://md.research.elamur.ai/free/en/papers/sanh-2019-distilbert-distilled-version-bert-smaller/), and [ALBERT](https://md.research.elamur.ai/free/en/papers/lan-2019-albert-lite-bert-self-supervised/)

#### The precedent for a Romanian-only encoder

The authors describe much of the preceding research as centered on English. They identify monolingual BERT projects for French, Dutch, and Finnish as precedents for making the approach available in another language through dedicated training. Those projects give context to the question the Romanian study poses. The authors identify a gap between the availability of a multilingual system that covers Romanian and the availability of a BERT pretrained solely for Romanian. Their release is intended to fill that gap. [FlauBERT](https://md.research.elamur.ai/free/en/papers/le-2019-flaubert-unsupervised-language-model-pre/), [BERTje](https://md.research.elamur.ai/free/en/papers/de-vries-2019-bertje-dutch-bert-model/), and [FinBERT](https://md.research.elamur.ai/free/en/papers/virtanen-2019-multilingual-enough-bert-finnish/)

Specialization creates a data problem before it creates a training problem. A large amount of Romanian text must be collected in a usable form. Text obtained from translations, web crawling, and an encyclopedia arrives with different properties, and each source can contain formatting that would become part of the training input unless cleaned. The authors treat assembling the corpus and choosing the units in which to represent it as technical parts of building the system. The paper documents both so that the resulting encoder can be understood in terms of what went into it.

The resulting evaluation addresses several levels of description. A word can have a broad grammatical category, a more specific tag, a set of grammatical features, a lemma, and a relation to another word. A name can extend over several words and has both a boundary and a type. By evaluating more than one of these outputs, the authors can ask whether any advantage is confined to a particular decision. They can also check whether the encoder already supplies usable information when its weights are held fixed, and whether that information continues to help when the encoder is allowed to adapt. [Linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) and [Evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/)

### The method, step by step

#### Assemble Romanian text from complementary sources

The researchers start with text that carries no task labels. This is the material from which the vocabularies and pretrained encoders are built. It is separate in purpose from the annotated sentences used later to measure performance. For pretraining, the valuable property is that the text supplies Romanian words in context at scale. For evaluation, the relevant property is that the dataset supplies target decisions, such as a grammatical tag or the boundaries of a named entity. The paper obtains its pretraining text from OPUS, OSCAR, and Romanian Wikipedia.

OPUS supplies translated text. The collection was gathered automatically and includes material from a range of domains. The paper mentions medical prescriptions, legal articles, and film subtitles to illustrate that range. The Romanian portion gives the encoder access to text arising in varied settings of translation and publication. In the post-cleaning corpus statistics, the OPUS contribution is 55.1 M lines, 635.0 M words, and 3.8 GB. The authors use its Romanian text as pretraining input. The fact that OPUS is a collection of parallel texts describes its origin, and the training account describes a Romanian corpus.

OSCAR starts from a different source. It supplies text gathered from Common Crawl and assigned to languages through classification and filtering. The Romanian material is described as deduplicated and shuffled at sentence level. In the post-cleaning inventory, OSCAR contributes 33.6 M lines, 1725.8 M words, and 11 GB. This makes it the largest contributor by word count and storage size. OPUS supplies more lines. The two rankings illustrate why the paper gives several corpus measures. A text line is a unit of storage or processing, and the amount of language it contains can vary considerably by source.

Romanian Wikipedia supplies the smallest contribution by the reported measures. The authors use the February 2020 dump and report 1.5 M lines, 60.5M words, and 0.4 GB after cleaning. The source requires additional work because extracting text from the XML leaves some markup in the output. The cleaned total across the whole corpus is 90.2 M lines, 2421.3 M words, and 15.2 GB. Those totals describe the corpus after preparation. The sources enter the training pipeline as a mixture with a large web component, a smaller translated component by volume, and a still smaller encyclopedia component.

#### Clean the corpus before learning the vocabulary

The order of operations matters because the vocabulary is induced from the text that remains. If a word has been split accidentally by spaces around a hyphen, the corrupted form can affect which character sequences recur during vocabulary learning. Formatting repairs therefore affect the text the encoder reads and the units it learns to read it in. All sources go through the shared cleaning process, with the additional Wikipedia markup cleanup addressing the problem specific to that source.

The first filter removes lines below a minimum length. The paper gives the existence of that cutoff and describes the later criteria that inspect the composition of lines. The cleaners discard tokens outside UTF8 and reject lines that contain forbidden characters. The filters also remove lines whose numbers account for over 25%, whose non-ASCII characters account for over 40%, or whose letters account for under 50%. These criteria work at the level of a line’s composition. A permitted character or a number can survive in a line that meets the rules. The filters select against lines with extreme proportions of these character categories.

Further cleaning repairs spacing inside forms the authors want preserved. A separated `a- mi` is joined as `a-mi`. A unit written `km/ h` becomes `km/h`. A percentage written `12, 5%` becomes `12,5%`. These are examples of decisions that a character filter alone cannot make. Each input consists of valid pieces of text, and the issue is how those pieces are grouped. Joining them before vocabulary training lets their normal arrangement contribute to the evidence about recurring units.

The remaining operations remove soft hyphens, web addresses, and email addresses, standardize dashes and other characters, and reduce repeated spaces. A dash can have several different digital representations, so normalization can prevent visual variants from being counted as unrelated strings. Removing soft hyphens has a different purpose. It clears a character that may reflect how a word was prepared for display. Reducing repeated spaces then regularizes the separators that remain. Together these operations produce the text from which the next stage learns its inventory of pieces.

The cleaning regime makes a judgment about the input on several scales. It excludes a line if the line as a whole looks unsuitable by the specified criteria, and repairs local sequences if their intended form is recognizable from the rule. The source statistics describe how much text survived across the various collections. They provide scale for the finished corpus, while the individual operations explain the kinds of changes that can occur between fetching the data and training the vocabulary.

#### Learn units that fit Romanian words

A BERT encoder reads a sequence of tokens. In this paper’s setup, a token can correspond to a whole word or to a smaller piece of a word. [Subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/) makes it possible to combine familiar pieces when the complete written form lacks a vocabulary entry. A good way to understand the authors’ design is to consider what happens before the Transformer sees a sentence. The segmenter looks up units in a fixed inventory and hands the encoder their sequence. The choice of that inventory determines which Romanian forms arrive intact, which arrive in several pieces, and which produce an unknown token.

The authors use byte-pair encoding to construct the inventory. In broad terms, it builds larger units out of recurring smaller units in the training text. A form frequent enough in the learned vocabulary can then occupy one position in the sequence, while another word can still be encoded as several known pieces. The authors build a separate inventory of 50,000 word pieces for each version of Romanian BERT. Cased and uncased versions preserve different distinctions in the input, so they learn their inventories separately.

The paper also reports a character coverage setting of 2000. The authors explain the choice in terms of giving less frequent characters and symbols a chance to be represented. An unknown token is the fallback when the available inventory cannot encode part of the input. A larger supported character set can help at that point, even when the complete word remains absent as an entry. The paper measures the outcome for the full learned vocabulary on separate text. Its design leaves the effect of this particular setting bundled with the rest of the vocabulary construction.

The sentence used in the paper illustrates differences a reader can recognize without inspecting the full vocabulary. Both Romanian variants keep `plecat` together. Both multilingual variants divide the same form into `pl`, `##eca`, and `##t`, where `##` signals continuation within the word. In the cased examples, Romanian BERT preserves `Craiova` as a unit, whereas cased M-BERT represents it as `C`, `##rai`, and `##ova`. The uncased versions also differ in their treatment of accents. The authors specifically note that uncased M-BERT strips them. In the example, the uncased Romanian representation still contains accented material.

Some words in the demonstration remain split under Romanian BERT, including the final place name. The individual segmentations also illustrate that preserving case can affect different words in different ways. Version choice is therefore a question about the particular vocabulary and the text under study. One example shows the mechanisms in action. The paper then estimates their typical effects with a separate evaluation of the inventories.

For that evaluation the authors reserve a development file of 5000 lines selected with regard to the sizes of the source corpora. Its mixture is intended to reflect their relative contributions. Neither the vocabulary construction nor encoder pretraining uses this file. The separation matters because learning and evaluating an inventory on the same text would make the average partly a description of the strings that determined the inventory. With held-out lines, the measurements instead describe how those learned pieces serve a fresh sample from the same source mixture.

The paper uses two views of segmentation. Tokens per word describes how many units the segmenter produces for a typical word. Unknown tokens per word describes how frequently part of the input runs into the vocabulary’s fallback. Short segmentations and reliable coverage are related goals with different failure modes. A word can take several tokens and be represented completely. A short representation can still contain a token that stands for unidentified material. Reporting both measures helps distinguish the value of keeping frequent forms intact from the value of covering uncommon strings.

#### Pretrain the encoders in two sequence-length stages

After the vocabulary is learned, it can convert Romanian text into sequences for standard BERT pretraining. The authors apply that recipe separately to their cased and uncased versions. The paper focuses on the data, segmentation, sequence lengths, and optimization schedule. It presents the recipe as an existing method and gives the Romanian training settings that determine how it was used. The main procedural change during a run is a switch in the length of the sequences given to the encoder.

From Romanian source text to task predictions The steps in order.

Each Romanian version trains for 1M steps. For the initial 900K steps, the sequence length is 128. The remaining steps use the maximum length of 512. The batch size, stated per graphics processor, is 140 in the shorter-sequence stage and 20 in the longer-sequence stage. Sequence length and batch size describe different aspects of the work. The former gives the length of the sequences used in a training stage. The latter specifies how many such training inputs are grouped per device. The transition changes them together.

The optimizer is LAMB, an approach the authors identify as designed for batch training. An optimizer determines how the parameters are updated in response to the training objective. Here its schedule increases the learning rate during the first 1% of steps, reaches 1e-4, and then decays. The learning rate controls the scale of parameter updates in the training process. The authors report using Nvidia Volta V100 GPUs with 32GB memory each, and pretraining takes around 2 weeks per version on their setup. These details document the conditions under which they ran the recipe. [Large Batch Optimization for Deep Learning](https://md.research.elamur.ai/free/en/papers/you-2019-large-batch-optimization-deep-learning/)

The loss curves for the cased and uncased versions provide a view of what happens when the schedule changes. Loss is the quantity the training procedure tries to reduce. Both curves rise abruptly around the switch at 900K steps, and the authors attribute the jump to the move to length 512. Both quickly recover. For interpreting the figure, the timing is more informative than reading the rise as a change under constant conditions. The training examples are now organized into longer sequences, with a different batch size, so the point marks a change in how training is conducted.

#### Convert contextual representations into task decisions

Once pretraining is complete, the encoder produces numerical representations of positions in a sentence. A representation is contextual because its value can depend on surrounding text. The downstream experiments build prediction layers that turn that information into task outputs. For a grammatical tagging task, the output is a label for a word. For entity recognition, word labels are used to indicate which words form each span. For the joint grammatical experiment, the system also needs to recover word forms and predict the relations that connect words in the sentence.

In stand-alone [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), the authors put a linear prediction layer directly over the final BERT outputs. Its job is to assign a score to each eligible tag. The setup has a fixed dropout setting of 0.1. Dropout during training prevents the prediction procedure from depending on the same activations on every pass. A softmax turns the layer’s scores for a position into a distribution over tags. Cross-entropy measures how much probability the prediction assigns to the annotated tag and provides the loss used in training. The authors use separate setups for the universal and extended tag inventories.

The same architecture supports a frozen test and a fully trainable test. With the encoder frozen, training changes only the added output layer. That estimates how readily a linear prediction layer can use the representations supplied by pretraining. In the fully trainable test, the task loss can also update the encoder’s parameters through [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). The text shown at evaluation can then be represented in a way that has been shaped by the particular labeled task. This difference in trainability is central to interpreting the downstream comparison.

For the joint grammatical experiment the authors use UDify. It gives each task its own prediction layer and trains the tasks together. The implementation also draws on the intermediate Transformer layers for each token. A dot-product attention mechanism supplies weights, and the intermediate representations are combined in a weighted sum. A token’s contribution to a particular prediction therefore reflects information accumulated across the encoder’s layers. The joint results are produced with this prediction framework, whereas the stand-alone tagger uses the final BERT outputs directly. [UDify](https://md.research.elamur.ai/free/en/papers/kondratyuk-2019-75-languages-1-model-parsing/)

For named entity recognition the authors return to the simple prediction architecture and allow the encoder to adapt. The labels follow the BIO scheme. A label can mark the beginning of an entity mention, mark a position inside that mention, or mark a word outside any mention. The entity’s type can accompany the labels that identify its span. A run of compatible labels is consequently read as a predicted mention, with a beginning, a boundary, and a category. This gives the evaluation several ways to credit or penalize a prediction, depending on whether it requires correct boundaries, correct type, or both.

### Experiments and results

#### What is compared

The downstream experiments compare cased and uncased Romanian BERT with cased and uncased M-BERT. Holding the casing regime in view is important because it distinguishes a comparison between training families from a comparison between versions within a family. The authors evaluate stand-alone tagging, joint grammatical analysis, and named entity recognition. Each experiment runs 5 times to reduce the influence of a particular random seed, and the paper reports mean scores.

Two annotated datasets anchor the downstream evaluations. For the grammatical tasks the authors use Romanian RRT, a treebank in the [Universal Dependencies](https://md.research.elamur.ai/free/en/concepts/universal-dependencies/) framework. For entities they use RONEC, a corpus with fine-grained named entity labels. The segmentation experiment has its own data. It uses the held-out 5000-line file drawn from the pretraining corpus sources, so its measurements describe text representation on that sample rather than task performance on RRT or RONEC. The reported downstream results identify their datasets and task setups. The paper’s results tables give no split names or split sizes.

A result is most easily read by keeping the output and the scoring measure together. Broad part-of-speech tags assign words to shared grammatical categories. Extended tags distinguish categories according to a more detailed inventory. Universal features describe grammatical properties associated with words. Lemma predictions recover canonical forms, and dependency predictions assign words to syntactic heads and label their relations. Named entity scoring looks at spans and types. The paper groups these outputs by evaluation setup because a score also reflects the way the underlying encoder is used.

#### Vocabulary coverage on held-out text

On the held-out development file, uncased M-BERT uses 2.00 tokens per word and cased M-BERT uses 1.82. The corresponding figures for Romanian BERT are 1.41 uncased and 1.37 cased. Thus each Romanian vocabulary represents words in fewer pieces than the multilingual vocabulary under the same casing condition. Cased Romanian BERT has the lowest average on this sample. These are the figures in the vocabulary table, which explicitly assigns 2.00 to the uncased multilingual version.

Unknown tokens per word show a similar ordering across the corresponding variants. The uncased multilingual inventory gives 0.005 unknown tokens per word, and the cased multilingual inventory gives 0.004. The Romanian values are 0.0003 for uncased and 0.0002 for cased. This measure is a rate per word. It describes how often unknown pieces appear relative to the words processed. Together with the segmentation figures, it shows that the shorter encoding on this file accompanies better coverage of the strings presented to the vocabulary.

The vocabulary results establish a difference at the input interface. The same underlying Romanian text becomes a shorter sequence of pieces on average and contains fewer unknown pieces under the Romanian vocabularies. In practical terms, several adjacent pieces may need to represent an item that appears as a single unit under another vocabulary. An unknown piece presents another issue because it stands in for text that the inventory could not directly preserve. The held-out file allows those properties to be compared independently of whether a task classifier has subsequently been fitted.

#### Stand-alone tagging on Romanian RRT

In the simple Universal Dependencies experiments, UPOS is the universal part-of-speech inventory, and XPOS is the extended part-of-speech inventory. The first groups words into broad categories used by the framework. The second distinguishes the more specific categories recorded in the treebank. A separate linear classifier is fitted for each target. The authors report macro-averaged F1 on Romanian RRT, following the evaluation work they cite. F1 balances precision and recall, and macro-averaging gives labels equal influence in the average. [CoNLL 2018 Shared Task on Universal Dependencies](https://md.research.elamur.ai/free/en/papers/zeman-2018-conll-2018-shared-task-multilingual/)

When the encoders are frozen, uncased M-BERT scores 95.48 for UPOS and cased M-BERT scores 94.46. Uncased Romanian BERT scores 96.55 and cased Romanian BERT scores 96.49. The Romanian variants lead in both matched casing comparisons. Because the encoder stays fixed, these scores describe the performance available to the trained output layer from the existing representations. The narrow gap between the Romanian variants on this particular tagging target also helps put their common advantage over the multilingual encoders in perspective.

For frozen XPOS, the scores are 89.84 for uncased M-BERT and 89.50 for cased M-BERT. They rise to 95.14 for uncased Romanian BERT and 95.01 for cased Romanian BERT. The ordering resembles frozen UPOS, with uncased Romanian BERT first and cased Romanian BERT close behind. The visible separation between the Romanian and multilingual families is larger here. The more detailed tag inventory is where the frozen linear evaluation most clearly distinguishes the pretrained encoders.

Frozen XPOS tagging on Romanian RRT by macro-averaged F1 With only the prediction layer trained, both Romanian variants lead both multilingual variants on extended part-of-speech tags.

**The numbers**

| System or setting | macro-averaged F1 |
| --- | --- |
| M-BERT uncased | 89.84 |
| M-BERT cased | 89.50 |
| Romanian BERT uncased (this paper) | 95.14 |
| Romanian BERT cased | 95.01 |

Full fine-tuning improves the stand-alone UPOS scores within each variant. For M-BERT, the uncased result is 97.65 and the cased result is 97.87. For Romanian BERT, the respective results are 98.18 and 98.00. Uncased Romanian BERT gives the highest mean. The cased systems are particularly close, which matters when interpreting the size of the Romanian advantage after adaptation. A comparison that considered only the frozen and fully trainable winners would miss how the other variants move as the training condition changes.

For fully trainable XPOS, uncased M-BERT scores 95.72 and cased M-BERT scores 96.16. Uncased Romanian BERT scores 96.84 and cased Romanian BERT scores 96.46. Both Romanian variants still lead their corresponding multilingual versions. The scores cluster more closely than they do in frozen XPOS. The Romanian encoders therefore have an advantage under both ways of using the pretrained representations, with the more pronounced separation appearing when adaptation is restricted to the output layer.

#### Joint grammatical analysis on Romanian RRT

The joint experiment reuses Romanian RRT and changes the prediction framework. UDify trains several outputs together and gives each one access to a combination of intermediate representations. The reported measures come from the standard CoNLL evaluation tools named by the authors. UPOS concerns broad grammatical categories. UFeats concerns universal grammatical features assigned to a word. A [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/) is a canonical form of a word, and lemma evaluation checks the canonical forms predicted for the words in the text. Labeled attachment score checks whether the syntactic head assignment and the dependency relation label are both correct.

UPOS scores are closely grouped in the joint setup. The CoNLL tool reports 97.72 for uncased M-BERT, 97.90 for cased M-BERT, 97.91 for uncased Romanian BERT, and 97.90 for cased Romanian BERT. Uncased Romanian BERT has the highest reported mean, and the cased variants share the same reported value. The span of these outcomes is small compared with the frozen XPOS comparison. The UPOS result is a useful reminder to keep the task setup attached to the number. The joint UPOS output comes from a system trained alongside other grammatical outputs.

The joint UFeats results are 96.54 for uncased M-BERT, 96.71 for cased M-BERT, 97.01 for uncased Romanian BERT, and 97.22 for cased Romanian BERT. Cased Romanian BERT leads here. UFeats and UPOS describe different properties of the same words, and the strongest Romanian variant changes with the target. The table permits that distinction to be seen even though the predictions come from a shared encoder in each joint system.

The lemma scores change the family ordering as well. Uncased M-BERT reaches 94.67 and cased M-BERT reaches 95.2. Uncased Romanian BERT reaches 94.93 and cased Romanian BERT reaches 94.88. The cased multilingual variant leads, while both Romanian variants score above the uncased multilingual variant. This is the distinct exception to the pattern of Romanian leadership among the reported downstream targets. It provides direct evidence that the strongest choice can depend on which output a user of the joint analyzer cares about.

Dependency parsing gives a clearer advantage to the Romanian variants. Uncased M-BERT scores 87.65 and cased M-BERT scores 88.05 for labeled attachment. Uncased Romanian BERT gives 89.61 and cased Romanian BERT gives 89.69. Here the Romanian versions lead under either casing regime. To earn credit under this measure, the prediction has to select the correct head and identify the correct grammatical relation to it. The result therefore extends the measured benefit beyond assigning descriptive labels to individual words. It concerns the relations that organize words within a sentence.

Joint dependency parsing on Romanian RRT by labeled attachment score Both Romanian variants improve on their multilingual counterparts, with cased Romanian BERT achieving the highest score.

**The numbers**

| System or setting | labeled attachment score |
| --- | --- |
| M-BERT uncased | 87.65 |
| M-BERT cased | 88.05 |
| Romanian BERT uncased | 89.61 |
| Romanian BERT cased (this paper) | 89.69 |

#### Named entities on RONEC

The RONEC evaluation uses BIO labels and the same simple prediction architecture as the stand-alone grammatical tasks, with the encoder trainable. Scoring operates on the resulting mentions and assesses them under different matching criteria. A prediction can fail by assigning the wrong type to a correctly bounded span, or by selecting an incomplete span with the right type. Using several views of matching lets the experiment register these errors differently. Using the scoring approach from the work they cite, the authors report macro-averaged F1 under four match criteria: entity type, partial, strict, and exact. [DDIExtraction 2013](https://md.research.elamur.ai/free/en/papers/bedmar-2013-semeval-2013-task-9-extraction/)

The entity type view emphasizes whether a mention is assigned the correct kind of entity. The partial view recognizes overlap between a predicted mention and an annotated mention. Exact matching checks the span boundaries, while strict matching requires both the exact boundaries and the correct type. The criteria thus let a reader see whether the ranking depends on a forgiving treatment of boundaries or persists when the span and type must both be right.

For entity type, uncased M-BERT scores 84.75 and cased M-BERT scores 84.52. Uncased Romanian BERT scores 85.53 and cased Romanian BERT scores 86.21. Under partial matching, the results in the same order are 86.06, 86.27, 87.17, and 87.84. With exact matching they are 83.91, 84.13, 85.26, and 85.88. The cased Romanian version ranks first and the uncased Romanian version ranks second under each of these criteria. The order within the multilingual family depends on the particular measure.

Strict matching produces the same ordering at the top. Uncased M-BERT scores 80.81 and cased M-BERT scores 80.6. Uncased Romanian BERT gets 82.01 and cased Romanian BERT gets 82.54. Cased Romanian BERT therefore leads even when the entity prediction must be right about the span and type together. The consistency across criteria matters because it shows that the Romanian lead survives a change in how partial success is counted.

Strict named entity recognition on RONEC by macro-averaged F1 Both Romanian variants lead under strict matching, with the cased version scoring highest.

**The numbers**

| System or setting | macro-averaged F1 |
| --- | --- |
| M-BERT uncased | 80.81 |
| M-BERT cased | 80.6 |
| Romanian BERT uncased | 82.01 |
| Romanian BERT cased (this paper) | 82.54 |

Across these evaluations, the cased and uncased comparison has consequences for choosing a pretrained starting point. Uncased Romanian BERT gives the top score in each stand-alone tagging condition. Cased Romanian BERT leads the dependency and feature outputs in the joint evaluation and leads the entity evaluation under every measure. The joint lemma result goes to cased M-BERT. The reported means establish these rankings for the respective experiments. Their interpretation depends on the size of the separation, how the prediction layer is trained, and whether other changes travel with the casing choice.

### What the ablations show

#### Freezing identifies an advantage present before task adaptation

The clearest controlled intervention is the frozen-versus-trainable comparison in stand-alone tagging. For a given pretrained version and target, the authors use the same kind of added linear prediction layer and change whether the encoder can be updated. In the frozen condition the classifier has to work with the representations it receives. In the trainable condition those representations can change with supervision. The comparison therefore asks whether the Romanian advantage is already visible through a small learned readout, and whether the rankings remain after the task can reshape the encoder.

For XPOS the answer to both questions is visible in the data. Uncased Romanian BERT’s frozen macro-averaged F1 of 95.14 is well ahead of uncased M-BERT’s 89.84 on RRT. In the fully trainable setting the corresponding means are 96.84 and 95.72. The cased versions show the same pattern of a wider separation when frozen. In UPOS the Romanian variants remain ahead in the matched comparisons, and the advantage becomes less pronounced when the encoder is trainable. This matches the authors’ expectation that frozen evaluation would accentuate differences already present in pretrained representations.

The useful interpretation concerns accessibility. A linear layer can recover the annotated distinctions more successfully from the fixed Romanian representations on RRT. Once all parameters are trainable, the multilingual systems also improve and the comparison becomes closer. The outcome supports the Romanian encoders as a strong starting point even before adaptation. It leaves open which properties of pretraining supplied that advantage. The frozen test changes the downstream use of each pretrained version, while the upstream corpus and vocabulary remain bundled within each version.

#### Casing helps rank variants for a task

The casing comparison is informative because capitalization can carry different amounts of evidence for different outputs. In stand-alone tagging, uncased Romanian BERT leads every reported combination of task and freezing condition. The authors consider this surprising because a capital letter can be a clue to a proper noun. They suggest that the uncased vocabulary might match the forms in RRT more effectively. Capitalization variants can share entries in an uncased inventory, and the resulting allocation of entries can change which full forms are available.

That suggestion is about matching a particular benchmark. On the held-out corpus file used for the vocabulary evaluation, the cased Romanian version has the lower average number of pieces per word. Its 1.37 compares with 1.41 for uncased Romanian BERT on that file. A single aggregate segmentation measure therefore gives a different ordering from the simple RRT tagging experiments. The measurements concern different data and different outputs. The held-out file measures how strings are cut into pieces, while tagged RRT sentences measure how readily the predictions recover grammatical labels.

The RONEC results give a separate perspective. The cased Romanian version leads in exact boundaries, in the view that emphasizes entity type, and in strict matching. The direction is consistent with capitalization being a useful clue in recognizing names. It remains an association between the cased recipe and the outcome. The vocabulary is learned separately for each casing regime and the encoder is pretrained separately, so a cased-versus-uncased comparison is a comparison of finished systems. The study does not quantify the effect of retaining capital letters at prediction time alone.

The joint RRT results make it harder to explain the rankings through a general preference for case. The strongest Romanian version for joint UPOS is uncased. For universal features and labeled attachment the cased Romanian version leads. Even within the same treebank and joint procedure, the value of a pretrained version depends on which target is evaluated. This is evidence about the end-to-end behavior of the variants. It also limits how far the authors’ explanation for stand-alone tagging can be extended to the other experiments.

#### Segmentation and joint prediction answer separate questions

The vocabulary analysis supplies a plausible mechanism for part of the Romanian advantage. The encoder starts from a different segmentation of the same written material. A word frequently present as one unit in the Romanian vocabulary can be spread across several positions by M-BERT. The low unknown-token rates also indicate that the Romanian inventories preserve more of the held-out input in represented pieces. Together these observations show that specialization reaches the actual input to the encoder. They give no score for a system with a Romanian vocabulary and otherwise matched multilingual pretraining.

Likewise, the contrast between simple and joint RRT evaluation exposes the effect of choosing an overall prediction setup without isolating one component of it. The joint system adds supervision from other grammatical tasks and combines information from intermediate layers. The stand-alone system uses the final output and trains a classifier for its particular label inventory. The similar joint UPOS outcomes across versions show that the separation seen with frozen simple tagging cannot be assumed for that joint framework. A reader can attribute the change to the evaluation conditions collectively. The reported experiment gives no separate estimate for layer weighting or joint supervision.

The paper also offers a training trace for the switch to longer sequences. Its abrupt rise and recovery show that both Romanian runs continued learning after the transition. This is a diagnostic of training behavior under the authors’ schedule. There is no comparison with a fixed-length schedule evaluated on the same downstream tasks. Likewise, the paper gives a working corpus cleaning and optimization recipe without reporting experiments that remove individual filters, source corpora, or optimizer settings. The controlled evidence is strongest where the authors change downstream trainability. The other analyses describe how trained systems, learned inventories, and prediction setups differ.

### Limitations

#### Boundaries the authors identify

The authors present the corpus and vocabulary as resources they expect to improve. They identify further cleaning, added text, and better vocabulary coverage as directions for subsequent releases. The existing corpus is large enough to support the experiments and still reflects choices about sources, filtering, and character representation. The published scores belong to the corpus and vocabularies actually used, along with the training setup documented for them. The future work named by the authors identifies which parts of the resource they regard as open to improvement.

The authors also qualify their explanation for the joint lemma result. They suggest that cased M-BERT may benefit from exposure to related languages in multilingual pretraining. A related language could supply patterns helpful for recovering canonical forms in Romanian. The paper proposes investigating a multilingual Transformer trained on the family of languages the authors discuss in that explanation. The present result establishes which evaluated system scored highest on RRT lemmas. The explanation invokes one mechanism that a differently designed training comparison could test.

For the casing outcome in stand-alone tagging, the paper’s explanation is similarly tentative. The authors expected retained capitalization to provide some useful information and suggest a better fit between the uncased inventory and RRT as a possible reason for the observed ranking. Their corpus-level average shows a benefit from the Romanian vocabularies in general. It gives no RRT-specific inventory analysis that would establish the proposed match. The explanation can be kept alongside the result with its status intact. The ranking was measured, and the hypothesized reason remains open.

#### Boundaries of the comparisons

The central comparison is between existing multilingual encoders and newly trained Romanian encoders. The Romanian package changes the training text, the breadth of languages represented, and the vocabulary together. It uses the program of preparation and training described in the paper. As a consequence, the most direct conclusion is that the finished Romanian systems generally do better in these evaluations. A claim that the same improvement will follow from restricting any otherwise comparable multilingual training run to Romanian would require controlling those other differences. The study is designed around the comparison of available pretrained starting points.

The same consideration limits conclusions about tokenization. The reported reductions in pieces and unknowns are genuine measured differences on the development file. There is no experiment swapping vocabularies while holding the rest of pretraining fixed or training matched encoders with controlled changes in vocabulary segmentation. Individual words could benefit from compact segmentation, coverage of a rare character, or the contexts in which their pieces occurred during training. The benchmark means combine those effects with the other differences in the pretrained systems. The numerical association is strongest as evidence about the input condition accompanying the performance.

Each corpus source also enters as part of the same prepared mixture. OSCAR contributes the most words, but source size alone cannot tell how much it contributes to any downstream target. OPUS exemplifies text from several domains, and Wikipedia adds encyclopedia material. The paper reports the composition of the cleaned collection, without comparisons that withdraw or reweight any of those sources. The cleaning criteria remove classes of anomalous lines and repair named formatting issues. Their effect on the representation of different writing styles or domains has no separate measurement in the downstream results.

Casing introduces another bundle of differences. The cased and uncased runs differ in the distinctions available to vocabulary learning and in the sequences seen during encoder pretraining. The paper’s example shows that uncased M-BERT strips accents, making the exact behavior of uncased processing important in interpreting matching versions. Across families, the labels *cased* and *uncased* indicate a broad mode of handling case. The example demonstrates that the text can undergo other representation changes within that mode. The experiments evaluate those actual vocabularies and encoders. They do not reduce all of their differences to case alone.

The use of UDify creates a related limit on claims about joint learning. Since several changes occur together between simple tagging and joint evaluation, the respective UPOS results cannot separately measure the contribution of additional tasks, intermediate-layer attention, or prediction-layer design. The fact that both experiments use RRT makes the outcomes easier to relate to the same annotated task. It does not make them interchangeable estimates of how much a single architectural choice helps. Within the joint evaluation, the same framework supports a comparison across pretrained versions. That is the cleanest scope for reading its table.

#### Boundaries of measurement and generalization

The authors average over 5 runs per downstream experiment. Repetition helps prevent a single choice of random seed from being the entire basis for a ranking. The paper reports means without run-level scores, variation across runs, or significance tests. This matters especially for tight comparisons such as joint UPOS, where the reported means include 97.91 and 97.90. The table shows how the means order. It gives insufficient information to decide how consistently a narrow ordering appears across runs. The wider separations, such as frozen XPOS, are easier to see in the aggregate values, though their variability is also unreported.

The downstream evidence is also tied to the datasets. RRT provides the grammatical evaluations, and RONEC provides the entity evaluation. These benchmarks let the authors study different outputs with annotated Romanian material. The results give no direct measure of performance on another Romanian treebank, another entity corpus, or on the applications mentioned in the paper’s broader introduction. Good performance on RRT can justify interest in how the encoder handles Romanian syntax, while the measured parsing score still belongs to that annotation and evaluation setup. Good RONEC scores likewise characterize recognition under RONEC’s entity definitions and scoring protocol.

The segmentation sample has a different boundary. Its 5000 lines were chosen in relation to the sizes of the pretraining sources and withheld from training. This is a sensible way to characterize segmentation on a fresh sample with a similar source composition. It directs the evidence toward that source mixture. The averages cannot tell from which genres the benefit comes, how it varies with rare forms, or whether the same ranking would hold in each downstream corpus. In particular, an aggregate result on the development file does not establish the authors’ proposed vocabulary match on RRT.

For named entities, the multiple criteria make span and type performance easier to read, but the paper provides no frozen counterpart on RONEC. The entity results consequently describe the complete fine-tuned prediction setup. The grammatical experiments show that the amount of adaptation can change how far apart the pretrained families are. The RONEC experiment leaves the corresponding question about accessibility from fixed representations unanswered. It still establishes that both Romanian versions are strong under the particular end-to-end adaptation and evaluation used there.

Finally, the performance claims and the compute description serve different purposes. The pretraining duration and hardware explain the context of the authors’ runs. The tables assess task accuracy, attachment, or F1 under their respective setups, and the vocabulary experiment measures tokens and unknowns per word. The paper gives no measured inference speed or production throughput comparison. A shorter average segmentation is an input property with potential implications for how many positions are processed. It is not itself a benchmark of application runtime. The repository’s practical examples provide a way to use the released work, while the measured evidence remains the set of corpus, vocabulary, training, and task observations described in the paper.

### What came after

#### Corpus quality and the composition of training data

The citing work on web-crawled multilingual datasets takes up a question that arises early in Romanian BERT. Text gathered at scale needs to be assessed before it becomes training data. The Romanian paper describes filters and repairs that prepare a working corpus and reports how much material remains. The later audit makes the quality of web-crawled multilingual datasets the subject of the study itself. The citation connects the development of an encoder using web-derived Romanian text with work centered on evaluating web-derived collections. That connection concerns the data source and the question of quality. The citation alone leaves the role of Romanian BERT’s particular datasets and filters in the audit unspecified. [Quality at a Glance](https://md.research.elamur.ai/free/en/papers/kreutzer-2021-quality-glance-audit-web-crawled/)

A later Romanian pretraining study focuses directly on improving the data through diversity and quality filtering. Both projects put a corpus decision upstream of pretraining. In Romanian BERT, the authors draw on distinct sources and use a common cleaning pipeline, with extra processing for Wikipedia. In the later paper’s stated scope, diversity and quality are explicit criteria for improving Romanian pretraining data. This extends the data question from constructing a usable Romanian corpus to choosing material according to the qualities the later study names. The citation establishes the research connection. The later work’s title specifies its focus, while leaving the exact experimental role of Romanian BERT open. [Improving Romanian LLM Pretraining Data using Diversity and Quality Filtering](https://md.research.elamur.ai/free/en/papers/negoita-2026-improving-romanian-llm-pretraining-data/)

#### Evaluation beyond the original tasks

LEXTREME takes benchmarking into a specialized domain and gives it a multilingual, multitask scope. That changes the question an evaluation is organized to answer. The Romanian BERT paper asks how specialized pretraining compares with multilingual pretraining under several kinds of Romanian annotation. A multilingual legal benchmark places emphasis on a domain of text and on performance across tasks and languages. This is a continuation of the broader practice of using multiple outputs to assess the usefulness of pretrained representations, with a different domain and unit of comparison. The citation records that the legal benchmark draws on the Romanian BERT literature. It leaves open exactly where the Romanian checkpoint enters the benchmark’s procedure. [LEXTREME](https://md.research.elamur.ai/free/en/papers/niklaus-2023-lextreme-multi-lingual-multi-task/) and [Legal AI](https://md.research.elamur.ai/free/en/topics/legal-ai/)

The RALS paper develops resources and baselines for Romanian automatic lexical simplification. A simplification task concerns making a word choice easier to understand in context. That target asks for a different decision from the ones measured on RRT or RONEC. Recovering a lemma identifies the canonical form of an observed word. Lexical simplification concerns the suitability of a simpler expression in context. The citation places Romanian BERT among the earlier Romanian language-processing work relevant to building resources and baselines for that target. It supports a connection from Romanian-specific pretraining to a new Romanian downstream problem. The information about the later paper leaves unspecified which baselines use the original checkpoint or how they score. [RALS](https://md.research.elamur.ai/free/en/papers/anghel-2025-rals-resources-baselines-romanian-automatic/)

These citing studies follow the original paper at different points in its workflow. The audit and the Romanian filtering study take up the quality and composition of training text. LEXTREME shifts evaluation toward a multilingual specialist domain, while RALS develops resources and baselines for another Romanian task. Romanian BERT supplies an early point of comparison in that literature through its documented corpus preparation, separate vocabularies, and measured grammatical and entity predictions. Its original benchmark results remain grounded in RRT and RONEC. The later works identify the distinct corpus and evaluation questions that the same research program can pursue.

## Cite

Cite as Stefan Dumitrescu, Andrei-Marius Avram and Sampo Pyysalo. 2020. The birth of Romanian BERT. Findings of the Association for Computational Linguistics: EMNLP 2020.

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

```bibtex
@inproceedings{dumitrescu2020birth,
  title = {{The birth of Romanian BERT}},
  author = {Stefan Dumitrescu, Andrei-Marius Avram and Sampo Pyysalo},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2020},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.387},
  url = {https://doi.org/10.18653/v1/2020.findings-emnlp.387}
}
```

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