---
title: "BERTić - The Transformer Language Model for Bosnian,"
description: "BERTić learns from Bosnian, Croatian, Montenegrin and Serbian text and is tested on tagging, entity recognition, tweet geolocation and…"
canonical: "https://research.elamur.ai/free/en/papers/ljubesic-2021-bertic-transformer-language-model-bosnian/"
---
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/ljubesic-2021-bertic-transformer-language-model-bosnian/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / BERTić - The Transformer Language Model for Bosnian, Croatian, Montenegrin and Serbian

# BERTić - The Transformer Language Model for Bosnian, Croatian, Montenegrin and Serbian

Paper · 2021 · Nikola Ljubešić and Davor Lauc

**Authors:** [Nikola Ljubešić](https://md.research.elamur.ai/free/en/authors/nikola-ljubesic/) and Davor Lauc · **Year:** 2021 · **Venue:** Proceedings of the 8th Workshop on Balto-Slavic Natural Language Processing · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **22** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/ljubesic-2021-bertic-transformer-language-model-bosnian/cited-by/) · Proceedings of the 8th Workshop on Balto-Slavic Natural Language Processing · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2021.bsnlp-1.5/)
- [PDF](https://aclanthology.org/2021.bsnlp-1.5.pdf)

## Summary

How much can a language system learn by training on closely related languages together? BERTić addresses that question for Bosnian, Croatian, Montenegrin and Serbian. The authors assembled a pretraining collection of 8,387,681,518 words, drawing on earlier national-domain crawls, new CLASSLA crawls, cc100 and the Croatian Riznica collection. They removed sentences from the newer web collections when the same sentences were already present in sources they had incorporated. Their aim was to give a single system substantial exposure to the four languages and test whether that preparation improved several kinds of language analysis.

BERTić uses a [transformer](https://md.research.elamur.ai/free/en/concepts/transformer/), an architecture that can represent a token in relation to its surroundings. The authors train it with Electra. During pretraining, a smaller generator proposes replacements for selected tokens, and a larger discriminator learns to identify which tokens have been replaced. The system preserves diacritics and uses a WordPiece vocabulary of 32 thousand tokens, which lets it represent a word by reusable pieces. The base-sized encoder has 110 million parameters in 12 layers. Pretraining ran for 2 million steps with batches of 1024 on 8 TPUv3 units. The released encoder is available through HuggingFace as `CLASSLA/bcms-bertic` for further [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/).

The authors compare BERTić with multilingual BERT, abbreviated mBERT, and CroSloEngual BERT, abbreviated cseBERT. They first test detailed grammatical labeling and [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/), which locates and categorizes names in text. BERTić leads on three of the four datasets in each task. Its largest gain in entity recognition comes on the non-standard Serbian ReLDI-sr dataset, where its average F1 is 87.92 and cseBERT scores 82.76. The standard Serbian newspaper dataset, SETimes.SR, shows no clear advantage for BERTić in either task. In tweet geolocation, BERTić lowers the median distance between predicted and recorded locations to 37.96, compared with 40.76 for cseBERT, the basis of the shared-task winner.

The authors also introduce COPA-HR, a Croatian adaptation of a test of everyday causal reasoning. A question gives an event and asks the system to choose the more plausible cause or effect. The dataset has 400 training, 100 development and 500 test examples and is available from the CLARIN.SI repository. BERTić reaches 65.76 mean test accuracy on the percentage scale, ahead of cseBERT at 61.80 and mBERT at 54.12. The authors attribute much of the overall improvement to the larger pretraining collection and suggest that the clearest gains arise when a task draws on information beyond local grammar. The experiments compare complete systems, so they establish how well the systems performed on these tests while leaving the effects of corpus size, language coverage and training objective entangled.

## Deep dive: BERTić - The Transformer Language Model for Bosnian, Croatian, Montenegrin and Serbian

BERTić learns from Bosnian, Croatian, Montenegrin and Serbian text and is tested on tagging, entity recognition, tweet geolocation and causal reasoning. · about 32 minutes to read

**In this deep dive**

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

### The problem and its context

#### Why train on closely related languages together?

The authors start from a practical mismatch in [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/). Pretraining had improved performance on many tasks, but producing a pretrained transformer required substantial text and computing resources. A multilingual system could make the technique available for a language without a dedicated effort, while a system trained on a more focused collection could give that language greater representation. The paper asks what a focused collection can achieve when its intended coverage is a group of closely related languages.

The introduction treats Bosnian, Croatian, Montenegrin and Serbian as mutually intelligible languages grouped under the HBS macrolanguage. That relationship gives the authors a reason to build a shared system. A corpus drawn from several national domains can expose it to forms common across the group and to forms that occur more often within particular varieties. The proposal also makes use of an uneven resource situation. The available Croatian collections are much larger than the collections assigned to some of the other languages, so preparing a separate system for each would give each system a different amount of text to learn from. The joint collection gives all the downstream applications access to the same pretrained starting point.

Language coverage and evaluation coverage play different roles in this study. The pretraining corpus includes text assigned to all four languages. The token-labeling experiments concentrate on Croatian and Serbian, using both standard and non-standard material. The causal test is in Croatian, and the tweet geolocation task spans the region represented in the pretraining collection. The evaluation can therefore ask how useful the shared encoder is across several datasets and prediction problems. Its design provides different kinds of evidence for different languages.

The paper’s comparison with cseBERT is especially informative in this respect. The authors describe cseBERT as having seen an amount of Croatian comparable to the Croatian portion of BERTić’s training data, with no Serbian exposure. A Serbian evaluation then asks how a system with direct Serbian exposure compares with one that can draw on related Croatian material. The comparison also changes the overall amount of data and the training setup. A Serbian advantage can be observed directly on the benchmark, but attributing that advantage to the Serbian portion alone would require a different experiment.

#### What was already available?

The paper places BERTić in a line of work in which a transformer learns from a large general collection before being adapted to a labeled task. The idea is to prepare representations that can be reused. To construct a tagger, for example, a researcher can start with an encoder that has already learned to respond to a word’s surroundings. The labeled training data then teach it which distinctions the tagging scheme makes. The same initial encoder can be adapted separately to answer a question about a whole passage or to estimate a location from a tweet. These are examples of the broad approach the authors discuss under [language pretraining](https://md.research.elamur.ai/free/en/topics/language-models/).

The introduction points to systems developed for individual languages as evidence that the approach had already spread beyond English. CamemBERT and BERTje are the French and Dutch examples, respectively. BERTić follows the same broad idea of concentrating pretraining resources, but it defines its target as a set of related languages. The paper cites the earlier works for the existence of these dedicated efforts. Their results do not enter the BERTić experiments. [CamemBERT](https://md.research.elamur.ai/free/en/papers/martin-2019-camembert-tasty-french-language-model/) and [BERTje](https://md.research.elamur.ai/free/en/papers/de-vries-2019-bertje-dutch-bert-model/)

The two pretrained comparison systems represent different approaches to coverage. The authors describe mBERT as trained on Wikipedia corpora. It supplies a multilingual point of reference for the languages in the paper. cseBERT supplies a closer regional comparison, particularly because of the amount of Croatian it had seen. Including both makes it possible to distinguish two questions. One is how a concentrated corpus compares with a multilingual resource. The other is whether the new corpus and training setup add value when the comparison already has substantial access to closely related text. These questions lie within [multilingual and cross-lingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/).

The authors also have a point of comparison outside transformer pretraining. The CLASSLA production tagger uses the Stanza approach with static embeddings and a bidirectional long short-term memory network, or BiLSTM. A static embedding supplies a learned representation of a word that remains the same across its occurrences. The sequence network then processes words in relation to others around them. A pretrained transformer also draws on context, but it learns contextual token representations during its large-scale pretraining phase. Comparing the production pipeline with the transformer systems on available datasets shows how far the two approaches differ on existing annotation work.

#### Why the evaluation covers different jobs

The authors choose tasks that require predictions at different scales. In morphosyntactic tagging, the system assigns a detailed grammatical label to each word. The labels combine information about word class with distinctions such as number and case. Entity recognition also makes predictions within a sequence, but identifying a name can depend on what the words refer to. The authors use the same datasets for these two tasks, which helps a reader compare their results across text collections without changing the underlying sources.

Tweet geolocation and causal reasoning ask for decisions about larger inputs. In geolocation, the expected output is a location for a whole tweet. For causal reasoning, the system reads an event and compares possible explanations or consequences. The authors use an existing shared task for the first problem. They create a Croatian adaptation of an earlier benchmark for the second. Taken together, the tasks put different demands on the pretrained representations. Strong grammatical labeling would give an incomplete picture if the same encoder struggled to recognize names or to compare plausible events. Conversely, a causal-choice score would give little direct evidence about how accurately the encoder labels word forms.

This range also gives the authors grounds for a comparison that is central to their conclusion. They can ask whether the advantage of the new encoder appears mainly in tasks that require close attention to grammar or extends to tasks that may draw on knowledge of names, places and everyday events. The categories explain their choice of experiments. The scores can then indicate where gains appear, even though each benchmark mixes several skills and its metric has its own interpretation.

### The method, step by step

#### Assemble the pretraining collection

The authors first bring together existing collections. hrWaC, srWaC, bsWaC and cnrWaC come from the Croatian, Serbian, Bosnian and Montenegrin top-level domains, respectively. The Croatian web collection reflects crawls from 2011 and 2014. The Serbian and Bosnian WaC material comes from 2014, and the Montenegrin crawl dates to 2019. The Croatian portion also includes Riznica, which contains literary and newspaper writing. These sources give the project an existing base and contribute text collected at different times and in different ways.

Much of the earlier crawl material was available only through 2014, so the authors conduct fresh crawls of the Bosnian, Croatian and Serbian domains. They call the resulting collections the CLASSLA web corpora. They also draw on cc100, which supplies material from CommonCrawl. The result combines national-domain collections with a broader web source. Riznica adds a source whose selection explicitly includes literary works and newspapers. The training collection thus has a defined linguistic focus, while its sources vary considerably in size and origin.

When combining the collections, the authors use exact sentence matches to identify overlap. They remove a sentence from a new CLASSLA crawl when it is already present in the corresponding WaC material. This leaves the earlier copy in place. The proportion removed from each CLASSLA collection is in the single digits. They then remove sentences from cc100 that already appear in WaC or CLASSLA. This filtering removes around 15% of the CommonCrawl material used in the procedure.

The order matters because the rule is expressed in terms of sources already incorporated. WaC provides the comparison material for the CLASSLA pass. Both WaC and CLASSLA provide the comparison material for the cc100 pass. If a sentence occurs in an earlier source and again in a later one, the later source contributes no additional copy under this rule. The paper describes sentence identity as the criterion. A slight rewrite of a sentence can still add useful linguistic variation, and the method leaves no basis for counting how much near-duplicate material remains. The stated procedure is a way to prevent one particular form of repetition from inflating the merged collection.

The reported source sizes refer to words after deduplication. For Croatian, cc100-hr contributes 2,880,490,449 words, CLASSLA-hr contributes 1,341,494,461, hrWaC contributes 1,250,923,836 and Riznica contributes 87,724,737. These figures show why it matters to distinguish source type from source size. Riznica brings literary and newspaper material into the mix, while each of the Croatian web collections contributes much more text. The identity of a source tells the reader what kind of collection it is. Its word count indicates how much it can contribute to pretraining.

In the Serbian portion, CLASSLA-sr accounts for 752,916,260 words, cc100-sr for 711,014,370 and srWaC for 493,202,149. For Bosnian, the new CLASSLA-bs crawl provides 534,074,921 words and bsWaC provides 256,388,597. The Montenegrin cnrWaC corpus contributes 79,451,738. The combined collection contains 8,387,681,518 words. The mix gives the encoder exposure to the target languages at different scales. It also makes clear that a joint corpus can cover several languages without supplying each with the same volume or the same combination of source types.

#### Learn a vocabulary and preserve the written forms

Before pretraining, the authors need a way to turn text into sequences the encoder can process. They use WordPiece [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/). In this approach, the vocabulary can contain units that recur within words as well as units that represent entire words. If a written form can be represented by several familiar pieces, it can enter the sequence without requiring a separate vocabulary entry for that entire form. This is the distinction between the corpus counts and the items processed by the encoder. The source table counts words, and the vocabulary specifies the units available for expressing those words as input.

The vocabulary contains 32 thousand tokens. The authors train the tokenizer with the HuggingFace tokenizers library, using a random sample of 10 million paragraphs from the combined collection. The sampling figure describes the material used to learn the vocabulary. After vocabulary learning, the resulting tokenizer can encode text from the broader corpus for pretraining. There is a practical division here between deciding which pieces the system can use and teaching the encoder what sequences of those pieces reveal about their contexts.

The authors identify character preservation as a departure from the original BERT preprocessing. BERTić retains Unicode characters, including letters with diacritics. In practical terms, a written form with an accent or other mark reaches the tokenizer with that distinction intact. This gives the tokenizer and encoder access to a feature of the original writing. The paper gives no comparison against an otherwise identical encoder trained after diacritic removal, so the character policy is part of the method as implemented.

The vocabulary is shared across the collection. When a piece occurs in text from more than one source, the encoder can reuse that input unit. This is one way the chosen corpus and the tokenizer work together. The corpus determines which texts are available, while tokenization determines how their written forms are presented to the encoder. The aggregate vocabulary size describes the inventory used for all the text. It gives no count of how much of that inventory is specific to any particular language or how long a typical word becomes after segmentation.

#### Turn ordinary text into a training signal

Electra gives the authors a way to learn from the collected text without requiring a human to label each sentence. A smaller generator proposes tokens to replace selected items in an input sequence. The larger component, the discriminator, sees the resulting sequence and learns to tell which items were preserved and which were replaced. The training process already knows the original sequence, so it can build the supervision from the relationship between the input text and the altered version.

Suppose a replacement fits the shape of a sentence but is an unusual choice in its context. To identify it, the discriminator can draw on surrounding material. Some surrounding clues may concern grammar, such as whether a form fits the construction. Others may concern typical uses of a word in a phrase. This illustrates the signal the objective supplies. The training example asks the discriminator to decide whether each input token has been replaced. Over many examples, that repeated decision gives the encoder opportunities to learn distinctions useful for later tasks.

The paper contrasts this arrangement with the masked prediction objective used by BERT. In masked prediction, the training exercise is to recover hidden items. Electra uses proposed substitutions to create a discrimination exercise. Its authors had argued that the replacement objective makes more efficient use of computation. BERTić adopts the approach and evaluates the resulting encoder. The paper’s downstream experiments are not a timing or efficiency comparison between the two pretraining objectives.

Most settings follow the base configuration described for Electra. The main encoder contains 110 million parameters in 12 transformer layers. Parameters are the values adjusted in training, while the layers are the successive stages through which the encoder processes a sequence. The authors use a batch size of 1024, which they report as the largest batch that fit their 8 TPUv3 units. A batch is the group of training inputs processed together for an update. Training runs for 2 million steps, described as approximately 50 epochs. An epoch is a pass through the training material, so the reported epoch count conveys that the process repeatedly worked through the collection.

Preparing and adapting BERTić The steps in order.

#### Adapt the encoder to each prediction task

Pretraining supplies a shared starting point. For the evaluation, the authors then adapt it using task-specific examples. In grammatical tagging, an input sequence comes with a grammatical label for each word. The system has to learn the distinctions made by that dataset’s annotation scheme. In entity recognition, the labels describe which parts of the input name entities and how those entities are categorized. These adaptations use the same four underlying collections, with supervision appropriate to each task.

For those token-level experiments, the authors use Bayesian hyper-parameter search through the Weights & Biases platform. Hyper-parameters govern the training procedure. Here the variables selected by the search are the initial learning rate and the number of training epochs. The initial learning rate controls how large the early updates to the trained values can be. The epoch count controls how long the adaptation proceeds. The search allows 30 iterations for each encoder and dataset, explores learning rates from 9e-6 to 1e-4, and considers 3 to 15 epochs. The reported scores then summarize five training runs for each condition. Search iterations and reported training runs serve different purposes. The search chooses settings, and the repeated runs give the authors a basis for comparing average performance under their experimental procedure.

The geolocation task uses another adaptation schedule. The authors carry over the method developed for the shared task, using a batch size of 64 and training for 40 epochs. They use median distance on the development data to choose which trained checkpoint to retain. A checkpoint records the trained values at a particular point in adaptation. This choice ties selection to the ability to predict locations closely for the typical example as measured by the median. The reported test results then show both the median and the mean distance for the retained systems.

The difference between the development and test measurements is important here. The development median determines which version of an encoder is taken forward. The test median and test mean evaluate that selection on the test set. For geolocation, the authors give the size of the training collection as their reason for reusing the existing setup without further hyper-parameter search. The comparison applies a common procedure across the encoders while allowing each to reach its best development median at its own point in training.

#### Build the Croatian causal task and score its alternatives

COPA-HR adapts a benchmark in which an event is given as a premise and the question asks for a likely cause or effect. The answer must be selected from the alternatives supplied with the question. In one of the paper’s examples, the premise concerns a broken toe. The alternatives involve either a damaged sock or a hammer landing on the person’s foot. The hammer is the plausible cause because it supplies a way for the injury to occur. Both alternatives have subject matter related to a foot, so recognizing topical association alone would give an incomplete basis for the decision. The direction of the relationship matters as well. A question about a cause asks what could have led to the premise, while an effect question asks what could follow from it.

The translation follows the method used for [XCOPA](https://md.research.elamur.ai/free/en/papers/ponti-2020-xcopa-multilingual-dataset-causal-commonsense/), which applied the original benchmark to 11 typologically balanced languages. Translating the words is part of the work. Preserving the relation that makes one answer preferable is another. The Croatian translator chooses the more plausible alternative on the basis of the translated item. The authors compare these selections with the original English annotations. The choices agree throughout training and development, with one disagreement among the 500 test examples.

In that disagreement, the premise describes a person pausing their speech. The possible explanations concern loss of voice and shortage of breath. The original annotation chose the loss of voice, and the Croatian translator chose running out of breath. The authors regard the item as unclear. The example illustrates the value of checking the preferred answer during translation. A translator can make sense of both alternatives and still judge their relative plausibility differently. The paper reports this comparison between judgments and makes the translated dataset available through CLARIN.SI.

To use the benchmark, the authors turn each question into sentence pairs. A pair contains the premise and one alternative. Separate classifiers are trained for cause and effect questions, so the question type determines which classifier will score a pair. At evaluation, each alternative is paired with the same premise and scored separately. A softmax converts the classifier’s scores for the classes of a pair into values on a common scale, with the values for that pair forming a probability distribution over its classes. The decision compares the two positive-class values. The alternative with the higher value is selected. The following notation expresses that decision.

```
â = argmaxₐ∈A p₊(P, a)
```

Here â is the selected alternative. A is the set of alternatives supplied with the item, and a denotes a member of that set. The membership sign ∈ specifies which candidates are considered. P is the premise, and p₊ is the positive-class value after softmax for the pair consisting of P and a, as scored by the classifier for the applicable question type. The subscript + identifies the positive class. The argmax operation returns the candidate with the greatest value, and = assigns that candidate to â. The parentheses group the inputs to the scoring function, with the comma separating the premise from the candidate.

This scoring procedure makes the comparison at the level of alternatives even though the classifier operates on individual pairs. A system can assign both alternatives high positive scores or both low ones. Its answer still depends on their order within that item. The test then checks whether the preferred candidate is the one marked as correct. For hyper-parameter optimization the authors use the same approach as in the token-level tasks, which provides a common search procedure across these parts of the evaluation.

### Experiments and results

#### What the comparisons measure

The benchmark results answer two related questions. The first is whether BERTić generally ranks above mBERT and cseBERT under the task-specific procedures the authors use. The second is where the gap is large enough to change the practical interpretation of the result. The four tasks use different measures. A higher F1 means stronger performance on one of the labeling evaluations, a lower prediction distance is preferable in geolocation, and higher accuracy means more correct choices in COPA-HR. Comparisons are clearest within a dataset and a metric.

For the token-level tasks, the four evaluation datasets cover two languages in two varieties. hr500k represents standard Croatian and ReLDI-hr represents non-standard Croatian. SETimes.SR supplies standard Serbian and ReLDI-sr supplies non-standard Serbian Twitter text. The same datasets support both grammatical and entity labels. The CLASSLA production system has reported scores on the standard-language datasets, and the three pretrained encoders have results throughout. The absent production scores for the ReLDI datasets leave those comparisons among the pretrained systems.

Repeated runs matter because the procedure for adapting a pretrained encoder can yield different scores on successive attempts. The authors report averages over five runs for the labeling tasks and COPA-HR. For these comparisons they use a two-sided t-test on runs of the systems with the two highest averages. The test addresses evidence for a difference between those runs under the procedure. It should be read alongside the size of the observed gap and the characteristics of the test dataset. The geolocation study follows a separate protocol and has no reported significance test.

#### Detailed grammatical labeling

Morphosyntactic labeling asks the system to recognize [part of speech](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) and [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/) together in a detailed tag. A noun tag, for instance, can specify that the word is common, masculine, accusative, singular and animate. Each word receives a class from an inventory with hundreds of possibilities. Correctly calling a word a noun can therefore leave several decisions unresolved. The full tag asks which grammatical properties the word has in this occurrence.

The results are reported as microF1, averaged over the training runs. F1 combines precision and recall. Micro-averaging pools the underlying decisions over the tag classes before computing the score, so common decisions contribute in proportion to how often they occur. The reported figure gives an aggregate view of token labeling. Because the task uses a detailed inventory, individual tag distinctions can behave differently while contributing to the same aggregate.

On standard Croatian hr500k, BERTić reaches 95.81 average microF1, ahead of cseBERT at 95.74. mBERT scores 94.60 and the CLASSLA tagger scores 93.87. BERTić’s advantage over cseBERT is marked at p\<=0.001. The ordering puts both pretrained regional systems above mBERT and the production tagger on this dataset. The scores for the leading systems are close, and the statistical marker concerns the evidence for the ordering across the repeated runs.

For non-standard Croatian ReLDI-hr, BERTić scores 92.28 average microF1. cseBERT reaches 91.63 and mBERT reaches 88.87. On non-standard Serbian ReLDI-sr, the scores are 93.90 for BERTić, 93.54 for cseBERT and 91.26 for mBERT. The BERTić leads on both datasets receive the p\<=0.001 marker. These datasets matter because the grammatical task here involves text outside the standard-language setting. The leading system stays the same across the two non-standard datasets, while absolute performance also reflects the particular examples and annotations each collection contains.

On standard Serbian SETimes.SR, cseBERT has the highest reported average microF1 at 96.41. BERTić scores 96.31, mBERT 95.50 and CLASSLA 95.00. The authors report an insignificant difference between cseBERT and BERTić. They point to the source of the data as a possible explanation. SETimes.SR contains text from a single newspaper, making the writing relatively uniform between training and testing. Adaptation on labeled text from the same source may make this task less dependent on the additional variety that BERTić encountered during pretraining. That is an interpretation of the dataset and the observed scores, and the paper does not vary source diversity experimentally.

#### Recognizing names in standard and non-standard text

The entity recognition experiment uses the same collections and the same search and repeated-run procedure. The output has a different meaning from a grammatical tag. The encoder needs to support decisions about which mentions are names and what kinds of entities they refer to. A form can participate in ordinary grammar while its use as a name depends on the surrounding words. The authors report average F1 for this task. A higher score reflects a better balance between correctly predicting the entities included in the output and recovering those in the reference annotation.

On standard Croatian hr500k, BERTić records 89.21 average F1, cseBERT 88.98, mBERT 85.67 and CLASSLA 80.13. On non-standard Croatian ReLDI-hr, BERTić records 83.05, cseBERT 81.38 and mBERT 76.06. The paper marks both BERTić leads at p\<=0.0001. Both datasets place the same pretrained systems in the same order. The comparison on hr500k also shows how the entity results differ from the tagging results on the same collection. The production system remains much closer to the pretrained systems for grammatical labeling than it does for recognizing names.

Non-standard Serbian ReLDI-sr gives the clearest separation between BERTić and cseBERT in the entity experiments. BERTić reaches 87.92 average F1, with cseBERT at 82.76 and mBERT at 81.29. The lead over cseBERT is marked at p\<=0.001. BERTić’s direct exposure to Serbian text makes this result particularly relevant to the authors’ question about coverage. The experiment compares systems that also differ in data volume and pretraining objective, so the score by itself cannot determine which difference contributed most.

Average named entity recognition F1 on non-standard Serbian ReLDI-sr BERTić leads both comparison systems on the Serbian Twitter dataset.

**The numbers**

| System or setting | F1 |
| --- | --- |
| mBERT | 81.29 |
| cseBERT | 82.76 |
| BERTić (this paper) | 87.92 |

SETimes.SR gives a different ordering from the other entity datasets. The reported average F1 values are 92.41 for mBERT, 92.28 for cseBERT, 92.02 for BERTić and 84.64 for CLASSLA. The table places mBERT first numerically. The authors interpret the standard Serbian task as another setting without a significant lead and again point to the homogeneous newspaper source. The numerical results put all three pretrained systems close to one another. They also put the production tagger below the pretrained systems, even on a dataset where BERTić’s additional pretraining does not produce a lead.

Together these comparisons show why it matters to keep the dataset visible when reporting success. Saying that BERTić generally improves entity recognition captures the pattern of leads, but it would miss the contrast between the small lead on standard Croatian, the larger separation on non-standard Serbian and the ordering on standard Serbian. Similarly, the fact that BERTić leads both labeling tasks on ReLDI-sr would leave a major distinction unstated. The gap between BERTić and cseBERT is much more pronounced for the entity labels than for the grammatical labels on that dataset.

#### Predicting locations from tweets

The Social Media Geolocation task, SMG2020, comes from the VarDial 2020 evaluation campaign. The input is a geolocated tweet from Croatia, Bosnia, Montenegro or Serbia, and the target is its latitude and longitude. A prediction can be useful even when it misses the exact coordinates. The benchmark measures the distance between the predicted and reference locations. The test set contains 39,723 instances, and the training set contains 320,042. The paper evaluates a centroid baseline, mBERT, cseBERT and BERTić. cseBERT supplies a particularly relevant comparison because the winning shared-task approach used it.

Median distance describes the middle of the distribution of errors when the distances are ordered. Mean distance averages the errors and therefore gives large misses greater influence on the reported value. The measures address different aspects of the same prediction problem. A system whose typical predictions improve can lower its median, while improvements among particularly distant predictions can also matter for the mean. The paper reports both, with lower values preferable.

Median test geolocation error on SMG2020 BERTić improves on the encoder used by the shared-task winner.

**The numbers**

| System or setting | Median distance |
| --- | --- |
| Centroid | 107.10 |
| mBERT | 42.25 |
| cseBERT | 40.76 |
| BERTić (this paper) | 37.96 |

The mean test distances give the same order as the median. BERTić has a mean of 79.30, cseBERT 81.88, mBERT 82.05 and the centroid baseline 145.72. With BERTić leading on both measures, its advantage extends to the summary used for development selection and the mean reported at test time. The two aggregate measures leave open how the gains are distributed among locations or kinds of tweets. The reported result is an improvement in overall distance under the carried-over training and selection procedure. The authors performed no statistical test for this task.

#### Choosing plausible causes and effects

The Croatian causal benchmark evaluates whether the preferred alternative is correct. With 400 training examples, the labeled training stage has a much smaller collection to work with than the geolocation experiment. The development set has 100 examples and the test set has 500. The comparison starts from encoders that have already learned representations from large general collections and asks them to adapt to the kinds of pairs in COPA-HR. The same benchmark then measures whether that adaptation yields sensible rankings of the two alternatives.

Accuracy is the proportion of test items answered correctly. The authors give a chance reference of 50% for the balanced test set. The reported accuracy values are averages over five training runs. In the chart, the random reference is written on the same scale and with the same precision as in the paper’s results table.

Average test accuracy on Croatian causal choice in COPA-HR BERTić leads cseBERT, and both score above multilingual BERT.

**The numbers**

| System or setting | Accuracy % |
| --- | --- |
| Random | 50.00 |
| mBERT | 54.12 |
| cseBERT | 61.80 |
| BERTić (this paper) | 65.76 |

BERTić’s average test accuracy is 65.76, with cseBERT at 61.80 and mBERT at 54.12. The leading comparison is marked at p\<=0.01. The authors also report that both more closely targeted systems significantly outperform mBERT. The rankings suggest that pretraining choices matter for success on a Croatian plausibility task. A correct response is one observed preference between alternatives. The benchmark evaluates that preference against the labeled answer, so a higher score establishes stronger performance on the choice task. It does not identify how a particular answer was obtained.

### What the ablations show

The paper reports no component ablations, but it offers comparative analyses across tasks, datasets, language varieties and pretrained systems, as well as an agreement check for the Croatian causal benchmark.

#### Data volume and the training objective

BERTić and cseBERT give the authors their closest comparison. Both have substantial access to Croatian during pretraining, and BERTić adds material in other closely related languages. They also use different approaches to pretraining. The authors argue that the larger total amount of text is probably the main reason for BERTić’s advantage. The results are compatible with that interpretation. A system trained on the larger collection leads on most of the comparisons, and gains appear on Croatian as well as Serbian tests.

The experiment leaves several candidate explanations connected. The base comparison changes the training objective along with the data. The corpus mixes newer and older sources, and its language and genre composition differ from those of the reference systems. Character handling is part of the BERTić configuration. The paper does not report a version trained with less data while keeping that configuration fixed, or an otherwise matched version trained with the BERT objective. Its evidence supports choosing among the evaluated systems for these tasks. An estimate of the contribution of corpus size on its own would require a comparison arranged around that variable.

The authors’ claim about scale is also different from the efficiency claim they cite for Electra. One concerns why BERTić’s downstream scores may be better. The other concerns how effectively a training objective uses computation. The reported runs establish the settings used to build BERTić and the scores obtained after adaptation. They supply no matched training curves or compute-normalized results for cseBERT and BERTić. The two explanations can therefore be plausible at once without the paper determining their relative importance.

#### Grammatical labels and decisions that may draw on world knowledge

The authors see a broad pattern in the task results. The advances on detailed grammatical tagging tend to be modest, while the advantages are more pronounced on entity recognition, geolocation and causal choice. They suggest that the latter tasks place greater demands on information about the world and on ordinary expectations about what happens. Entity recognition can benefit from familiarity with names. Place prediction can benefit from associations between expressions and regions. A plausible cause or effect can depend on ordinary relations between events.

The contrast between two evaluations on the same corpus is particularly useful. In non-standard Serbian ReLDI-sr, BERTić and cseBERT are close in morphosyntactic tagging and farther apart in entity recognition. The source material is shared, which gives the comparison a firmer basis than comparing scores from unrelated datasets. The labels and the scoring still differ by task. The result shows a different pattern of gains when the output changes from detailed grammar to entity labels. It does not directly measure the amount of world knowledge stored in either encoder.

The production tagger gives another comparison within the standard-language datasets. The paper finds it relatively competitive for grammar and farther behind for entity recognition. The authors connect this with the difference between pretrained contextual representations and the static embeddings that support the BiLSTM tagger. That account explains why training over a broad collection might have more value for recognizing names than for applying familiar grammatical categories. The experiment compares complete pipelines, and the result supports the task-level observation without assigning the entire gap to the embeddings alone.

#### Direct language exposure and variation within a dataset

The language comparison asks whether BERTić improves more on Serbian than on Croatian, given that it includes extensive Serbian pretraining and cseBERT did not train on Serbian. The authors identify named entity recognition on ReLDI-sr as the main case where the expected difference appears clearly. Across the other comparisons they find no consistent tendency towards larger improvements in Serbian. They take this pattern as evidence that small linguistic differences among these closely related languages need not have a large effect on the performance of the systems they evaluate.

The comparisons offer a more specific picture than a single ranking would. The largest entity gap occurs in non-standard Serbian, while the standard Serbian newspaper dataset yields small differences among the pretrained systems. A language designation and a text variety describe different features of a dataset. Serbian Twitter material and a Serbian newspaper collection can present different prediction problems even though both are Serbian. This makes the lack of a uniform Serbian advantage compatible with the striking advantage on the Twitter entity labels. It also makes it difficult to assign that advantage to direct language exposure alone.

The same reasoning applies to the authors’ account of SETimes.SR. A single newspaper may provide recurring grammatical constructions and kinds of names across training and testing. If those regularities are accessible from labeled examples, the benefit of additional pretraining may be less visible on the aggregate scores. The paper provides the source description and the close outcomes. A comparison with multiple newspapers gathered and split under the same conditions would be needed to estimate the effect of single-source evaluation.

#### Agreement during translation

The COPA-HR check addresses a different question from the score comparisons. The translator makes plausibility judgments on the Croatian items, and the authors compare those decisions with the original labels. Agreement across training and development and the isolated test disagreement support the view that the translation generally preserves the distinction needed to use the task. This is evidence about the construction of the benchmark. It is separate from the test of whether a pretrained encoder can recover those choices.

The disputed example shows the kind of ambiguity the check can uncover. Both loss of voice and running out of breath can account for an interruption in speech, and their relative plausibility depends on how the premise is read. The example gives a concrete reason for inspecting agreement item by item during translation. The resulting paper can report both a strong overall correspondence and a particular point where a judgment changed, without treating all questions as equally unambiguous.

### Limitations

#### Limits stated by the authors

The authors recognize that the two leading encoders differ in how they were built. They present their explanation based on the larger pretraining collection as an assumption about the performance gap. That qualification matters because the results otherwise make it tempting to use the rankings as evidence for a single design choice. The scores show what the released configuration achieves after adaptation. The paper gives stronger evidence about its performance than about the mechanism responsible for that performance.

The standard Serbian results also qualify the authors’ broad conclusion. They single out SETimes.SR as a dataset on which a clear advantage is absent and explain that its newspaper material has limited variation between training and testing. Their account points to a property of the particular evaluation. It leaves open how the systems would compare across Serbian newspapers, across topics or under a split designed to separate sources. The paper’s finding on SETimes.SR is best read as performance on this collection of texts rather than as a ranking for standard Serbian in general.

For geolocation, the authors explicitly say they did not perform statistical testing and cite the size of the test set. The lower median and mean are reported outcomes under a common comparison procedure. The paper’s broader language about significant improvement across the tasks has to be read with this difference in evidential support in mind. Statistical markers apply to the reported repeated-run comparisons in the labeling and causal experiments. The geolocation result supports a numerical improvement on the test set.

The authors also report the causal translation disagreement rather than presenting agreement as uniform. Their explanation of the item concerns the ambiguity of the causal choice. The reannotation procedure gives a check on whether the Croatian text preserves the intended answer, and it documents where the judgments diverged. It does not extend to a study of how a larger group of Croatian speakers would judge that item or how strongly the other choices are preferred.

#### Limits that follow from the design

The word counts reveal substantial variation in exposure across the languages. Croatian has several large sources, while the Montenegrin material comes from one much smaller collection. The evaluations then cover the languages unevenly. The regional tweet task includes material from the areas named in the paper, but its aggregate distance scores do not give separate results for each. The detailed grammatical and entity evaluations cover Croatian and Serbian. The causal result concerns Croatian. The release is supported by this mixture of tests, with more direct evidence for some languages and uses than for others.

The source labels also give limited information about the diversity of the pretraining sample within a language. A national web domain can supply many kinds of passages, and the counts in the paper tell readers how much text each corpus contributes. They do not describe the full distribution by topic, genre or language variety. The deduplication procedure addresses identical sentences in the specified source comparisons. It does not establish that the training collection contains no repeated passages in other forms. The paper gives no benchmark-overlap analysis, so there is no reported estimate of whether test wording was encountered during pretraining. An absence of such an estimate is a limit on what can be concluded about novelty of the evaluated text.

Aggregate scores also leave important questions about the distribution of errors unanswered. MicroF1 for morphosyntax pools decisions across tags, so a high value can coexist with weaker tagging of infrequent forms. The named entity F1 results do not identify which entity categories or mention types account for the gains. The median and mean geolocation distances establish that both summaries improve, but give no territorial or linguistic breakdown of those improvements. COPA-HR accuracy combines the cause and effect questions even though the experiment trains separate classifiers for them. The paper therefore supports comparisons at the level of the reported task and dataset more directly than explanations about particular groups of inputs.

The causal task itself constrains the interpretation of the word *reasoning*. The system scores alternatives supplied with a premise. A convincing test result here requires making the labeled choice more often, and the benchmark does not ask for an explanation or for the generation of a cause. Topic associations, familiar sequences of events and causal knowledge may all help in choosing an answer. The classification score cannot tell which source of evidence was used on a given item. This is also why the difference between systems is evidence of relative performance on COPA-HR and only indirect evidence of the kinds of knowledge the authors propose as an explanation.

Finally, the repeated-run tests compare a particular set of systems on particular datasets. A significance marker can support a difference on that comparison without expanding the range of language varieties or tasks covered by the experiment. Likewise, the close ranking of mBERT, cseBERT and BERTić on standard Serbian entity recognition is evidence about the evaluation the authors ran. A broader conclusion about transfer among Bosnian, Croatian, Montenegrin and Serbian would depend on matching the evaluations more closely across languages and varieties. The paper offers evidence for shared pretraining as a useful starting point and a narrower basis for predicting when a particular language or task will benefit most.

### What came after

One later citing work moves the distinction among related varieties into the prediction task. BERTić uses the proximity of the languages as a reason to share pretraining, then evaluates what the resulting encoder can do with their texts. The BENCHić-LANG work concerns benchmarking discrimination between varieties, where the distinction itself is what the system has to identify. That places a different demand on language cues from the BERTić tagging experiments, which identify the language and variety through the choice of dataset before scoring the labels. The citation identifies a connection between the two works, while the title establishes the later benchmark’s focus. [BENCHić-LANG](https://md.research.elamur.ai/free/en/papers/rupnik-2023-benchic-lang-benchmark-discriminating-between/)

Serbian SuperGLUE takes up the broader question of evaluating systems for South Slavic languages. BERTić combines several kinds of downstream tests and contributes a Croatian adaptation of a causal-choice dataset. The later work’s stated aim is an evaluation benchmark for South Slavic language systems, with Serbian foregrounded in its title. The connection concerns the availability and organization of evaluation tasks. The citation establishes that the work refers to BERTić, while its stated scope gives no basis for assigning it a particular use of COPA-HR or the released encoder. [Serbian SuperGLUE](https://md.research.elamur.ai/free/en/papers/perovic-2026-serbian-superglue-evaluation-benchmark-south/)

The work on named entity recognition for Serbian legal documents brings an evaluation problem from BERTić into a specific domain. In BERTić, the Serbian entity results come from standard newspaper text and non-standard Twitter text, and those datasets produce different rankings and gaps. The later paper addresses dataset development and the design of entity recognition for Serbian legal material. That is a concrete extension of the range of Serbian text for which the task is being studied. Its citation connects it to prior Serbian entity recognition work that includes BERTić. [Named Entity Recognition for Serbian Legal Documents](https://md.research.elamur.ai/free/en/papers/kalu-2025-vsev-named-entity-recognition-serbian-legal/)

The work on the European benchmarking landscape addresses evaluation resources at a wider scale through a taxonomy and registry. BERTić is an example of a project whose evaluation uses existing annotation corpora, a shared task and a translated causal benchmark. A taxonomy and registry address how evaluations of different kinds fit into the broader landscape. The citation connects the registry work to the BERTić paper, while the later work’s title establishes its organizing purpose. It leaves the handling of particular resources, including COPA-HR, unspecified. [Charting the European LLM Benchmarking Landscape](https://md.research.elamur.ai/free/en/papers/vintar-2026-charting-european-llm-benchmarking-landscape/)

## Cite

Cite as Nikola Ljubešić and Davor Lauc. 2021. BERTić - The Transformer Language Model for Bosnian, Croatian, Montenegrin and Serbian. Proceedings of the 8th Workshop on Balto-Slavic Natural Language Processing.

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

```bibtex
@inproceedings{ljubesic2021bertic,
  title = {{BERTić - The Transformer Language Model for Bosnian, Croatian, Montenegrin and Serbian}},
  author = {Nikola Ljubešić and Davor Lauc},
  booktitle = {Proceedings of the 8th Workshop on Balto-Slavic Natural Language Processing},
  year = {2021},
  url = {https://aclanthology.org/2021.bsnlp-1.5/}
}
```

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