---
title: "BERTić — paper by Ljubešić and Lauc (2021)"
description: "BERTić uses shared pretraining for Bosnian, Croatian, Montenegrin and Serbian, with tests in tagging, geolocation and causal reasoning."
canonical: "https://research.elamur.ai/free/en/papers/c-2021-berti-c-transformer-language-model/"
---
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/c-2021-berti-c-transformer-language-model/)

[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ć and Davor Lauc · **Year:** 2021 · **Venue:** arXiv:2104.09243 · **Licence:** [CC BY-SA 4.0 (arXiv)](https://creativecommons.org/licenses/by-sa/4.0/)

Cited by **5** papers in our library of the 163,136 papers whose bibliographies we read · [licence](https://creativecommons.org/licenses/by-sa/4.0/)

- [arXiv 2104.09243](https://arxiv.org/abs/2104.09243)

## Summary

Bosnian, Croatian, Montenegrin and Serbian are closely related and mutually intelligible. For the authors of BERTić, that makes them candidates for a shared approach to [language pretraining](https://md.research.elamur.ai/free/en/topics/language-models/). The paper asks how well a system trained on a large collection drawn from all these languages performs on tasks already served by multilingual BERT and CroSloEngual BERT. The authors combine earlier web collections, fresh crawls, material from CommonCrawl, and a Croatian collection of literature and newspapers. After the reported deduplication, the training collection contains 8,387,681,518 words. The system learns with ELECTRA, a [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/) approach in which a small generator proposes substitutions in text and a larger discriminator learns to tell original tokens from replacements.

The evaluation asks BERTić to assign detailed grammatical labels to words, identify named entities, predict where a social media post was published, and choose a plausible cause or effect for an everyday event. The grammatical and entity experiments use standard and nonstandard Croatian and Serbian datasets. BERTić leads on three out of four datasets in each task. On SETimes.SR, the standard Serbian dataset, the comparison with CroSloEngual BERT yields no statistically significant difference in either task. In geolocation, BERTić improves on the CroSloEngual BERT result from the winning shared-task approach.

For causal reasoning, the authors introduce COPA-HR, a Croatian translation of Choice of Plausible Alternatives. Each question gives a situation and asks the system to choose between candidate causes or candidate effects. The translator independently selected a preferred answer while preparing the Croatian items. The training and development choices agreed with the English annotations, and the test choices differed on one item out of 500. With accuracy as the measure, BERTić significantly outperforms CroSloEngual BERT, and both outperform multilingual BERT significantly. The authors make BERTić available through HuggingFace and distribute COPA-HR through CLARIN.SI.

The comparisons establish how complete systems perform on the selected benchmarks. They also motivate a narrower question about why BERTić improves. The authors favor the larger training collection as the principal explanation for its advantage over CroSloEngual BERT, whose Croatian training material was comparable in quantity to BERTić’s Croatian material. The systems also differ in how they learn during pretraining, and the experiments leave the contributions of those changes unresolved.

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

BERTić uses shared pretraining for Bosnian, Croatian, Montenegrin and Serbian, with tests in tagging, geolocation and causal reasoning. · about 33 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

#### A regional system between broad multilingual coverage and separate training

The paper begins from a practical development in [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/). Transformer pretraining had improved performance on a range of language tasks, and the approach had begun to extend beyond English. The authors describe work that trained systems for individual languages, including French and Dutch, alongside work that put many languages into a shared system. This gave developers a choice about how broadly to distribute their training material. A broadly multilingual system could already support many languages. A dedicated effort could place more of its data and computing budget behind texts relevant to the languages it meant to serve.

BERTić explores a regional version of the latter approach. The authors group Bosnian, Croatian, Montenegrin and Serbian because of their linguistic proximity and mutual intelligibility. In the classification they cite, these varieties belong to the HBS, or Serbo-Croatian, macrolanguage. A shared training corpus allows text from these sources to contribute to the same learned representation. The paper treats that relationship as a reason to pool the data and then uses benchmark performance to assess the resulting system.

Pretraining and task training serve different purposes in this design. Pretraining uses the text collection to learn how tokens fit their surroundings. Task training then uses labeled examples to adapt that representation to a specific prediction, such as identifying the grammatical role expressed by a word form or selecting a likely cause for an event. This [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) step matters to the research question. The authors are testing whether the starting representation helps systems learn different supervised tasks from their respective labeled datasets.

The comparison has two particularly relevant starting points. Multilingual BERT, called mBERT in the paper, represents a broad multilingual approach trained on Wikipedia. CroSloEngual BERT, abbreviated cseBERT, provides a closer point of comparison. The authors say that its Croatian training material is similar in quantity to what BERTić sees in Croatian, while it lacks BERTić’s material from the other languages in the group. Consequently, the study asks how a regional system compares both with broad multilingual coverage and with a system that has already learned from substantial Croatian text.

This distinction affects the interpretation of a Serbian benchmark. The paper’s comparison with cseBERT concerns whether adding Serbian and other regional material is associated with an advantage on Serbian tasks, given that cseBERT already had Croatian material to learn from. Closeness between the varieties makes transfer a plausible reason for cseBERT to work there. The evaluation can examine the pattern across datasets. Assigning that pattern to the presence of explicitly Serbian text would require a different kind of comparison, with the other training choices held fixed.

#### Different tasks test different uses of the same starting point

A corpus assembled to support a language group can be evaluated at several levels. The grammatical task in this paper extends beyond broad [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/). Its labels combine word categories with inflectional properties. A prediction may need to express that a word is a noun and also specify properties such as case, number and animacy. Each word receives a detailed label. The setup rewards assigning the right bundle of features to an occurrence in context.

[Named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/) also requires predictions associated with words, but the question is which words are part of references to named entities. A system can use the form of a name, what it has encountered during training, and the surrounding language. That creates a different demand from grammatical labeling, even when both tasks use the same underlying texts. A sentence can be easy to analyze grammatically while a name in it is unfamiliar.

The other evaluations use a larger unit of text. In social media geolocation, the system reads a tweet and predicts geographic coordinates. The target is a position, so the evaluation can distinguish a prediction that lands nearby from one that lands farther away. In the causal task, the system considers a premise alongside a possible continuation or explanation. It then has to decide which of the given alternatives better fits the indicated direction of causation. The design broadens the inquiry from recognizing properties of individual words to interpreting relations across a message or between sentences.

That breadth fits the paper’s interest in what can be learned from pretraining material. Grammar, entity mentions, geographic cues and everyday causal judgments may all benefit from a good representation of context, but they call for different predictions. A comparison that holds across them makes a broader case for using the shared starting point. The tasks also leave room for the advantage to vary. When an established tagger already has features suited to grammatical labeling, for example, a new pretrained system may be competing against a strong task-specific method.

#### Existing datasets and the need for a Croatian causal test

The authors could build grammatical and entity experiments around annotated Croatian and Serbian datasets. They also had a social media shared task with geographic targets and an earlier winning approach to compare against. The causal experiment called for a different resource. The paper turns to Choice of Plausible Alternatives, or COPA, and to the translation procedure used for XCOPA, a multilingual extension of that task.

The format gives the authors a way to test everyday [reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/) with a defined answer and a straightforward accuracy measure. A premise describes something that happened. The question specifies whether the system should look for a cause or an effect. Both alternatives are written out, so the challenge is to compare their plausibility for that premise. The Croatian translation makes this test available in a language directly represented in BERTić’s training collection.

Translation also introduces a question about the evaluation itself. An alternative may sound more or less plausible once the premise and both responses are expressed in another language. A translated benchmark therefore has to preserve the relation that makes the intended answer preferable. The translator’s independent choices give the authors a way to examine that issue within COPA-HR. The resulting resource is both part of the BERTić evaluation and a separate contribution that another system could be tested against.

### The method, step by step

#### Assemble a collection with regional coverage

The authors begin with the WaC collections, which contain text gathered from national web domains. The Croatian hrWaC material comes from crawls in 2011 and 2014. The Serbian srWaC and Bosnian bsWaC material comes from 2014, while the Montenegrin cnrWaC material comes from 2019. The source collection also includes Riznica, whose Croatian literature and newspapers add material from outside the web crawls.

The age of most of the earlier crawls motivates a new collection effort. The authors crawl the Bosnian, Croatian and Serbian top-level domains and group the resulting datasets under the CLASSLA name. Top-level domains are a way to organize acquisition around the region. The corpus description uses them to identify where the crawler looked. The eventual downstream experiments concern language and task performance, so the source of a webpage and the language of all the text it contains are separate questions.

When adding the new crawl material, the authors compare it with the earlier WaC material at sentence level. A sentence from the new crawl is removed if the same sentence was already in WaC. This preserves the earlier collection and reduces how much of the new allocation simply repeats it. For each of the new corpora, the share removed remained in single-digit percentages. That figure concerns exact repetitions under the paper’s procedure. A sentence that expresses the same content in different wording falls outside the identity test as described.

The authors then bring in cc100 corpora derived from CommonCrawl. They apply the same principle with a larger comparison collection. If a cc100 sentence is already present in WaC or CLASSLA, it is removed from the cc100 contribution. This pass removes around 15% of the CommonCrawl material being considered. The asymmetry of both passes is important. The earlier collections stay in place, and each later addition is checked against specified material already assembled. The procedure tells the reader which exact overlaps were targeted at each step.

In all, the training collection reaches 8,387,681,518 words in the data section’s accounting. The paper also describes its scale in terms of more than 8 billion tokens. For understanding the next step, it is worth keeping the corpus count and the units of the training vocabulary distinct. The corpus count describes the quantity of text assembled. The tokenizer determines how that text will be represented when BERTić receives it, and a word can be represented by smaller pieces.

How BERTić is prepared and adapted The steps in order.

#### Learn the pieces used to represent text

The authors train a WordPiece tokenizer with the HuggingFace tokenizers library. In [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/), a vocabulary holds units that can represent a whole word where appropriate or combine to represent a word in pieces. This lets a fixed vocabulary serve text containing more distinct forms than it has entries. For BERTić, the vocabulary contains 32 thousand tokens. To fit it, the authors randomly selected 10 million paragraphs from the entire collection.

Sampling from the full collection gives the tokenizer exposure to the kinds of text assembled for shared pretraining. The sampling unit is a paragraph. The product of this stage is a vocabulary and a way of segmenting text, which the training procedure then uses to turn passages into sequences of tokens. Learning which pieces to use and learning contextual representations for those pieces are distinct stages. The first determines how input is written for the system. The second determines what can be inferred from an occurrence and its surroundings.

The paper singles out one difference from the original BERT preprocessing. BERTić preserves the Unicode characters in the input, retaining diacritics in particular. That choice matters at the point when written forms are converted into token sequences. If preprocessing removes a mark, the tokenizer cannot make use of the distinction it expressed. Retaining the character lets WordPiece learn from the spellings as they occur in the sample. The paper presents this as a design choice, and the benchmarking does not isolate its contribution.

It is also useful to distinguish a vocabulary entry from a full word annotation. The tokenizer can divide a written form according to its learned pieces, whereas the paper describes grammatical tagging as assigning a label to each word. These are different levels of the system. The vocabulary belongs to the shared representation used before task adaptation. The grammatical label belongs to a particular supervised task and is interpreted in relation to the annotated word.

#### Train the encoder to detect replacements

BERTić adopts the ELECTRA pretraining approach. ELECTRA sets up a learning problem from ordinary text by using a small generator to propose replacements. A larger discriminator sees the resulting sequence and learns to decide, at a token position, whether what it sees comes from the original text or from the replacement process. The training procedure itself supplies that distinction. The input corpus can therefore be used without first adding the kinds of annotations required for the downstream tasks.

The terminology describes the roles the components play. A generator supplies candidate content. A discriminator makes a decision about the status of the content it receives. For a reader new to the method, the core idea is that a substituted token can fit its surroundings to varying degrees. Learning to recognize substitutions gives the discriminator a reason to pay attention to how each token relates to the rest of the sequence. Its learned representation is then adapted during the supervised experiments.

The paper contrasts the learning signal with the masked-word prediction associated with BERT. Masked-word prediction asks the system to recover hidden material. The ELECTRA discriminator is trained to recognize whether visible material is original or replaced. The paper attributes an efficiency claim to the ELECTRA authors and uses the approach for BERTić. Its own experimental program focuses on downstream scores after pretraining, so that attribution should be kept apart from any measurement of computing efficiency in the BERTić study.

Most training choices follow ELECTRA’s base configuration. BERTić has 110 million parameters across 12 transformer layers. Parameters are the learned values that shape how the network transforms the input. The layers are successive processing stages that build contextual representations. The paper describes the generator as smaller than the main discriminator. The base-size figures characterize the scale of the BERTić system whose representations are used in the evaluation.

Training uses 8 TPUv3 units, and the authors set the batch size to 1024, the largest they report being able to use on that hardware. A batch is the group of examples used for a training update. The run lasts 2 million steps, which the authors describe as roughly 50 epochs. Steps count updates. Epochs relate the amount of training to passes through the dataset. These details specify the scale of the run alongside the corpus size. They do not supply a comparison of the cost of training BERTić and the systems used as baselines.

#### Adapt the shared representation to each task

The task experiments turn the pretrained representation into systems that predict specific targets. For morphosyntactic tagging, the target is a detailed grammatical class assigned to a word. For entity recognition, the target concerns whether words form part of a named reference. The evaluation uses the same Croatian and Serbian datasets for these two families of labels. That pairing makes it possible to see how the competing systems fare when they handle distinct annotations on the same set of corpora.

For the Transformer systems on these tasks, the authors search over the initial learning rate and the number of epochs. The learning rate controls how large a change training can make to the learned parameters on an update. The epoch setting controls how long supervised training proceeds in relation to the labeled dataset. The initial learning-rate search runs from 9e-6 to 1e-4. The search over epoch settings runs from 3 to 15. Each dataset and system has a budget of 30 Bayesian search iterations. In this kind of search, earlier trial results help determine which settings to try next.

That search gives each encoder a chance to adapt under the same stated procedure. A common search protocol also lets the chosen settings differ when different encoders or datasets benefit from different fine-tuning conditions. With those settings in place, the paper reports averages over five training runs for the tagging and entity tasks. The average describes performance across the repeated runs. The tests between the leading systems then use the run-level outcomes to consider whether the separation in averages is large relative to their variation.

The geolocation experiment has a separate protocol inherited from the shared-task approach. Fine-tuning uses a batch size of 64 and runs for 40 epochs. The authors keep the checkpoint with the smallest median error on development data. A checkpoint is a saved state reached during training. The use of development data assigns checkpoint choice to a separate split from the test data, which supplies the reported comparison. The authors undertake no additional hyper-parameter search for geolocation beyond the earlier shared-task tuning.

#### Translate, label and score causal alternatives

The authors follow the XCOPA methodology when preparing COPA-HR. Their translator renders the premise and the alternatives in Croatian and also chooses the alternative that seems more plausible in the translated item. The candidate choices are meant to express competing causes or competing effects, depending on the question. Comparing the translator’s choices with the original annotations checks whether the translation preserves which candidate a reader would prefer.

The causal direction changes what makes an answer appropriate. If the premise says that a man damaged his toe and the question asks for a cause, a heavy tool falling onto his foot can account for the injury. Discovering torn fabric in a sock offers a weaker explanation even though it concerns the same part of the body. A question about an effect would instead ask which candidate could plausibly follow from the premise. The benchmark gives the relation a direction and then asks the system to choose a statement that fits it.

To make each task item usable for sentence-pair classification, the authors pair its premise with each alternative in turn. The resulting inputs share the premise, and the candidate sentence varies. The authors train separate systems for cause questions and effect questions. Each system encounters examples from the corresponding relation. On evaluation, the system scores the pairs separately, the class predictions go through a softmax, and the alternative with the larger score for the positive class is selected.

The softmax operation named by the paper can be written as follows.

```
qᵢ = exp(sᵢ) / ∑ⱼ exp(sⱼ)
```

Here sᵢ is the input score at position i in the group of scores passed to the operation, and qᵢ is the corresponding output. The function exp takes the exponential of the score. The sum ∑ⱼ runs over the score positions j in that group, and sⱼ is the input score at each such position. The division gives each exponentiated score its share of the group’s total. This describes the normalization operation. The paper specifies the final choice in terms of the positive-class scores associated with the candidate pairs, without detailing every aspect of how the score array is arranged.

The selection rule can be expressed independently of that arrangement.

```
â = argmaxₐ∈A q₊(a)
```

A is the set of alternatives for the same premise, and a labels an alternative in A. The membership symbol ∈ restricts the choice to those alternatives. The function q₊(a) gives the positive-class score associated with alternative a after the reported softmax step. The argmax operation selects the alternative whose score is greatest, and â denotes the selected answer. This rule ends with a choice of one candidate for the original item. Accuracy is assessed on those choices, even though the scoring stage sees sentence pairs.

The authors use the token-task approach to hyper-parameter optimization for COPA-HR. That gives the comparison a supervised adaptation stage built around the same search procedure. The training, development and test sets in the original task format remain meaningful in spite of the conversion to pairs. A benchmark example represents a premise with competing alternatives. The premise–alternative pair represents the input used to score one candidate.

#### Interpret the paper’s significance notation

The tables for morphosyntactic tagging, named entity recognition and COPA-HR describe significance with a two-sided t-test between the two strongest outcomes over five runs. The test considers a difference in either direction. Its p-value is interpreted under the test’s assumption of no underlying difference and the other assumptions of the procedure. Smaller p-values provide stronger evidence against that assumption in the specific comparison.

The captions specify the following cutoff for tagging and also use it in entity recognition.

```
p ≤ 0.001
```

The symbol p stands for the p-value from the run-based test. The sign ≤ means that the value can be at or below the cutoff, and 0.001 is the stated cutoff for the corresponding significance marking.

The entity-recognition caption also lists a stricter cutoff.

```
p ≤ 0.0001
```

Here p again denotes the p-value from the run-based test, and ≤ permits equality with the cutoff. The value 0.0001 is the stricter significance level given for this task.

The COPA-HR caption gives a different cutoff for its marking.

```
p ≤ 0.01
```

In this expression, p is the p-value for the comparison of the leading causal reasoning systems. The sign ≤ includes values equal to or below 0.01, the cutoff given in that caption. Each expression describes the table’s reporting convention. The size of a performance difference is measured by the scores themselves.

### Experiments and results

#### The comparison spans different kinds of prediction

The paper’s common reference points are mBERT and cseBERT. Both already support language within the same macrolanguage, but their training coverage gives the comparisons different meanings. mBERT shows what a broad system pretrained on Wikipedia can do after task adaptation. cseBERT offers a reference closer to BERTić’s regional focus because of its substantial Croatian training data. In the word-level tasks, the authors also include results from the CLASSLA production tagger where those results are available.

Each benchmark uses a measure suited to its target. The tagging experiment aggregates decisions about grammatical labels. Named entity recognition evaluates recovery of the reference annotations. Geolocation measures the distance from a predicted coordinate to the recorded coordinate. COPA-HR gives credit when the selected candidate agrees with the answer key. These metrics answer different questions, so the paper’s overall comparison consists of a pattern across tasks. The numerical reporting in the prose includes sample sizes, settings and significance cutoffs. For the principal system scores, the reported conclusions specify rankings and significance without giving the exact margins in prose.

#### Morphosyntactic tagging on standard and nonstandard text

The Croatian evaluation uses hr500k for standard language and ReLDI-hr for nonstandard language. Its Serbian counterparts are SETimes.SR for standard language and ReLDI-sr for nonstandard Twitter language. The choice gives the study both a language comparison and a comparison across text varieties. Keeping those dimensions visible matters because standard and nonstandard datasets differ in the kind of text they contain, and their results can diverge even for the same language.

The target is a bundle of grammatical information. The paper illustrates the level of detail with Ncmsay, which marks an animate, masculine common noun in the singular accusative. To predict that class, the system has to assign the applicable combination to the occurrence as a whole. Identifying the word as a noun settles only part of the task. The label also depends on how the form is used and which grammatical distinctions it expresses in the sentence.

The comparison includes the production CLASSLA tagger wherever the authors have results for it. The paper identifies its basis as Stanford’s Stanza and describes its use of static embeddings and a bidirectional long short-term memory network, or BiLSTM. Static [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) assign learned representations to word entries. The bidirectional network can still use surrounding words when processing a particular occurrence. CLASSLA therefore provides a task-specific reference with a different way of representing and processing context.

The metric is average microF1 over five training runs for each tested dataset and Transformer system. Micro-averaging pools decisions across label categories before the measure is computed. F1 summarizes precision and recall together. Precision is concerned with how many predicted assignments are right, while recall is concerned with how many reference assignments are recovered. Under micro-averaging, categories with many annotated occurrences have more influence on the pooled score than categories with few occurrences. The reported average then combines the scores from the repeated runs.

BERTić leads on three out of four tagging datasets, with cseBERT taking the next position on those datasets. The comparison between BERTić and cseBERT on SETimes.SR is statistically insignificant. The tagging table’s caption specifies a two-sided test over five runs and a significance marking at p ≤ 0.001. The main numerical distinction the prose gives for tagging is the count of datasets with a lead. It does not give the per-dataset microF1 scores or the absolute margin on any of them.

The SETimes.SR outcome qualifies how the result should be summarized. BERTić performs strongly in standard and nonstandard evaluation, but the evidence for an advantage depends on the dataset. For standard Serbian, the paper describes both systems as performing similarly under the reported test. This comparison is especially relevant when considering the value of Serbian pretraining material, because the authors describe cseBERT as having seen no such data. The similar outcome is specific to the benchmark and the pair of systems tested.

#### Named entity recognition on the same corpora

Named entity recognition uses hr500k, ReLDI-hr, SETimes.SR and ReLDI-sr as well. The comparison systems and the hyper-parameter search procedure are carried over from morphosyntactic tagging. This creates a useful pairing of experiments. The paper can compare which system leads when the corpus remains the same and the kind of annotation changes. The task asks for named references, which can benefit from familiarity with a name or from context indicating how an expression is being used.

The caption reports average F1 over five training runs. It describes significance testing between the two strongest results and lists thresholds of p ≤ 0.001 and p ≤ 0.0001. The entity caption calls the measure F1, whereas the tagging caption explicitly calls its measure microF1. The prose supports the reported ranking on each task while leaving the details of how the entity measure aggregates categories unspecified.

The two leaders are again BERTić and cseBERT. BERTić performs better on three out of four datasets. Standard Serbian again produces no significant difference between them. The authors single out nonstandard Serbian named entity recognition in their cross-language interpretation, identifying it as the exception to their broader observation that improvements on Serbian were generally no greater than those on Croatian. The comparison is therefore informative at the dataset level even though the prose does not specify a numerical F1 gain.

The older production approach also helps the authors interpret the kind of benefit they observe. They describe BiLSTM-based tagging as still close to competitive for morphosyntax, while describing the same general approach as farther behind in entity recognition. That is a comparison across tasks with different predictions, instead of a comparison of scores on a shared unit. Its value lies in the pattern. The production approach remains a stronger reference for one labeling task than for the other.

#### Geolocation on social media

The geolocation benchmark is Social Media Geolocation, or SMG2020, from the VarDial 2020 evaluation campaign. It uses tweets published in Bosnia, Croatia, Montenegro or Serbia that carry location information. Each prediction specifies latitude and longitude. Using a coordinate as the target makes the size of an error meaningful. A system can miss the reference position by a small or a large distance, even though both predictions differ from the target.

The training split contains 320,042 instances, and the test split contains 39,723 instances. The evaluation pairs mBERT, cseBERT and BERTić under the setting described by the authors. cseBERT is particularly relevant here because the winning shared-task approach used it. The authors reuse the shared-task methodology, training for 40 epochs with a batch size of 64. They select the checkpoint that gives the smallest median distance on development data and use the test set to assess the resulting system.

The benchmark reports both median and mean distance between predicted and reference coordinates. Median distance describes the middle of the ordered errors and gives a sense of a typical result under that definition. Mean distance gives each instance’s error weight in the arithmetic average and can move substantially when some predictions are especially far away. A system can consequently have a favorable median with a less favorable mean. Reporting both makes room for differences between ordinary and larger errors.

The authors report that BERTić improves on the result of cseBERT, the encoder used in the winning approach. The prose names the comparison and the distance measures but leaves their score values to the results table. The table caption explicitly says that no statistical testing was performed for this evaluation, citing the size of the test set. The geolocation finding is accordingly an observed improvement under the shared-task protocol. The run-based significance statements from the word-level experiments and COPA-HR are separate results.

The data support a conclusion about predicting coordinates for these geo-encoded posts. Their language can carry information associated with place, and a useful representation can also respond to localized references in the text. Since both kinds of evidence can contribute to the same distance score, the metric evaluates the resulting location predictions. It gives no breakdown by the particular textual cues behind them.

#### Causal reasoning on COPA-HR

COPA-HR contains 400 training examples, 100 development examples and 500 test examples. An example includes a premise, the direction of the causal question and the alternatives. The authors describe the questions as divided roughly evenly between causes and effects. The split sizes below count original benchmark examples, before alternatives are turned into separate input pairs. The test split supplies the items for the reported accuracy comparison.

COPA-HR example counts by benchmark split The test split contains the most examples.

**The numbers**

| System or setting | examples |
| --- | --- |
| Training | 400 |
| Development | 100 |
| COPA-HR test (this paper) | 500 |

The translation check gives a direct comparison between the Croatian translator’s preference and the English answer key. The choices agree throughout the training and development splits. On the test split, one choice out of 500 differs. The premise in that item describes a speaker pausing, and the candidates suggest loss of voice or running short of breath as the cause. The Croatian translator prefers the breathing explanation, while the English answer key prefers the explanation about the speaker’s voice.

The authors treat the item as unclear. Both alternatives can plausibly interrupt speech, and the description of the pause gives the reader limited grounds for preferring one. The disagreement matters because the benchmark rewards the choice designated by the key. Consistency between translated and original choices is therefore directly relevant to interpreting accuracy. Even with strong agreement overall, the example shows how an individual forced choice can depend on a fine judgment about plausibility.

The metric is accuracy, the share of original items answered correctly. It applies after the scoring procedure has considered the premise with each candidate separately. The test is balanced, and the paper gives 50% as the random baseline for the test split. That percentage represents chance choice in the benchmark, rather than a score observed from fine-tuning one of the encoders. The reported encoder results are averages over five training iterations.

The paper reports that each of the language-focused systems significantly outperforms mBERT. Within that leading pair, BERTić has a significant advantage over cseBERT. The table caption gives p ≤ 0.01 for its significance marking and describes testing over five runs for the two strongest results. The prose establishes the ranking and the authors’ significance claims. Exact average accuracies and the margins between systems are left unspecified in that account.

COPA-HR differs from the other tasks in how a correct answer is obtained. The relevant information lies in how the candidate relates to the premise and in the causal direction requested. Each candidate may be entirely grammatical, and words in a weaker answer may still be associated with the topic. To succeed by the intended reasoning, the system needs to prefer the candidate that supplies a better explanation or consequence. The experiment measures how well the systems make those selections in a controlled choice format.

#### Read the gains in the units of each task

Taken across the experiments, the reported rankings give a consistent reason to consider BERTić as a starting point for adaptation. Its advantage appears in word-level annotation and in the tasks that use whole messages or sentence pairs. Its main exception is concentrated in the same source dataset across the two word-level tasks. The findings are most precise when tied to those conditions. The tagging lead is a comparison of average microF1 values, the entity lead is a comparison of average F1 values, the geolocation improvement concerns distances, and the causal reasoning lead concerns accuracy over multiple-choice items.

The distinction between an observed lead and a tested difference also matters. The paper provides repeated-run significance procedures for both word-level tasks and for the causal experiment. It gives a different basis for describing the geolocation result, using observed test distances under the shared-task setup. In addition, the size of an effect and the consistency of that effect across runs are separate properties. The test annotations and the significance cutoffs indicate how evidence for a difference was assessed. Reading the practical size of a gain would require the corresponding score values.

### What the ablations show

The paper reports no controlled pretraining ablation. Its analyses come from comparisons between complete systems, contrasts across datasets and tasks, and an agreement check on the new translation. These analyses show where performance differs and where it converges. They offer possible explanations for those patterns, with different evidential weight from experiments that change one training choice at a time.

#### Standard Serbian behaves similarly across two labeling tasks

The clearest recurring comparison is on SETimes.SR. In both tagging and entity recognition, the authors find no significant difference between BERTić and cseBERT on this dataset. Other datasets in each task give BERTić the stronger outcome. Repetition on the same corpus makes it reasonable to ask what the corpus has in common across the two tasks. The paper points to its source. The texts are from one newspaper, and the authors describe the training and test material as having limited variation.

That explanation has a concrete implication. With similar styles and subject matter appearing across the training and test splits, supervised adaptation may be able to use strong regularities shared by both. An encoder with wider exposure during pretraining might consequently have less opportunity to show an advantage. The observed convergence is consistent with that account. The paper does not vary source diversity within SETimes.SR, so the effect of using a single newspaper remains an interpretation of the dataset comparison.

The result also helps keep the language comparison grounded. The nonstandard Serbian corpus differs from SETimes.SR in register and source. Any contrast between the two Serbian datasets therefore combines several properties of the data. The experiments show that the leading systems relate differently across those settings. They cannot attribute that change to standardness, source diversity or any other individual characteristic in isolation.

#### More regional training text is a plausible contributor

The authors place particular weight on the comparison with cseBERT. The systems see comparable amounts of Croatian material according to the paper, while BERTić also sees the rest of the regional data in its collection. The authors suspect that the resulting increase in pretraining material accounts for most of the performance difference. This is a plausible reading of the comparison. Exposure to a larger collection can provide additional examples of linguistic forms and contexts relevant to the tasks.

Several choices change together in that comparison. BERTić uses ELECTRA and has its own corpus construction and tokenizer. cseBERT comes from a different pretraining approach and collection. The experiments therefore answer the practical question of how the released systems compare after adaptation. A test of the proposed data explanation would require holding pretraining and other choices fixed while changing which text is used. The paper’s comparison supplies the observation that motivates such a question.

The authors also ask whether explicitly seeing Serbian text helps more on Serbian tasks than the regional training effort helps on Croatian ones. They report no general pattern of greater Serbian gains, aside from named entity recognition on the nonstandard Serbian dataset. This finding narrows the practical claim. An encoder with extensive exposure to Croatian can remain a strong comparator for Serbian given the tasks and datasets used. How much Serbian text contributes to either task, taken separately from all the other changes, remains unresolved.

#### The task contrasts suggest different demands on pretraining

The authors characterize the improvements in morphosyntactic tagging as smaller than the improvements in the remaining tasks. They interpret this as a sign that entity recognition, geolocation and causal choice benefit more from information about the world and everyday events. Their comparison with the BiLSTM approach follows the same line of reasoning. The production tagger is closer to the Transformer systems for grammatical labeling and farther behind for entity recognition, where exposure to names and contexts may matter more.

The result is a qualitative contrast. MicroF1 on grammatical labels, F1 on entities, geographic distance and accuracy on causal choices are different scales. A gap in one metric does not share a unit with a gap in another. The authors’ interpretation concerns how strongly competitors perform on their respective tasks. It also draws on a plausible distinction between the types of information those tasks demand. The study measures predictions and does not separately measure how much world knowledge each system acquires.

Within the two word-level evaluations, the use of the same corpora helps with interpretation. Topic, register and source stay more comparable than they would across entirely different benchmarks, while the labels change from grammatical categories to named entities. This lets the authors observe that the traditional task-specific method’s relative position depends on the annotation problem. The contrast still includes differences in label distributions and evaluation conventions, so it gives evidence about the completed tasks as a whole.

#### Translation agreement checks the benchmark

The COPA-HR agreement exercise is the paper’s most direct check on an individual component of evaluation. The translator makes an independent plausibility judgment while translating. Agreement with the original choices across the training and development sets, and on all but one test item, supports the conclusion that this translator generally understood the preferred alternative in the same way in both languages. That addresses whether translation altered the intended decision, a prerequisite for interpreting the Croatian benchmark as an adaptation of COPA.

The disagreement also gives the analysis a concrete counterexample. A reader can understand both translated candidates and still choose differently about what best explains a pause in speech. The authors’ discussion shows where the annotation depends on a close comparison between plausible causes. This check concerns the relation between translation and the answer key. The encoder comparison remains a separate analysis of how frequently each system selects the keyed alternative.

### Limitations

#### Limits the authors identify

The paper identifies an explicit exception to its general pattern of improvement. On standard Serbian, BERTić and cseBERT are statistically indistinguishable under the reported tests for both word-level tasks. The authors associate this with the low variation of a corpus drawn from one newspaper and with similarity between its training and test material. That qualification matters because the dataset is the paper’s evidence for standard Serbian tagging and named entity recognition. Its result can reflect the source and split as well as the language variety.

The authors also describe the explanation based on training data quantity as an assumption. They favor it even though BERTić and cseBERT use different approaches to pretraining. Their claim about the likely cause of the result is consequently weaker than their claim about the ordering of the systems on particular benchmarks. The corpus construction shows what went into BERTić, and the experiments show the performance associated with the completed system. The intervening claim about which component mattered most is proposed by the authors.

The translation discussion acknowledges an uncertain answer in COPA-HR. The original choice and the Croatian translator’s choice disagree on a test case in which the alternatives both fit the ordinary situation. The article’s conclusion about strong translation agreement should be read with that exception in view. The authors also distinguish geolocation from the significance-tested experiments. They report the distance comparison without a statistical test and give the large test set as their reason.

#### Limits apparent from the study design

The language coverage of the training collection is broader than the language-by-language coverage of the benchmarks. The word-level experiments are on Croatian and Serbian. COPA-HR is Croatian. The geolocation task covers tweets published across the region, but its target is a coordinate and the described results summarize location error. They do not establish independent grammatical, entity or causal reasoning results for Bosnian and Montenegrin. The study supports regional use through the combination of training coverage and selected evaluations, with stronger direct task evidence for some varieties than for others.

Similarly, the standard and nonstandard comparisons come from particular corpora. The standard Serbian result concerns SETimes.SR. The nonstandard Serbian result concerns a Twitter corpus, whose source and style differ from the newspaper data. The Croatian sets provide their own comparisons. The reported pattern is conditional on those datasets. A claim about language differences in general would require evaluations that separate language from genre and source more fully.

The pretraining comparisons also leave several decisions coupled. Training objective, corpus, vocabulary and preprocessing vary as part of the completed systems. No reported experiment measures what would happen if BERTić were trained without the newer crawl, with different sentence deduplication, or with diacritics removed. The data procedure tells a reader how the released system was prepared. The downstream comparisons assess that system with its choices in combination. The amount attributable to each choice remains open.

The description of deduplication has a related scope. It documents checks for identical sentences when adding specified collections. Such a rule can reduce repeated text across those inputs, but it does not measure repetition among near matches or the distribution of language and genre within the final pool. The stated corpus size establishes scale. It leaves open how evenly the available text represents the languages and registers a reader might want to serve.

The comparison also does not independently measure pretraining efficiency. The paper cites ELECTRA’s efficiency motivation, records BERTić’s hardware and training schedule, and measures downstream performance. A direct efficiency comparison would need a corresponding measure of training cost for the competing systems under defined conditions. The benchmark rankings indicate what the finished encoders do after adaptation. Their relative training cost is a separate question.

#### Limits of the individual measures

MicroF1 is appropriate for describing pooled grammatical decisions, but that aggregation leaves questions about rare labels open. Frequent cases can contribute much more to the result than unusual feature combinations. The average over runs gives a view of repeatability for the full benchmark. It does not establish that every grammatical class benefits. The entity-recognition comparison similarly leaves open how performance varies by type of name, by familiar and unfamiliar entities, or across the different contexts in which names appear.

For geolocation, mean and median summarize different aspects of the error distribution. They still leave open whether improvements are geographically uniform. The location of a tweet may be predictable from a direct reference to a place, from wording associated with an area, or from other patterns in the dataset. The experiment evaluates the coordinate prediction without separating those possibilities. Its data consist of posts with geographic information, so transfer to posts drawn from a different population is also beyond the measured result.

The COPA-HR test covers the ability to choose the more plausible of the available answers under a stated causal direction. Its accuracy is informative about that constrained task. Producing an explanation, judging a wider set of plausible causes, and applying causal knowledge to other languages or genres remain unevaluated. The agreement check also comes from the translator making choices in the translated dataset. It gives evidence about preservation of preferred answers in that process, while leaving agreement among a broader group of Croatian readers unmeasured.

Finally, the run-based tests concern evidence for differences between systems under the experimental setup. A small p-value addresses how the observed outcomes relate to the assumptions of the statistical test. The practical value of a gain depends on its size and on the kinds of examples where it occurs. The prose supplies the ordering and the authors’ significance judgments for the main comparisons. It leaves exact score margins and detailed error distributions to a level of analysis that cannot be recovered from those statements alone.

### What came after

No later work is documented here as building on BERTić, so there is no established account of which subsequent studies adopted the encoder or extended its evaluation. XCOPA informed the design of COPA-HR, and the earlier geolocation shared task provided the comparison protocol. Both belong to the research that led into the paper.

The paper makes two resources available for future studies. BERTić is distributed through HuggingFace as a shared starting point for supervised language tasks, and COPA-HR is distributed through CLARIN.SI as a Croatian benchmark for choosing plausible causes and effects. A study can use the benchmark to compare encoders without adopting BERTić, or adapt BERTić to tasks beyond the causal benchmark. Any claim about how those resources were subsequently used depends on evidence from later work.

## Cite

Cite as Nikola Ljubešić and Davor Lauc. 2021. BERTić — The Transformer Language Model for Bosnian, Croatian, Montenegrin and Serbian. arXiv:2104.09243.

The paper itself, not this page. BibTeX from the library's record of the work. [arXiv 2104.09243](https://arxiv.org/abs/2104.09243)

```bibtex
@misc{ljubevsic2021bertic,
  title = {{BERTić — The Transformer Language Model for Bosnian, Croatian, Montenegrin and Serbian}},
  author = {Nikola Ljubevsi'c and Davor Lauc},
  year = {2021},
  eprint = {2104.09243},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.09243}
}
```

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