Multilingual Language Models for Named Entity Recognition in German and English
Paper · 2019 · Antonia Baumann
Summary
A name finder has to decide where a mention begins, where it ends, and what kind of thing it names. Antonia Baumann asks whether a system that learned from text in many languages can make those decisions as well as systems developed for individual languages. She uses named entity recognition on German and English data from CoNLL-2003 to test multilingual BERT, which had already trained on Wikipedia text. The recognition training uses labeled sentences in the language being evaluated. The experiment tests whether the same multilingual starting weights can be adapted successfully in each language.
Baumann first reproduces the English entity recognition experiment for BERT BASE. Her implementation reaches 92.6 F1 on the English test set with IOB1, a convention for encoding mention boundaries. The published BERT BASE test result is 92.4 F1. F1 brings together two aspects of recognition: how frequently a predicted mention is correct and how often an annotated mention is found. The English multilingual runs reach roughly the same development performance as English BERT BASE. On the held-out test set, English BERT BASE leads under both boundary conventions evaluated in the paper. On German CoNLL-2003, multilingual BERT reaches 85.81 test F1 with IOB1, above the systems from Ahmed and Mehler and from Riedl and Padó. Akbik and colleagues’ full system leads the German comparison at 88.33 test F1.
The paper also tests whether a training recipe developed for a recurrent network carries over to BERT. This part of the study examines fine-tuning, the process of adapting previously learned weights to a new task. BERT’s existing BertAdam setup with learning-rate warmup gives higher mean development scores than the comparison setup. The other changes are less successful. Bringing layers into training in groups and using different learning rates at different depths yields no improvement over the ordinary task procedure in the reported experiments. Continuing language training on the target text before using the entity labels also leaves the resulting configurations below the ordinary procedure.
The results establish a favorable case for supervised adaptation from multilingual pretraining. The German comparison shows how the resulting tagger ranks among published systems, and the English comparison shows where a multilingual starting point comes close to an English-only one. Development and test scores give different pictures of that closeness. The annotation comparison also shows that the choice of boundary tags can change the result, even when the task still calls for the same mentions and categories.
Deep dive: Multilingual Language Models for Named Entity Recognition in German and English
Antonia Baumann tests multilingual BERT for name recognition in German and English and examines which training choices improve its results. · about 35 minutes to read
The problem and its context
A task with decisions throughout the sentence
A sentence can contain a name that occupies several words, an isolated word that names something, or several mentions close together. An entity recognizer has to distinguish these cases and produce labeled spans. Even when the middle word of a mention is easy to recognize, the words beside it can determine whether that word belongs to a longer name. The recognizer also has to infer the category of the complete mention from the way it is used. Context therefore matters at the level of individual words as well as at the level of the passage.
In information extraction, finding a mention makes a part of the source text available as a structured prediction. The structure in this experiment is deliberately limited. The system marks the extent of a mention and assigns it a category supplied by the task. An evaluation can check both decisions against annotated text. This gives Baumann a concrete way to ask what a pretrained system can contribute. If its representations help a classifier predict accurate boundaries and types, that contribution will appear in the recognition scores.
The paper situates entity recognition among tasks that had already benefited from learning on general text. It mentions sentiment analysis, recognition in newspaper text, and answering questions from Wikipedia. Each asks for a different kind of output. The sentiment examples concern classification, while a recognition system must produce a series of decisions tied to positions in the text. Reuse is possible because training on general text and training for a specified output serve different purposes. The first builds representations that can be used elsewhere. The second teaches the system how to use them for the particular task.
This account of reuse helps explain Baumann’s interest in language modeling. A language objective creates training targets from the text itself. Work can begin with a collection of text before anyone supplies entity spans or decides what inventory of tags the eventual tagger will use. The task data provide more specific evidence. They show which distinguishable uses of words and phrases matter for the predictions required by the benchmark. The paper treats general training and task training as successive stages that bring different evidence to the same system.
The case for sharing a starting point across languages
Baumann draws an analogy between reuse across tasks and reuse across languages. Earlier evaluation asked whether a representation could support tasks drawn from different datasets or genres. The paper cites GLUE in this connection. An analogous question is whether a representation acquired from several languages can provide enough useful information when the application operates in a particular one. The motivating examples include products that offer translation, completion, or grammar correction in an international setting. A multilingual starting point is attractive because the same pretrained system can be taken into different language-specific applications.
The earlier multilingual evaluation discussed in the paper centers on XNLI. Natural language inference asks about a relation between sentences, so its prediction concerns the pair as a whole. Entity recognition makes demands at a different level. A recognizer must identify the words that belong to each mention and distinguish them from neighboring material, then give the mention a type. An inference result can motivate a multilingual recognition experiment, while leaving open whether the representation supports those local decisions. Baumann adds a benchmark in which those decisions directly determine the output.
The paper deliberately starts under favorable circumstances. German and English are closely related in the author’s framing, and both have labeled examples for adapting the recognizer. German and English also appear in the same shared-task benchmark. This makes it possible to investigate both languages through a common recognition procedure. The choice is about establishing a baseline for multilingual and cross-lingual NLP when native supervision is available. It leaves questions about more distant language pairs and the absence of native annotations for a different experimental design.
The languages have distinct roles within that baseline. English already served as a named entity recognition test for the original BERT paper, so it provides a reference for checking the implementation. It also supports an internal comparison between English BERT BASE and multilingual BERT. German allows Baumann to place the multilingual system beside previously published German approaches. The comparisons answer different questions. The first asks how the choice of pretrained BERT affects English recognition in the same general pipeline. The second asks where supervised German recognition with multilingual BERT stands among existing approaches to the benchmark.
How the earlier work represented context
In its history of neural language modeling, the paper begins with an architecture organized around embedding, encoding, and pooling. An embedding assigns a numerical representation to a unit from the input. Encoding transforms that representation into something suitable for the prediction, taking account of the structure of the input. Pooling can collect information into a representation of a larger unit. Baumann uses this history to situate later changes in the machinery responsible for encoding the text.
Recurrent networks offered a way to build representations by processing text in sequence. The long short-term memory network, abbreviated LSTM, is the recurrent architecture relevant to both strands of earlier work in the paper. It can carry information forward as it processes the sequence. In a bidirectional design, processing in the opposite direction supplies information about what follows as well. Baumann cites Peters and colleagues for combining a forward and a backward language system in Deep Contextualized Word Representations. For recognition, the practical attraction is that information useful for classifying a mention may occur on either side of it.
BERT represents both sides of a position through a different architecture, the Transformer. In Baumann’s account, BERT sees a whole sentence or a pair of sentences, and representations within the network can use information from preceding and following words. That access changes the design of pretraining. A task that simply asks for the next word would make its intended answer available in the input. Masking a word creates a prediction problem in which the surrounding context is accessible and the target has been withheld. Baumann also describes BERT’s sentence-order objective, which asks whether sentences follow one another. It gives the network a training signal about relationships beyond a single sentence.
Multilingual BERT brings this architecture to a shared training collection. According to the paper, pretraining used Wikipedia text in the release’s 104 highest-ranked languages. Its account of prior multilingual BERT evaluation mentions reported XNLI performance for 6 languages. Baumann’s question is concerned with what can be done after that shared pretraining. The multilingual weights are already available. The experiment puts them to work in a recognition system whose output and supervision come from CoNLL.
An adaptation recipe developed for a different job
The second line of research begins with Howard and Ruder’s work on adapting a pretrained LSTM for text classification. Their recipe included further language training on the target text, followed by training with the classification labels. They also proposed changes to the learning-rate schedule, to the distribution of learning rates across layers, and to the order in which layers become trainable. The paper describes the combination as successful in the recurrent classification setting. That result gives Baumann a reason to investigate the procedure on BERT.
There are two changes of setting at once. The BERT stack is deeper than the recurrent network for which the procedure was described, and entity recognition calls for a label sequence. A rule that introduces layers one at a time can produce a substantially different training schedule in a deeper stack. A rule that repeatedly reduces the learning rate towards the bottom can have a much stronger effect there. The study therefore has to translate the earlier procedure into settings that make sense for the target architecture before it can compare training outcomes.
This question about adaptation is separate from the question about multilingual pretraining. A pretraining comparison concerns the weights available when task learning begins. A fine-tuning comparison concerns how those weights are updated after the starting point is chosen. Baumann tests the ordinary procedure first, then asks whether specific changes make that procedure more effective. The distinction matters because good German or English recognition can arise with the ordinary procedure, regardless of what happens when the extra steps are introduced.
The method, step by step
What the training examples say about a mention
The CoNLL-2003 shared task supplies the German and English material. In the recognition setup, a labeled sentence tells the learner which words participate in a mention and what category applies. Labels placed at successive word positions encode the answer. If a name extends over several words, the tags must allow the evaluator to assemble those words into the intended span. The same encoding must allow the evaluator to keep adjacent mentions separate.
The paper compares IOB1 and BIO, with BIO also called IOB2. Both conventions use tags for material outside an entity and tags that carry the category of an entity. They differ in when a beginning tag is required. BIO explicitly marks the first word of each entity. In IOB1, an inside tag can begin an entity when the context already distinguishes that beginning. A beginning tag is needed when a new entity immediately follows another of the same type. Without that distinction, the sequence could be interpreted as a single longer entity.
Consider what happens at the first word of a name following ordinary text. Under BIO the position takes a beginning tag. Under IOB1 the outside position before it can already make the new span apparent, allowing an inside tag at its start. The words involved and the entity’s type can stay the same. The supervised prediction at that first position changes. That is why the choice can affect training even though the annotations can describe the same entities.
The reason for evaluating both conventions comes from the English replication. Examples in the original BERT paper show both styles, leaving Baumann unsure which one produced its published result. Running both versions gives an empirical check on whether the replication depends on that decision. Carrying the comparison over to multilingual BERT makes it possible to see how the same choice behaves when the starting weights or the language of the examples changes.
Preparing the input that BERT expects
A CoNLL word and a BERT input token are different units. Baumann follows the original BERT procedure by using Google’s WordPiece subword tokenization. A word that can be handled as one vocabulary item yields a single position in the input. A word represented by several pieces occupies several positions. Input preparation therefore has to preserve the connection between the sequence BERT processes and the sequence on which the recognition task defines its answers.
The paper names three fields in the prepared BERT input. Token IDs specify the vocabulary items in the sequence. The segment mask represents segment membership. The attention mask identifies the positions available for attention. These fields tell the encoder how to process the input sequence. The entity tags separately tell the training procedure which outcomes to favor. Keeping that functional distinction clear is particularly useful here because the study varies the entity tag convention while retaining WordPiece and the general BERT input format.
The method description establishes the use of WordPiece and a position-level classifier. It leaves the detailed alignment rule implicit. In particular, a reader can tell that a multicomponent WordPiece representation needs to be associated with an annotated word, but the paper gives no detailed account of the handling of each position within that word. The pipeline can therefore be followed at the level of its operations and objective, while some of the bookkeeping between the original words and the classifier’s outputs remains unspecified.
From annotated CoNLL text to recognition scores
The steps in order.
Turning contextual information into tag predictions
The representation BERT produces for an input position reflects information that can come from elsewhere in the sequence. The recognition component takes those representations and uses a linear classification layer to obtain scores for the available labels. The layer supplies the task-specific mapping. BERT contributes a contextual numerical description of the input, and the classifier learns which parts of that description matter for predicting the categories and boundary markers found in the training data.
The paper uses softmax cross-entropy for training. Softmax converts the classifier’s scores at a position into a probability distribution over tags. Cross-entropy gives a larger penalty when the probability assigned to the reference tag is lower. This creates a training signal even when a classifier’s preferred label stays the same across successive updates. Raising the probability of the right label can reduce the loss before the prediction selected from the distribution changes. The objective applies to tag predictions, while the reported evaluation concerns complete entity mentions.
A change in label convention comes into the method at the point where target tags are prepared and interpreted. It changes which tag should get a high probability at some positions. A change from English BERT BASE to multilingual BERT comes in at the encoder’s starting weights and the corresponding input preparation. Neither comparison requires the recognizer to learn a different kind of output. Each setup still produces a series of categories and boundary decisions that can be evaluated as entities. Baumann implements the English replication in PyTorch and uses the same general recognition structure in the multilingual experiments.
Choosing the ordinary task settings
For the English replication, Baumann searches the settings recommended in the BERT work. The options in the paper are batch sizes of 16 and 32, learning rates of 2e-5, 3e-5, and 5e-5, and training durations of 3 or 4 epochs. A batch collects examples for a training update. The learning rate controls the scale of updates to the weights. An epoch corresponds to a pass over the training data. Each of these settings can change how training proceeds with the same starting point and labeled sentences.
The grid search provides candidate settings to evaluate on the English development set. The development data are held apart from the examples used to learn the recognition task and provide a basis for choosing among configurations. The selected settings are then used for the test evaluation. For its English replication the paper identifies batch size 16, learning rate 3e-5, and 4 epochs. It reuses the recognition structure in the multilingual experiments and describes its German task run in the comparison with prior work as lasting 3 epochs.
Selecting the ordinary settings serves a purpose beyond obtaining a baseline score. The extra adaptation procedures also need a reference that reflects how BERT is normally trained for this task. If the baseline were still being tuned at the same time as those additions were being assessed, it would be harder to tell what the comparison measured. The paper uses the selected settings for the relevant systems when it examines the setup with and without BertAdam. In the comparisons with additional methods, the plain tagger and the variants are reported on the same task splits.
Varying the learning rate during training
The first change examined in the adaptation study is about time. During training the learning rate can be scheduled to change as the run progresses. Warmup makes the rate smaller at the beginning and increases it during the initial part of training. This affects the first updates to a network that already has learned weights and is now receiving supervision for entity recognition. The question is whether the setup with that initial schedule produces better recognition scores by the reported development checkpoints.
Baumann relates Howard and Ruder’s slanted triangular learning rates to the linear warmup already used in BERT. Her procedure therefore tests the available BERT setup. The results table identifies the conditions by whether they use BertAdam, the optimizer configuration associated with warmup. The paper’s interpretation emphasizes the schedule. The condition named in the table is the pertinent detail for reconstructing the comparison, because its name describes the change as it was tested.
The design repeats that comparison for English BERT, multilingual BERT on English, and multilingual BERT on German. It evaluates development F1 at corresponding epochs under IOB1. Holding language, BERT version, and epoch fixed within a pair lets a reader see how the two optimizer conditions compare for a specific run setting. Repeating the comparison across settings reveals whether the direction is peculiar to a single language or kind of pretraining.
Varying the learning rate across depth
Discriminative fine-tuning changes the organization of learning rates across layers. Imagine the top of the stack as the part closest to the task-specific prediction. Its learning rate sets a reference scale. The layers farther down can receive smaller rates, so the task supervision can make different-sized adjustments at different depths. Howard and Ruder’s rule, as given by Baumann, specifies the rates like this.
ηₙ = η₀ / δⁿ
The quantity ηₙ is the learning rate assigned to the layer indexed by n. The index n is zero at the top and increases towards the lower layers. The quantity η₀ is the manually selected learning rate at the top. The symbol δ denotes the factor governing the reduction across depth. The slash means that the top learning rate is divided by δ raised to the power n. The equals sign assigns the result to the corresponding layer’s rate.
That rule has two distinct controls. Changing η₀ changes the scale of the rates throughout the stack. Changing δ changes the relation between rates at different depths. With δ set to 1, every layer has the same rate. With δ above 1, the denominator grows as the layer index increases. The effect accumulates down the network, so a scaling factor appropriate for a shallow stack can give a very small rate to a low layer in a deeper one.
Howard and Ruder found δ of 2.6 effective for their network. Baumann compares 2.6, 1.6, and 1 because applying the original factor throughout BERT would leave very small rates in the lower layers. She evaluates several manually chosen top rates for each epoch. The paper also describes a more recent implementation of the earlier method in which the top rate decreases after an epoch. A schedule for the top rate and a rule for distributing rates down the stack address different dimensions of the update. Thus even a fixed value of δ can coexist with rates that change over the course of the run.
Bringing layers into training over time
Gradual unfreezing changes which weights can be updated. Freezing a layer holds its weights fixed while it continues to transform the input. Once the layer is unfrozen, the task loss can affect those weights through training. The procedure discussed by Baumann starts at the top and makes more of the stack trainable as the run progresses. The highest layers consequently have more of the run in which to adapt to the task.
Howard and Ruder introduced a layer after each epoch for their 4-layer LSTM. BERT’s Transformer has 12 layers in Baumann’s comparison. Applying the same pacing layer by layer would mean 12 epochs, compared with the usual BERT task duration of 3-4 epochs given in the paper. Baumann brings layers in groups of 3 and runs the procedure for 5 epochs. That choice keeps it closer in duration to the ordinary procedure and makes the change in trainable depth coarser than the schedule for the recurrent network.
Unfreezing and discriminative rates can both limit how much the lower layers change, through different means. A layer held fixed contributes to the prediction but receives no weight update while frozen. When that layer becomes trainable, its assigned learning rate determines the scale of subsequent updates. A low layer that joins late and has a small assigned rate may therefore adapt little in the resulting run. The paper evaluates the adapted task procedure through its recognition scores. It does not measure those weight changes directly.
Continuing to learn from the target text
The final adaptation inserts language training before the recognition stage. The target text already contains material on which BERT can train using a language objective. The procedure initially uses that text without its recognition labels, then uses the labels to adapt the system to the task. The first objective can change the representations to reflect the target material. The second objective directly encourages the tag patterns needed to mark the entities. This distinguishes the purpose of the intermediate training from that of another epoch on the labeled recognition task.
The comparison starts with plain task fine-tuning. It then introduces the additional task-training procedure, which incorporates the adapted layer methods. The other variants apply intermediate language training before that task procedure, with durations of 10 and 20 epochs for the language stage. Those counts describe the additional stage. The reported outcomes are still recognition scores obtained after the labeled stage.
This arrangement lets Baumann ask whether the adapted task recipe improves on plain fine-tuning, and whether the intermediate language stage helps the adapted recipe. The conditions also allow a comparison of the reported scores for the two durations. There is no intermediate-language-training condition followed by plain task fine-tuning alone. Accordingly, the paper measures how the stage works in conjunction with the adapted procedure, while leaving its interaction with ordinary task fine-tuning open.
Experiments and results
How the evaluations fit together
Baumann uses the German and English splits of CoNLL-2003 for several related comparisons. In English, previously published scores establish the target for the replication. Once the replication reaches that range, the same task structure can compare English-only and multilingual BERT. In German, published results from systems designed for German provide the points of comparison. The additional training experiments then hold the task fixed and change the adaptation procedure for the stated BERT version in each language.
The metric is the F1 used by the CoNLL shared task. Precision asks how many of the predicted entities are correct relative to all predicted entities. Recall asks how many annotated entities are recovered relative to all annotated entities. F1 combines precision and recall into a single score. The span and category are both part of a correct entity prediction. Recognizing some of the words of an annotated name can still leave a boundary error, and giving a correct span the wrong category can still leave a recognition error. These are reasons the entity-level metric is distinct from accuracy on individual tags.
Development and test scores must be read separately. The development scores inform the choice of settings, and several of the training analyses use development data to compare runs at named epochs. The test scores give a check on a separate split after selection. A close development result can therefore coexist with a test difference. The study’s English comparison offers exactly that pattern. In German, the development figures for Baumann’s own settings help compare those settings, while the test results place the system among published German approaches.
English replication and the multilingual comparison
The published BERT LARGE results on English CoNLL-2003 are 96.6 development F1 and 92.8 test F1. The published BERT BASE results are 96.4 development F1 and 92.4 test F1. BASE is the relevant size for checking Baumann’s reimplementation. With IOB1, her English BERT BASE obtains 96.4 development F1 and 92.6 test F1. The development scores agree at the reported precision, and the test scores are close. The paper takes that agreement as evidence that the implementation reproduces the level of the original English result.
With BIO, Baumann’s English BERT BASE is at 95.9 development F1 and 92.2 test F1. That setting also reaches the range of the published report, although IOB1 gives a closer match in development F1. The test results under both conventions matter because an agreement to the precision shown in one split would still leave open which encoding the original system used. Baumann reports the English comparison from her experiments as averages over 5 randomly initialized runs.
For multilingual BERT on English CoNLL-2003, development F1 is 96.4 with IOB1 and 96.5 with BIO. Under IOB1 the multilingual and replicated English-only runs have the same reported development F1. Under BIO the multilingual result is higher than the English-only result for that encoding. The two multilingual configurations remain close to each other. Thus the development evidence supports the paper’s claim that multilingual BERT can approach the English-only system in supervised recognition.
The held-out scores give a clearer advantage to the English-only version. Multilingual BERT reaches 91.9 test F1 with IOB1 and 92.1 with BIO. Its corresponding English-only comparison scores are 92.6 and 92.2. In each case the two runs being compared use the same boundary convention. The degree of closeness varies across conventions, and the direction of the English-only advantage is the same for both on test. The paper qualifies its development-set match on this basis.
English BERT BASE and multilingual BERT on English CoNLL-2003 test F1
The replicated English BERT BASE scores higher within each boundary convention.
The numbers
| System or setting | F1 |
|---|---|
| English BERT BASE with IOB1 (this paper) | 92.6 |
| English BERT BASE with BIO | 92.2 |
| Multilingual BERT with IOB1 | 91.9 |
| Multilingual BERT with BIO | 92.1 |
The chart uses the English BERT BASE scores from Baumann’s implementation, so that the within-convention pairs come from the same study. The published BASE and LARGE scores serve the separate purpose of checking the replication. This distinction is relevant when reading the claim about multilingual performance. A change in system size or an uncertain annotation scheme adds a comparison factor that the paired runs in the chart avoid.
German recognition against published systems
Baumann compares German multilingual BERT with three published approaches. Ahmed and Mehler put a conditional random field on an LSTM. In a sequence-labeling setting, a conditional random field, or CRF, allows neighboring label choices to contribute to the score of a tag sequence. Riedl and Padó used a bidirectional LSTM with prior training on German GermEval entity recognition data. The paper reports 15 epochs of fine-tuning for their approach and 3 for the German multilingual BERT task run. Their training counts refer to the respective task procedures, alongside differences in the systems’ prior training.
Akbik and colleagues likewise used an LSTM and a CRF, combining contextual string embeddings with other features. The contextual string embeddings draw on characters in forward and backward contexts. The full system also uses GloVe and character features learned for the task. In Baumann’s comparison, this combination supplies the highest German test result. The distinction between the contextual string embeddings and the full representation matters because the paper also cites a result for using those embeddings by themselves. Contextual String Embeddings for Sequence Labeling
On the German CoNLL-2003 development set, multilingual BERT reaches 88.44 F1 with IOB1 and 87.49 with BIO. On the German test set the respective values are 85.81 and 84.98. The published test results are 83.64 for Ahmed and Mehler, 84.73 for Riedl and Padó, and 88.33 for the complete Akbik system. Baumann emphasizes the position of the IOB1 run above the first two comparison systems. The BIO run also exceeds their reported test scores, with Riedl and Padó the closer comparison.
Multilingual BERT and published systems on German CoNLL-2003 test F1
The IOB1 multilingual run exceeds two published comparison systems, and the full Akbik system leads.
The numbers
| System or setting | F1 |
|---|---|
| Ahmed and Mehler | 83.64 |
| Riedl and Padó | 84.73 |
| Akbik and colleagues | 88.33 |
| Multilingual BERT with IOB1 (this paper) | 85.81 |
| Multilingual BERT with BIO | 84.98 |
Baumann also cites 85.78 F1 on German CoNLL for the Akbik configuration that uses only the proposed contextual string embeddings. That is close to the multilingual IOB1 test result in the paper’s comparison. The higher score of the complete Akbik system puts the role of representation choice in view. It gives Baumann a basis for asking whether combining representations could also help multilingual BERT. The experiment reported here gives the BERT side of that comparison using its existing inputs.
Development performance with BertAdam and warmup
The optimizer comparison uses IOB1 on the development set and reports averages over 4 randomly initialized runs. For English BERT on English CoNLL-2003, epoch 3 gives 96.31 F1 with BertAdam and 95.76 without it. At epoch 4 the values are 96.42 and 94.80. For multilingual BERT on the English development set, epoch 3 gives 96.51 with BertAdam and 95.88 without it. At epoch 4 the corresponding F1 scores are 96.55 and 96.25.
For multilingual BERT on the German development set, epoch 3 gives 88.44 F1 with BertAdam and 86.69 without it. At epoch 4 the scores are 88.23 and 85.24. Both the multilingual German and the multilingual English experiments give the same ordering of optimizer conditions as the English-only run. Changes from one epoch to the next differ across settings, which makes the comparisons at the same epoch the natural basis for evaluating the two conditions.
BertAdam configurations on German CoNLL-2003 development F1 at epoch 4
The multilingual run using BertAdam with warmup has the higher mean.
The numbers
| System or setting | F1 |
|---|---|
| Multilingual BERT without BertAdam | 85.24 |
| Multilingual BERT with BertAdam and warmup (this paper) | 88.23 |
These are development results for the specified optimizer configurations. The stability figures accompanying them address how the scores vary across random initializations. That additional measurement matters for a training comparison in which an attractive mean might otherwise obscure variable outcomes. The spread values allow the paper’s claim about stability to be examined separately from the ordering of the means.
Additional adaptation on the recognition task
For English BERT, the plain configuration has 96.4 development F1 and 92.6 test F1 on English CoNLL-2003. The version with the added task-training methods has 95.60 development F1 and 92.38 test F1. With 10 epochs of intermediate language training and the adapted task stage, it has 95.58 on development and 92.42 on test. With 20 epochs of intermediate language training, it has 95.91 on development and 92.36 on test. The 20-epoch condition has the highest development result among the added procedures. On test the 10-epoch condition leads those variants. The plain configuration has the highest reported value on each split.
On German CoNLL-2003, plain multilingual BERT has 88.44 development F1 and 85.81 test F1. The version with the added task methods gives 87.50 and 85.78, respectively. The condition with 10 epochs of intermediate language training gives 87.11 development F1 and 84.98 test F1. With 20 epochs of intermediate language training, it gives 87.93 on development and 85.16 on test. The two intermediate durations have the same ordering on both German splits. Plain task fine-tuning again has the highest reported value for each split.
The tables for these added procedures report averages over 2 runs. The English and German task-only variants come close to the plain settings on test, and the trial durations for intermediate training move the scores in different ways depending on the comparison. Baumann finds no measured improvement over the ordinary procedure. The results establish the ordering observed in these experiments. The small number of runs and the absence of reported spread for these comparisons constrain what can be inferred about a difference that would persist over repeated training.
What the ablations show
Boundary conventions change the supervision
The comparison of annotation conventions changes a particular part of the recognition experiment. With a given language and BERT starting point, IOB1 and BIO can describe the same entity spans. What the learner sees at some word positions is a different reference tag. The resulting classifier is trained to allocate its probability differently at those positions. CoNLL F1 then measures whether the predicted tags recover the mentions. An encoding can therefore affect the score through the training and decoding of the label sequence, even when the benchmark still asks for the same entities.
There is no uniform advantage for one encoding across the paper. In English, IOB1 gives the English BERT BASE replication its higher score on development and test. For multilingual BERT on English, BIO yields the higher value on each split. On German multilingual BERT, IOB1 leads on both. This pattern gives two reasons to keep the annotation scheme attached to the reported result. The strongest encoding can differ even within the same language, and a difference between systems can look larger or smaller depending on which convention is chosen.
The English results also distinguish agreement with the published score from identification of the original procedure. The IOB1 run reproduces the published BASE development value at the precision shown, and its test value is close to the published one. The BIO result is also in the vicinity of the published test score. A match in F1 can support the claim that implementation performance is comparable. It cannot determine which set of tags was used in the earlier run when the earlier paper’s examples point to both conventions.
For the multilingual comparison, the test ordering survives the annotation change: English BERT BASE has the higher English test score in both pairs. The size of the apparent advantage is sensitive to the encoding, and the development results give a different ordering. Under IOB1 the development scores match, while under BIO the multilingual result is higher. Those observations make the two factors distinct. The boundary convention affects the comparison, and the split affects what conclusion can be drawn from that comparison about held-out recognition.
The mean scores and the variation answer different questions
For every reported pairing at the same epoch, mean development F1 favors the BertAdam setup with warmup. That includes English BERT and both uses of multilingual BERT. The repeated direction across these settings supports the paper’s interpretation that the existing training setup is beneficial. The result is particularly clear as a comparison of configurations, since the matching by language, pretrained version, annotation scheme, and checkpoint avoids comparing runs at different stages.
Epoch-to-epoch movement illustrates why the pairing matters. With BertAdam, the German development mean is higher at epoch 3 than at epoch 4. Without BertAdam the German mean also falls across those checkpoints. On English, the multilingual run without BertAdam improves from epoch 3 to epoch 4. A comparison that takes whichever epoch suits one side and uses a fixed epoch for the other could mix the timing effect with the optimizer effect. The reported matched comparisons show the ordering directly at both checkpoints.
The spread figures generally favor the setup with BertAdam as well. For multilingual BERT at German epoch 3, the paper reports ± 0.35 with BertAdam and ± 1.12 without it, around the respective means for German development F1. At epoch 4 those figures are ± 0.46 and ± 2.17. English BERT at epoch 4 shows ± 0.09 with BertAdam and ± 2.39 without it for English development F1. The smaller reported spreads in these comparisons support the paper’s statement about improved stability under the tested setup.
The English multilingual run at epoch 4 is an exception to the pattern in variation. The English development score with BertAdam has a reported spread of ± 0.21. The spread without it is ± 0.06. The mean still favors BertAdam in that comparison. The observation matters because a more favorable average and more consistent outcomes from one start to another are distinct claims. The means favor the standard setup throughout the table, while the evidence about spread depends on the run setting.
The table calls its comparison one with and without BertAdam. Baumann foregrounds learning-rate warmup in explaining the result. The evidence identifies the advantage of the configuration that includes it. The report does not document an experiment in which the schedule alone is varied and the rest of the optimizer is explicitly held fixed. The strength of the observed pattern should therefore be read alongside the specificity of the intervention recorded in the results.
The adapted task recipe is tested as a package
The ablation evidence is coarser for gradual unfreezing and discriminative rates. The study explains how to implement both in the deeper architecture and evaluates the resulting task procedure. That comparison addresses a practical question: how well does the resulting recipe work beside plain BERT task training? The adapted task setting comes in below the plain setting on each reported English and German split. On the German test set the values are 85.78 for the adapted task setting and 85.81 for the plain one. That result is evidence of no demonstrated gain in this comparison.
The comparison has limited leverage on the individual ingredients. When the trainable depth and the layer-specific rates change in the same procedure, a single recognition score cannot tell how much each contributed. A layer could become trainable too late for its rate to have much effect. An appropriate schedule with a different set of rates could also behave differently. What the paper directly measures is the recognition performance of the tested combination. Separate downstream results for each layer schedule and each rate pattern would address a different question about their independent contributions.
The search over rates gives useful procedural information. It shows why the steepness inherited from recurrent work is varied in the BERT experiments, and how a shared rate is included through δ equal to 1. The final results give the outcome of the selected recipe. They do not trace the score to specific choices of δ or η₀, or report a table of recognition results across those values. The paper’s conclusion about discriminative rates is consequently tied to the way the search and the full adaptation were carried out.
The group size for unfreezing has a similar role. Groups of 3 shorten the schedule compared with adding the Transformer’s layers individually after successive epochs. That choice also determines how many layers begin receiving updates together. The reported experiment has one such grouping procedure. It offers evidence about the feasibility and performance of that adaptation. The influence of different group sizes, a different moment of unfreezing, or a different duration after all layers become trainable remains unresolved.
Extra language training gives no repeatable direction across conditions
The intermediate stage can be compared with the added task recipe by holding the subsequent task procedure in view. For English test F1, the 10-epoch language stage gives 92.42, the task-only variant gives 92.38, and the 20-epoch language stage gives 92.36. The shorter intermediate stage is on one side of task-only and the longer one on the other. Their ordering on English development differs. That is little support for treating more time on the language objective as a consistent improvement to the recognition recipe.
Both German intermediate variants fall below the German task-only variant on test. On German development, the longer intermediate variant exceeds task-only and the shorter one falls below it. The plain German task baseline remains above all of them on each split. There is thus a distinction between movement within the adapted configurations and an improvement over ordinary fine-tuning. The extra language stage can change the relative performance of the variants while leaving the baseline comparison unresolved in its favor.
These comparisons help explain the paper’s restricted claim about extra training. The intervention feeds target text through a language objective, but success is measured after the system also learns the labeled task. Changing the intermediate duration can affect that final outcome without revealing where the change occurred or which part of recognition benefited. No intermediate variant is the best reported setting on either language’s development or test split. The experiment supplies evidence about final entity F1 for the procedure as tried, with little evidence about the mechanism behind the small movements.
The comparison with contextual string embeddings suggests a question
The German result cited for the contextual string embeddings on their own is close to the strongest multilingual BERT result. The full system from Akbik and colleagues reaches a higher test score with a combination of representations. Baumann uses that comparison to raise the possibility that multilingual BERT could benefit from additional representations. The evidence about those representations comes from the cited system. The German BERT experiment keeps its own architecture and input features, so its results do not measure the effect of attaching any of those components to BERT.
That distinction is central to what this part of the analysis can explain. The German benchmarks establish a useful level of performance for multilingual BERT and show that a stronger comparison system exists. They also show that the choice of prior representations is worth examining. Because the systems differ in several ways, the ranking on its own has little power to identify which changes would improve BERT. The paper leaves that as an empirical question.
Limitations
Limits Baumann identifies
Baumann treats the study as an initial test under favorable language and data conditions. Both languages have native recognition material, and they are closely related in the paper’s framing. The design lets the paper assess the usefulness of multilingual pretraining without simultaneously asking how a tagger handles missing target-language annotations. The author calls for evaluation across a broader set of languages and tasks. The future-work discussion names Finnish, Korean, and Tamil as possible settings in which to study the influence of morphology, the structure and variation of word forms.
The benchmark scope is similarly deliberate. CoNLL-2003 provides a connection to the original BERT English evaluation and to published German comparisons. Baumann presents it as a German evaluation baseline that could be extended to GermEval 2014. A second benchmark would supply another body of annotated German text on which to investigate whether the observed ordering holds. The role of GermEval in earlier German training does not supply that independent test for Baumann’s multilingual tagger.
The paper qualifies the English result in its discussion. Development F1 supports the claim of comparable performance, while the multilingual test result trails the English-only run under each convention. Describing the systems as matching without naming the split would erase a finding that Baumann explicitly points out. For German, the paper notes room for improvement. The richer representation used in the strongest German approach is a reason to investigate a related change, with any benefit for BERT still to be measured.
Baumann also describes the adaptation of the recurrent training methods as too coarse for an explanation of their effects inside a Transformer. Grouping the layers and searching manually specified rates are practical ways to make the methods applicable. The reported evaluations can compare the resulting recipes with plain fine-tuning. A finer-grained investigation would be needed to explain what happens to particular layers, or to distinguish a weakness of the transferred settings from a limitation of the underlying method. The paper calls for such an investigation in discussing the added training experiments.
Limits that follow from the experimental design
The source of task supervision bounds the transfer claim. For German evaluation, the system can learn the recognition task from labeled German text. For English evaluation, it can learn from labeled English text. The starting weights are multilingual, and the task supervision is native to each run. A zero-shot experiment would remove the labeled task-training examples in the target language and ask whether a tagger trained elsewhere transfers. The paper’s procedures do not estimate performance in that condition. They also give no comparison at different amounts of labeled text that could establish whether multilingual pretraining reduces annotation needs.
The study tests the downstream usefulness of a multilingual starting point. It has no control in which particular source languages are removed or their presence varied during pretraining. Therefore the German results cannot show which parts of the multilingual training collection supply the relevant information. Several accounts are compatible with successful German recognition. German pretraining text could account for much of the gain from prior learning, or training on other languages could provide useful additional regularities. The experiment does not track those contributions.
That question also depends on the comparison available in each language. The English setup has a corresponding English-only BERT BASE implementation in the same task pipeline. The German comparisons use published systems with different architectures and resources. A ranking among those systems answers whether multilingual BERT is competitive on German CoNLL-2003. A matched German-only BERT comparison would be needed to estimate the effect of changing the language composition of pretraining while retaining the rest of the approach. Neither the relative position of Riedl and Padó nor the lead of the complete Akbik system identifies that effect.
Evaluation through aggregate F1 leaves the distribution of errors unknown. The results do not break out precision and recall, category-specific performance, or boundary versus type errors. Thus the English test advantage could reflect a difference in missed mentions, in predicted mentions that have no matching annotation, or in how the two systems assign boundaries or categories. Aggregate F1 records that the outcomes differ without revealing which of those possibilities accounts for the difference. There is also no analysis of whether the systems tend to make mistakes on the same sentences.
The run counts and reporting formats place different limits on different parts of the training analysis. The warmup comparison includes spread around the development means, so variation can be considered directly for each reported setting. The tables for the extra adaptation recipes give averages over 2 runs without accompanying spread. Their results support the descriptive statement that the adapted configurations yielded no higher reported score than the plain setting. They give a weaker basis for interpreting fine differences between adapted variants or claiming that a particular change would always lower performance.
There is also a distinction between evidence that an implementation attains a published performance level and detail sufficient to reproduce every step. Baumann provides the core architecture, training objective, encoding alternatives, and hyper-parameter choices. The exact policy for projecting tags between original words and WordPiece positions remains implicit. The English replication is a check on the overall procedure. It cannot resolve every detail of how each implementation aligns the tags or interprets the output sequence.
Finally, the extra language training is evaluated through the eventual tagger. The paper gives no intermediate language-objective scores or analysis showing how the extra training changed representations before recognition training. A weak final result can establish that the procedure failed to help the downstream metric in the tested setting. The final score alone leaves open how much the intermediate stage changed the weights, and whether subsequent task training preserved or altered those changes.
What came after
The historical connection Baumann draws is to concurrent work by Wu and Dredze. She cites it for showing multilingual BERT’s potential for zero-shot transfer. That line of work examines a condition the German and English recognition runs leave open. If target-language examples are available, the recognizer can learn the task distinctions from those examples after multilingual pretraining. A zero-shot test asks whether a system can carry task knowledge into the target language without that language’s labeled training examples. The two designs use multilingual BERT to answer different questions about where the information for successful adaptation comes from. Beto, Bentz, Becas
Baumann also points to Lample and Conneau’s cross-lingual pretraining work, or XLM. In her discussion this work provides evidence that changes to pretraining can improve a multilingual starting point. That intervention comes before the stage Baumann varies in the fine-tuning experiments. A comparison of pretraining approaches would ask how the shared representation is acquired. The adaptation experiments hold the available starting point fixed within each comparison and ask how best to use it for labeled recognition.
These connections describe neighboring research, with Wu and Dredze explicitly identified as concurrent. Baumann’s future-work discussion poses further experiments instead of reporting subsequent adoption of her exact procedure. It asks whether the benefit of richer inputs seen in the German comparison can carry over to BERT, whether the findings hold for more languages and tasks, and how the Transformer responds to finer changes in task training. Each question follows from a distinct result or limit. Competitive supervised recognition motivates a wider language and task evaluation. The leading German score motivates testing additional representations directly. The outcome of the adapted recipe motivates experiments that vary the depth and timing of updates independently.
Cite
Cite as Antonia Baumann. 2019. Multilingual Language Models for Named Entity Recognition in German and English. Proceedings of the Student Research Workshop Associated with RANLP 2019.
@inproceedings{antonia2019multilingual,
title = {{Multilingual Language Models for Named Entity Recognition in German and English}},
author = {Antonia Baumann},
booktitle = {Proceedings of the Student Research Workshop Associated with RANLP 2019},
year = {2019},
doi = {10.26615/issn.2603-2821.2019\_004},
url = {https://doi.org/10.26615/issn.2603-2821.2019_004}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/baumann-2019-multilingual-language-models-named-entity/