Restoration of Fragmentary Babylonian Texts Using Recurrent Neural Networks

Ethan Fetaya, Yonatan Lifshitz, Elad Aaron, Shai Gordin · DOI

Abstract

The main source of information regarding ancient Mesopotamian history and culture are clay cuneiform tablets. Despite being an invaluable resource, many tablets are fragmented leading to missing information. Currently these missing parts are manually completed by experts. In this work we investigate the possibility of assisting scholars and even automatically completing the breaks in ancient Akkadian texts from Achaemenid period Babylonia by modelling the language using recurrent neural networks.

Introduction

Ancient Mesopotamian history is preserved on hundreds of thousands of clay cuneiform tablets. However, these artifacts are rarely found intact; they are frequently cracked, eroded, or broken into fragments, resulting in significant gaps known as "lacunae."

A typical fragmented cuneiform tablet showing physical damage and missing text.

Restoring these missing sections is currently a painstaking manual process. Experts must search through thousands of parallel passages to identify likely completions, a method that is time-consuming, subjective, and lacks quantifiable uncertainty. This research aims to automate this restoration process, specifically targeting Late Babylonian archival texts from the Achaemenid period (c. 539–331 BCE). These administrative and legal documents are highly structured and formulaic, making them ideal candidates for computational linguistic modeling.

Methodology

The researchers framed the restoration of cuneiform text as a sequence modeling problem, comparing two primary approaches:

  1. N-gram Baseline: A statistical model predicting tokens based on the frequency of preceding $n-1$ words.
  2. Recurrent Neural Networks (LSTM): A deep learning architecture designed to capture long-range dependencies in sequences.

Two LSTM variations were tested: LSTM (start), which predicts based only on preceding text, and LSTM (full), which re-ranks candidates by considering the context of the entire sentence, including text following the gap.

To address the "small data" challenge inherent in ancient languages, the team implemented a custom tokenizer. Specific entities—such as names of individuals, deities, locations, and dates—were replaced with generic tokens (e.g., NAME, GODNAME, NUM). This allowed the model to learn underlying syntactic structures without being overwhelmed by the high variance of unique proper nouns. The dataset consisted of approximately 3,000 transliterated texts (roughly 221,000 words) sourced from the Achemenet digital corpus.

Key Results and Insights

The LSTM models demonstrated a significant performance advantage over traditional statistical methods. The "LSTM (full)" model achieved a Hit@1 accuracy of 85% when predicting a missing word in a sentence, and the correct word appeared in the top 10 suggestions 95.5% of the time.

Comparison of training and test metrics between the 2-Gram baseline and the LSTM model.

As shown in the table above, the LSTM achieved a test perplexity of 5.02, vastly outperforming the 2-gram model's perplexity of 22.87. Lower perplexity indicates the model is much more confident and accurate in its linguistic predictions.

Key insights from the study include:

  • Syntactic Mastery: The model effectively learned the "grammar of bureaucracy," identifying correct sentence structures even when semantic nuances were complex.
  • Contextual Importance: The superior performance of the "full" model confirms that text following a lacuna provides critical information for restoration.
  • Data Densification: Preprocessing proper nouns into categories was essential for training on a relatively small corpus, allowing the model to generalize patterns across different documents.

Discussion and Future Work

While the results are promising for formulaic archival texts, several challenges remain. The current model does not yet distinguish between phonetic and logographic (Sumerogram) signs, which can represent the same word differently. Furthermore, expanding the system to more diverse genres, such as literary or scientific texts, will require larger digitized datasets.

The researchers envision this technology as a collaborative tool—the "Babylonian Engine"—that provides scholars with a ranked list of grammatically valid suggestions, significantly accelerating the decipherment and reconstruction of Mesopotamian history.

Summary updated

BibTeX
@article{fetaya2020restoration,
  author = {Ethan Fetaya and Yonatan Lifshitz and Elad Aaron and Shai Gordin},
  title = {{Restoration of Fragmentary Babylonian Texts Using Recurrent Neural Networks}},
  journal = {Proc. Natl. Acad. Sci. USA},
  year = {2020},
  doi = {10.1073/pnas.2003794117},
}
Figure