Batavia asked for advice. Pretrained language models for Named Entity Recognition in historical texts.
Paper · 2021 · Sophie I. Arnoult, Lodewijk Petram and Piek Vossen
Summary
A place name can tell a historian where an event happened or who took part in it. If a letter says that Batavia requested advice, the name points to people acting on behalf of Batavia. If the letter describes a journey to Batavia, the name identifies a destination. The authors use this distinction to study named entity recognition, the task of finding names in running text and assigning each mention a category. They ask how well pretrained systems recognize names in Early Modern Dutch, whether modern editorial notes can help them, and whether the results change when the task requires interpreting what a place name refers to in context.
The authors annotate letters written for the Dutch United East India Company, known as the VOC, along with the summaries and comments added by modern editors. The resulting dataset contains 24.5k annotated entities. The historical passages and the editorial notes are kept in separate documents, so the authors can train and test on either kind of writing or on both. They compare BERTje and RobBERT, which were pretrained on Dutch, with mBERT and XLM-R base, which were pretrained on many languages. In the standard task, every place name used as a location or as a geopolitical actor gets the same label. The multilingual systems lead on historical passages, on editorial notes, and on the combined test set when training and testing use the corresponding material.
Adding editorial notes to the historical training passages improves historical test performance for all the systems. XLM-R base, for instance, goes from 88.2 to 91.0 F1 on the historical test set. F1 balances how many predicted entities are correct and how many annotated entities are recovered. Adding historical passages to notes training also improves overall scores on the notes, with smaller gains. The effect varies by category. For XLM-R base, the notes are particularly helpful for finding people and ships in the historical passages, while historical passages help it recognize forms derived from religion names in the notes.
The ranking changes when the systems must tell geographic mentions apart from mentions that stand for political, commercial, or other actors. On the combined test set, every system scores lower with that distinction in place. mBERT has the highest overall mean F1 at 89.1, closely followed by RobBERT at 89.0. RobBERT scores higher on the geopolitical category itself, at 84.0 F1 against mBERT’s 82.0. The comparison shows why the choice of labels matters. A system that does well at finding and broadly classifying names may have more difficulty when the label depends on the role of the name in a particular passage.
Deep dive: Batavia asked for advice. Pretrained language models for Named Entity Recognition in historical texts.
A study of how modern editorial notes help identify names in historical Dutch letters, and what changes when place names stand for people or institutions. · about 32 minutes to read
The problem and its context
A historical edition contains writing from different periods
The VOC General Letters were official reports sent to the company’s board. The letters were written between 1610 and 1795 and describe trade, conflicts, and intelligence from areas including Indonesia, Japan, and South Africa. The Huygens Institute, whose specialty is Dutch history, and its predecessors transcribed and edited a selection covering the years 1610 through 1767. The editorial work took place between 1960 and 2017. The collection that a researcher reads therefore brings together language from the period being studied and language from the much later process of preparing the edition.
That mixture matters because the editors serve several purposes. They reproduce parts of a letter, summarize other parts in paragraph notes, and add comments in footnotes. A name in a transcription belongs to the surviving wording selected for the edition. A name in a summary or comment belongs to an editor’s account or explanation. Both can help a historian locate relevant material. For an automatic name recognizer, however, they offer different examples of how names appear and what kind of language surrounds them.
Recognizing names is a step in information extraction. A reader can already search for a spelling they know. An annotated name span can also point them to a mention they had no reason to search for, or indicate whether an unfamiliar expression is a person, a ship, or a location. The authors treat annotation as part of a broader effort to make the letters easier to use in historical research. The immediate measure of success is whether a system finds and classifies the same mentions that annotators marked.
Historical Dutch introduces variation both within the letters and between the letters and their notes. Spelling is less standardized in the historical material, and language use can vary over the period covered by the collection. The paper also gives examples where the syntax and placement of names are unfamiliar from contemporary Dutch. Some residual errors come from a different source altogether. Character recognition and the conversion of printed pages into text can damage or split an expression that an editor or an annotator would otherwise read as a single name.
These difficulties make a comparison between the historical and editorial parts more informative than an overall score alone. A strong pooled score could reflect good recognition in the notes. A score on the historical passages measures something more specific, particularly when the evaluation passages come from earlier letters than the ones used for training. Keeping the two parts separate also makes it possible to ask whether examples from one part help with the other.
Why compare Dutch and multilingual pretraining?
The paper places this work in a line of research on contextual word representations. In this approach, the representation of a word depends on the sequence in which it appears. BERT uses Transformer attention to build such representations. Attention allows a position in an input sequence to draw information from surrounding positions. A pretrained encoder can then undergo fine-tuning on examples labeled for a particular task. The NER annotation tells the system which expressions to pick out and how to classify them.
The authors had reason to consider both Dutch-specific and multilingual pretraining. As they describe earlier work, mBERT could transfer across languages, with evidence that its representations captured patterns useful across different languages and scripts. Historical Dutch offers a related test of transfer. A system can be asked to apply what it learned from annotated contemporary Dutch notes to differently spelled and differently phrased historical Dutch. The paper uses the term crosstext for experiments that cross this boundary within the edition.
Earlier Dutch comparisons gave a mixed picture. The authors report that mBERT had been competitive with Dutch-specific systems on part-of-speech tagging, where words are assigned grammatical categories. They also describe stronger Dutch-specific performance on semantic role labeling, which identifies roles such as who carried out an action, and on a task involving grammatical agreement. Earlier Dutch NER scores depended in part on which version of the multilingual comparison system was used. The relevant question was which characteristics of a task might favor either kind of pretraining.
The collection allows the authors to vary more than the source of the language. They can also vary what counts as a correct semantic classification while keeping the documents fixed. In ordinary place-name recognition, the same category covers a name used as a destination and a name used for people who made a decision. In the harder version, the annotation distinguishes those uses. This brings a role-sensitive decision into the familiar task of finding and labeling names.
A name’s role can change without a change in spelling
The example of Batavia illustrates metonymy, the use of an expression for something closely associated with what it usually denotes. A place can give its name to an administration, a community, or some other party that acts in a passage. Asking for advice provides a clue to that reading. Recognizing the spelling of Batavia helps locate the name. The surrounding phrase helps determine its category under the more detailed annotation.
The guidelines reach beyond explicit requests or decisions. A location name can denote a party that receives an instruction, a political counterpart, or an entity associated with revenue. The concept of a geopolitical mention in this study depends on how the expression is used. There is no permanent assignment by which a name belongs to the geopolitical class in every occurrence.
That distinction creates a useful connection between the archive and the task design. A geographic reading and an institutional reading can lead a historian towards different interpretations of the same letter. For the experiment, they create competing labels for a span that a system might already locate successfully. The authors can compare the overall difficulty of the two tasks and ask whether a system that performs well on the simpler categories keeps its advantage when the categories change.
The method, step by step
From printed edition to annotated documents
The authors start from a version of the edition that had already undergone optical character recognition and was available in Text-Fabric. The post-recognition text was reasonably clean, although they identify errors in character recognition, formatting, and tokenization, the division of text into processing units. A misread character can change the appearance of a name. A line break carried over from a printed page can put a space inside one. The examples establish what the recognizers encounter in practice, where historical spelling and conversion artifacts can both create unfamiliar forms.
The selected material comes from 25 letters sampled across the collection. The authors separate the historical passages and notes from a letter into different documents so they can be used independently. Annotation losses caused by server errors left 43 documents, comprising 22 historical documents and 21 notes documents. Of the selected letters, 18 have annotations for both parts, 4 have historical annotations only, and 3 have notes annotations only. This incomplete pairing affects what can be held constant when building the training and evaluation splits.
Annotations record a span and a category. A span states where an entity starts and ends in the text. Its category describes the kind of mention according to the project’s guidelines. The distinction between span and category makes errors easier to diagnose. A system may select the right words and call a ship a location. It may also recognize a person while wrongly including an occupational title in the span.
Preparing and testing a recognizer for the letters
The steps in order.
How the annotation treats names and derived forms
The base labels are LOC for locations, ORG for organizations, PER for persons, REL for religions, and SHP for ships. The authors also mark expressions formed from names. A label ending in deriv identifies a grammatical derivative of a name. A label ending in part identifies a form in which a name is part of a compound. Bandanezen, formed from Banda, is a location derivative. Javakoffie, a compound containing Java, is marked as an expression with a location name as a constituent. The additional GPE category identifies the contextual geopolitical use of a location name.
Location boundaries follow a convention that combines linguistic interpretation with a practical cue. If a description contains a place name, the annotators generally mark the name itself. A full expression can qualify if it functions as the established name of a place. Capitalization helps the annotators make this distinction in compositional location expressions. The paper contrasts an east-coast expression treated as a complete name with a description of a north coast in which only Java is marked. It also shows that a word meaning coast can itself refer to a specific coastal region when the edition establishes that reading.
Organization names generally include their compositional parts. The guidelines make an exception for productive uses of the Dutch terms for chamber and company. A passage can use one of these words while listing several locations or specifying an associated country. Under the project’s conventions, the organization expression and those geographic or derived expressions can receive their own annotations. A common noun that denotes an institution, such as a court, falls outside the organization category as defined for this study. An accompanying geographical derivative can still be labeled.
Person spans omit titles and other qualifiers. The authors illustrate the rule with an engineer whose occupation precedes his name and with a name preceded by a title. The latter case points to a practical difficulty in the letters. The corpus spans periods and regions in which a title may be unfamiliar enough to look like part of a person’s name. Drawing the boundary according to the guideline may require evidence about the expression that a contemporary Dutch reader would rarely need for a familiar title.
Ship names similarly exclude determiners and qualifiers. The archive gives ships enough prominence for the authors to devote a separate class to them. This choice has consequences for ambiguous names. A form that could identify a ship or a place must receive a different category once its referent is known. The researchers’ analysis of annotation disagreements shows that resolving such cases sometimes requires consulting the edition’s supporting material.
Religion names and derivatives form a small category that the authors consider relevant to the collection. Their guidelines include expressions for religious groups even when written without a capital letter. That treatment complements the rules for compositional locations. Capitalization can help establish the boundary of a specific kind of name. Other categories can warrant annotation on the basis of meaning and use even without the same orthographic cue.
How context turns a location into a geopolitical mention
The GPE rule asks what role a location expression plays in the passage. The authors include uses in which a place stands for an agent, an entity involved in or affected by an event, an experiencer, or a beneficiary. Political and trading actors also qualify. The name Batavia receives the label when it stands for the party requesting advice. A reference to peace with France illustrates a political counterpart. The role in the expression determines the label even though the same name can designate a place elsewhere.
For the standard experiment, the authors convert GPE to LOC. The annotation span survives the conversion, while the categories collapse into one. In the semantic experiment, the original distinction remains. This design lets the comparison focus on a change in the required output. The system encounters the same document collection, but a prediction that identifies the right name as a generic location can now be wrong because the passage calls for GPE.
The experiment also simplifies several rare categories. Under both versions of the task, REL and REL part map to REL deriv, LOC part maps to LOC deriv, and ORG part maps to ORG. The evaluation labels consequently need to be read as groups of annotated forms. A score labeled LOCd in the results includes the mapped compounds as well as location derivatives. A score labeled RELd similarly covers the religion annotations pooled under that label. The scheme used to preserve distinctions in the corpus is finer than the scheme used to compare the recognizers.
How the annotators worked
Two annotators applied the guidelines using INCEpTION. The guidelines were informed by earlier work on German named entities. To resolve difficult names, the annotators could consult the volumes’ indexes of people, places, and ships, along with a glossary. A list of names compiled from those indexes also supported the annotation. The annotators worked chiefly on text without preassigned spans, with a few documents receiving preliminary annotations from name matching or an early recognizer. Much of the annotation was done on text extracted from post-recognition TEI files and was subsequently moved to the Text-Fabric version.
The example involving Lamakera and Mauwadasje shows what these resources contribute. The passage contains the unfamiliar title sengadji and places the names in a construction that is unusual in contemporary Dutch. The indexes identify Lamakera as a place and Mauwadasje as a person. The glossary explains that the title refers to the head of a village or district. Each piece of information helps interpret the passage, and its contribution is different from recognizing that the expressions look like names.
The authors check agreement partway through annotation. They first match spans that have identical boundaries and then examine whether the category agrees. For annotations still unmatched, they look for overlapping spans, which indicate disagreement about boundaries. The residual cases are mentions identified as entities by only one annotator. This procedure breaks disagreement down into choices the guidelines can address. The authors use what they learn to clarify the rules and correct annotations.
How the input is prepared
Training data are used to adapt the pretrained systems to the task. Validation data are held aside to decide which saved version to retain during fine-tuning. Test data are reserved for evaluation. When both documents from a letter are available, the authors assign its historical passages and notes to the same split. This prevents a situation in which the training set includes an editor’s treatment of a particular letter while the test set contains the historical passages of that very letter, or vice versa.
The authors intentionally place early historical passages in the test set and use later ones for training and validation. This makes the historical evaluation a transfer problem across periods as well as a test on unseen letters. Because the early letters provide comparatively few notes, the material used to test notes also includes a letter whose notes alone were annotated. The way geopolitical mentions cluster across notes documents is another consideration in placing the documents.
IXA-pipe provides the initial tokenization. For sequence boundaries, the authors use paragraphs and individual notes. One reason is that automated sentence splitting can misread the many abbreviations in the letters as sentence boundaries. A further reason is that a paragraph can carry context for recognizing a name beyond the immediate sentence. The authors then prepare the sequences for each system’s own tokenizer, splitting sequences that exceed 256 sub-word units.
Subword tokenization represents words using pieces drawn from a learned vocabulary. An unfamiliar written form may therefore be represented as a sequence of smaller pieces even when the complete form is absent from that vocabulary. The 256 limit applies after this division. A paragraph of a given length under IXA-pipe can have different lengths in sub-word units under the different pretrained systems. The initial token counts describe a common set of documents, while the sub-word counts determine how those documents fit into each encoder’s input.
The pretrained encoders and fine-tuning settings
BERTje and RobBERT are the Dutch-specific systems. BERTje was pretrained on 12GB of mixed material, mainly contemporary. Its SentencePiece-based tokenizer uses a vocabulary of 30k. The encoder follows the BERT base structure, with 12 Transformer layers and 12 attention heads. A layer is one stage of contextual processing, while attention heads within a layer can attend to different patterns. The paper gives the hidden representation size as follows.
H = 768
H denotes the size of the hidden representation used by a Transformer layer. The equality gives that size in representation dimensions. BERTje’s pretraining combines masked language prediction, where the system uses surrounding text to recover hidden input, with an objective that asks it to identify sentence order.
RobBERT also follows the BERT base structure. Its pretraining follows RoBERTa and uses 39GB from the OSCAR corpus. The authors use RobBERT v2. Its byte-level byte-pair encoding tokenizer forms input pieces from byte sequences, with a vocabulary of 40k. The pretraining objective uses dynamic masking, so the selection of hidden inputs can vary during training.
The multilingual comparison includes cased mBERT and XLM-R base. The mBERT pretraining data come from Wikipedia in 104 languages. The sampling procedure gives less represented languages more weight, and the encoder is trained without being told the language of each input. A shared WordPiece vocabulary of 110k supplies its input pieces. Like BERT base, it learns from masked input and a next-sentence prediction objective.
XLM-R base was pretrained on 100 languages. Its training material is a CommonCrawl corpus of 2.5TB, and its shared SentencePiece vocabulary contains 250k tokens. Its masked prediction objective uses fixed-length token sequences during pretraining. The distinction between that design and sentence-oriented pretraining becomes relevant later, because the historical test passages are relatively long and the fine-tuning input is organized around paragraphs and notes. All the systems have a broadly comparable base architecture, while their pretraining data, objectives, and vocabularies differ.
Fine-tuning uses the HuggingFace Transformers library and the Adam optimizer. Adam controls parameter updates using running estimates derived from the gradients, which describe how changes to the parameters affect training loss. The authors give these settings.
β₁ = 0.9
β₁ controls the decay of Adam’s running estimate of the gradient. The value 0.9 is the setting used in the fine-tuning runs.
β₂ = 0.999
β₂ controls the decay of the running estimate based on squared gradients. The value 0.999 is shared across the runs.
ε = 10⁻⁸
ε is the small term used for numerical stability in the update. The expression 10⁻⁸ is ten raised to a negative exponent and gives its value.
5 · 10⁻⁵
This expression is the learning rate, which sets the scale of parameter updates. The dot indicates multiplication, and 10⁻⁵ is the power of ten by which 5 is multiplied.
Fine-tuning uses batches of 16 and no weight decay. The authors run each condition with random seeds 1, 10 and 100. A seed sets the starting state of random operations in a run, making repeated runs possible under specified conditions. The authors retain checkpoints every 100 steps when training on the historical passages or the notes alone and every 200 steps when training on both. They select the checkpoint with the best validation loss within 4 epochs. An epoch is a pass through the training data, and validation loss measures the prediction error on the validation set for checkpoint selection.
The paper reports around 15 minutes per run for fine-tuning on the combined data, using a single Tesla P100. The authors use shared settings and report no hyper-parameter search. They make the dataset and experiment code available in the voc-missives repository.
Experiments and results
What the training and test sets contain
The historical documents have 233k tokens and 9.57k annotated entities. The notes have 201k tokens and 14.9k entities. The entity density is 4.1% in the historical documents and 7.4% in the notes, with density expressed as the number of annotated entities relative to the token count. The notes contain more annotations of locations, people, and ships. The historical passages contain more expressions derived from locations and religions. These differences mean that a change of training material also changes how often the system sees examples of particular labels.
The training material contains 170k historical tokens with 7192 entities and 160k notes tokens with 11.5k entities. In validation, the historical documents have 30.3k tokens and 981 entities, while the notes have 24.4k tokens and 1991 entities. In the test set, the historical documents have 32.3k tokens and 1401 entities, and the notes have 16.7k tokens and 1436 entities. Together, the test documents contain 49.0k tokens and 2837 entities. Thus the historical and editorial test parts contain similar numbers of annotated mentions within quite different amounts of running text.
The historical test passages are from 1621-43. The authors put them at the early end of the annotated historical material to make the evaluation more demanding for a system trained and validated on later passages. The notes are modern writing, even when the letter with which a note is associated falls in the historical test range. The dates describe the source letters. The chronological contrast in the historical split therefore has a different meaning from the division of notes by the dates of their associated letters.
The average length of a historical test sequence before sub-word tokenization is 142.9 tokens. For the notes test sequences, the average is 32.5 tokens. The corresponding averages for training are 56.6 historical tokens and 89.4 notes tokens. The historical test therefore evaluates the recognizers on longer sequences on average than the ones they see in historical training, while the notes test supplies comparatively short sequences. These are properties of the selected split, and they matter when interpreting why the notes scores and historical scores differ.
What a score compares
The paper uses F1 to compare entity predictions. Precision asks what share of the predicted entities agree with the annotation. Recall asks what share of the annotated entities the system recovers. F1 takes their harmonic mean, so a score can drop because the system leaves entities out or because it predicts extra entities, incorrect boundaries, or incorrect categories. Finding a name with the wrong category can affect the result even when the relevant words were found.
The comparison systems are the Dutch-specific and multilingual pretrained encoders adapted with the shared fine-tuning procedure. For testing the value of adding editorial notes, a direct baseline is the same encoder fine-tuned on historical passages alone. For testing the value of adding historical writing to notes training, the baseline is the same encoder fine-tuned on notes alone. This within-system comparison controls which pretrained encoder is used. Across encoders, the scores compare complete pretrained systems with all the differences in their prior training and tokenization.
The reported prediction scores are means across the fine-tuning runs. The paper gives standard deviations alongside them, describing how far the scores vary across those runs. Differences in standard deviation can matter even when two means are close. The historical results include examples in which a system with a high mean also shows considerable run-to-run variation.
Standard recognition within each kind of writing
In the first comparison, the training material and test material are of the same kind. Historical fine-tuning is evaluated on the historical test passages. Notes fine-tuning is evaluated on the notes test documents. Combined fine-tuning is evaluated on the combined test set. The standard label scheme treats geopolitical mentions as locations.
Standard NER on the VOC historical test set after historical-only fine-tuning
The multilingual systems have the highest mean scores on the historical test passages.
The numbers
| System or setting | F1 |
|---|---|
| BERTje | 84.4 |
| RobBERT | 86.1 |
| mBERT (this paper) | 88.7 |
| XLM-R base | 88.2 |
mBERT’s historical mean of 88.7 comes with a standard deviation of 3.2. XLM-R base has a mean of 88.2 and a standard deviation of 0.6. For the Dutch-specific systems, BERTje’s mean of 84.4 has a standard deviation of 2.5, and RobBERT’s mean of 86.1 has a standard deviation of 0.8. The multilingual systems lead the comparison by mean score, while XLM-R base and RobBERT show less variation across runs than mBERT and BERTje in this setting.
For standard NER on the notes test set after notes-only fine-tuning, mBERT and XLM-R base both have a mean F1 of 93.4, with standard deviations of 0.7 and 0.4, respectively. RobBERT has 92.7 with a standard deviation of 0.5, and BERTje has 91.8 with a standard deviation of 0.4. The multilingual lead thus also appears on the modern editorial material. The systems are closer together on the notes than in the historical comparison.
When fine-tuned and tested on the combined historical and editorial material, XLM-R base reaches 92.3 mean F1 with a standard deviation of 0.3, and mBERT reaches 92.2 with a standard deviation of 0.6. RobBERT has 91.1 with a standard deviation of 0.9, and BERTje has 90.4 with a standard deviation of 0.5. This pooled evaluation gives the overall ordering for the standard task. The separate tests are needed to see how each part contributes to the picture.
All the systems have higher mean scores for notes-to-notes evaluation than for historical-to-historical evaluation. The authors suggest that the notes may be linguistically more homogeneous. They also point to sequence length as a possible factor. A sequence frequently contains more historical tokens on the test side than on the training side, and historical paragraphs are much longer on average than the notes test sequences. The comparison measures recognition on the two parts as sampled and prepared, with these characteristics occurring together.
Training on one part and testing on the other
The crosstext tests take a system fine-tuned on one kind of writing and evaluate it on the other. The target test sets stay the same, so each result can be compared with the result from fine-tuning on the target kind of writing. This tests how well labeled examples transfer between the historical reports and the modern notes without including both types in fine-tuning.
On the historical test passages after notes-only fine-tuning, mBERT obtains 79.5 mean F1 with a standard deviation of 1.2, and XLM-R base obtains 77.9 with a standard deviation of 2.9. RobBERT obtains 71.9 with a standard deviation of 1.8, and BERTje obtains 68.7 with a standard deviation of 3.3. All these means are lower than their historical-only training counterparts. The multilingual systems score higher in this transfer setting, and their mean scores stay closer to the corresponding results from historical-only training.
The transfer in the other direction yields higher scores. With historical-only fine-tuning and evaluation on the notes test set, mBERT reaches 86.8 mean F1 with a standard deviation of 3.6. XLM-R base reaches 84.7 with a standard deviation of 0.6, RobBERT reaches 84.1 with a standard deviation of 1.5, and BERTje reaches 82.8 with a standard deviation of 2.9. Each is below the same system’s notes-only baseline. The direction of transfer matters, and the standard deviations show that the consistency of a result can differ from its mean ranking.
Together the tests support the authors’ argument about multilingual transfer within this collection. The gap between the families is especially visible when the recognizer learns its entity labels from modern notes and applies them to the historical passages. That setting is distinct from the pooled experiments, where the training data already contain historical examples and the question is whether editorial material contributes to them.
Training with both historical passages and notes
The combined fine-tuning experiment retains the target test set and adds the other kind of writing to the training condition. The historical comparison asks how well the systems recognize names in the same held-out historical passages after training with and without editorial notes. The notes comparison asks the reciprocal question for the same held-out notes.
Historical test F1 with and without notes in standard NER training
Adding editorial notes improves historical test performance for every system.
The numbers
| System or setting | F1 |
|---|---|
| BERTje, historical training | 84.4 |
| BERTje, combined training | 87.8 |
| RobBERT, historical training | 86.1 |
| RobBERT, combined training | 89.3 |
| mBERT, historical training | 88.7 |
| mBERT, combined training | 90.8 |
| XLM-R base, historical training | 88.2 |
| XLM-R base, combined training (this paper) | 91.0 |
The historical test means after combined fine-tuning range from BERTje’s 87.8 to XLM-R base’s 91.0. In that setting, the standard deviations are 0.8 for BERTje, 1.1 for RobBERT, 0.7 for mBERT, and 0.5 for XLM-R base. XLM-R base has the highest combined-training mean on the historical test, and mBERT’s combined-training result varies less across seeds than its historical-only result. The improvement in the historical means is shared by both kinds of pretraining.
For the notes test set, combined training yields 92.9 mean F1 for BERTje and RobBERT, with standard deviations of 0.6 and 0.7. It yields 93.6 for mBERT and XLM-R base, with standard deviations of 0.6 and 0.1. Every system’s mean exceeds its notes-only baseline. The movements are modest alongside those on the historical test. The notes-only baseline for BERTje is 91.8, while those for RobBERT, mBERT, and XLM-R base already sit close to the combined-training results.
The distinction between the target-specific estimates and the pooled one matters. XLM-R base’s 91.0 describes historical test passages after combined fine-tuning. Its 93.6 describes notes after the same kind of fine-tuning. Its 92.3 describes evaluation on the combined test material under the standard labels. Each answers a different question about where the predictions are being made.
Scoring the distinction between places and geopolitical actors
The final overall comparison fine-tunes and evaluates on the combined material under both label schemes. The category change applies to the whole experiment, including the training labels. This asks whether the recognizers can learn the more detailed distinction and what happens to overall F1 when they do.
Combined VOC test F1 with the geopolitical label retained or merged
Retaining the geopolitical label lowers overall scores and brings RobBERT close to mBERT.
The numbers
| System or setting | F1 |
|---|---|
| BERTje, merged labels | 90.4 |
| BERTje, distinct geopolitical label | 88.4 |
| RobBERT, merged labels | 91.1 |
| RobBERT, distinct geopolitical label | 89.0 |
| mBERT, merged labels | 92.2 |
| mBERT, distinct geopolitical label | 89.1 |
| XLM-R base, merged labels (this paper) | 92.3 |
| XLM-R base, distinct geopolitical label | 88.4 |
The multilingual systems have the highest means with merged labels. With GPE retained, mBERT’s mean of 89.1 has a standard deviation of 1.2, and RobBERT’s mean of 89.0 has a standard deviation of 0.5. BERTje and XLM-R base both have a mean of 88.4, with standard deviations of 0.5 and 2.2, respectively. The larger spread for XLM-R base accompanies its loss of the highest mean ranking when the label scheme changes. For mBERT and RobBERT, the closeness of the overall means makes the category-level breakdown especially informative.
What the ablations show
Adding notes changes several kinds of historical prediction
The closest test of the editorial material’s contribution is the comparison between historical-only fine-tuning and combined fine-tuning on the same historical test passages. The positive movement across the systems shows that the gain is shared across the Dutch-specific and multilingual encoders. The authors break the result down by label for XLM-R base to see which kinds of mention contribute.
Ship recognition shows a large change. On the historical test set, XLM-R base has 60.0 mean F1 for SHP with historical-only training and 76.2 with combined training. The corresponding standard deviations are 5.0 and 1.0. For persons, the mean moves from 74.1 to 79.3, and the standard deviation moves from 4.2 to 2.2. The notes contain more annotated people and ships than the historical writing, so these are categories for which the additional source offers a substantial supply of examples. The lower standard deviations also show that the observed improvements are accompanied by more similar results across the fine-tuning runs.
The historical gains extend to categories that are already well represented in the historical passages. The mean for LOC moves from 93.0 to 94.4, the mean for LOCd moves from 92.0 to 93.1, and the mean for ORG moves from 87.5 to 90.2. These results show that the benefit of adding notes extends beyond supplementing people and ships. They leave open whether the gain comes from the additional number of examples, the different expressions and contexts in the notes, or both.
The pattern has an exception. For the pooled religion category RELd on the historical test, the mean is 92.3 after historical-only fine-tuning and 92.1 after combined fine-tuning. The authors note that the notes offer relatively little material for that group. History and notes each contain useful examples, with the distribution across categories determining where an additional source has the clearest effect.
A small overall movement can coexist with a large category change
The same per-label analysis explains why the overall improvement on the notes test set gives only part of the story. For XLM-R base, mean F1 for RELd on the notes test is 39.1 with a standard deviation of 36.7 after notes-only fine-tuning. With the historical data added, it rises to 90.0 with a standard deviation of 5.8. The historical annotation contains more religion-related derivatives, and the comparison shows how much difference adding historical examples can make to that category under the tested setup.
Other notes categories change in different directions. On the notes test set, the mean for LOCd increases from 89.6 with notes-only training to 92.5 with combined training. The mean for ORG goes from 89.8 to 90.9. LOC stays at 96.7. The means for PER and SHP move from 89.4 to 88.4 and from 86.8 to 86.4, respectively. An improvement in pooled F1 can therefore accompany lower mean scores for some types of name.
These comparisons also help explain how to read the reciprocal contribution of the two collections. The notes provide many person and ship mentions for training. The historical passages provide useful examples of categories that the notes represent less prominently, especially religion derivatives. Each direction changes the examples available for the same task, and the resulting changes in accuracy are visible at different scales depending on which label is examined.
A change to one label distinction affects other labels
In the semantic experiment, the controlled change is the distinction between LOC and GPE. The authors compare mBERT and RobBERT in detail because they have the highest overall means under the semantic condition. RobBERT has a mean F1 of 84.0 on GPE, with a standard deviation of 1.5. mBERT has 82.0, with a standard deviation of 0.3. For LOC in the same condition, mBERT has 93.0 and RobBERT has 92.2. Which system leads depends on whether the comparison asks about geopolitical mentions, ordinary locations, or the full label set.
Making GPE distinct changes F1 for labels whose definitions were left alone. For mBERT, PER goes from 84.7 under the standard labels to 84.0 with the distinction, and SHP goes from 82.1 to 77.0. Its RELd mean goes from 93.4 to 78.1, and the standard deviation for that last category reaches 23.8 in the semantic condition. The per-label means reported for mBERT all move downward among the categories that can be compared across the two settings. This shows that the effect of training under the revised inventory extends beyond how locations are scored.
RobBERT shows a different pattern. Its mean for SHP goes from 79.6 to 80.6, and for RELd it goes from 91.3 to 92.8. Its LOC mean goes from 94.8 to 92.2, and the PER mean goes from 83.8 to 82.7. The paper reports broadly similar tendencies for XLM-R base and mBERT, and for BERTje and RobBERT. It notes specifically that BERTje improves by 1 point on REL deriv and LOC deriv with the distinction in place. The detailed scores establish how sensitive the relative performance is to the labels. They do not identify the training mechanism responsible for every change in an unaffected category.
What annotators found difficult
The authors’ agreement analysis offers a separate account of difficulty. The F1 agreement on the historical material checked during annotation is 88.5. On the notes checked at that stage it is 92.1, with 90.8 overall. The check uses two historical documents and one notes document. The authors choose F1 because defining chance agreement for a measure such as Cohen’s kappa is difficult when annotators can choose spans freely. Their agreement procedure makes the common sources of disagreement visible alongside an overall measure.
If the annotators marked the same span with different labels, the cases often involved distinguishing a person from a place or ship, or distinguishing a location from a derived form. If the spans overlapped with different boundaries, typical causes included abbreviations, qualifiers attached to company names, titles attached to person names, and geographic expressions with modifiers. A ship name containing a conjunction also generated a boundary disagreement when one annotator treated it as two entities.
Most cases where only one annotator marked an entity were omissions. Other discrepancies revealed decisions that the guidelines had to settle, such as whether to include a common noun naming a political actor, how to treat a geographic derivative modifying a ship, and when a coastal expression counted as a name in its own right. The annotators had initially used both location and organization labels for certain metonymic uses and could disagree about adding the organization label. The GPE distinction gives those uses a specific category in the finished annotation scheme.
The analysis separates sources of difficulty that aggregate recognition scores bring together. Some examples require information about a historical referent that an index or glossary can supply. Others require a boundary convention that can be applied consistently across similar expressions. The authors use the check to revise guidelines and correct annotations. The agreement figures describe that intermediate check, so they give evidence about the annotation problem as the corpus was being built.
Limitations
Limits and qualifications the authors identify
The selected letters allow a chronological historical test, letter-level grouping, and separate evaluation of history and notes. The authors explain that the small number of letters restricts alternative splits under these constraints. The length disparity between the historical and notes test sequences occurred in the resulting split. It could help account for the performance gap between the two parts, alongside differences in the language of the texts. The authors also suggest that paragraph-level processing and long historical sequences may contribute to the instability seen for BERTje and mBERT, given their sentence-oriented pretraining.
The treatment of the notes as a common modern component is a practical simplification. Their production extended over more than fifty years, and the authors observe differences in editorial style. The GPE distribution illustrates that variation. The historical material has 43 GPE annotations and the notes have 854. The paper reports that three notes documents contain 88.0% of all GPE annotations, while accounting for 14.8% of the entities and 11.3% of the tokens. The authors attribute the skew to style. Performance on that category is therefore closely tied to a small set of documents, even though the label describes a phenomenon that can occur throughout the collection.
The scope of the annotations also reflects decisions the authors consider open to extension. They exclude ordinary nouns denoting organizations even when those institutions matter to a historian. They also exclude personal titles from the labeled name spans, although historical titles are diverse and can be difficult to distinguish from names. The paper raises the possibility of extending the labels to cover such material. In the current experiments, success is measured against the categories and spans already defined.
Finally, the authors use shared hyper-parameters without searching for better values. Their means and standard deviations describe repeated runs under those settings. The settings make a common comparison possible, while leaving room for a different ordering if the systems are tuned separately or trained on a different selection of letters.
Limits apparent from the experimental design
The comparison supports a claim about the systems as pretrained and fine-tuned in this experiment. The Dutch-specific and multilingual groups differ in the languages they encountered, but also in where their data came from, how much data they received, how they divide words into sub-words, and which pretraining objectives they use. A higher multilingual score cannot isolate multilingual exposure as its cause. Similarly, the paragraph-based input gives the authors a practical way to handle abbreviations, while the results leave the independent effect of paragraph context unmeasured.
The experiment adding notes also increases the amount of annotated training material and changes its label distribution. It demonstrates that those notes improve historical predictions when added to the available historical training data. It does not compare that gain with what would happen if an equal amount of additional historical annotation were available. The detailed label scores are compatible with several explanations, including more examples of particular entity types and exposure to different ways of referring to them.
The historical passages and notes are separate input units. The successful combined condition learns from both types of annotation across the training material. The evaluation does not establish a separate gain from retrieving the exact note associated with a passage and reading the pair together at prediction time. Letter-level grouping also keeps an annotated note from the same letter out of the training split when its historical document is held out. The demonstrated use of notes is consequently a transfer of training evidence across the edition.
The historical test is deliberately earlier than the historical training material. That makes it relevant to using later examples to recognize names in earlier passages. Period varies alongside the vocabulary, names, and styles found in particular letters, as well as sequence length. The experiment does not quantify how much each factor contributes to the historical results. Likewise, the particular relation between historical reports and editorial notes in this collection limits how far the benefit can be expected to extend to other kinds of historical writing.
The geopolitical experiment measures one contextual distinction under a specific guideline. It does not establish the systems’ performance on every kind of semantic analysis or identify the real-world organization or group behind every metonymic mention. Assigning GPE to Batavia indicates that the place name stands for an actor under the annotation scheme. A more specific determination of who acted would require a different task and supporting evidence. The observed scores also depend on a test setup in which geopolitical mentions are concentrated in editorial documents.
The agreement analysis helps explain ambiguity, while its scope matters for interpreting the figures. The annotators consulted sources that are described as annotation aids. Those resources are separate from the sequence input to the recognizers. Agreement was checked on a small set of documents before guidelines were refined and corrections were applied. A system score and an annotator agreement score therefore answer different questions. The performance comparison establishes how well the systems reproduce the resulting labels on held-out documents, while the agreement check describes decisions the annotators had to resolve along the way.
What came after
Out-Of-Tune rather than Fine-Tuned (2026) takes up pretraining, fine-tuning, and tokenization in a historical domain with nonstandardized language. Its task is semantic similarity, the assessment of how close expressions are in meaning. The VOC study evaluates discrete decisions about where a name occurs and what kind of mention it is. The later study places decisions about training and the representation of written forms in the context of comparing meanings.
The connection is clearest at the level of experimental design. The VOC authors hold the historical edition in view while varying the training material and the detail required of the output. Their results show that the answer to which pretrained system works best changes when a geographic label is split according to contextual use. The later work takes up the related question of how pretraining, task adaptation, and the division of text into input units affect a different kind of semantic judgment in historical writing.
Cite
Cite as Sophie I. Arnoult, Lodewijk Petram and Piek Vossen. 2021. Batavia asked for advice. Pretrained language models for Named Entity Recognition in historical texts. Proceedings of the 5th Joint SIGHUM Workshop on Computational Linguistics for Cultural Heritage, Social Sciences, Humanities and Literature.
@inproceedings{arnoult2021batavia,
title = {{Batavia asked for advice. Pretrained language models for Named Entity Recognition in historical texts.}},
author = {Sophie I. Arnoult, Lodewijk Petram and Piek Vossen},
booktitle = {Proceedings of the 5th Joint SIGHUM Workshop on Computational Linguistics for Cultural Heritage, Social Sciences, Humanities and Literature},
year = {2021},
doi = {10.18653/v1/2021.latechclfl-1.3},
url = {https://doi.org/10.18653/v1/2021.latechclfl-1.3}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/arnoult-2021-batavia-asked-advice-pretrained-language/