Lawma: The Power of Specialization for Legal Annotation
The DOI matches its DataCite record; 10 of the 10 references it cites were found in a registry or an index.
Abstract
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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“Dominguez-Olmedo et al. (Dominguez-Olmedo et al., 2025) provide 5.44K labeled training examples as well as 1.52K labeled test examples.”
From OpenThoughts: Data Recipes for Reasoning Models (2025) · cites this paper as Dominguez-Olmedo et al., 2025
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Scaling Laws for Neural Language Models
Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., & Amodei, D. (2020) · arXiv · doi:10.48550/arxiv.2001.08361 · Cited by 9,550
LEGAL-BERT: The Muppets straight out of Law School
Chalkidis, I., Fergadiotis, M., Malakasiotis, P., Aletras, N., & Androutsopoulos, I. (2020) · Findings of the Association for Computational Linguistics: EMNLP 2020 · doi:10.18653/v1/2020.findings-emnlp.261 · Cited by 994
Choi, J. H., Hickman, K. E., Monahan, A., & Schwarcz, D. B. (2023) · SSRN Electronic Journal · doi:10.2139/ssrn.4335905 · Cited by 485
Katz, D. M., Bommarito, M. J., Gao, S., & Arredondo, P. (2023) · doi:10.2139/ssrn.4389233 · Cited by 422
Jiang, A. Q., Sablayrolles, A., Mensch, A., Bamford, C., Chaplot, D. S., Casas, D. D. L., Bressand, F., Lengyel, G., Lample, G., Saulnier, L., et al. (2023) · arXiv · doi:10.48550/arxiv.2310.06825 · Cited by 340 · cited 1×
“The more recent SaulLM models (Colombo et al., 2024b,a) adapt the open-weights Mistral (Jiang et al., 2023, 2024) models to the legal domain both by continual pretraining and instruction-tuning on legal text.”
CUAD: An Expert-Annotated NLP Dataset for Legal Contract Review
Hendrycks, D., Burns, C., Chen, A., & Ball, S. (2021) · arXiv · doi:10.48550/arxiv.2103.06268 · Cited by 308 · cited 1×
“…draws on numerous earlier benchmarking efforts in different legal domains, specifically, inference on contracts (Koreeda and Manning, 2021; Hendrycks et al., 2021), merger agreement understanding (Wang et al., 2023), identifying the legal holding of a case (Zheng et al., 2021), statutory…”
Zheng, L., Guha, N., Anderson, B. R., Henderson, P., & Ho, D. E. (2021) · Proceedings of the Eighteenth International Conference on Artificial Intelligence and Law · doi:10.1145/3462757.3466088 · Cited by 151 · cited 1×
“…(Koreeda and Manning, 2021; Hendrycks et al., 2021), merger agreement understanding (Wang et al., 2023), identifying the legal holding of a case (Zheng et al., 2021), statutory reasoning (Holzenberger and Van Durme, 2021), privacy compliance and policy (Wilson et al., 2016; Zimmeck et al.,…”
SaulLM-7B: A pioneering Large Language Model for Law
Colombo, P., Pires, T. P., Boudiaf, M., Culver, D., Melo, R., Corro, C., Martins, A. F. T., Esposito, F., Raposo, V. L., Morgado, S., et al. (2024) · arXiv · doi:10.48550/arxiv.2403.03883 · Cited by 18 · cited 1×
“SaulLM (Colombo et al., 2024) is a more recent model trained on a legal corpus of 30 billion tokens.”
Training on the Test Task Confounds Evaluation and Emergence
Dominguez-Olmedo, R., Dorner, F. E., & Hardt, M. (2024) · arXiv · doi:10.48550/arxiv.2407.07890 · Cited by 9 · cited 1×
“Dorner and Hardt (2024) give an extended discussion about label quality and annotator disagreement in the context of machine learning benchmarks.”
Self-citationLanguage models scale reliably with over-training and on downstream tasks
Gadre, S. Y., Smyrnis, G., Shankar, V., Gururangan, S., Wortsman, M., Shao, R., Mercat, J., Fang, A., Li, J., Keh, S., et al. (2024) · arXiv · doi:10.48550/arxiv.2403.08540 · Cited by 5
Cited by
Training on the Test Task Confounds Evaluation and Emergence
Dominguez-Olmedo, R., Dorner, F. E., & Hardt, M. (2024) · arXiv · doi:10.48550/arxiv.2407.07890 · Cited by 9
Self-citationOpenThoughts: Data Recipes for Reasoning Models
Guha, E., Marten, R., Keh, S., Raoof, N., Smyrnis, G., Bansal, H., Nezhurina, M., Mercat, J., Vu, T., Sprague, Z., et al. (2025) · arXiv · doi:10.48550/arxiv.2506.04178 · Cited by 426
Metadata
- Authors
- Dominguez-Olmedo, R., Nanda, V., Abebe, R., Bechtold, S., Engel, C., Frankenreiter, J., Gummadi, K., Hardt, M., & Livermore, M.
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2024
- arXiv
- 2407.16615
- References
- 10
- Type
- Preprint
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.