arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.08204cs.CLcs.CY
收藏

LegalRelectra:面向远程法律文本理解的混合域语言建模

LegalRelectra: Mixed-domain Language Modeling for Long-range Legal Text Comprehension

Claudius Legal Intelligence(克劳狄乌斯法律智能公司);Rutgers University(罗格斯大学);University of Pennsylvania(宾夕法尼亚大学);Princeton University(普林斯顿大学);University of California, San Diego(加州大学圣迭戈分校);Harvard University(哈佛大学)

Wenyue Hua, Yuchen Zhang, Zhe Chen, Josie Li, Melanie Weber

摘要:

自然语言处理(NLP)在法律等专业领域的应用最近受到了极大的关注。由于许多法律服务依赖于处理和分析大量文档,因此使用NLP工具自动化这些任务成为一个关键挑战。许多流行的语言模型,如BERT或RoBERTa,都是通用的模型,它们在处理专门的法律术语和语法方面有局限性。此外,法律文件可能包含来自其他领域的专业词汇,例如人身伤害文本中的医疗术语。在这里,我们提出了LegalRelectra,一个法律领域的语言模型,在混合领域的法律和医学语料库上训练。我们表明,我们的模型提高了一般域和单域医疗和法律语言模型处理混合域(人身伤害)文本时。我们的训练架构实现了Electra框架,但使用Reformer而不是BERT作为其生成器和编译器。我们表明,这提高了模型在处理长段落上的性能,并导致更好的长距离文本理解。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑