Discovering Explanatory Sentences in Legal Case Decisions Using Pre-trained Language Models

Jaromír Savelka, Kevin D. AshleyEMNLP 2021

Introduction

Legal interpretation often hinges on "open-textured" terms—abstract concepts like "common business purpose" or "independent economic value" found in statutes. Because these terms lack exhaustive definitions within the statutes themselves, legal professionals must search through vast repositories of past court decisions to find "explanatory sentences." These are instances where judges have clarified, defined, or provided illustrative examples of a term's application.

Traditional Information Retrieval (IR) systems, such as BM25, primarily rely on keyword frequency. However, frequency does not equate to utility; a sentence may mention a term without providing any explanatory value. This research explores the use of pre-trained language models to automate the identification and ranking of these high-utility sentences.

The researchers employed RoBERTa-base and developed three distinct fine-tuning configurations to evaluate the impact of different contextual inputs on sentence classification:

  1. BERT snt (Sentence Only): This model analyzes the retrieved sentence in isolation to detect "intrinsic signals"—grammatical structures and linguistic markers (e.g., "X is defined as...") typical of explanatory text.
  2. BERT qry2snt (Concept + Sentence): By providing the specific legal concept (the query) alongside the sentence, the model assesses relevance to the term of interest.
  3. BERT sp2snt (Statutory Provision + Sentence): This configuration includes the original statutory provision. It is designed to overcome the "quotation trap," where a model might highly rank a sentence that merely quotes the statute without adding new explanatory value.

Sentences were ranked by applying a softmax to the final layer, producing a probability distribution across four utility classes: High Value, Certain Value, Potential Value, and No Value. A final score was derived using an inner product with a weight vector $(0, 1, 2, 3)^T$.

Dataset and Benchmark

The study utilized the Caselaw Access Project, a massive database of over 6.7 million U.S. court cases. From this, a specialized dataset of 26,959 sentences was curated, covering 42 legal concepts across 20 regulatory areas. Each sentence was manually labeled by law students into the four utility categories, creating a robust benchmark for semantic-utility-based ranking in the legal domain.

Key Results

The transformer-based models significantly outperformed traditional baselines and previous state-of-the-art machine learning methods. As shown in the performance table below, the BERT sp2snt model achieved the highest overall performance, reaching an NDCG@100 of 0.80.

Performance comparison of various ranking methods across different dataset splits.

The models were particularly effective at shifting the distribution of results toward high-utility sentences. While the general dataset contains a large amount of "noise" (sentences with little to no explanatory value), the BERT-based models successfully prioritized "High Value" (blue) and "Certain Value" (green) sentences in the top search results.

Comparison of the overall sentence distribution versus the top 10 results retrieved by the BERT model for two sample concepts.

Insights and Future Directions

A key finding was the existence of an "intrinsic signal" for explanation; even the BERT snt model, which lacked knowledge of the specific query, outperformed keyword-based baselines. This indicates that transformers can learn the specific "look and feel" of legal definitions. Furthermore, the BERT sp2snt model's ability to compare sentences against source statutes proved vital for filtering out redundant verbatim quotations.

Despite these successes, limitations remain. Current models do not account for result diversity, potentially leading to repetitive top-ranked definitions. Future work aims to incorporate broader paragraph-level context and develop "tri-constituent" models that simultaneously process the query, the statute, and the candidate sentence.

Summary updated

BibTeX
@inproceedings{savelka2021discovering,
  author = {Jaromír Savelka and Kevin D. Ashley},
  title = {{Discovering Explanatory Sentences in Legal Case Decisions Using Pre-trained Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.361},
}
Figure