TL;DR
Researchers have successfully applied Masked Language Modeling (MLM) to restore missing text in damaged, ancient Akkadian cuneiform tablets. By fine-tuning Multilingual BERT (M-BERT), the team achieved a state-of-the-art 89% top-5 accuracy in predicting missing signs, demonstrating that cross-lingual transfer from modern Semitic languages can overcome extreme ancient data scarcity.
What Problem Does This Paper Address?
Akkadian was the lingua franca of the ancient Near East, preserved on clay cuneiform tablets dating from 2500 BCE to 100 CE. Over millennia, many of these tablets have eroded, fractured, or lost pieces entirely.
When epigraphists and historians transcribe these tablets into Latinized characters, they must manually "fill in the gaps" using surrounding context. This process is highly subjective, tedious, and requires decades of expertise. The authors of this paper set out to automate this task, framing the restoration of missing cuneiform signs as a modern Natural Language Processing (NLP) problem.
Methods
The authors realized that the archaeological challenge of filling in text gaps maps perfectly onto Masked Language Modeling (MLM)—the exact pretraining objective used for models like BERT.
They experimented with two primary neural architectures:
- Monolingual BERT from scratch: A downsized BERT model (750K parameters) trained exclusively on Akkadian text to prevent overfitting on a small dataset.
- Fine-tuned Multilingual BERT (M-BERT): A standard BERT model pretrained on 104 modern languages, including typologically similar Semitic languages like Arabic and Hebrew, and then fine-tuned on Akkadian.
Because a single gap on a tablet can represent multiple missing signs or words, standard single-token MLM isn't enough. To solve this, the authors implemented a greedy decoding algorithm (an adapted k-beams approach). The model counts sign delimiters (hyphens, dots, spaces) at each step to iteratively predict multi-sign sequences based on conditional probability.
Datasets
The models were trained and evaluated using data from the Open Richly Annotated Cuneiform Corpus (Oracc), one of the largest digital repositories of cuneiform texts.
- Akkadian Corpus: ~10K tablet transliterations comprising roughly 1M words and 2.3M individual signs.
- English Translations: ~9K parallel translated texts (1.2M words) used for auxiliary training configuration.
The text required extensive preprocessing to strip out modern editorial annotations, such as brackets indicating reader uncertainty and formatting superscripts/subscripts.
Key Insights and Ideas
- The Power of Zero-Shot Transfer: Incredibly, a completely un-tuned, zero-shot M-BERT model (which had never seen a single word of Akkadian) outperformed both standard LSTM baselines and the monolingual BERT trained from scratch. This suggests that the structural and semantic features M-BERT learns from modern Semitic languages (like Hebrew and Arabic) transfer powerfully to ancient dead languages, compensating for data scarcity.
- Context is King: The model's performance varied drastically by literary genre. It excelled at narrative prose, such as Royal Inscriptions and Astrological Reports, where long-term context is rich. Conversely, performance degraded on Lexical texts (which are essentially tabular dictionaries or synonym lists) and Decrees (collections of short, disjointed sentences), proving the model relies heavily on contextualized representations rather than just memorizing sign sequences.
Key Results
- State-of-the-Art Accuracy: The fine-tuned
MBERT+Akkmodel achieved an overall 89% Hit@5 accuracy (meaning the correct sign was in the model's top 5 guesses) and a Mean Reciprocal Rank (MRR) of 0.83. This vastly outperformed the previous LSTM baseline, which sat at 59% Hit@5. - Sequence Length Impact: Accuracy is highly dependent on the size of the gap. For a single missing token or sign, Hit@5 precision hovers around 80-90%. However, as the gap widens to 3 or more signs, performance drops sharply due to the compounding errors inherent to greedy decoding.
- Human Validation: A blind evaluation conducted with professional Assyriologists confirmed the model's practical utility. For gaps of 1 to 2 signs, experts found at least one of the model's top 3 suggestions to be historically and grammatically plausible in the majority of cases.
Limitations and Future Work
The primary bottleneck is multi-token degradation. The current greedy decoding strategy struggles with long text blanks because an incorrect prediction early in the sequence derails the rest of the sentence.
The authors suggest that future iterations could utilize SpanBERT, which is explicitly designed to predict contiguous spans of missing text rather than single tokens, to better handle large physical fractures in the tablets. Additionally, they plan to isolate and explore the exact mathematical benefits of pretraining on closely related sister languages.
Summary updated