PILOT: Legal Case Outcome Prediction with Case Law

Lang Cao, Zifeng Wang, Cao Xiao, Jimeng Sun · DOI

Abstract

Predicting legal case outcomes in case law systems requires modeling the dependency on historical precedents and the evolution of legal interpretations over time. We present PILOT (Predicting Legal case Outcome), a framework that integrates relevant case retrieval with temporal drift prediction. Evaluated on the new ECHR2023 dataset, PILOT achieves state-of-the-art results, outperforming standard NLP models and large language models.

Introduction

Most AI research in the legal domain focuses on civil law systems, where decisions are based on static statutes. In contrast, case law systems—prevalent in jurisdictions like the US and UK—rely heavily on precedents. This dependency introduces two primary challenges: identifying relevant historical cases and accounting for temporal shifts in legal interpretation. Standard NLP models often treat legal documents as independent data points, ignoring the chronological context and the evolving nature of the legal landscape.

Methodology

The PILOT framework addresses these challenges through three integrated components:

  1. Relevant Case Retrieval: PILOT employs unsupervised contrastive learning (InfoNCE loss) to generate semantic embeddings for legal cases. A temporal decay function is incorporated to prioritize recent precedents, reflecting their greater legal weight in modern judicial reasoning.
  2. Case Encoder and Evidence Fusion: The target case is encoded using a pre-trained legal-bert model. This embedding is then fused with the outcomes of the top-$k$ retrieved precedents, providing the classifier with historical context.
  3. Temporal Shift Mining: A dedicated Drift Predictor module uses the case's timestamp to generate a drift vector. This vector calibrates the final prediction, allowing the model to adapt to "global" shifts in legal standards over time.
The PILOT framework architecture featuring retrieval, fusion, and drift prediction modules.

Dataset and Evaluation

The authors introduced ECHR2023, a dataset comprising 14,138 cases from the European Court of Human Rights. To handle the excessive length and noise of legal documents, GPT-3.5-turbo was utilized to summarize the "FACT" sections into structured bullet points, reducing token counts from over 3,000 to under 500.

A rigorous chronological split was employed for evaluation, training on older cases and testing on newer ones. This approach more accurately reflects real-world deployment compared to random splits, which often overstate performance by ignoring temporal drift.

Experimental Results

PILOT demonstrates superior performance across multiple metrics compared to established baselines, including hierarchical BERT variants and few-shot prompting with ChatGPT.

Main experimental results comparing PILOT against various baselines.

Key findings include:

  • Performance Gains: PILOT achieved a Micro-F1 of 0.715, significantly surpassing the previous state-of-the-art, LWDROV2 (0.694).
  • LLM Limitations: ChatGPT (5-shot) performed poorly (F1: 0.442), highlighting the need for specialized models that can systematically leverage precedent databases.
  • Ablation Insights: Ablation studies confirmed that removing the case retrieval module led to a significant performance drop, proving that historical context is essential. Interestingly, including static law article text actually hindered performance, suggesting that the evolving interpretation of the law is more critical than the static text itself.

Conclusion

PILOT advances legal outcome prediction by explicitly modeling the temporal and precedent-based nature of case law. While the framework shows promise, future work is needed to bridge the gap between semantic and legal similarity, address potential historical biases, and improve the interpretability of the fusion and drift mechanisms.

Summary updated

BibTeX
@inproceedings{cao2024pilot,
  author = {Lang Cao and Zifeng Wang and Cao Xiao and Jimeng Sun},
  title = {{PILOT: Legal Case Outcome Prediction with Case Law}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-long.34},
}
Figure