mlsanityData to 7 Oct 2026

Lawma: The Power of Specialization for Legal Annotation

arXiv 2407.16615 ↗First posted 23 Jul 2024cs.CL cs.AI cs.LGcited by 7

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 21 of its 59 references that are in the map. First posted on arXiv 23 Jul 2024.

Builds on

21 of 59 references.

References · 21

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  4. 2020Scaling Laws for Neural Language Modelscited by 6,411
  5. 2023Mistral 7Bcited by 3,065
  6. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  7. 2024Mixtral of Expertscited by 1,785
  8. 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 328
  9. 2021CUAD: An Expert-Annotated NLP Dataset for Legal Contract Reviewcited by 232
  10. 2021When Does Pretraining Help? Assessing Self-Supervised Learning for Law and the CaseHOLD Datasetcited by 199
  11. 2021ContractNLI: A Dataset for Document-level Natural Language Inference for Contractscited by 145
  12. 2024SaulLM-7B: A pioneering Large Language Model for Lawcited by 136
9 more
  1. 2018CLAUDETTE: an Automated Detector of Potentially Unfair Clauses in Online Terms of Servicecited by 72
  2. 2019Question Answering for Privacy Policies: Combining Computational and Legal Perspectivescited by 65
  3. 2023Large Language Models as Tax Attorneys: A Case Study in Legal Capabilities Emergencecited by 42
  4. 2024Training on the Test Task Confounds Evaluation and Emergencecited by 33
  5. 2023MAUD: An Expert-Annotated Legal NLP Dataset for Merger Agreement Understandingcited by 32
  6. 2021Factoring Statutory Reasoning as Language Understanding Challengescited by 20
  7. 2024Promises and pitfalls of artificial intelligence for legal applicationscited by 14
  8. 2024Evaluating AI for Law: Bridging the Gap with Open-Source Solutionscited by 11
  9. 2024Don't Label Twice: Quantity Beats Quality when Comparing Binary Classifiers on a Budgetcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 5.

7 papers.