Skip to content
AI News HubLIVE
Original source2 min read

LAMB: A Modern Contextual Language Model for Latin

Summary

This paper introduces LAMB, an encoder for Latin based on the ModernBERT architecture, pretrained on over 74B Latin tokens with a morphologically informed masking regimen. It also presents two corpora: Acervus and Corpus Trinum, the first Latin semantic triplet dataset. On a benchmark of 5 tasks and 17 subtasks, LAMB outperforms all evaluated models on 16 subtasks and comes within 0.8 percentage points of state of the art on the 17th.

SourcearXiv Computational LinguisticsAuthor: Aidan McCarthy
LAMB: A Modern Contextual Language Model for Latin
Report an error

The correction channel is not available yet. You can copy the article reference below for later.

Correction instructions
Read article

[Submitted on 22 Oct 2026]

Title:LAMB: A Modern Contextual Language Model for Latin

View a PDF of the paper titled LAMB: A Modern Contextual Language Model for Latin, by Aidan McCarthy

View PDF HTML (experimental)

Abstract:This article introduces Latin Modern BERT (LAMB), an encoder for the Latin language based on the ModernBERT architecture, pretrained in two phases on more than 74B Latin tokens using a novel morphologically informed masking regimen. We also present two corpora for the Latin language. Acervus contains 24B BERT WordPiece tokens, including over 760K samples from heavily damaged OCR transcriptions, repaired by a ByT5 model trained for Latin text repair. The second dataset, Corpus Trinum, contains a mixture of over 100M strong and weak Latin language semantic triplets. Corpus Trinum is the first Latin semantic triplet dataset, opening the door for Latin language models to be adapted to general sentence semantic similarity tasks. We construct an experimental grid using five tasks and seventeen subtasks, applying a variety of finetuning configurations and subword aggregation techniques for 15 pretrained encoders, 6 LAMB training checkpoints, and an ablation model designed to quantify the impact of different masking regimens. Using this benchmark, we rank Latin encoders and find that LAMB outperforms all other evaluated models on 16 of 17 subtasks, coming within 0.8 percentage points of state of the art on the seventeenth. We provide additional analyses relating Latin encoder performance to tokenizer behavior, syntactic structure, finetuning configuration, pretraining state, subword aggregation, and variation in source texts and domains. In these, we identify unique acquisition dynamics for Latin open class words during terminal decay phases, and establish that for some task categories, finetuning configuration selection can have a greater effect on downstream scores than additional pretraining tokens.

Subjects:

Computation and Language (cs.CL)

ACM classes: I.2.7; I.2.6

Cite as: arXiv:2610.31723 [cs.CL]

(or arXiv:2610.31723v1 [cs.CL] for this version)

https://doi.org/10.48550/arXiv.2610.31723

arXiv-issued DOI via DataCite

Submission history

From: Aidan McCarthy [view email] [v1] Thu, 22 Oct 2026 11:07:14 UTC (404 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled LAMB: A Modern Contextual Language Model for Latin, by Aidan McCarthy

View PDF

HTML (experimental)

TeX Source

view license

Additional Features

Audio Summary

Current browse context:

cs.CL

new | recent | 2026-10

Change to browse by:

cs

References & Citations

SciX

Google Scholar

Semantic Scholar

Loading...

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)

Key points and analysis

Article intelligence

InvestorsAdvanced

Key points

  • LAMB is based on ModernBERT and pretrained on over 74B Latin tokens using a morphologically informed masking regimen.
  • The Acervus corpus contains 24B WordPiece tokens, including over 760K repaired OCR samples; Corpus Trinum contains over 100M semantic triplets, the first for Latin.
  • LAMB outperforms all evaluated models on 16 of 17 subtasks and is within 0.8 percentage points of SOTA on the 17th.
  • Finetuning configuration selection can have a greater effect on downstream scores than additional pretraining tokens for some task categories.

Highlights and analysis are generated automatically and may contain errors. Check the original source.