GHisBERT – Training BERT from scratch for lexical semantic investigations across historical German language stages
Paper · 2023 · Christin Beck and Marisa Köllner
Summary
A word can look unfamiliar because its spelling has changed, because its meaning has changed, or because the sentence around it belongs to a much older form of the language. A system trained on present-day German may have difficulty telling these possibilities apart. GHisBERT addresses that problem by training BERT from scratch on German texts spanning the attested stages of the language, with material reaching back to Old High German around 750 CE. The authors compare it with a German BERT trained on contemporary texts and with a version of that same system given additional training on the historical collection.
The evaluation traces ten basic concepts, among them bird, foot, and sun, from Middle High German through Early New High German to New High German. The authors locate historical forms through etymological correspondences, substitute a common modern headword for the target in each sentence, and retain the surrounding historical wording. They then use word embeddings, numerical representations built from those sentences, to ask two questions. Do related concepts resemble one another within the same period? Does a concept resemble itself across periods more than it resembles other concepts within a period? Old High German contributes to training, but the selected concepts occur too rarely in its corpus to support the same evaluation.
GHisBERT gives a wider and more interpretable spread of similarities between concepts. Its scores range from 0.18 to 1 in the within-stage comparisons, while the unmodified German BERT’s scores range from 0.87 to 1. GHisBERT groups animals together and gives a clearer indication of the change in Kopf, whose Middle High German examples predominantly mean a drinking vessel and whose later examples mean head. Another conspicuous result comes from the examples retrieved for Ei. The Middle High German examples are Latin uses of ei as a pronoun. Here the low similarity draws attention to what the corpus search returned.
The comparison with additional historical training is more qualified. GHisBERT and the adapted German BERT have no statistically significant difference in their distributions of average cross-stage similarities. GHisBERT distinguishes the earlier transition from the later one more clearly, and its within-stage comparisons differentiate the concepts more sharply. The authors check several patterns against sentences they read manually. Because there is no independently annotated benchmark spanning the periods in the study, the findings establish what these representations can reveal in a case study, with open questions about how reliably they would detect or rank changes in a wider vocabulary.
Deep dive: GHisBERT – Training BERT from scratch for lexical semantic investigations across historical German language stages
GHisBERT learns from historical German texts and tests how well it represents word meanings across different stages of the language. · about 33 minutes to read
The problem and its context
What changes when the texts are much older
Studying a word over time involves tracking a relationship between forms and uses. A later spelling may descend from an older one, while some of the uses associated with the older form may disappear. Conversely, a familiar-looking spelling in an older source may belong to a different word, or even to a different language. For historical linguistics, the evidence comes from the contexts in which forms are attested and from what can be established about their relationship across periods. This is why the paper brings dictionary evidence and close reading into an experiment based on numerical representations.
The authors distinguish the historical linguist’s interest in how senses develop from the narrower computational task of flagging words whose uses differ between collections. A measure of difference can help identify cases to inspect. A historical account also needs to establish what the earlier use was, what the later use was, and whether the surviving evidence allows the relationship between them to be traced. Those questions belong to lexical semantics, the study of word meanings and the relations among them. In this paper, a semantic comparison is a way to make the corpus evidence easier to investigate.
The time span matters because much of the computational work described by the authors compares relatively recent texts. Their example is a comparison between English in the 19th century and English in the 20th century. Those collections differ in date, but the research can still work within a single stage of the language. The paper contrasts that scale with comparisons across stages such as Old English and Middle English. With that kind of separation, the surrounding language as well as the target word may differ substantially from what a modern system encountered in training.
That difference creates a problem of interpretation. Suppose two sets of sentences produce distant representations for a target. One explanation is that the word has different senses in them. Another is that cues to the same sense look different to the system because the surrounding words and constructions have changed. Historical spelling adds a further source of variation, both in the target itself and in the rest of the sentence. The experiment therefore needs a way to control the spelling of the target while still asking whether the system can work with historical context.
From one vector per word to one per use
The paper describes two broad families of computational work on semantic change. A type-based method gives each word a single numerical representation in a corpus, pooling what the collection reveals about its uses. A token-based method gives each occurrence its own representation. A token here is an individual occurrence of a word in a particular context. With a token-based method, two passages containing the same spelling can provide different evidence even before the occurrences are summarized at the corpus level.
Static embeddings were prominent in earlier studies. The paper names word2vec with skip-gram negative sampling and GloVe as examples of approaches used to construct a single vector for a word in a collection. Work on diachronic embeddings had already shown how such representations could be brought to questions about vocabulary across time. The relevant earlier papers develop distributed word representations, GloVe, and diachronic word embeddings.
A contextual representation changes the point at which evidence is pooled. The system first processes each sentence, so the representation of the target can depend on its neighbors and on the larger construction. An analyst can then compare occurrences individually or average their vectors to produce a summary of the target’s uses in a period. The distinction matters when a word has several meanings. Averages describe the center of the collected examples, while comparisons between individual occurrences can still respond to the variation among them. The paper situates its approach alongside earlier work on lexical semantic change with contextualised word representations.
Shared tasks helped turn the choice of representation into an empirical question. The paper describes a common evaluation in which target words are ordered by how much their meanings appear to differ between corpora. A system produces its own ordering, which is checked against one derived from human judgments. A related task asks for a binary decision about whether a word changed. That decision needs a rule that turns a continuous distance into a class, such as a threshold or a statistical test. The authors cite thresholding based on the distribution of cosine distances and permutation testing as examples. These approaches address different forms of the problem established by SemEval-2020 Task 1.
The standard German targets from that benchmark offer little coverage of the older stages in this study. The paper notes that only a few of its 48 German targets can be found in the earlier material. Even if an evaluation protocol can be carried over, a list drawn up for different corpora cannot supply historical occurrences that the earlier collections lack. A study reaching further back needs targets with attested correspondences and enough surviving sentences to make the comparisons meaningful.
Adapting a contemporary system or starting over
The paper describes several ways to make a system more responsive to historical writing. One is to continue the original training on a historical corpus. The system starts with what it learned from modern texts and gets additional practice on the period of interest. HistBERT illustrates that strategy. Its additional training uses the Corpus of Historical American English, with material reaching back to the 1820s, and the authors report that the earlier study found benefits for historical word similarity and for an analysis of semantic shifts. They also describe prior work that continued BERT training on the actual collections under investigation.
Another approach adds time information through the system’s attention mechanism. The earlier work the authors discuss exposes the system to temporal information about the sequences during extended training. That gives time an explicit role in how the system processes the text. GHisBERT’s reported setup takes a different route through corpus selection and initial training. The representations are subsequently grouped by stage when the authors calculate similarities.
The paper also cites work that began training on historical texts from scratch. A comparison for historical English, with data reaching back to 1473 CE, favored this approach over adapting a contemporary system on a range of downstream tasks. The authors also describe studies of word sense disambiguation, the identification of a word’s meaning in context, using MacBERTh for historical English and GysBERT for historical Dutch. Those studies reported advantages over modern counterparts. Their relevance is that the choice of initial training material can matter for identifying uses, as well as for general processing of historical sentences.
There was already a historical multilingual BERT, hmBERT, with German training material dated 1683-1949. The paper describes its use for named entity recognition, the task of finding mentions of named entities in text. Its historical German training material falls within New High German, and the system is also trained in other languages. Both properties matter for the authors’ comparison. Their question is how well a German system can work across older stages of German, and a comparison against hmBERT would introduce another difference in training languages as well as in historical coverage.
GHisBERT brings these concerns into a single comparison. The authors set up a system trained on a collection spanning the historical stages, a contemporary German system, and an adapted version of the contemporary system exposed to the historical collection. They then look for a form of evidence available in the absence of a historical gold standard. Basic vocabulary provides a starting expectation of continuity, and differences among the examples can be checked against the underlying texts. This gives the experiment a concrete test of whether the representations organize historical uses in recognizable ways.
The method, step by step
Assemble the training collection
The authors train GHisBERT on material from Old High German (OHG), Middle High German (MHG), Early New High German (ENHG), and New High German (NHG). They give approximate stage boundaries of 750-1050 CE for OHG, 1050-1350 CE for MHG, and 1350-1650 for ENHG, with NHG beginning in 1650. The training collection extends across 750-1999. Those dates describe its reach. The amount of evidence available within that span varies substantially by stage.
The older material comes from the Reference Corpora of Historical German. The authors use all the sentences they extract from Referenzkorpus Altdeutsch (ReA), Referenzkorpus Mittelhochdeutsch (ReM), and Referenzkorpus Frühneuhochdeutsch (ReF). Their training counts are 3,227 sentences from ReA, 245,880 from ReM, and 106,988 from ReF. ReA contributes 18,424 words, while ReM contributes 2.3M and ReF contributes 3.7M. The earliest stage thus enters training through a much smaller collection than either of the stages that follow it.
Getting these inputs into sentence form requires a decision about punctuation. The authors use familiar boundary marks such as periods, question marks, and exclamation marks, together with historical markers such as the middle dot when the corpus guidelines call for them. They treat the resulting boundaries as approximations. The purpose is to collect a span of text in which the surrounding words give the system enough context to learn from a masked item or to represent a target occurrence.
The Deutsches Textarchiv (DTA) adds material from later periods. Its texts are already split into sentences, so the authors draw 100,000 sentences at random from each of the intervals 1400-1599, 1600-1799, and 1800-1999. The paper labels those training samples DTA1, DTA2, and DTA3. It reports 2.6M words for DTA1, 2.1M for DTA2, and 1.6M for DTA3. The DTA samples are defined by these date intervals, while the reference collections are introduced by historical stage. The date ranges and the stage boundaries therefore serve different purposes in describing the collection.
The full training set contains 656,095 sentences and 12.3M words. Adding the DTA material extends the collection towards more recent German and gives the selected DTA intervals the same number of sampled sentences. The word counts still differ across those intervals, and the reference collections retain their different sizes. Each stage is represented, with the amount of training evidence determined partly by the available corpora.
From historical texts to comparisons of word use
The steps in order.
Train with historical spellings in view
Before pretraining comes tokenization, the conversion of a sentence into units that BERT can process. These units can be whole words or smaller pieces. A piece-based vocabulary lets the same vocabulary entries contribute to the processing of multiple written forms. In this case the input may contain historical spellings and inflections that differ from contemporary German. The authors train a BERT tokenizer on their historical collection so that its vocabulary is learned from the kind of material they plan to process.
This tokenizer is used for the historical input to all the systems in the study. That common preprocessing rule matters because the subsequent comparison includes systems with different training histories. The authors also standardize the spelling of the target for the similarity experiment, but that happens later and serves a different purpose. The tokenizer still has to process the remaining historical wording, which is where the experiment looks for evidence of the target’s use.
GHisBERT uses the BERT-base configuration through the HuggingFace implementation. The architecture has a hidden size of 768 and uses a dozen attention heads and a dozen hidden layers. The hidden size is the width of the internal representation, and the attention heads let a layer relate positions in the input through several sets of weights. The maximum length for position embeddings is 512, and the vocabulary contains 32,000 tokens. The architecture supplies the form of the computation. Training determines how the system uses it on the historical texts.
The optimization task is masked language modeling, abbreviated MLM. Some of the input is hidden, and the system learns to predict what belongs in the masked positions from the visible context. This provides a training signal without requiring each historical occurrence to be annotated for its meaning. GHisBERT trains from scratch for 10 epochs, or passes through the collection. The authors use batches of size 8 to fit the work in memory and accumulate gradients across batches. Gradient accumulation lets several batches contribute to an update while the system processes them in smaller groups.
For the adaptation comparison, the starting point is the last checkpoint of dbmdz/BERT-base-german-cased, which the paper calls BERT-german. Its original training used over 2 billion words from contemporary sources, including Wikipedia dumps and the EU Bookshop Corpus. The authors continue MLM training on the same historical material used for GHisBERT and call the resulting system BERT-fine. Here fine-tuning means further pretraining on historical text, using the masked prediction task. It does not use labeled examples from the later similarity study.
The authors use the same training parameters for the historical adaptation except for its duration. BERT-fine receives 4 epochs of historical training, following the recommendation the paper attributes to the original BERT work. BERT-german also enters the study without this extra training. The three conditions consequently represent a contemporary starting point, that starting point after historical exposure, and training from the beginning on the historical material. The paper makes GHisBERT available through Hugging Face and releases its tokenization, training, adaptation, and experimental code in the GHisBERT repository.
Find the historical occurrences of each target
The authors choose ten concepts from the 200-word Swadesh list, a collection of basic vocabulary intended for comparison across languages. They use its stability ranking as a guide. Vogel, Hund, Ei, and Fisch correspond to bird, dog, egg, and fish, and belong to the first 50 concepts in the ranking used by the authors. Berg, Fuß, and Kopf, glossed as mountain, foot, and head, fall in the 50-100 range. Frau, Baum, and Sonne, meaning woman, tree, and sun, fall in the 100-200 range. This selection gives the study several kinds of meaning and includes concepts from different parts of the ranking.
Here stability is an expectation about the persistence of a basic concept, and the authors also expect its German forms to be relatively stable within the period investigated. The expectation does not settle how every example should be read. A concept such as head can persist while the particular word chosen as its label has an older meaning. The modern German names identify the groups of sentences to be investigated. The evidence about which senses appear comes from the retrieved contexts.
To find older occurrences, the authors construct what they call etymological chains. These link a modern headword to historical forms assigned to the same lineage in Kluge’s etymological dictionary. The entry for modern Fuß, for example, leads back to Middle High German vuoz and Old High German fuoz. A lemma is the dictionary form under which inflected occurrences can be grouped. Searching corpora with lemma information allows the authors to find occurrences even when the written forms differ from the headword selected for the query.
Dictionary correspondences provide a starting point, and the authors also check forms used in the collections. For the modern Berg, Kluge gives Middle High German berc, while the Middle High German reference corpus uses bërg. Accounting for variants like these improves the coverage of the search. Once the researchers find a match, they retrieve the sentence as written in the corpus. The lemma is a finding aid, while the sentence supplies the evidence for the interpretation.
ReM supplies the Middle High German sentences for the case study, and ReF supplies the Early New High German sentences. For New High German the authors retrieve sentences from the DTA dated 1700-1999. This retrieval includes the sentences with the selected targets in that interval. The earlier decision to sample DTA sentences for pretraining is a separate selection procedure. The analytical collection is organized around the occurrence of the target vocabulary.
Represent each occurrence before pooling the evidence
Once a sentence has been retrieved, the researchers replace the target word form with the New High German lemma of its concept. For example, vuoz becomes Fuß. The rest of the sentence is kept in its original form. This step reduces what the paper calls word-form bias, the possibility that a representation responds so strongly to the spelling of the target that its contextual use has less influence on the comparison. With a common target spelling between periods, an older and a newer sentence give BERT the same written label at the position being analyzed.
That replacement changes the input in a specific and limited way. The surroundings of the word continue to reflect the historical source, including its other spellings and grammatical patterns. The procedure also leaves open whether the target was retrieved with the intended meaning. A sentence may contain a historical use of the word or a matching form with a different identity. Both can affect the score because the system is processing a context, with the modern lemma occupying the target position.
After tokenization, the authors process each sentence and take the representations from BERT’s second-to-last layer. They cite earlier evidence that this layer provides especially context-specific representations. The tokenizer can split the target into multiple wordpieces. In that case the authors average their vectors to get a single vector for the occurrence. This is one averaging operation, over the pieces of the target in a sentence. The stage-level calculation then averages over the resulting occurrence vectors.
A stage-level average, or prototype, condenses the collected uses of the target into one vector. If many passages use a word in similar ways, their representations all contribute to that center. When a target covers several senses, its prototype reflects the examples of those senses in the collection. The authors form these averages separately for each concept and stage and repeat the same process for each system. Similarity calculations then operate on vectors produced within each system.
Compare the vectors
The principal measure is cosine similarity, written COS in the paper. It compares the directions of two vectors. Vectors pointing in similar directions have a larger cosine, even if their lengths differ. This makes the measure suitable for the paper’s question about semantic similarity, because the comparison concerns the orientation of the representation assembled from the contexts.
COS(a, b) = (a · b) / (‖a‖ ‖b‖)
COS is the cosine similarity of the vectors a and b. The dot denotes their dot product, which combines their corresponding coordinates. The double bars give the length of a or b, and the two lengths in the denominator are multiplied. Dividing by that product removes the effect of vector length from the comparison. In the experiment, a and b are average vectors for concepts and stages. The paper describes the scores it interprets on a scale from 0 to 1.
The authors make within-stage and cross-stage comparisons. Within a stage, they compare the average representation of a concept with the averages for the other concepts. This is the inter-concept comparison. Across stages, they compare averages carrying the same concept label, first between MHG and ENHG and then between ENHG and NHG. This is the intra-concept comparison. The paper reports the similarity for each transition and an average of the two. In its tables, COS ME denotes the first transition, COS EN the second, and COS avg the average.
The authors also consider measures used in earlier work on lexical change. Average pairwise distance, or APD, compares each target occurrence in one period with each target occurrence in the other. This keeps the individual occurrence vectors in the calculation until the distances have been measured.
APD(Uʷₜ₁, Uʷₜ₂) = [Σₓᵢ∈Uʷₜ₁, ₓⱼ∈Uʷₜ₂ d(xᵢ, xⱼ)] / (Nʷₜ₁ · Nʷₜ₂)
APD is the average pairwise distance for the target word w. The symbols t₁ and t₂ denote the periods represented by the two corpora. Uʷₜ₁ and Uʷₜ₂ are the collections of occurrence vectors for w in those periods, described in the paper as usage matrices. The vector xᵢ belongs to the first collection and xⱼ to the second. The subscripts i and j index the occurrences, and ∈ means that a vector belongs to the indicated collection. The sum Σ runs over all such cross-period pairs. The distance function d is one minus cosine similarity. The counts Nʷₜ₁ and Nʷₜ₂ give the number of occurrences in their respective periods, and the dot in the denominator multiplies those counts. Larger APD values represent greater average separation of the occurrences.
The other measure, PRT, works with prototypes. It averages the occurrences in each period and takes the inverse of the cosine similarity between those averages. It therefore uses the same order of operations as the cross-stage COS comparison through the point of measuring similarity, and then reverses the direction of interpretation through inversion.
PRT(Uʷₜ₁, Uʷₜ₂) = 1 / c((Σₓᵢ∈Uʷₜ₁ xᵢ) / Nʷₜ₁, (Σₓⱼ∈Uʷₜ₂ xⱼ) / Nʷₜ₂)
PRT denotes the inverted prototype similarity. The target is w, the periods are t₁ and t₂, and Uʷₜ₁ and Uʷₜ₂ contain the corresponding occurrence vectors. The indices i and j identify the vectors xᵢ and xⱼ in their collections, and ∈ denotes membership. Each Σ adds the vectors in its period and division by the period’s occurrence count Nʷₜ₁ or Nʷₜ₂ gives the prototype. The function c computes cosine similarity between the prototypes. The numerator 1 and the division by c give the reciprocal. On the positive similarities of interest, greater separation produces a larger inverted value.
The paper also considers an ensemble that averages the APD and PRT estimates, following earlier work that reported better rankings from their combination. An occurrence-level distance and a prototype comparison can respond differently to a collection with diverse uses. For the study’s main presentation, the authors choose COS because it lets them interpret the within-stage and cross-stage patterns on the same similarity scale. They can read a high score as resemblance in both parts of the analysis.
Check the numerical comparisons against the sentences
The authors expect same-concept resemblance over time to be stronger than resemblance to other concepts within a stage. They use paired t-tests to assess the contrast between within-stage similarities to other concepts and the averaged similarities of a concept to itself across time. They also use t-tests to compare results across systems. These tests assess differences among the measured similarities. The values and their significance refer to the comparisons set up by the experiment.
For each concept at each language stage, the authors supplement the tests by manually examining 50 sentences selected at random. They use these checks to see whether contexts offer a linguistic explanation for a striking score or pattern. A target may turn out to have several uses, or the sentences may expose a mismatch between the modern concept label and what was retrieved. This gives the study a second kind of evidence. The statistical comparisons identify patterns in the representations, and reading the texts helps determine what those patterns describe.
Experiments and results
The evidence available for the comparison
The case study uses 148,306 sentences. The Middle High German part has 3,942, the Early New High German part has 6,009, and the New High German part has 138,355. These are the sizes of the target-bearing collections used in the similarity analysis. The figures describe a different selection from the training corpus, which includes sentences without the selected vocabulary and reaches back further. The later collection dominates the case study by count, so the stage prototypes are based on markedly different amounts of text.
The appendix also shows that coverage varies from target to target. The Middle High German material contributes 29 occurrences for Kopf, while the Early New High German material contributes 223. The corresponding counts for Hund are 110 and 269. So a period’s total alone gives an incomplete picture of the evidence behind an individual similarity score. The two vectors being compared may each summarize a different number of attested uses, even for targets handled through the same procedure.
Old High German is excluded from the similarity analysis because the target occurrences are too sparse. The appendix gives 7 occurrences across the selected Old High German lemmas. The study’s training coverage and its measured coverage therefore need to be read separately. GHisBERT learns from Old High German material, while the reported comparison of concept meanings begins with Middle High German.
All three systems are evaluated using the same conceptual grouping and similarity procedure. BERT-german supplies a contemporary baseline, and BERT-fine tests what happens after historical exposure through continued training. GHisBERT tests training on the historical collection from the beginning. The reported numbers are cosine similarities and levels of statistical significance. There is no independently labeled test split yielding an accuracy score for correct historical senses or changes.
How concepts are arranged within a period
The paper presents heatmaps of the within-stage similarities for each system. A heatmap makes a pattern of relationships visible through differences in shading. A useful matrix for this experiment has room for the strongest relationships to stand apart from less related pairs. Similarity to the very same prototype reaches 1, so the top of the scale is shared. The informative variation for this comparison lies in the other cells, where the system compares different concepts.
The similarities reported for GHisBERT range from 0.18 to 1. BERT-german gives a range from 0.87 to 1. BERT-fine also produces higher within-stage similarities than GHisBERT in the paper’s overall comparison. The narrow range for BERT-german means that concepts which the reader would ordinarily distinguish can be assigned quite similar vectors. A wider range gives the analyst more room to see which pairs are especially close and which stand apart. Its interpretation depends on the actual pairs occupying those positions.
Some of the patterns in the GHisBERT heatmaps fit familiar relations among the targets. Fish, bird, and dog are relatively similar to one another at each investigated stage. Head and foot are also represented as similar. Frau, the only target for a human being, generally shows lower resemblance to the other concepts than they show to one another, with the Middle High German Ei case standing out. The authors interpret these patterns as evidence that the spread of similarities carries information about lexical relationships.
The Ei case shows why a markedly distant vector can be informative even when the concept label is misleading. All three systems place the Middle High German material retrieved for Ei far from the other targets, with GHisBERT making the distinction especially apparent. The authors find that those occurrences are in Latin texts and use ei as a masculine personal pronoun. The source of the distance is therefore visible in the sentences. The group labeled egg does not supply evidence for the intended German sense at that stage. An analysis based only on the heatmap would miss that explanation.
What the cross-stage similarities distinguish
The paper reports both adjacent transitions for each concept. Its first broad finding is that the same-concept similarities over time are statistically distinguishable from the similarities to other concepts. This holds across the three systems, though the strength of evidence varies by target. BERT-german can therefore register the expected distinction even with a compressed within-stage range. The historical systems give the authors more variation with which to examine individual cases.
Ei is conspicuous in the earlier transition. From MHG to ENHG, the vector for that target has a COS of 0.70 with GHisBERT, 0.73 with BERT-fine, and 0.94 with BERT-german. From ENHG to NHG, its COS is 0.92 for GHisBERT, 0.92 for BERT-fine, and 0.98 for BERT-german. The lower earlier scores fit the change in the underlying evidence from Latin pronoun uses to the later material. Both historically trained systems register that contrast. The GHisBERT score is lower for the earlier transition, while the two historical systems return the same reported value for the later transition.
The comparison for Kopf tells a different story. Here the examples concern historically linked uses of the word. The qualitative check finds the meaning of a cup or drinking vessel predominant in the Middle High German evidence. In the later collections the examples use the word for head. The earlier comparison thus gives a case in which a lower score accords with a sense difference supported by the readings of the sentences.
MHG to ENHG Kopf occurrences, cosine similarity between stage averages
GHisBERT gives the clearest separation for the transition from the older vessel use to the later head use.
The numbers
| System or setting | Cosine similarity |
|---|---|
| BERT-german | 0.98 |
| BERT-fine | 0.93 |
| GHisBERT (this paper) | 0.85 |
The later comparison for Kopf tells the reader where that separation appears in time. The ENHG-to-NHG COS is 0.94 for GHisBERT and 0.94 for BERT-fine, with 0.99 for BERT-german. The GHisBERT results give a more marked distinction between the transition in which the corpus uses differ and the transition in which the later use is shared. In this example the within-word comparison helps localize the change, while the manual inspection identifies what changed.
Other words show why interpretation cannot simply proceed from a low score to the date of a sense shift. GHisBERT gives Fisch a COS of 0.85 from MHG to ENHG and 0.87 from ENHG to NHG. Fuß has corresponding values of 0.88 and 0.89. The paper relates the relatively low scores in both transitions to the variety of uses found throughout the material. Fish appears in biological and astrological uses and frequently in biblical contexts. Foot appears as a body part, as the bottom of a mountain, and as a unit of length. A prototype for either word can respond to the mix of contexts in each period.
Some results offer strong continuity alongside the examples with greater separation. With GHisBERT, Berg has a COS of 0.92 for MHG to ENHG and 0.97 for ENHG to NHG. Baum has 0.90 and 0.96 for the same transitions. Frau is at 0.95 for each. These values give context for the especially low Ei score and the earlier Kopf result. The case study can accommodate relatively stable comparisons and more conspicuous changes in the same set of representations.
Which differences reach statistical significance
For each target the paper compares its average cross-stage similarity with the within-stage similarities to other concepts. All of GHisBERT’s per-target contrasts reach p<0.001. BERT-german also reaches p<0.001 for each target in this comparison. With BERT-fine, the contrast for Ei reaches p<0.05 and the contrast for Fuß reaches p<0.01, while the remaining targets reach p<0.001. These thresholds concern the distinction between inter-concept and intra-concept similarity. They do not express a probability that a particular historical explanation is correct.
The paper also compares the distributions of average cross-stage similarities between systems. On that comparison, GHisBERT and BERT-fine do not differ significantly. GHisBERT differs from BERT-german at p<0.001, and BERT-fine also differs from BERT-german at p<0.001. Averaging the transitions thus gives evidence of a distinction between the historical conditions and the contemporary baseline, while the two historical conditions are closer on this measure.
The earlier transition provides a sharper comparison. GHisBERT assigns lower similarity overall from MHG to ENHG than from ENHG to NHG. The other systems do not show the same broad separation of these transitions. The distribution of GHisBERT’s MHG-to-ENHG scores differs from those of the other systems at p<0.001. The authors relate that pattern to the substantial developments described in histories of German around the earlier transition. They mention differences in word order and developments in sound and morphology, including vowel reduction. The agreement is between the aggregate pattern and the wider historical account. The experiment does not assign a share of the similarity difference to any individual linguistic development.
The strongest reading of the overall comparison comes from putting these outcomes together. The within-stage matrices give evidence about the relations among concepts. The transition-specific scores give evidence about when uses or contexts differ most in these collections. Inspection of the passages accounts for several of those differences. GHisBERT gives the authors the most informative combination of these signals, even where the averaged cross-stage score gives little basis for distinguishing it from BERT-fine.
What the ablations show
The paper reports comparative checks on training, layer selection, and distance measures, with no full ablation that varies each component independently.
What historical exposure changes
The closest comparison for the effect of continued historical training is BERT-german against BERT-fine. The latter starts from the former’s checkpoint and receives additional masked prediction training on the historical collection. Its separation of the earlier and later Ei contexts is closer to GHisBERT’s than to BERT-german’s. Additionally, the distributions of averaged cross-stage similarities differ significantly between BERT-german and BERT-fine. Continued training thus changes the geometry of the representations in ways that matter to this case study. The paper’s result for Ei supplies a concrete example in which adaptation makes a difference visible in the texts easier to see numerically.
Comparing BERT-fine with GHisBERT brings initial training into view. Both receive the historical material and follow the common processing and scoring procedure. GHisBERT provides clearer within-stage differences between concepts and a clearer distinction involving the older transition. At the same time, the averaged cross-stage similarities give little statistical basis for separating the two. The evidence for starting from scratch is strongest on the comparisons where the authors ask the system to preserve more detail about relations among concepts or about which transition is distinctive.
Initial weights and the amount of historical training vary together in that comparison. GHisBERT trains on the collection for 10 epochs, while BERT-fine continues its training for 4 epochs. These are the actual training regimes compared by the authors, and the results establish how those regimes behave. A comparison in which both systems had the same historical training duration would answer a narrower question about initial weights. The current design leaves that effect and the effect of historical training duration intertwined.
The evaluation also holds some choices fixed. All conditions use the historical tokenizer on the historical input, and target spellings are standardized for the similarity analysis. Those choices help put the systems on common terms, but the study supplies no paired figures with and without each choice. The reported advantages apply to the full procedure, including how the words were retrieved and how their sentence representations were constructed.
Where the occurrence vectors come from
A smaller set of comparisons concerns the layer from which the authors read the contextual vectors. Besides the second-to-last layer, they try three ways of combining the last four layers. Concatenation places the vectors side by side, preserving the coordinates from each layer. Averaging combines corresponding coordinates and scales the result by the number of layers, while summing combines the coordinates directly.
The paper describes the differences as marginal. Concatenation and the second-to-last-layer approach produce slightly stronger similarity values than the other options examined. The authors use the second-to-last layer for the main analysis, citing earlier evidence about its context specificity. The layer check suggests that the broad procedure is relatively insensitive to the options they tried. Since the comparison is reported qualitatively and there is no annotated benchmark, the evidence concerns the observed similarities. It provides little basis for ranking layers by accuracy on historical sense identification.
Layer pooling and wordpiece pooling serve different parts of the procedure. Layer pooling chooses how to read the internal representations of a sentence. Wordpiece pooling combines the pieces belonging to an individual target at the chosen layer or layers. The authors report alternatives for the first decision. They use averaging for the second, so the paper’s evidence about layer alternatives does not test how strongly the results depend on the way target pieces are combined.
What changes with the measure
The authors try APD, COS, PRT, and the ensemble of APD and PRT. APD counts distances between uses before averaging. PRT averages the uses and then inverts their cosine similarity. COS in the main experiment compares the stage prototypes directly. These differences affect what a score can convey. If uses within a period vary widely, averaging their vectors first can compress that variation into a single point. Comparing individual pairs can still reflect heterogeneity even when the two averages are close.
The authors choose COS because its interpretation is especially straightforward for both kinds of comparison in this study. The question of whether head and foot are related within a period can be expressed in the same direction as the question of whether the head examples resemble one another between periods. The paper does not give a gold-standard evaluation in which the metric alternatives compete. Its earlier discussion of ensemble performance concerns cited work on ranking change, while its preference here concerns the readability of the observed within-stage and cross-stage relationships.
What the qualitative checks resolve
The sentence checks resolve ambiguities that the numerical comparisons leave open. In one case, the retrieval process finds a matching form in a different language. In another, older and newer occurrences represent different uses of a historically connected word. For Fisch and Fuß, multiple uses occur throughout the available stages. Each case can affect the position of a stage prototype, and the analysis of the texts gives the author a reason to distinguish among them.
This is also why the comparison offers a more specific result than a general claim that historical training improves similarity. For a word with clear continuity, a higher cross-stage similarity may fit the evidence. For Kopf across the earlier transition, lower similarity aligns with the historically distinct senses in the examples. The authors judge the usefulness of the representations by their ability to accommodate both patterns and to preserve relationships among different concepts. A system that gives generally high scores can satisfy some of the continuity expectations while providing less evidence about departures from them.
Limitations
Limits the authors identify
The authors identify the absence of a suitable gold standard as the principal limitation. Their case study produces quantitative comparisons, but there is no independently established set of historical sense judgments against which to score them. Paired tests can assess differences between distributions of similarities. A sample of sentences can help explain those differences. A gold standard would provide a separate basis for judging whether the system detects known changes, preserves real continuities, or orders targets by degree of change.
The authors emphasize the work required to create that evidence. Linguistic annotation of older texts calls for people who can read the stages in question and resolve ambiguous cases. They propose working with expert annotators in future research and evaluating GHisBERT on additional lexical semantic tasks. Those are plans that follow from the case study. The current evidence is centered on the ten selected concepts and the forms retrieved through their etymological correspondences.
The paper also identifies a practical constraint on training from scratch. The process requires substantial computational resources and time, and the authors note that historical linguists may lack access to the necessary infrastructure. They leave transfer to other languages and training collections open. They also raise the question of how different architectures and more recent systems would perform on comparable historical material, naming GPT-4 as an example for future comparison. The experiments themselves use the BERT-base family.
The authors set aside frequency effects, genre, and dialect. They also acknowledge that the surviving material represents regions and social groups unevenly. Their use of all the available material from some sources and random sentence sampling from others specifies how the collections were assembled. It cannot recover varieties that the underlying records scarcely document. Finally, they acknowledge that punctuation-based boundaries can be approximate in historical German. Sentence context is central to the method, so a boundary error can change the evidence the system sees for a target.
Limits visible in the experimental setup
The target selection privileges basic vocabulary that can be followed across the tested stages. This is appropriate for asking whether the same concept stays relatively close to itself and whether understandable departures are visible. The setup offers less evidence about the range of targets encountered in open-ended change detection, where words can appear in only part of the record or be difficult to trace consistently. Even within the chosen vocabulary, the amount of evidence varies considerably, and the earliest stage had to be dropped from evaluation.
The corpora also differ in ways that matter to a contextual representation. The earlier evaluation sentences come from the historical reference corpora, while the later ones come from the DTA. A change in a prototype can reflect genre, dialect, the texts that happen to survive, or the balance of uses within those texts. The comparison does not hold those properties constant across stages. The authors’ interpretation of the earlier transition is consistent with wider developments in German, while the design leaves the contribution of corpus composition unresolved.
The provenance of the sentence groups matters for another reason. Training and evaluation draw on some of the same source collections, and the paper does not describe a held-out partition by document or sentence for the lexical study. In the reference corpora used for both purposes, target-bearing sentences are selected from collections that supply their sentences to training. This is reasonable for an exploratory analysis of how a pretrained system represents a particular body of historical material. It limits what the results establish about performance on documents outside that material.
The retrieval and normalization choices shape the question the study answers. Etymological chains allow the authors to follow documented forms, and replacing the target with the modern headword reduces the influence of its spelling. The resulting similarity describes a word position presented with that common headword in otherwise historical sentences. It leaves open how well the system would recover the same distinctions from fully original target spellings. The Latin ei case also shows that matching a lemma or form can pull in material that needs checking before it is treated as an attestation of the intended German concept.
The use of a prototype introduces another limit. An average vector summarizes the combined evidence without retaining an explicit account of which individual uses produced it. It can move because a familiar sense becomes more common, because a distinctive use enters the collection, or because contextual distributions change. Two periods can also have nearby averages while individual examples differ. The paper’s qualitative checks are therefore essential to the examples it explains. For a corpus-wide claim about particular senses, an evaluation would need evidence at the level of occurrences or sense distributions.
Finally, significance, separation, and historical explanation have different roles in the study. The tests show that certain distributions differ under the authors’ comparisons. The heatmaps and transition scores show where GHisBERT supplies more differentiation. The readings of the sentences give those patterns their linguistic interpretation. Together they support a case for historically trained representations as evidence in lexical investigation. The study leaves the reliability of automatic detection, the contribution of individual training choices, and the results for earlier Old High German uses open.
What came after
Later work cites GHisBERT in connection with other languages and historical research tasks. One example is the InviTE Corpus, which focuses on annotating invectives in Tudor English texts for computational analysis. Its stated contribution centers on identifying and annotating a particular phenomenon in historical texts. That places the point of contact with GHisBERT at the level of working computationally with older language. GHisBERT starts from lexical targets and retrieves their contexts to compare meanings. InviTE starts from a historical phenomenon for which it builds an annotated corpus. The citation establishes a connection between the studies, while the stated contribution identifies annotation as InviTE’s own deliverable. The InviTE Corpus
PortOldBERT addresses historical Portuguese and is closer to GHisBERT in its stated subject, language pretraining for a historical setting. It brings the question of representing historical language to another linguistic record. The connection is relevant to an open issue raised by GHisBERT’s authors, who leave the applicability of their approach to other languages and datasets for future investigation. The citation and the subject of PortOldBERT establish that connection. They leave its specific training choices, the role of GHisBERT in those choices, and the comparability of their evaluations unspecified. PortOldBERT
Cite
Cite as Christin Beck and Marisa Köllner. 2023. GHisBERT – Training BERT from scratch for lexical semantic investigations across historical German language stages. Proceedings of the 4th Workshop on Computational Approaches to Historical Language Change.
@inproceedings{beck2023ghisbert,
title = {{GHisBERT – Training BERT from scratch for lexical semantic investigations across historical German language stages}},
author = {Christin Beck and Marisa Köllner},
booktitle = {Proceedings of the 4th Workshop on Computational Approaches to Historical Language Change},
year = {2023},
doi = {10.18653/v1/2023.lchange-1.4},
url = {https://doi.org/10.18653/v1/2023.lchange-1.4}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/beck-2023-ghisbert-training-bert-scratch-lexical/