mlsanityData to 14 Oct 2026

Legal Domain Adaptation of Modern BERT Models

arXiv 2606.28538 ↗First posted 26 Jun 2026cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

We investigate domain adaptation of modern BERT models in the legal domain. We further pre-train ModernBERT on all US court opinions using the masked language modeling objective. Although ModernBERT has been trained on roughly 500x more data than original BERT, we still find that this model benefits from further pre-training and domain adaptation in the legal domain: we report significant improvements compared to vanilla ModernBERT on all datasets connected to US court opinions. We find gains similar to those reported in early work on domain adaptation of BERT-like models. However, from scratch pre-training does not match the performance of further pre-training an existing ModernBERT checkpoint in our experiments. The resulting models are capable of processing sequences up to 8,192 tokens, and can be used to compute meaningful embeddings of legal passages, or could quickly rerank hundreds of legal passages for a given search query. We release all model checkpoints publicly.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 18 of its 32 references that are in the map. First posted on arXiv 26 Jun 2026.

Builds on

18 of 32 references.

References · 18

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  4. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  5. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  6. 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,414
  7. 2021Persistent Anti-Muslim Bias in Large Language Modelscited by 377
  8. 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 310
  9. 2022Transformer Memory as a Differentiable Search Indexcited by 247
  10. 2021When Does Pretraining Help? Assessing Self-Supervised Learning for Law and the CaseHOLD Datasetcited by 201
  11. 2020How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligencecited by 129
  12. 2021ClimateBert: A Pretrained Language Model for Climate-Related Textcited by 90
6 more
  1. 2024(A)I Am Not a Lawyer, But...: Engaging Legal Experts towards Responsible LLM Policies for Legal Advicecited by 63
  2. 2023MultiLegalPile: A 689GB Multilingual Legal Corpuscited by 60
  3. 2023MosaicBERT: A Bidirectional Encoder Optimized for Fast Pretrainingcited by 34
  4. 2023The Law and NLP: Bridging Disciplinary Disconnectscited by 8
  5. 2023Translating Legalese: Enhancing Public Understanding of Court Opinions with Legal Summarizerscited by 8
  6. 2025How Can AI Augment Access to Justice? Public Defenders' Perspectives on AI Adoptioncited by 2

Built on by

Not cited yet.