TL;DR
Researchers have developed a deep learning approach using Long Short-Term Memory (LSTM) networks to automatically restore missing text in fragmented ancient Babylonian tablets. By treating cuneiform restoration as a language modeling problem, the system achieves up to 85% accuracy in predicting missing words, providing a powerful new tool to assist Assyriologists in reconstructing Mesopotamian history.
What Problem Does This Paper Address?
Ancient Mesopotamian history is recorded on hundreds of thousands of clay cuneiform tablets. However, these tablets are rarely found intact; they are often cracked, eroded, or broken into fragments, leaving significant gaps in the text.
Currently, restoring these "lacunae" is a manual, painstaking process performed by a small number of experts who must sift through thousands of parallel passages to find likely completions. This process is not only time-consuming and subjective but also lacks a way to quantify uncertainty. The authors aim to automate this process, specifically for the Late Babylonian archival texts of the Achaemenid period (c. 539–331 BCE), which are highly structured and formulaic—making them ideal candidates for machine learning.
Methods
The authors framed the restoration as a sequence modeling task. They implemented and compared two primary approaches:
- N-gram Baseline: A traditional statistical model that predicts the next word based on the frequency of the preceding $n-1$ tokens.
- Recurrent Neural Networks (LSTM): A deep learning architecture designed to capture long-range dependencies in sequences.
The researchers used two variations of the LSTM:
- LSTM (start): Predicts the missing word based only on the text preceding the gap.
- LSTM (full): First identifies the top 100 candidates using the "start" model, then re-ranks them by calculating the log-likelihood of the entire sentence (including the text after the gap).
A critical part of their method was a custom tokenizer. To handle the "small data" problem inherent in ancient languages, they replaced specific entities (names of people, gods, locations, months, and numbers) with generic tokens like NAME, GODNAME, and NUM. This allowed the model to learn the underlying sentence structure without being distracted by the vast variety of unique proper nouns.
Datasets
The study utilized a corpus of approximately 3,000 transliterated texts from the Achaemenid period, scraped from the Achemenet website.
- Scale: The dataset contained roughly 220,926 total words with a vocabulary of 1,549 unique words (after preprocessing).
- Comparison: For context, this is significantly smaller than standard modern NLP datasets like the Penn Treebank, which has over 1 million words and a 10,000-word vocabulary.
- Genre: The texts are primarily "bureaucratic" in nature—legal proceedings, receipts, and administrative contracts—which feature repetitive, predictable syntax.
Key Insights and Ideas
- Structure Over Semantics: The model excels at identifying correct sentence structures and syntactic sequences. It learns the "grammar" of bureaucracy—knowing, for example, that a certain type of verb usually follows a specific list of names and locations.
- The Power of Preprocessing: By collapsing proper nouns into categories (e.g., all kings and citizens becoming
NAME), the researchers effectively "densified" their sparse data, allowing the LSTM to learn patterns that would otherwise be hidden by unique names. - Context Matters: The "LSTM (full)" model significantly outperformed the "start" model, proving that in ancient text restoration, the words after a break are just as informative as the words before it.
- Human-Machine Complementarity: In a "designed completion test," the model's errors were mostly semantic (picking a word that fits grammatically but changes the meaning) rather than syntactic. This suggests the tool is best used to provide a ranked list of grammatically valid suggestions for a human expert to finalize.
Key Results
The LSTM models vastly outperformed the n-gram baselines across all metrics:
- Accuracy (Hit@1): The "LSTM (full)" model correctly predicted the missing 5th word in a sentence 85% of the time.
- Top-10 Accuracy (Hit@10): The correct word appeared in the model's top 10 suggestions 95.5% of the time.
- Multiple Choice Test: On a set of 52 human-designed test questions (selecting the correct word among four options), the model achieved 88.5% accuracy.
- Perplexity: The LSTM achieved a test perplexity of 5.02, compared to 22.87 for the 2-gram model (lower is better), indicating a much higher confidence in its linguistic predictions.
Limitations and Future Work
- Logographic Ambiguity: The current model does not distinguish between different ways of writing the same word (e.g., phonetic vs. logographic/Sumerogram signs), which can lead to confusion.
- Data Scarcity: While 3,000 texts were sufficient for formulaic legal documents, more diverse genres (like literary or scientific texts) would require significantly more digitized data to train effectively.
- Semantic Depth: The model occasionally struggles with "paradigmatic" relationships—it might suggest a grammatically perfect verb that is semantically inappropriate for the specific context of the document.
- Integration: The authors envision integrating this model into a user-friendly tool (the "Babylonian Engine") to assist scholars in real-time during the decipherment process.
Summary updated