Lawma: The Power of Specialization for Legal Annotation
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
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2023Mistral 7Bcited by 3,065
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2024Mixtral of Expertscited by 1,785
- 2023LegalBench: A Collaboratively Built Benchmark for Measuring Legal Reasoning in Large Language Modelscited by 328
- 2021CUAD: An Expert-Annotated NLP Dataset for Legal Contract Reviewcited by 232
- 2021When Does Pretraining Help? Assessing Self-Supervised Learning for Law and the CaseHOLD Datasetcited by 199
- 2021ContractNLI: A Dataset for Document-level Natural Language Inference for Contractscited by 145
- 2024SaulLM-7B: A pioneering Large Language Model for Lawcited by 136
9 more
- 2018CLAUDETTE: an Automated Detector of Potentially Unfair Clauses in Online Terms of Servicecited by 72
- 2019Question Answering for Privacy Policies: Combining Computational and Legal Perspectivescited by 65
- 2023Large Language Models as Tax Attorneys: A Case Study in Legal Capabilities Emergencecited by 42
- 2024Training on the Test Task Confounds Evaluation and Emergencecited by 33
- 2023MAUD: An Expert-Annotated Legal NLP Dataset for Merger Agreement Understandingcited by 32
- 2021Factoring Statutory Reasoning as Language Understanding Challengescited by 20
- 2024Promises and pitfalls of artificial intelligence for legal applicationscited by 14
- 2024Evaluating AI for Law: Bridging the Gap with Open-Source Solutionscited by 11
- 2024Don't Label Twice: Quantity Beats Quality when Comparing Binary Classifiers on a Budgetcited by 7
Built on by
Citing papers per year: 2025: 2; 2026: 5.
7 papers.
- 2025Domaino1s: Guiding LLM Reasoning for Explainable Answers in High-Stakes Domainscited by 11
- 2025ContractEval: Benchmarking LLMs for Clause-Level Legal Risk Identification in Commercial Contractscited by 9
- 2026Enhancing LLM-Based Data Annotation with Error Decompositioncited by 1
- 2026Where Experts Disagree, Models Fail: Detecting Implicit Legal Citations in French Court Decisionscited by 1
- 2026Test-time RL alignment exposes task familiarity artifacts in LLM benchmarkscited by 0
- 2026RoLegalGEC: Legal Domain Grammatical Error Detection and Correction Dataset for Romaniancited by 0
- 2026LLMs as annotators of credibility assessment in Danish asylum decisions: evaluating classification performance and errors beyond aggregated metricscited by 0
- 2026LLMs as annotators of credibility assessment in Danish asylum decisions: evaluating classification performance and errors beyond aggregated metrics13 May 2026
- 2026RoLegalGEC: Legal Domain Grammatical Error Detection and Correction Dataset for Romanian21 Apr 2026
- 2026Where Experts Disagree, Models Fail: Detecting Implicit Legal Citations in French Court Decisions24 Mar 2026
- 2026Test-time RL alignment exposes task familiarity artifacts in LLM benchmarks13 Mar 2026
- 2026Enhancing LLM-Based Data Annotation with Error Decomposition17 Jan 2026
- 2025ContractEval: Benchmarking LLMs for Clause-Level Legal Risk Identification in Commercial Contracts5 Aug 2025
- 2025Domaino1s: Guiding LLM Reasoning for Explainable Answers in High-Stakes Domains24 Jan 2025