Comparing Pre-Training Schemes for Luxembourgish BERT Models
Paper · 2023 · Cedric Lothritz, Saad Ezzini, Christoph Purschke et al.
Summary
When a language has relatively little training text, developing a system for it starts with a choice. The researchers can train an encoder from the beginning, or they can take one that has already learned from other text and continue training it on material for the target language. This paper compares those approaches for Luxembourgish. It asks whether an existing encoder makes better use of the available corpus and whether the choice of starting point affects what happens when a test sentence is edited. The starting points are multilingual BERT and GottBERT, an encoder trained in German, a language with substantial similarities to Luxembourgish in vocabulary and structure.
The authors continue training both encoders on the same corpus of 12 million sentences. Part of the corpus is original Luxembourgish text, and part comes from German text partially translated into Luxembourgish. They then use fine-tuning to train each encoder for individual tasks, such as recognizing names or classifying sentiment. The comparisons include the original multilingual and German encoders and earlier Luxembourgish systems trained from scratch. On the unedited tests, Lb_GottBERT, the adapted German encoder, leads the useful comparisons for several tasks, including recognizing named entities, classifying banking requests and placing a negation word. Lb_mBERT, the adapted multilingual encoder, leads on textual entailment and on the translated sentiment dataset. The leaders differ on other tests, including news classification and sentiment in original Luxembourgish comments.
The robustness experiments ask a different question. After training on ordinary task examples, the authors test on edited versions of selected examples. A substitute name or synonym is generally intended to preserve the expected answer. Negation is used to change the answer in sentiment and entailment examples. Name and location changes typically produce small score changes. Negation frequently has a larger effect, and the effect of synonym replacement depends on the task. The clearest contrast between the adapted encoders comes from negating one sentence in a textual entailment pair. Across the affected examples, the reported performance difference is 2.5 percentage points for Lb_mBERT and 41.6 for Lb_GottBERT.
The study therefore gives two reasons to examine the starting encoder. The German starting point frequently yields a stronger result on the original tests, while the multilingual one fares better under several of the edits the authors apply. The comparison supports continued training as an effective way to build a Luxembourgish encoder on this corpus. It also shows how much a recommendation can depend on the application, the kind of language change being tested, and the behavior hidden by an overall score.
Deep dive: Comparing Pre-Training Schemes for Luxembourgish BERT Models
How Luxembourgish BERT benefits from additional pretraining, and why German GottBERT and multilingual BERT respond differently to changes in test sentences. · about 31 minutes to read
The problem and its context
Turning available text into a reusable encoder
The authors situate Luxembourgish among low-resource languages, where labeled examples and large collections of text can be harder to obtain. They describe Luxembourgish as spoken mainly in Luxembourg and estimate that it has almost 600,000 speakers worldwide. The question is how to make the available text support a range of applications. A collection of news prose, for example, can help an encoder learn patterns of written Luxembourgish. A banking task still needs examples that say which request each message expresses. Those resources serve different roles.
BERT made that division practical. In pretraining, an encoder learns from text before it has a specific downstream assignment. In task fine-tuning, it is trained on examples with the desired output, such as the grammatical category of a word or the topic of an article. The paper describes this reuse as a reason BERT remained popular in industrial natural language processing even as other architectures became available. A practitioner could start each task with a common encoder and learn what the task required from its own labeled examples.
The availability of suitable starting encoders varied greatly by language. In the authors’ account of Hugging Face availability, fewer than 150 languages had a pretrained BERT available, and many were represented only through a multilingual system such as mBERT or XLM-RoBERTa. A shared multilingual encoder offered an immediate route to task training. The authors also point to work by Wu and Dredze that found advantages for single-language training where there was enough text. For Luxembourgish, these observations motivate a comparison between adapting an existing general-purpose resource and devoting the available corpus to an encoder built specifically for the language. Wu and Dredze’s multilingual BERT study
Why both starting points are plausible
The two candidates offer different reasons to expect transfer. Multilingual BERT, or mBERT, already encountered Luxembourgish Wikipedia in its initial training. It also learned from text in other languages under shared parameters. Starting from mBERT therefore means beginning with some direct exposure to written Luxembourgish. The authors initially expect mBERT to do better than the original GottBERT on downstream tasks because GottBERT’s training text was exclusively German.
German supplies a different kind of prior experience. The paper describes Luxembourgish as a West Germanic language that developed from a Moselle Franconian dialect. It points to similarities with German in both word choice and structure. An encoder that has learned to process large amounts of German prose may therefore have useful representations even before receiving Luxembourgish-specific training. GottBERT gives the authors a way to test that possibility against an encoder with a broader linguistic background. The choice concerns both what was learned before adaptation and what pieces of text the encoder can recognize through its existing vocabulary.
The earlier work reviewed in the paper gives these options a precedent. Wu and Dredze paired Latvian with Lithuanian and Afrikaans with Dutch in training systems for Latvian and Afrikaans. Earlier work on LuxemBERT drew on Luxembourgish and German material too. In that research, the multilingual material was part of building the encoder from scratch. Another line of work, by Muller and colleagues, started with mBERT and continued pretraining it on languages that had been absent from its original training. Those experiments included languages written in different non-Latin scripts, and the authors of this paper describe continued training as typically improving on the original encoder and training from scratch. Here the target language is already represented in mBERT, so another issue comes into view. Direct prior exposure can be compared with a large amount of experience in a closely related language.
Why performance on ordinary examples is only part of the question
A downstream test may reveal whether a system typically recognizes names or identifies sentiment. It gives a less direct account of how the system treats a particular distinction. An unexpected score on a sentiment test could arise from several kinds of errors. Editing a sentence to change its polarity gives a more focused test of whether the classifier responds to that cue. Replacing a name gives a complementary test of whether an incidental change leaves the task decision stable. These are examples of behavioral testing with CheckList, which the authors cite as a precedent for constructing test cases through targeted changes.
The paper’s robustness question follows from the practical setting of evaluation and benchmarks. An encoder may handle ordinary examples well while having difficulty with a particular edit, or it may score similarly on both versions because it makes the same limited prediction throughout. A useful interpretation therefore needs the original-test results, the expected effect of each edit and a check for degenerate behavior. The paper applies this logic after task fine-tuning so that robustness refers to the behavior of the resulting classifiers. Its design places that evidence alongside the original-test scores when comparing pretraining schemes.
The method, step by step
Build on a common body of text
The continued-pretraining experiments use the corpus assembled for the earlier LuxemBERT study. The full corpus contains 12 million sentences. Of these, 6 million are original Luxembourgish sentences, drawn from sources including Luxembourgish Wikipedia, the news site RTL and the Leipzig Corpora Collection. The paper’s account of the corpus also describes anonymized user comments and chatroom logs. The use of more than one source gives the encoders exposure to Luxembourgish in several settings. The results, however, are reported for training on the assembled corpus, so the comparison treats those sources as a package.
The remaining 6 million sentences come from a process that expands the supply of training text. The earlier study began with German Wikipedia material and used a predetermined set of frequent, unambiguous words to replace German forms with Luxembourgish counterparts. The authors describe the resulting sentences as partially translated. That distinction matters for the comparison. The added sentences explicitly draw on common vocabulary and similarities between the languages, while retaining some of the original German material. Thus the adaptation corpus used in the study is partly Luxembourgish written by its original authors and partly text modified to provide additional Luxembourgish exposure.
The same composite corpus goes into both continued-pretraining runs. It also underlies LuxemBERT, the earlier encoder trained from scratch. DA BERT, the other from-scratch comparator, shares the authentic Luxembourgish portion but takes a different approach to the additional sentences. Holding the corpus fixed across the two new training runs gives the comparison a common destination. Their starting weights and vocabularies reflect their separate histories.
From existing encoders to Luxembourgish task tests
The steps in order.
Prepare the starting weights and vocabularies
The multilingual branch starts with mBERT, which was pretrained on Wikipedia in 104 languages. The Luxembourgish edition contributed 59,000 articles according to the paper. The authors describe an encoder with 12 Transformer blocks and 110 million trainable parameters. The parameters are the learned values that continued training can update. Loading them gives the Luxembourgish run a starting point that reflects mBERT’s earlier training, while leaving room for those values to change in response to the new corpus.
BERT also has a vocabulary that determines how text is represented at its input. With subword tokenization, a token can be a piece of a word. This lets the encoder represent a word through familiar pieces when the vocabulary does not contain the entire form as an entry. The original mBERT vocabulary has 105,879 WordPiece tokens, including 100 unused entries. The authors fill those positions with the 100 most frequent tokens from their pretraining corpus. This changes which text pieces can be represented directly using those entries. The resulting adapted encoder is Lb_mBERT.
The German branch starts with GottBERT, trained on the German part of OSCAR, a corpus the paper describes as containing almost 459 million sentences in that portion. Its vocabulary contains 52,009 entries, with no unused positions for the corresponding substitution. The authors keep it as it is when building Lb_GottBERT. This branch adapts the learned weights to the new corpus using the existing German vocabulary. The multilingual branch adapts weights and changes some vocabulary entries, a procedural difference that matters when interpreting results attributed to the starting point.
Continue learning from context
Both branches use masked language modeling. During this stage, the task hides selected tokens in the training text and asks the encoder to predict those tokens from context. A prediction depends on the surrounding sequence, so the encoder can acquire information about how words and word pieces occur together. The target for a masked position is available from the original text itself. This lets the authors train on the full corpus without annotating each sentence for sentiment, grammatical category or some other downstream property.
For each adapted encoder, the masking probability is 15%, and the training schedule lasts 10 epochs. An epoch is a pass through the training data. Both runs thus revisit the same collection over the same number of passes under the same masking setting. The paper specifies the prediction task and these training settings verbally and gives no mathematical formulation of the objective. The operative comparison is between starting the masked-token task with parameters learned elsewhere and starting Luxembourgish pretraining from scratch.
The previous LuxemBERT study used the same corpus, 10 epochs and a masking probability of 15%. Its vocabulary has 30,000 WordPiece tokens. The current paper uses it to ask whether, under a familiar Luxembourgish pretraining setup, inherited weights can lead to stronger downstream results. DA BERT also starts from scratch, with a vocabulary of 30,000 tokens and an architecture described as similar to LuxemBERT’s. Its extra material is created by substituting synonyms, named entities and modal verbs in the original Luxembourgish sentences, with the aim of preserving their meaning. It gives the authors a second reference point for what training from scratch can achieve when the corpus is expanded differently.
Teach each encoder the individual tasks
After pretraining, each encoder is fine-tuned separately on each downstream dataset. The training labels define the requested output. For part-of-speech tagging, a prediction is attached to each word, such as a noun or a verb tag. For named entity recognition, the aim is to identify expressions that name entities and assign types to them. An intent classifier assigns a class to a banking request, and a news classifier assigns a category to an article. These experiments test whether the representations learned from unlabelled text can be used once the desired decisions are specified through labeled examples. Text classification
Other tasks ask whether one sentence follows from another, whether a sentence expresses favorable or unfavorable sentiment, or where a particular word belongs. The sentence-negation task is a placement problem. The expected output is the position of the Luxembourgish negation word net. In the entailment tasks, the answer concerns the relation between the two sentences. In the sentiment analysis tests, it concerns the polarity assigned to an individual text. The paper uses a separate fine-tuning configuration for each dataset where appropriate, including separate configurations for the two sentiment datasets.
For a given task, every encoder receives the same fine-tuning settings. The authors reuse earlier choices for part-of-speech tagging, named entity recognition, banking intent, news classification and Winograd inference. For the other datasets, they run a grid search using LuxemBERT. A grid search evaluates specified combinations of candidate values. Here the candidates concern batch size, the number of examples processed together, learning rate, which governs the size of training updates, and the number of epochs. They use the winning settings from that search across all encoders for the corresponding task.
The selected batch size is 16 throughout. The tagging runs each use a learning rate of 5e-5 for 3 epochs. Banking intent and Winograd inference each use 5e-5 for 5 epochs. News classification uses 2e-5 for 2 epochs. Sentence negation and textual entailment both use 5e-5 for 4 epochs. On SA1, the setting is 3e-5 for 2 epochs, while on SA2 it is 5e-5 for 2 epochs. Sharing settings across systems gives each task a common comparison protocol. The grid search establishes which settings worked best for the encoder used in that search.
Construct the edited test examples
Fine-tuning uses unedited training and validation data. During evaluation, the authors prepare edits to selected test sets and compare results on the edited examples and their original counterparts. An example enters a perturbation comparison only when that operation actually changes it. For instance, a name-replacement routine can leave sentences without eligible names untouched. Including those sentences in a test of name replacement would dilute the measurement with inputs on which the operation had no effect.
The expected answer depends on the kind of edit. The authors intend first-name, location-name and synonym substitutions to preserve the relevant task label. They choose replacement first names at random from the list used in DA BERT’s corpus augmentation and give repeated occurrences of an original name the same replacement. Consistency matters when a name appears more than once. Changing the first occurrence one way and a later occurrence another way could modify the relation between sentences rather than merely alter the spelling or identity of a name. For synonym replacement, the test uses the synonym dictionary from DA BERT’s augmentation procedure. Each sentence has either 0 or 1 word replaced by a randomly selected synonym.
Negation edits are designed to require a new answer. For sentiment, the procedure is intended to switch positive and negative polarity. For textual entailment, negating one sentence in a pair with an entailment relation is intended to turn it into a non-entailment pair. A classifier that keeps its answer under a name change may be doing what the test expects. Keeping the same answer in a negated entailment example may miss the point of the edit. The paper therefore uses robustness to cover both stability under changes that are meant to preserve labels and appropriate responsiveness to changes that are meant to alter them.
The edit types are applied where the authors judge them suitable. The sentence-negation placement dataset gets name, location and synonym replacements. The textual entailment and SA1 sentiment tests get those replacements and negation. SA2 gets negation, first-name replacement and synonym replacement. The robustness tables cover these datasets, while the clean-test comparison also covers tagging, named entities, banking intent, news and Winograd inference. The authors report releasing the adapted encoders through Hugging Face and making evaluation datasets available through the LuxemBERT repository. The original-comment sentiment dataset is available on request.
Experiments and results
What the original tests measure
The original-test results are reported as average F1 scores. F1 combines precision and recall. Precision concerns how many of the predictions counted as positive are correct, while recall concerns how many of the expected positives are found. A larger F1 indicates a better balance of the two under the scoring procedure. Each reported score needs to be read against the relevant task and dataset. A label for a word in a news sentence and a label for the relation between two sentences involve different outputs, even when both are summarized using F1.
For part-of-speech tagging, the dataset has almost 5500 sentences from Luxembourgish news and uses 15 grammatical classes. The named entity dataset comes from the same raw text. Its annotations distinguish people, geopolitical entities, natural locations, organizations and miscellaneous entities. This pairing is useful for interpretation because the source material is shared, yet the target of prediction differs. Grammatical tagging can turn on how a word functions in context. Entity recognition calls for identifying a name and its category. An encoder’s advantage on one of these tasks gives limited information about where it will rank on the other.
The intent data come from Banking Client Support, with almost 1000 examples spanning 28 banking intents. The assigned category represents what the user wants to accomplish. The news classification data contain almost 10,000 articles with eight labels. That task asks for the article’s category. The intent task therefore works on a specific application and set of requests, while the news task uses a different set of outputs and articles as its units of prediction. Both give an overall class to the input, in contrast to assigning a grammatical or entity label within it.
Winograd Natural Language Inference, or WNLI, uses a translated dataset of almost 800 sentence pairs. The first sentence contains a pronoun, and the other replaces that pronoun with an expression for a possible referent. The classifier determines whether the first sentence supports the second. The decision is related to coreference resolution because it depends on who or what the pronoun refers to. WNLI appears in GLUE, as does the separate Recognizing Textual Entailment task used in the study. The task, known as RTE, asks whether the first sentence entails the second without requiring a pronoun-replacement format.
For RTE, the authors automatically translate the original material into Luxembourgish. They report 2490 examples in the training split, 277 in validation and 801 in the test split. They describe the dataset as containing 51% entailment pairs and 49% non-entailment pairs. They also identify translation errors and use the same translated dataset for every encoder. This gives the systems common inputs, with any errors in those inputs forming part of the conditions of the comparison. It also means that natural Luxembourgish entailment and the ability to deal with imperfect translations are both relevant when interpreting the results.
For sentence negation, the authors use Luxembourgish material from the Leipzig collection that they say was outside their new encoders’ pretraining corpus. They select sentences shorter than 15 words that contain net and use the attested position as the target. The split sizes are 33,975 training sentences, 2171 validation sentences and 10,095 test sentences. Positions vary in frequency. Position 3 is the most common, occurring in 14.52% of the dataset, and position 13 is the least common, occurring in 0.5%. The experimental target is to recover a recorded placement. This is more specific than asking a speaker to produce any acceptable negation of a sentence.
The sentiment experiments use two corpora that differ in origin and labels. SA1 contains Luxembourgish comments from RTL, labeled by hand as positive, negative or neutral. The training, validation and test splits contain 1293, 188 and 367 comments, respectively. Across the dataset, 12% of the comments are positive, 34% negative and 54% neutral. SA2 comes from an automatically translated subset of SST-2. The training set has 9646 examples, the validation set has 872, and the test set has 2360. It uses only positive and negative labels, which account for 55% and 45% of its examples, respectively. The separate evaluations let the reader see whether a ranking holds across these different versions of sentiment classification.
Where continued pretraining improves the original scores
The comparison includes six systems. The original GottBERT and mBERT are fine-tuned directly. Lb_GottBERT and Lb_mBERT have the intervening step of continued pretraining. LuxemBERT and DA BERT represent training from scratch with different sources of supplemented text. The paper counts eight task types in its setup and reports nine result columns because sentiment is evaluated on SA1 and SA2. Its tally of first and second places uses the dataset-level comparisons and treats a constant classifier separately from useful WNLI performance.
Named entity recognition gives a clear example of improvement across both continued-pretraining branches. The adapted German encoder has the highest original-test F1, 0.726, and the adapted multilingual encoder is next at 0.717. Their original encoders score 0.661 and 0.689, respectively. LuxemBERT reaches 0.700, and DA BERT reaches 0.708. Here the two continued-pretraining experiments both improve on the original encoder and on the Luxembourgish encoders built from scratch.
Original named entity recognition test set F1 by encoder
The adapted German encoder leads, followed by the adapted multilingual encoder.
The numbers
| System or setting | F1 |
|---|---|
| GottBERT | 0.661 |
| mBERT | 0.689 |
| LuxemBERT | 0.700 |
| DA BERT | 0.708 |
| Lb_mBERT | 0.717 |
| Lb_GottBERT (this paper) | 0.726 |
The grammatical tagging results illustrate how quickly the ranking can change. On the original part-of-speech test, GottBERT leads with 0.902 F1, closely followed by Lb_GottBERT at 0.900. LuxemBERT scores 0.890, and Lb_mBERT scores 0.889. DA BERT reaches 0.887, and mBERT reaches 0.886. The original German encoder’s ranking on this dataset is an exception to its general performance across the tasks. It also differs from its result on named entity recognition, even though the annotations for both tasks were made from the same news text.
For banking intent, the adapted systems occupy the top places. Lb_GottBERT scores 0.762 F1 and Lb_mBERT scores 0.760 on the original test. LuxemBERT and DA BERT follow with 0.725 and 0.717. The original GottBERT and mBERT score 0.574 and 0.460. This comparison gives evidence for the value of the additional Luxembourgish training under both initializations. The observed scores of the adapted systems are close, so the test supplies a clearer distinction between adaptation and direct fine-tuning than between the two adapted choices.
News classification favors LuxemBERT, whose original-test F1 of 0.918 leads Lb_mBERT at 0.906. The paper reports 0.900 for mBERT, DA BERT and Lb_GottBERT, and 0.871 for GottBERT. Continuing from the German encoder lifts the score relative to its original version, while the from-scratch system using the same pretraining corpus leads the task. This is an example of why the conclusion about pretraining needs to be based on the pattern over datasets rather than on a promise about every task.
Inference, negation placement and sentiment
With WNLI, the largest printed value needs its accompanying qualification. The original GottBERT gets 0.780 F1 but always predicts non-entailment. Among the systems that make variable predictions, Lb_GottBERT has the highest original-test score at 0.650, followed by mBERT at 0.640. LuxemBERT scores 0.596, Lb_mBERT scores 0.560, and DA BERT scores 0.544. The comparison shows that adapting the multilingual encoder can lower performance relative to direct fine-tuning on this dataset. It also shows why the authors annotate constant prediction in the results table. A large score can obscure what the classifier is doing on the individual task.
For RTE, Lb_mBERT leads with an original-test F1 of 0.563, followed by DA BERT at 0.551 and LuxemBERT at 0.528. GottBERT has a score of 0.512 from always choosing non-entailment. Lb_GottBERT scores 0.489, and mBERT scores 0.488. Relative to the original multilingual encoder, adaptation yields the leading result here. The adapted German encoder sits near the original multilingual one on the same test. Even across two tasks with entailment labels, the useful rankings differ. Their examples require different decisions and come from different datasets.
On the original sentence-negation placement test, Lb_GottBERT attains 0.883 F1, and Lb_mBERT reaches 0.867. LuxemBERT and DA BERT are close at 0.859 and 0.858. The original mBERT gets 0.804. GottBERT scores 0.248 and always selects position 3, which is the most frequent target position in the dataset. The adapted German result is consequently interesting in two ways. It leads the comparison, and its original version had collapsed to a single answer under the study’s task training. The change is evidence that the adapted encoder supports a more responsive placement classifier under these conditions.
SA1 favors the encoders trained from scratch. DA BERT leads the original-comment test at 0.687 F1. LuxemBERT reaches 0.666 and Lb_mBERT 0.664, with Lb_GottBERT at 0.651. The original GottBERT and mBERT score 0.636 and 0.612. DA BERT’s lead therefore holds on a corpus of manually labeled Luxembourgish comments and across the different pretraining histories compared for that task. SA2 has a different ordering. Lb_mBERT is highest at 0.868, then Lb_GottBERT at 0.864, DA BERT at 0.861 and LuxemBERT at 0.859. The original mBERT scores 0.737, and GottBERT scores 0.697. The close upper scores on SA2 and the change of leader from SA1 make the dataset distinction important.
In the authors’ overall accounting, Lb_GottBERT leads four of the nine dataset comparisons, using the nonconstant WNLI result. Lb_mBERT leads two and is second on four. The results favor continued pretraining across several different types of prediction, and the exceptions are informative. An original encoder leads grammatical tagging. A system trained from scratch leads news. Another from-scratch system leads on the original-comment sentiment dataset. The paper’s general conclusion about German initialization refers to the balance of its results, with the ranking on each individual task available for inspection.
How the edits change performance
The paper expresses the impact of each perturbation in percentage points. The quantity compares the original and edited versions of examples affected by that operation. It therefore belongs to a particular dataset, perturbation and subset. It serves a different role from the original-test F1 values. A small difference on the edited subset can accompany excellent or weak original performance. In the extreme, it can arise from a system that always gives the same answer. The usefulness of the small change depends on what output the examples require.
Sentence negation is the task with the clearest contrast between entity and synonym replacements. The placement test has 356 affected examples for first-name replacement, 527 for location replacement and 6597 for synonym replacement. On the first-name subset, the reported differences are 0.2 percentage points for Lb_mBERT and 0.5 for Lb_GottBERT. On the location subset, the same systems show 1.1 and 1.6. LuxemBERT has larger entity differences on this task, at 1.8 for first names and 3.7 for locations. In the synonym comparison its reported difference rises to 14.2. DA BERT has the smallest meaningful difference for synonyms, at 6.9, while the zero reported for GottBERT comes from predicting the same position throughout.
Performance change after synonym replacement on the sentence negation test
DA BERT has the smallest reported change among the systems with variable predictions.
The numbers
| System or setting | percentage points |
|---|---|
| LuxemBERT | 14.2 |
| Lb_GottBERT | 13.8 |
| mBERT | 13.0 |
| Lb_mBERT | 12.7 |
| DA BERT (this paper) | 6.9 |
For RTE, the negation comparison is based on 373 changed test pairs. Lb_mBERT has a reported difference of 2.5 percentage points. LuxemBERT, DA BERT and Lb_GottBERT have differences of 38.2, 41.1 and 41.6, respectively. The table reports 100 for each original encoder. This is the strongest measured negation contrast between the two adapted systems. The replacement comparisons on RTE use 243 examples for first names, 363 for locations and 682 for synonyms. For Lb_mBERT the corresponding changes are 2.4, 0.3 and 0.6. Lb_GottBERT has changes of 3.4, 5.7 and 5.1, making its results on these edited subsets more sensitive as well.
Performance change after negation on affected RTE test pairs
Lb_mBERT has the smallest reported change when negation alters the expected entailment decision.
The numbers
| System or setting | percentage points |
|---|---|
| mBERT | 100 |
| GottBERT | 100 |
| LuxemBERT | 38.2 |
| DA BERT | 41.1 |
| Lb_GottBERT | 41.6 |
| Lb_mBERT (this paper) | 2.5 |
The SA1 comparisons draw on 45 examples for negation, 11 for first names, 24 for locations and 276 for synonyms. Lb_mBERT has a reported negation difference of 20 percentage points and Lb_GottBERT a difference of 19.5. The corresponding values for LuxemBERT and DA BERT are 22.1 and 32.3. On synonym replacements, Lb_mBERT shows 1.1 and Lb_GottBERT shows 1.2. On first-name replacements their reported values are 0 and 2. The authors caution that the small affected sets complicate interpretation of the mixed entity results, particularly when comparing systems whose reported differences are small.
For SA2, the affected subsets contain 1587 examples for negation, 148 for first-name replacement and 1508 for synonym replacement. The largest changes generally come from negating the input. The reported negation differences for Lb_mBERT and Lb_GottBERT are 36.0 and 33.6 percentage points. Those for LuxemBERT and DA BERT are 27.5 and 33.1. The original multilingual encoder shows 19.6 and the original German encoder 24.2. Those smaller differences accompany lower F1 on the full original test, which illustrates the distinct questions asked by the two measures. For the adapted encoders, first-name replacement changes performance by 0.8 for Lb_mBERT and 1.4 for Lb_GottBERT, while the synonym differences are 2.2 and 2.0.
The broad result is that the severity of an edit depends on the interaction of the task and the operation. Negation produces notable changes on both the RTE and translated sentiment evaluations, but the comparative advantage of Lb_mBERT on RTE does not recur on SA2. Synonym replacement substantially affects several placement classifiers while having a smaller effect on the sentiment tests. Entity substitutions tend to produce smaller changes. Those patterns give the paper’s general robustness conclusion its scope and explain why the original-test ranking and the perturbation ranking answer different questions.
What the ablations show
Comparing an adapted encoder with its own starting point
The study uses comparisons among full training schemes and between versions of test inputs. It does not report component ablations that independently remove vocabulary changes, individual corpus sources or classes of training examples. Its most direct controlled comparison pairs each adapted encoder with the original from which it was derived. The downstream datasets and fine-tuning settings are shared, and the difference between conditions is the intervening Luxembourgish adaptation procedure.
For the German branch, the vocabulary is held fixed. The comparison therefore shows what continued training does under a fixed set of vocabulary entries and with the selected corpus as a whole. The strongest clean-test improvements include named entity recognition, banking intent and the placement of net. The original German encoder’s slight lead on grammatical tagging limits the breadth of the conclusion. Its constant predictions on WNLI and RTE further show why the performance of a fine-tuned baseline needs inspection before judging the value of adaptation from the score alone.
For the multilingual branch, the adaptation procedure changes both weights and the unused vocabulary entries. The comparison demonstrates the effect of applying those changes together. The paper does not test continued training with the original vocabulary held fixed, so it cannot assign a share of the observed gains to the inserted frequent tokens. On RTE and SA2 the combined procedure improves the original-test result substantially in the overall ranking. On WNLI it moves in the other direction. Taken together, the within-branch comparisons show how much the effect of adaptation can vary even with a consistent procedure.
Holding the corpus fixed across starting points
Comparing Lb_mBERT with Lb_GottBERT keeps the adaptation corpus, masking rate and epoch count the same. This reduces the number of explanations based on the new training material. Their differences can still come from several features of the starting conditions. Each checkpoint, meaning the previously learned set of weights, reflects a different history of pretraining. Each has a different vocabulary, and only the multilingual branch uses the available slots to add tokens. The experiment compares the practical choice between these starting systems under the authors’ procedure. It cannot establish how much of the outcome follows from multilingual exposure as such or how much follows from the particular features of mBERT.
The comparison with LuxemBERT answers another question under a shared corpus. LuxemBERT was trained from scratch on the same mixture of original and partially translated sentences. The additional-training runs use the same reported masking probability and number of epochs for the Luxembourgish corpus. The stronger results on several tasks show that access to inherited weights can make this budget of Luxembourgish training more effective. The equality of the adaptation schedule concerns the new stage. The initial training that produced GottBERT and mBERT is part of what the adapted systems inherit. As a result, the data and time efficiency argument applies to a team that can begin with those already trained weights.
DA BERT gives a comparison in which the origin of the supplemental text differs. The authentic portion is shared with LuxemBERT, and the additional material comes from controlled substitutions in Luxembourgish text. DA BERT’s strong performance on the synonym-edited sentence-negation examples is consistent with a benefit from seeing synonym substitutions during pretraining. The paper’s test also draws synonyms from the same dictionary used for that augmentation. The result therefore concerns robustness to an edit family that the training procedure explicitly exposed the system to. Because DA BERT received named entity and modal verb substitutions too, and the entire supplemented corpus differs from LuxemBERT’s, the comparison leaves the independent contribution of synonym augmentation open.
Inspecting what a stable score can mean
An important diagnostic in the paper is the identification of GottBERT’s constant outputs. On the negation placement task, it predicts position 3 regardless of the input. Entity and synonym edits then leave its predictions unchanged by construction. The reported zero differences on those comparisons say little about whether it has learned where negation belongs. On WNLI, always predicting non-entailment yields the highest printed F1, even though the adapted German encoder leads among classifiers that vary their output. These cases expose two ways that a result can look favorable while concealing restricted behavior. One involves invariance under editing, and the other involves the score on the original distribution.
The negated RTE comparison makes a more informative robustness distinction. The intended answer changes for the affected examples, and the multilingual and German adaptations show markedly different performance changes on that subset. This distinguishes their measured responses to the edited inference problem. By comparison, the same multilingual adaptation shows a large difference when SA2 examples are negated. Success on the RTE negation test and sensitivity on the sentiment test can coexist because the label changes are applied to different inputs and require different decisions. The tests give a profile of behavior across tasks, with the RTE result providing the clearest support for the paper’s claim about multilingual initialization and robustness.
The substitution tests provide complementary evidence. Small first-name and location effects on sentence negation suggest that changing these expressions frequently leaves the placement task about as difficult as before for the systems that make variable predictions. Synonym replacement produces larger score changes on that task, despite being intended to preserve meaning. A substitute can change the local wording around the target position and the token sequence the encoder receives. The study measures the performance consequence. It leaves open whether the sensitivity comes primarily from the syntax of the edited sentence, its tokenization, the synonym choice or an interaction among these factors.
Limitations
Limits the authors identify
The authors test one target language and use German as the auxiliary language. They expect continued pretraining to be applicable when the target is a dialect of the starting language or belongs to the same family, while describing transfer between very different languages as an open question. Their direct evidence is about Luxembourgish and these starting encoders. The structural and lexical proximity to German is part of both the rationale for GottBERT and the design of the partially translated corpus. There is no experiment in the paper that varies the degree of language similarity while holding the rest of the setup fixed.
The paper also identifies potential confounding differences in the encoders themselves. Their earlier pretraining settings differ, along with their alphabets and vocabulary sizes. The authors chose mBERT and GottBERT because they considered them architecturally close to the Luxembourgish systems used for comparison. That choice makes them relevant practical baselines. It still leaves open whether similar encoders trained under more closely matched conditions would reproduce the same performance and robustness ordering. The new runs match the adaptation schedule, while earlier stages of training and the representation of text remain distinct.
Dataset quality is another stated concern. The description of RTE acknowledges translation mistakes and cautions against commercial use without revising the text. In discussing threats to validity, the paper pairs RTE with SA1 as automatically translated. The dataset descriptions instead identify SA1 as manually labeled Luxembourgish comments and SA2 as automatically translated. The inconsistency is in the paper’s naming of the sentiment dataset. When interpreting the experiments by dataset, the methods assign the translation to SA2. Either way, using common inputs across encoders provides a shared comparison without establishing that the automatically translated items faithfully express every original meaning.
For sentence negation, the authors recognize that Luxembourgish may permit different placements of net, sometimes with differences in meaning. Scoring uses the position attested in the corpus. An output may therefore be judged incorrect even if a speaker could interpret it as a valid negation. The reported F1 is evidence about recovering the test’s reference positions. It gives a narrower account of grammatical competence than an evaluation that checks all acceptable forms. The authors also flag the small affected subsets in SA1, where an aggregate score for name or location replacement can rest on very few examples.
The authors describe a limit on corpus access as part of their ethical considerations. The pretraining material includes comments and former chatroom logs that originally contained usernames. They report anonymizing those data before training, releasing the resulting encoders and withholding the corpus. A researcher can investigate the published encoders and use the reported settings for comparison. Independent reproduction of the training run from its original inputs depends on access to the same corpus, which the publication does not distribute.
Limits visible in the design
A shared fine-tuning configuration within each task supports a comparison under one set of conditions. Some settings were chosen through a search on LuxemBERT and others were reused from prior work. The design therefore estimates performance under the shared training protocol. It does not tell the reader whether separate tuning for each encoder would preserve close rankings. That distinction matters particularly for original-test results such as banking intent, where the adapted encoders’ scores are close, or SA2, where several encoders cluster near the top. The paper reports average scores, but the tabulated values offer no uncertainty intervals for judging such small gaps.
The clean-test results and the robustness results also have different denominators. An F1 score on the original test describes the full evaluated set for that task. The percentage-point change pertains to the original and edited versions of examples changed by a specific procedure. Each operation selects a different subset. For instance, a first-name test draws from sentences with eligible names, while a synonym test can apply to other sentences. Comparing their reported changes therefore combines the nature of the edit with differences in the examples that receive it. Absolute performance on the edited examples and item-by-item agreement would answer additional questions beyond the reported aggregate difference.
The edits carry assumptions about the labels. A dictionary synonym may be appropriate in a general sense and fit less naturally in a particular construction. A new name may alter associations or disrupt a sentence whose meaning depends on the entity. Negating a sentence may change the force of an assertion without producing a simple reversal of how a reader would classify its sentiment. The paper designs its tests around the intended label behavior and describes translation and ambiguity concerns, but it does not establish through a reported item-level validation that every edit achieves its intended semantic effect. These possibilities matter most when interpreting the measured change as linguistic sensitivity rather than as performance on the constructed set.
Finally, the results do not establish a general rule that multilingual initialization makes classifiers more robust or that a related-language encoder always gives higher F1. The RTE evidence supports the first tendency in the authors’ comparison, while the negation test on SA2 gives a different ranking. The clean-test evidence supports the second tendency across several datasets, while news classification, SA1 and the translated entailment task favor other systems. The paper makes its strongest case for treating downstream performance and behavior under targeted edits as separate selection criteria. Which starting system looks preferable depends on the evidence relevant to each task.
What came after
The later papers that cite this study take up different parts of the problem of building Luxembourgish language technology. Their documented scope concerns resources for grammatical analysis, data for adapting systems to instructions, and a broader evaluation effort. The citation links establish that these projects refer to the pretraining comparison. The particular findings of that comparison that the later authors used, and whether they ran or reused either adapted encoder, are not specified.
LuxBank introduces the first Luxembourgish treebank in the Universal Dependencies framework. A treebank records grammatical structure in sentences, giving researchers text with explicit annotations for structural analysis. This addresses a neighboring part of the resource problem. The pretraining study uses grammatical tagging and name recognition with news text, whereas LuxBank’s contribution concerns dependency structure. The connection is the availability of annotated Luxembourgish material for investigating what systems can learn about grammar. The scope of LuxBank does not by itself establish a comparison of the pretraining schemes on dependency analysis. LuxBank
LuxIT develops a Luxembourgish instruction-tuning dataset from monolingual seed data. Instruction tuning uses examples organized around requests that a system is expected to follow. The connection with the pretraining study is the choice of how to obtain useful Luxembourgish training material when it is limited. The earlier paper performs masked-token pretraining on original and partially translated sentences before fine-tuning for specific task outputs. LuxIT’s stated contribution addresses instruction data, so the two works concern different stages and kinds of supervision. The citation record alone leaves open whether any encoder or corpus from the earlier study was used to build LuxIT. LuxIT
The ltzGLUE work concerns general language understanding evaluation for Luxembourgish. Its subject is closest to the earlier paper’s use of multiple downstream problems to assess a pretrained encoder. Lothritz and colleagues bring together tests of grammar, names, categorization, inference and sentiment, and their results demonstrate why a ranking on a single dataset is an incomplete basis for choosing an encoder. A general Luxembourgish evaluation addresses that broader measurement problem. The cited work’s stated scope does not identify which of the earlier datasets or perturbation procedures it uses, so the supported connection is the move toward evaluating Luxembourgish language understanding across tasks. ltzGLUE
Cite
Cite as Cedric Lothritz, Saad Ezzini, Christoph Purschke, Tegawendé Bissyandé, Jacques Klein, Isabella Olariu, Andrey Boytsov, Clément LeFebvre and Anne Goujon. 2023. Comparing Pre-Training Schemes for Luxembourgish BERT Models. Proceedings of the 19th Conference on Natural Language Processing (KONVENS 2023).
@inproceedings{lothritz2023comparing,
title = {{Comparing Pre-Training Schemes for Luxembourgish BERT Models}},
author = {Cedric Lothritz, Saad Ezzini, Christoph Purschke, Tegawendé Bissyandé, Jacques Klein, Isabella Olariu, Andrey Boytsov, Clément LeFebvre and Anne Goujon},
booktitle = {Proceedings of the 19th Conference on Natural Language Processing (KONVENS 2023)},
year = {2023},
url = {https://aclanthology.org/2023.konvens-main.2/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/lothritz-2023-comparing-pre-training-schemes-luxembourgish/