NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Usage of Language Model for the Filling of Lacunae in Ancient Latin Inscriptions: A Case Study (full paper)

Andrea Brunello, Emanuela Colombi, Alessandro Locaputo, Stefano Magnani, Nicola Saccomanno, Giuseppe SerraIAI4CH@AI*IA 2023

Introduction: The Challenge of Epigraphic Restoration

In the field of epigraphy—the study of ancient inscriptions—scholars frequently encounter "lacunae," or gaps in text caused by centuries of erosion, breakage, or decay. Restoring these missing segments is a painstaking process requiring deep expertise in linguistics, history, and paleography. While recent deep learning models like Ithaca have achieved significant success in restoring ancient Greek texts (reaching over 60% accuracy), Latin inscriptions remain a stubborn challenge.

An example of a Latin inscription on stone and its corresponding transcription with lacunae and editorial markup.

This paper evaluates the performance of LatinBERT on the task of "infilling" these missing texts. The authors identify a fundamental mismatch: the leading model for Latin was primarily trained on literary sources (e.g., classical prose and Wikipedia). However, stone-carved Latin follows distinct syntactic rules and utilizes highly "formulaic" language—standardized phrases that differ significantly from literary prose.

Methodology and Experimental Design

To address this gap, the researchers developed LatinBERT-epi, a version of the model fine-tuned on a massive corpus of cleaned Latin inscriptions. They utilized the Epigraphik-Datenbank Clauss/Slaby (EDCS), the most comprehensive collection of ancient Roman inscriptions, processing over 537,000 raw entries into a cleaned dataset of 211,601 inscriptions.

The study employed a Masked Language Model (MLM) objective and designed four distinct experiments to stress-test the model's capabilities:

  1. Random Masking: Hiding 15% of tokens to evaluate general recovery.
  2. Positional Masking: Hiding spans at the beginning, middle, or end of an inscription to determine if context placement affects performance.
  3. Length-based Masking: Testing the prediction of tokens ranging from 1 to 9 characters.
  4. Part-of-Speech (PoS) Masking: Using a secondary model to tag text and testing recovery based on grammatical roles (e.g., nouns vs. verbs).
Visualization of the four masking strategies used to evaluate the model: (1) Random, (2) Positional, (3) Length-based, and (4) Part-of-Speech tagging.

Key Insights: Why Inscriptions are Different

The experiments revealed several critical insights into the nature of epigraphic Latin and the limitations of current NLP models:

  • The "Middle" Difficulty: The model performed worst when gaps occurred in the middle of the text. Roman inscriptions are often highly formulaic at the beginning and end (e.g., funerary markers like Dis Manibus). The middle typically contains variable information, such as specific names or unique biographical details, which are significantly harder for a model to predict from context alone.
  • The Literature-Inscription Divide: Baseline LatinBERT performed poorly on stone texts, confirming that the "strict" syntactic structure of inscriptions is fundamentally different from the "looser" prose of Latin literature.
  • The Tokenization Trap: LatinBERT operates on sub-word tokens, whereas models like Ithaca operate on characters. In real-world epigraphy, the physical size of a gap (the number of characters missing) is a vital clue. Because LatinBERT lacks awareness of the character length of the gap it is filling, it is at a natural disadvantage.
  • Variability Peaks at Length 5: Tokens with a length of 5 characters were found to be the most difficult to predict, representing the highest point of unique token variability in the dataset.

Results and Performance Gap

Fine-tuning provided a clear performance boost. LatinBERT-epi achieved a Top-1 accuracy of 4.02%, nearly doubling the baseline's 2.42%. When the model was allowed 50 guesses (Top-50), accuracy rose to 15.47%.

Despite these improvements, the results remain drastically lower than the 33.1% accuracy LatinBERT achieves on literary text, and far behind the ~62% Top-1 accuracy seen in Greek models like Ithaca. Interestingly, the model showed relative strength in predicting proper nouns (PROPN) and punctuation (PUNCT), likely due to the repetitive nature of names and structural markers in funerary inscriptions.

Limitations and Future Directions

The authors conclude that standard BERT architectures may be insufficient for the specialized needs of epigraphy. The primary limitations include a lack of character-level awareness and a heavy reliance on formulaic bias, which causes the model to struggle with the creative or unique portions of an inscription.

Future work should move toward architectures similar to Ithaca, which utilize character-level processing and incorporate spatial and temporal metadata (the location and date of the carving). Such context is essential for providing the nuanced restoration required by professional epigraphists.

Summary updated

BibTeX
@inproceedings{brunello2023usage,
  author = {Andrea Brunello and Emanuela Colombi and Alessandro Locaputo and Stefano Magnani and Nicola Saccomanno and Giuseppe Serra},
  title = {{Usage of Language Model for the Filling of Lacunae in Ancient Latin Inscriptions: A Case Study (full paper)}},
  booktitle = {IAI4CH@AI*IA},
  year = {2023},
  url = {https://openreview.net/forum?id=B40vaGVQ4f},
}
Figure