Filling the Gaps in Ancient Akkadian Texts: A Masked Language Modelling Approach

Koren Lazar, Benny Saret, Asaf Yehudai, Wayne Horowitz, Nathan Wasserman, Gabriel Stanovsky

Abstract

Researchers have successfully applied BERT-style masked language modeling to restore missing text in ancient Akkadian cuneiform tablets. By leveraging multilingual pretraining on modern related languages, their models achieve nearly 90% accuracy in predicting missing signs, providing a powerful new tool for Assyriologists to reconstruct fragmentary historical records.

Introduction

Akkadian served as the lingua franca of the ancient Near East for over 2,500 years, with hundreds of thousands of clay tablets surviving to this day. However, these artifacts are rarely found intact; millennia of erosion and physical damage have left them riddled with gaps, known as lacunae. Traditionally, filling these gaps has been the painstaking task of Assyriologists, requiring decades of expertise and a high degree of subjectivity.

This research frames the restoration of ancient text as a computational task using Masked Language Modeling (MLM). By adapting modern AI techniques—similar to those used in large language models—the authors provide objective, context-aware suggestions to assist experts in reconstructing historical narratives.

Methodology

The authors adapted the BERT (Bidirectional Encoder Representations from Transformers) architecture to handle transliterated Akkadian. The pipeline involves several critical stages:

  1. Preprocessing: Data from the Open Richly Annotated Cuneiform Corpus (Oracc) was cleaned and normalized, removing editorial annotations and standardizing sign delimiters.
  2. Model Architecture: The study compared a monolingual BERT trained from scratch against a Multilingual BERT (M-BERT) pretrained on 104 modern languages. They also tested an "M-BERT + English" variant to see if cross-lingual signals from translations improved performance.
  3. Decoding Strategy: To handle gaps spanning multiple signs, a greedy decoding scheme (based on k-beams) was implemented to iteratively predict sequences.
The pipeline for predicting missing signs in transliterated Akkadian text.

Data and Evaluation

The primary dataset, Oracc, consists of approximately 10,000 tablets containing 1 million words and 2.3 million signs. These span various genres, including Royal Inscriptions, Astrological Reports, and legal Decrees. The models were evaluated using a standard 80/20 train-test split, with 15% of tokens masked to test predictive accuracy.

Results and Discussion

The most significant finding was the effectiveness of multilingual transfer. M-BERT, pretrained on modern Semitic languages like Arabic and Hebrew, significantly outperformed the monolingual Akkadian model. This suggests that the model can leverage structural similarities across the Semitic language family to overcome the "data scarcity" of ancient texts. Notably, the "zero-shot" M-BERT (which had never seen Akkadian during training) outperformed the monolingual model, highlighting the importance of large-scale pretraining.

The fine-tuned M-BERT achieved a 89% Hit@5 score, meaning the correct sign appeared in the top five suggestions nearly 90% of the time. The Mean Reciprocal Rank (MRR) of 0.83 further indicates that the correct answer was typically the first or second suggestion. Performance was highest on narrative texts like Royal Inscriptions but lower on "Lexical" lists, which lack standard syntax.

Hit@k precision for multiple sign/word predictions in Akkadian and English.

While the model excels at single-token predictions, performance decreases as the length of the gap increases. As shown in the figures, predicting multiple contiguous signs remains a complex challenge compared to single-token tasks, though the model still provides plausible candidates for professional review.

Conclusion and Future Work

While this approach offers a significant leap over previous LSTM-based methods, limitations remain. Predicting entire missing sentences ("long gaps") is still difficult. Future research may explore specialized architectures like SpanBERT or pretraining exclusively on related Semitic languages to refine the linguistic signal. Ultimately, this tool serves as a "human-in-the-loop" assistant, providing objective suggestions to help scholars unlock the secrets of the ancient world.

Summary updated

BibTeX
@inproceedings{lazar2021filling,
  author = {Koren Lazar and Benny Saret and Asaf Yehudai and Wayne Horowitz and Nathan Wasserman and Gabriel Stanovsky},
  title = {{Filling the Gaps in Ancient Akkadian Texts: A Masked Language Modelling Approach}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.384},
}
Figure