Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
80 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

LegalRelectra: Mixed-domain Language Modeling for Long-range Legal Text Comprehension (2212.08204v1)

Published 16 Dec 2022 in cs.CL and cs.CY

Abstract: The application of 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 LLMs, 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 LLM 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 LLMs 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.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (5)
  1. Wenyue Hua (51 papers)
  2. Yuchen Zhang (112 papers)
  3. Zhe Chen (237 papers)
  4. Josie Li (2 papers)
  5. Melanie Weber (36 papers)
Citations (6)