Skip to main content
QUICK REVIEW

[Paper Review] The Cambridge Law Corpus: A Dataset for Legal AI Research

Andreas Östling, Holli Sargeant|arXiv (Cornell University)|Jan 1, 2023
Artificial Intelligence in LawSocial Sciences7 citations
TL;DR

The Cambridge Law Corpus (CLC) is a large-scale, legally and ethically curated dataset of 258,146 UK court cases spanning from the 16th to the 21st century, released for academic research with case outcome annotations on 638 cases. It enables benchmarking of legal AI models like GPT-3, GPT-4, and RoBERTa for case outcome prediction, supporting reproducible and responsible legal NLP research under strict usage terms.

ABSTRACT

We introduce the Cambridge Law Corpus (CLC), a corpus for legal AI research. It consists of over 250 000 court cases from the UK. Most cases are from the 21st century, but the corpus includes cases as old as the 16th century. This paper presents the first release of the corpus, containing the raw text and meta-data. Together with the corpus, we provide annotations on case outcomes for 638 cases, done by legal experts. Using our annotated data, we have trained and evaluated case outcome extraction with GPT-3, GPT-4 and RoBERTa models to provide benchmarks. We include an extensive legal and ethical discussion to address the potentially sensitive nature of this material. As a consequence, the corpus will only be released for research purposes under certain restrictions.

Motivation & Objective

  • To address the scarcity of large, high-quality, machine-readable legal corpora for the UK legal system.
  • To provide a legally compliant and ethically responsible dataset for training and evaluating legal AI models.
  • To enable benchmarking of state-of-the-art LLMs (e.g., GPT-3, GPT-4, RoBERTa) on case outcome prediction tasks in a real-world legal context.
  • To establish a sustainable, versioned, and extensible dataset infrastructure with contributor and user accountability.

Proposed method

  • Collection and digitization of 258,146 UK court cases from England and Wales, spanning from the 16th to the 21st century.
  • Inclusion of structured metadata and raw text in machine-readable format for research use.
  • Expert annotation of case outcomes on 638 cases to enable supervised learning and evaluation.
  • Training and evaluation of transformer-based models (GPT-3, GPT-4, RoBERTa) on the outcome prediction task using the annotated subset.
  • Implementation of strict access controls, ethical review requirements, and a licensing framework to ensure GDPR compliance and prevent misuse.
  • Versioned release via Git with changelogs and support for future contributions and corrections.

Experimental results

Research questions

  • RQ1How effective are large language models such as GPT-3, GPT-4, and RoBERTa in predicting case outcomes from UK legal judgments?
  • RQ2What is the performance gap between general-purpose LLMs and fine-tuned legal-specific models on UK case outcome prediction?
  • RQ3How can ethical and legal constraints, including GDPR and privacy protections, be systematically integrated into the design and distribution of legal AI datasets?
  • RQ4What role does historical legal language and variation in case formatting play in model generalization and data quality?
  • RQ5How can a sustainable, versioned, and extensible legal corpus be maintained and extended over time with community contributions?

Key findings

  • The CLC dataset contains 258,146 UK court cases from the 16th to the 21st century, with 638 cases annotated for case outcomes by legal experts.
  • GPT-4 and RoBERTa models achieved strong performance on the case outcome prediction task, establishing new benchmarks for legal AI in the UK context.
  • The dataset is released under a research-only license with ethical compliance requirements, including mandatory ethics clearance and GDPR adherence.
  • The corpus is versioned using Git and will be incrementally updated with new cases, features, and corrections, with a public changelog.
  • Users can request removal of individuals from the dataset, and the corpus supports community contributions subject to quality control.
  • The dataset is accessible via a DOI (10.17863/CAM.100221) and a dedicated project page with terms of use and contribution guidelines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.