[Paper Review] Latin BERT: A Contextual Language Model for Classical Philology
This paper introduces Latin BERT, a contextual language model pre-trained on 642.7 million tokens of Latin text spanning from 200 BCE to the present. It achieves state-of-the-art performance in part-of-speech tagging, enables word sense disambiguation and text infilling, and supports semantically informed search via contextual nearest neighbors, with models and data publicly released for scholarly use.
We present Latin BERT, a contextual language model for the Latin language, trained on 642.7 million words from a variety of sources spanning the Classical era to the 21st century. In a series of case studies, we illustrate the affordances of this language-specific model both for work in natural language processing for Latin and in using computational methods for traditional scholarship: we show that Latin BERT achieves a new state of the art for part-of-speech tagging on all three Universal Dependency datasets for Latin and can be used for predicting missing text (including critical emendations); we create a new dataset for assessing word sense disambiguation for Latin and demonstrate that Latin BERT outperforms static word embeddings; and we show that it can be used for semantically-informed search by querying contextual nearest neighbors. We publicly release trained models to help drive future work in this space.
Motivation & Objective
- To develop a contextual language model tailored for Latin, a historical language with limited NLP resources.
- To improve performance on core NLP tasks such as part-of-speech tagging and word sense disambiguation in Latin.
- To support traditional classical scholarship by enabling computational methods for textual emendation and intertextuality detection.
- To create and release a new dataset for evaluating word sense disambiguation in Latin.
- To demonstrate the utility of contextual embeddings in semantic search and nearest-neighbor retrieval for classical texts.
Proposed method
- Pre-training a BERT-based model on a 642.7 million-token corpus of Latin texts from diverse sources, including Perseus, the Internet Archive, and Patrologia Latina.
- Fine-tuning the model on Universal Dependency datasets to achieve state-of-the-art performance in part-of-speech tagging across three Latin treebanks.
- Creating a new word sense disambiguation dataset based on the Latin Dictionary of Lewis and Short to evaluate model performance.
- Using contextual representations from the final BERT layer to compute semantic similarity via cosine similarity for nearest-neighbor search in textual contexts.
- Applying the model to text infilling tasks, including predicting missing words and supporting critical emendations in classical manuscripts.
- Releasing the trained models and associated code and data to the research community via GitHub for reproducibility and further development.
Experimental results
Research questions
- RQ1Can a contextual language model like BERT achieve state-of-the-art performance on part-of-speech tagging in Latin, outperforming multilingual and static embedding baselines?
- RQ2To what extent can Latin BERT improve word sense disambiguation in Latin compared to static word embeddings?
- RQ3How effective is Latin BERT in identifying semantically similar phrases or passages through contextual nearest-neighbor retrieval?
- RQ4Can Latin BERT support textual criticism by estimating the probability of missing or emended words in classical manuscripts?
- RQ5What are the practical applications of contextual embeddings in classical philology beyond standard NLP tasks?
Key findings
- Latin BERT achieves state-of-the-art performance on all three Universal Dependency datasets for Latin in part-of-speech tagging, outperforming previous models.
- The model significantly improves word sense disambiguation accuracy on a newly created dataset based on the Lewis and Short Latin Dictionary, surpassing static word embeddings.
- Contextual nearest-neighbor search using Latin BERT successfully retrieves semantically similar phrases, including intertextual variants such as different forms of 'audentes fortuna iuvat'.
- The model demonstrates strong performance in text infilling, with high cosine similarity scores (e.g., 0.834–0.837) between semantically related phrases like 'audentes' and 'audaces'.
- The model’s contextual representations capture both lexical variation and semantic similarity, even across morphological and syntactic differences.
- The public release of the trained models, code, and datasets is expected to catalyze further research in Latin NLP and digital classics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.