LeXFiles and LegalLAMA: Facilitating English Multinational Legal Language Model Development

Ilias Chalkidis, Nicolas Garneau, Catalina Goanta, Daniel Martin Katz, Anders Søgaard
5/12/2023
cs.CL

No official code found. Best implementation: coastalcph/lexlms (23 stars, last commit 2023-07-24).

Abstract

In this work, we conduct a detailed analysis on the performance of legal-oriented pre-trained language models (PLMs). We examine the interplay between their original objective, acquired knowledge, and legal language understanding capacities which we define as the upstream, probing, and downstream performance, respectively. We consider not only the models' size but also the pre-training corpora used as important dimensions in our study. To this end, we release a multinational English legal corpus (LeXFiles) and a legal knowledge probing benchmark (LegalLAMA) to facilitate training and detailed analysis of legal-oriented PLMs. We release two new legal PLMs trained on LeXFiles and evaluate them alongside others on LegalLAMA and LexGLUE. We find that probing performance strongly correlates with upstream performance in related legal topics. On the other hand, downstream performance is mainly driven by the model's size and prior legal knowledge which can be estimated by upstream and probing performance. Based on these findings, we can conclude that both dimensions are important for those seeking the development of domain-specific PLMs.

View on arXivView PDF

Code Implementations(1)

coastalcph/lexlmsCommunity100%

LeXFiles and LegalLAMA: Facilitating English Multinational Legal Language Model Development

234Shell, PythonMay 10, 20233 years ago
legalnlplegaltechllmsnlproc

Similar Papers

Cite this paper

@article{chalkidis2023lexfiles,
  title  = {LeXFiles and LegalLAMA: Facilitating English Multinational Legal Language Model Development},
  author = {Ilias Chalkidis and Nicolas Garneau and Catalina Goanta and Daniel Martin Katz and Anders Søgaard},
  year   = {2023},
  eprint = {2305.07507},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.07507v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2305.07507.svg)](https://codeofpaper.com/paper/2305.07507)

Discussion