[Paper Review] LLM vs. Lawyers: Identifying a Subset of Summary Judgments in a Large UK Case Law Dataset
This paper proposes a comparative evaluation of keyword-based and large language model (LLM)-based methods for identifying summary judgments in a large UK case law corpus. Using the Cambridge Law Corpus of 356,011 cases, it demonstrates that the LLM (Claude 2) achieves a weighted F1 score of 0.94, significantly outperforming the keyword method (F1: 0.78), and extracts 3,102 summary judgment cases for temporal and jurisdictional analysis.
To undertake computational research of the law, efficiently identifying datasets of court decisions that relate to a specific legal issue is a crucial yet challenging endeavour. This study addresses the gap in the literature working with large legal corpora about how to isolate cases, in our case summary judgments, from a large corpus of UK court decisions. We introduce a comparative analysis of two computational methods: (1) a traditional natural language processing-based approach leveraging expert-generated keywords and logical operators and (2) an innovative application of the Claude 2 large language model to classify cases based on content-specific prompts. We use the Cambridge Law Corpus of 356,011 UK court decisions and determine that the large language model achieves a weighted F1 score of 0.94 versus 0.78 for keywords. Despite iterative refinement, the search logic based on keywords fails to capture nuances in legal language. We identify and extract 3,102 summary judgment cases, enabling us to map their distribution across various UK courts over a temporal span. The paper marks a pioneering step in employing advanced natural language processing to tackle core legal research tasks, demonstrating how these technologies can bridge systemic gaps and enhance the accessibility of legal information. We share the extracted dataset metrics to support further research on summary judgments.
Motivation & Objective
- To address the challenge of efficiently identifying summary judgment cases within large UK case law corpora.
- To compare the effectiveness of traditional keyword-based search with a novel LLM-based classification approach.
- To extract and analyze a dataset of 3,102 summary judgment cases across UK courts and over time.
- To demonstrate how advanced NLP techniques can improve access to legal information and support computational legal research.
Proposed method
- The study uses the Cambridge Law Corpus, a dataset of 356,011 UK court decisions.
- A keyword-based method is developed using expert-generated terms and logical operators to identify summary judgments.
- An LLM-based method employs the Claude 2 model with content-specific prompts to classify cases as summary judgments.
- The LLM is prompted to assess case content for characteristics of summary judgments, such as procedural finality and lack of trial.
- Performance is evaluated using weighted F1 scores on a held-out test set.
- The final dataset of 3,102 cases is analyzed for distribution across UK courts and over time.
Experimental results
Research questions
- RQ1Can an LLM-based approach outperform traditional keyword-based search in identifying summary judgments in UK case law?
- RQ2What is the performance difference between keyword-based and LLM-based classification in capturing nuanced legal language?
- RQ3How does the distribution of summary judgments vary across different UK courts and over time?
- RQ4To what extent can LLMs reduce the need for iterative refinement in legal information retrieval?
Key findings
- The LLM-based method achieved a weighted F1 score of 0.94, significantly outperforming the keyword-based method’s F1 score of 0.78.
- The keyword-based method failed to capture subtle linguistic nuances in legal language, even after iterative refinement.
- The LLM successfully identified 3,102 summary judgment cases from the 356,011-case corpus.
- The extracted dataset enables temporal and jurisdictional analysis of summary judgments across UK courts.
- The study demonstrates that LLMs can effectively bridge gaps in legal information retrieval and enhance accessibility.
- The authors release the dataset and metrics to support further research on summary judgments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.