Saved in:
Bibliographic Details
Main Authors: Dominguez-Olmedo, Ricardo, Nanda, Vedant, Abebe, Rediet, Bechtold, Stefan, Engel, Christoph, Frankenreiter, Jens, Gummadi, Krishna, Hardt, Moritz, Livermore, Michael
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2407.16615
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910917059411968
author Dominguez-Olmedo, Ricardo
Nanda, Vedant
Abebe, Rediet
Bechtold, Stefan
Engel, Christoph
Frankenreiter, Jens
Gummadi, Krishna
Hardt, Moritz
Livermore, Michael
author_facet Dominguez-Olmedo, Ricardo
Nanda, Vedant
Abebe, Rediet
Bechtold, Stefan
Engel, Christoph
Frankenreiter, Jens
Gummadi, Krishna
Hardt, Moritz
Livermore, Michael
contents Annotation and classification of legal text are central components of empirical legal research. Traditionally, these tasks are often delegated to trained research assistants. Motivated by the advances in language modeling, empirical legal scholars are increasingly turning to prompting commercial models, hoping that it will alleviate the significant cost of human annotation. Despite growing use, our understanding of how to best utilize large language models for legal annotation remains limited. To bridge this gap, we introduce CaselawQA, a benchmark comprising 260 legal annotation tasks, nearly all new to the machine learning community. We demonstrate that commercial models, such as GPT-4.5 and Claude 3.7 Sonnet, achieve non-trivial yet highly variable accuracy, generally falling short of the performance required for legal work. We then demonstrate that small, lightly fine-tuned models outperform commercial models. A few hundred to a thousand labeled examples are usually enough to achieve higher accuracy. Our work points to a viable alternative to the predominant practice of prompting commercial models. For concrete legal annotation tasks with some available labeled data, researchers are likely better off using a fine-tuned open-source model.
format Preprint
id arxiv_https___arxiv_org_abs_2407_16615
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Lawma: The Power of Specialization for Legal Annotation
Dominguez-Olmedo, Ricardo
Nanda, Vedant
Abebe, Rediet
Bechtold, Stefan
Engel, Christoph
Frankenreiter, Jens
Gummadi, Krishna
Hardt, Moritz
Livermore, Michael
Computation and Language
Artificial Intelligence
Machine Learning
Annotation and classification of legal text are central components of empirical legal research. Traditionally, these tasks are often delegated to trained research assistants. Motivated by the advances in language modeling, empirical legal scholars are increasingly turning to prompting commercial models, hoping that it will alleviate the significant cost of human annotation. Despite growing use, our understanding of how to best utilize large language models for legal annotation remains limited. To bridge this gap, we introduce CaselawQA, a benchmark comprising 260 legal annotation tasks, nearly all new to the machine learning community. We demonstrate that commercial models, such as GPT-4.5 and Claude 3.7 Sonnet, achieve non-trivial yet highly variable accuracy, generally falling short of the performance required for legal work. We then demonstrate that small, lightly fine-tuned models outperform commercial models. A few hundred to a thousand labeled examples are usually enough to achieve higher accuracy. Our work points to a viable alternative to the predominant practice of prompting commercial models. For concrete legal annotation tasks with some available labeled data, researchers are likely better off using a fine-tuned open-source model.
title Lawma: The Power of Specialization for Legal Annotation
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2407.16615