LegalRelectra: Mixed-domain Language Modeling for Long-range Legal Text Comprehension
Not on the map. Why?
Abstract (arXiv)
The application of Natural Language Processing (NLP) to specialized domains, such as the law, has recently received a surge of interest. As many legal services rely on processing and analyzing large collections of documents, automating such tasks with NLP tools emerges as a key challenge. Many popular language models, such as BERT or RoBERTa, are general-purpose models, which have limitations on processing specialized legal terminology and syntax. In addition, legal documents may contain specialized vocabulary from other domains, such as medical terminology in personal injury text. Here, we propose LegalRelectra, a legal-domain language model that is trained on mixed-domain legal and medical corpora. We show that our model improves over general-domain and single-domain medical and legal language models when processing mixed-domain (personal injury) text. Our training architecture implements the Electra framework, but utilizes Reformer instead of BERT for its generator and discriminator. We show that this improves the model's performance on processing long passages and results in better long-range text comprehension.
Key facts. Cited by 7 papers in the map (data through 13 Oct 2026). Builds on 15 of its 27 references that are in the map. First posted on arXiv 16 Dec 2022.
Builds on
15 of 27 references.
References · 15
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,322
- 2020Longformer: The Long-Document Transformercited by 3,393
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,910
- 2019BioBERT: a pre-trained biomedical language representation model for biomedical text miningcited by 1,942
- 2020Reformer: The Efficient Transformercited by 1,662
- 2019ClinicalBERT: Modeling Clinical Notes and Predicting Hospital Readmissioncited by 490
- 2020Med-BERT: pre-trained contextualized embeddings on large-scale structured electronic health records for disease predictioncited by 369
- 2019Neural Legal Judgment Prediction in Englishcited by 208
- 2020FinBERT: A Pretrained Language Model for Financial Communicationscited by 161
- 2020How Does NLP Benefit Legal System: A Summary of Legal Artificial Intelligencecited by 128
- 2021Lawformer: A Pre-trained Language Model for Chinese Legal Long Documentscited by 115
3 more
- 2020LEGAL-BERT: The Muppets straight out of Law Schoolcited by 111
- 2017Exploring the Use of Text Classification in the Legal Domaincited by 31
- 2021Identifying biases in legal data: An algorithmic fairness perspectivecited by 4
Built on by
Citing papers per year: 2023: 4; 2024: 2; 2025: 1.
7 papers.
- 2023LEXTREME: A Multi-Lingual and Multi-Task Benchmark for the Legal Domaincited by 68
- 2024Multilingual Large Language Models: A Systematic Surveycited by 18
- 2023One Law, Many Languages: Benchmarking Multilingual Legal Reasoning for Judicial Supportcited by 15
- 2023MultiLegalSBD: A Multilingual Legal Sentence Boundary Detection Datasetcited by 7
- 2024Towards Explainability and Fairness in Swiss Judgement Prediction: Benchmarking on a Multilingual Datasetcited by 7
- 2023Automatic Anonymization of Swiss Federal Supreme Court Rulingscited by 3
- 2025Health Insurance Coverage Rule Interpretation Corpus: Law, Policy, and Medical Guidance for Health Insurance Coverage Understandingcited by 0
- 2025Health Insurance Coverage Rule Interpretation Corpus: Law, Policy, and Medical Guidance for Health Insurance Coverage Understanding28 Jul 2025
- 2024Multilingual Large Language Models: A Systematic Survey17 Nov 2024
- 2024Towards Explainability and Fairness in Swiss Judgement Prediction: Benchmarking on a Multilingual Dataset26 Feb 2024
- 2023Automatic Anonymization of Swiss Federal Supreme Court Rulings7 Oct 2023
- 2023One Law, Many Languages: Benchmarking Multilingual Legal Reasoning for Judicial Support15 Jun 2023
- 2023MultiLegalSBD: A Multilingual Legal Sentence Boundary Detection Dataset2 May 2023
- 2023LEXTREME: A Multi-Lingual and Multi-Task Benchmark for the Legal Domain30 Jan 2023