An Annotated Dataset of Errors in Premodern Greek and Baselines for Detecting Them

Creston Brooks, Johannes Haubold, Charlie Cowen-Breen, Jay White, Desmond DeVaul, Frederick Riemenschneider, Karthik Narasimhan, Barbara Graziosi

TL;DR

This paper introduces the first expert-annotated dataset of real textual errors (scribal, print, and digitization) in premodern Greek, moving away from the artificial error datasets previously used in the field. By evaluating several unsupervised language model architectures on this new benchmark, the authors demonstrate that an ELECTRA-style discriminator outperforms traditional BERT-based masked language models, improving the true positive rate for error detection by 5%.

What Problem Does This Paper Address?

When ancient texts are transmitted over centuries, errors inevitably creep in. These range from ancient scribal slips (omitting or swapping words) to modern printing typos and digitization glitches. Identifying these errors is a massive headache for philologists because the most insidious errors aren't obvious typos—they are logical alterations that make grammatical sense in context, allowing them to hide in plain sight for hundreds of years.

Errors accumulate over centuries of copying, from handwritten manuscripts to digital text.

Until now, machine learning methods for textual restoration were evaluated almost entirely on artificially generated errors (like random character replacement). This creates a major evaluation gap: artificial noise is easy to spot, whereas real historical errors are subtle and context-dependent. This paper bridges this gap by providing a high-quality, expert-labeled dataset of genuine historical errors.

Methods

The authors explore how to derive unsupervised error detectors from language models without task-specific fine-tuning. They compare three main algorithmic approaches:

  1. Chance-Confidence Ratio (CCR): The previous state-of-the-art method, which uses a Masked Language Model (MLM) like BERT. It flags a word as a potential error if its probability given the context is very low compared to the model's confidence in an alternative word within a close edit distance.
  2. Pseudo Log-Likelihood Ratio (PLLR): A heuristic borrowed from protein engineering (originally used to detect malignant genetic mutations). It evaluates the likelihood of the entire sequence versus a mutated variant using a single forward pass.
  3. Discriminator Scoring (ELECTRA): A novel application for this task. Instead of predicting masked tokens, an ELECTRA discriminator is trained to determine whether each token in a sentence is original or replaced by a generator model. This closely mimics the real-world phenomenon of a scribe subtly altering text.

To ensure a fair comparison, the authors pre-trained seven different model variations (BERT, T5, and ELECTRA) from scratch on a massive 120-million-word corpus of premodern Greek. They also established a baseline using few-shot prompting with GPT-3.5 and GPT-4.

Datasets

The core contribution is the Logion Error Dataset, built using an "accelerated error discovery" pipeline:

Figure 2: Proposed pipeline for accelerated error discovery. Expert labeling creates evaluation datasets (Section 5), leading to better error detectors (Section 6), providing higher-quality samples for the next round of expert review.
  • Source Corpus: The 1-million-word digitized corpus of the 11th-century Byzantine author Michael Psellos.
  • Sampling: To overcome the extreme rarity of real errors, the authors used a BERT model to score the corpus and sample 1,000 words most likely to contain errors (over-sampling).
  • Expert Annotation: A domain-expert philologist spent over 100 hours verifying these 1,000 words against printed editions and original manuscripts.
  • Final Labels: 763 words were definitively labeled: 28% were confirmed real errors and 72% were non-errors. The errors were categorized into Digitization Errors (42), Print Edition Errors (114), and Scribal Errors (61).
  • Control Group: 237 randomly selected words were added as assumed non-errors to counteract the distribution shift caused by over-sampling.

Key Insights and Ideas

  • Scribal errors are the final boss of textual criticism: Across all models, scribal errors were significantly harder to detect than print or digitization errors. Because scribes were fluent speakers, their mistakes often fit the local grammar and context perfectly, making them highly elusive to algorithms.
  • Recency correlates with detectability: The ease of detecting an error directly correlates with how recently it was introduced (Digitization > Print > Scribal).
  • Large Language Models struggle with ancient languages: Despite their massive size, few-shot prompted GPT-3.5 and GPT-4 performed poorly. Even worse, they frequently generated highly confident but completely incorrect grammatical justifications for their choices, highlighting the danger of relying on commercial LLMs for niche historical languages.

Key Results

  • ELECTRA Wins: The ELECTRA discriminator achieved state-of-the-art performance, yielding an AUROC of 0.73 and a True Positive Rate (TPR) of 0.38 at a 10% False Positive Rate (FPR). This outperformed the best BERT-based CCR model by a clean 5% in TPR.
  • LLM Baseline Failure: GPT-3.5 and GPT-4 performed barely better than random guessing, achieving AUROCs of just 0.51 and 0.57, respectively.
  • The Scribal Performance Drop: While ELECTRA achieved an AUROC of 0.75 on digitization errors, its performance plummeted to 0.59 on scribal errors, underscoring how difficult deep historical text cleaning remains.
Figure 5: ROC curves of the best performing error detectors of each type. BERT-40 WP denotes the sub- word BERT model trained with 40% mask ratio.

Limitations and Future Work

The authors note a few key limitations:

  1. Dataset Scope: The dataset is currently limited to 1,000 words from a single author (Michael Psellos), due to the immense time and cost of expert philological review.
  2. Oversampling Bias: Because the dataset was curated using words flagged by a BERT-based CCR metric, it may inherently favor errors that BERT-like architectures are sensitive to.
  3. Zero-Shot Mismatch: Applying pre-trained models directly to error detection introduces a distribution mismatch (e.g., masking one token at evaluation time vs. 15% during training).

Future work will focus on expanding the dataset across more authors and exploring how to couple the ELECTRA discriminator with a generator to automatically correct (emend) the discovered errors rather than just flagging them.

Summary updated

BibTeX
@inproceedings{brooks2025annotated,
  author = {Creston Brooks and Johannes Haubold and Charlie Cowen-Breen and Jay White and Desmond DeVaul and Frederick Riemenschneider and Karthik Narasimhan and Barbara Graziosi},
  title = {{An Annotated Dataset of Errors in Premodern Greek and Baselines for Detecting Them}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.401},
}
Figure