State-of-the-art large language models owe much of their success to scale. By training on billions of tokens of contemporary internet text, these models develop a deep understanding of modern grammar, semantics, and idioms. However, when these same models are applied to historical documents—such as medieval poetry, early modern scientific journals, or centuries-old court records—their performance degrades sharply.
This failure stems from a profound temporal distribution shift. Language evolves continuously across centuries, creating variations in orthography, syntax, and word meaning that modern models are unequipped to handle. To bridge this gap, a growing body of research focuses on domain-specific historical pre-training. Rather than relying on massive general-purpose models, this approach builds or adapts models using targeted historical corpora.
The Root of the Problem: Orthographic and Syntactic Drift
To understand why historical pre-training works, we must first look at why modern models fail on older texts. The breakdown occurs at two fundamental levels: tokenization and syntax.
1. Tokenization and Orthographic Chaos
Modern language models process text by breaking words into subword units (tokens) based on frequencies found in contemporary datasets. Historical text, however, is characterized by inconsistent spelling conventions and archaic characters. For example, in an analysis of 18th-century texts, Rastas et al. highlight orthographic shifts like the transition from "publick" to "public."
When a modern tokenizer encounters these archaic variants, or entirely extinct scripts like the Chinese-character-based Hanja used in ancient Korean records (Kang et al.), it fails to recognize the root words. Instead, it fragments the text into meaningless, granular subwords or flags them as unknown tokens. This fragmentation destroys the semantic cohesion of the input before the model even begins processing it.
2. Syntactic and Structural Divergence
Beyond spelling, the grammatical rules governing historical languages often differ fundamentally from their modern counterparts. As Zhou et al. demonstrate in their evaluation of Classical Chinese (Wen Yan Wen), models trained on modern language variants lack the grammatical and lexical depth required to parse ancient syntax and function words.
When forced to process these structures, modern models suffer from "linguistic interference"—the tendency of the model's strong modern priors to misinterpret archaic grammatical constructions as errors or modern equivalents (Hu et al.).
Why Historical Pre-Training Works
Domain-specific historical pre-training solves these issues by aligning a model’s internal representations directly with the target era's distribution.
[Standard Approach]
Modern Internet Data ──> General PLM ──> High Error on Historical Text (Due to Drift)
[Historical Pre-training Approach]
Target Historical Corpus ──> Domain-Specific Pre-training ──> Robust Historical Understanding
By exposing the model to large volumes of period-specific text during the pre-training phase, the model learns a vocabulary space and a set of syntactic expectations tailored to that era. In his work on PhiloGPT, a model designed for ancient manuscripts, He explains that this specialized pre-training allows the system to develop a nuanced "world model" of the historical period. This internal world model is essential for resolving ambiguities, identifying historical context, and accurately restoring damaged or missing text.
Furthermore, learning directly from the target corpus prevents the system from misinterpreting valid historical variants. As Klaus et al. show when correcting Optical Character Recognition (OCR) errors in the Royal Society Corpus, localized learning ensures the model adapts to specific archaic spelling conventions and scientific vocabularies rather than incorrectly flagging them as modern typos.
The Primacy of Relevance Over Scale
A key insight from this research direction challenges a core tenet of modern NLP: that bigger datasets are always better. In historical language modeling, data relevance consistently outperforms raw data volume.
The authors of D'AlemBERT (Gabay et al.), a model trained for Early Modern French, demonstrated that a relatively small, highly targeted historical corpus can outperform models trained on massive volumes of generic, modern data. Similarly, Toker et al. found that pre-training on a small corpus of medieval Hebrew poetry yielded superior performance on specialized literary tasks compared to models trained on massive modern Hebrew datasets.
This phenomenon occurs because a smaller, domain-aligned dataset contains a high density of the exact syntactic patterns, stylistic nuances, and vocabulary required for the task. It eliminates the linguistic noise of modern grammar. As Kulick et al. observe when parsing Early Modern English, prioritizing domain-specific linguistic patterns over the sheer scale of general-purpose training data is the most effective way to handle orthographic chaos and archaic syntax.
Implementation Strategies: From-Scratch vs. Continued Pre-Training
To build these models, researchers generally follow one of two methodological paths depending on data availability and linguistic distance:
1. From-Scratch Domain Pre-Training
When a historical language diverges drastically from its modern descendant (or has no modern equivalent), researchers initialize a model architecture with random weights and train it exclusively on the historical corpus. Al-Laith et al. note that this strategy ensures the model's linguistic representations are entirely derived from the target era's syntax and semantics, completely insulating the model from modern linguistic interference. This approach has been used to create foundational models for highly distinct domains, such as ancient Chinese (Tian et al.).
2. Continued Pre-Training (Domain Adaptation)
When historical data is scarce, or when the historical language shares significant overlap with a well-resourced modern or multilingual base, researchers use continued pre-training. This involves taking an existing pre-trained model and training it further on a historical corpus using Masked Language Modeling (MLM).
As Yoo et al. demonstrate with the HUE benchmark, this process drastically reduces the frequency of unknown tokens and adapts the base model to unique regional and temporal variations that broader models miss. To bridge the gap even further, the authors of a study on 19th-century Scandinavian literature (Degn et al.) utilized a multi-stage fine-tuning pipeline, starting with broad contemporary data and progressively narrowing down to expert-annotated period literature.
By realigning the underlying tokenizers and semantic spaces to match the past, domain-specific pre-training provides the foundational infrastructure needed to accurately analyze, translate, and preserve human history.
Key Foundational Work
Transfer Learning for a Letter-Ngrams to Word Decoder in the Context of Historical Handwriting Recognition with Scarce Resources (2018) — contributed 2 concept elements to this direction.
OCR post-correction of the Royal Society Corpus based on the noisy channel model (2019) — contributed 1 concept elements to this direction.