Legal Fact Prediction: Task Definition and Dataset Construction

Junkai Liu, Yujie Tong, Hui Huang, Shuyuan Zheng, Muyun Yang, Peicheng Wu, Makoto Onizuka, Chuan Xiao

Abstract: Legal facts refer to the facts that can be proven by acknowledged evidence in a trial. They form the basis for the determination of court judgments. This paper introduces a novel NLP task: legal fact prediction, which aims to predict the legal fact based on a list of evidence. The predicted facts can instruct the parties and their lawyers involved in a trial to strengthen their submissions and optimize their strategies during the trial. Moreover, since real legal facts are difficult to obtain before the final judgment, the predicted facts also serve as an important basis for legal judgment prediction. We construct a benchmark dataset consisting of evidence lists and ground-truth legal facts for real civil loan cases, LFPLoan. Our experiments on this dataset show that this task is non-trivial and requires further considerable research efforts.

Introduction

In the field of Legal NLP, Legal Judgment Prediction (LJP) has traditionally focused on forecasting case outcomes based on "legal facts." However, this approach suffers from a significant "hindsight bias." In real-world litigation, legal facts are not the starting point; they are the output of a judge's deliberation after evaluating raw evidence. For practitioners—lawyers and litigants—the primary challenge is navigating a trial where only raw, often contradictory evidence is available.

This paper identifies Legal Fact Prediction (LFP) as the critical missing link. LFP requires a system to parse fragmented evidence items and deduce the likely "findings of fact" a court would reach. By bridging the gap between raw evidence and final judgments, LFP provides a more realistic and useful tool for pre-trial strategy and automated legal reasoning.

Methodology and Task Definition

The authors formalize LFP as a function $f(C, Z)$ that processes a plaintiff’s claims ($C$) and a set of evidence items ($Z$) to generate predicted legal facts. To evaluate the utility of this task, the study compares three distinct architectural pipelines for judgment prediction:

  1. Fact-based LJP: A "gold standard" model that uses ground-truth legal facts as input. While highly accurate, it is unrealistic for pre-trial applications because these facts are only known after the trial.
  2. Evidence-based LJP: A direct model that attempts to predict judgments from raw evidence, skipping the fact-finding stage entirely.
  3. LFP-empowered LJP: A two-stage pipeline where the system first predicts legal facts from evidence and then uses those predictions to forecast the final judgment.
Comparison of different LJP pipelines: Fact-based, Evidence-based, and the proposed LFP-empowered approach.

The LFPBench Dataset

To support this new task, the researchers introduced LFPBench, the first benchmark specifically designed for LFP. The dataset comprises 657 first-instance civil cases from China, covering 10 representative causes of action, including labor disputes, sales contracts, and house leases.

Unlike previous datasets that only provide case summaries, LFPBench includes the specific evidence items submitted by both plaintiffs and defendants, the ground-truth legal facts determined by the presiding judge, and the final judgment for each claim. This structure allows for a granular analysis of how conflicting narratives from opposing parties are resolved into a single set of legal facts.

Key Results and Insights

Experiments were conducted using six Large Language Models (LLMs), ranging from general-purpose models like GPT-4o and Claude 3.5 Sonnet to specialized legal models like Law-Llama3.1. Several critical findings emerged:

  • The Reasoning Gap: There remains a massive performance gap between AI and human experts. While legal experts achieved 87.62% accuracy on evidence-based LJP, the best-performing AI model (Claude 3.5) reached only 50.80%.
  • LFP as a Performance Driver: Incorporating the intermediate LFP step reduced the accuracy gap between evidence-based and fact-based models by an average of 38.5%. There is a direct positive correlation between the quality of fact prediction and the accuracy of the final judgment.
  • General vs. Specialized Models: Surprisingly, general-purpose LLMs outperformed specialized legal models. This suggests that LFP is primarily a task of complex logical deduction and long-context summarization—strengths of general frontier models—rather than just domain-specific knowledge.
LJP Accuracy vs. LFP Similarity, showing that better fact prediction leads to more accurate legal judgments across various LLMs.

Observed Biases

The study also uncovered significant cognitive biases in LLMs:

  • Presentation Order Bias: Models tend to favor the party whose evidence is presented last in the prompt.
  • Quantity Bias: Models often favor the party that submits a higher number of evidence items, regardless of the individual quality or relevance of those items.
  • Conflict Difficulty: Models struggle significantly more when defendants submit counter-evidence compared to cases where the defendant remains silent.

Conclusion and Future Work

Legal Fact Prediction is a vital step toward creating truly useful legal AI. While current LLMs show promise, they still struggle with the complex reasoning required to resolve conflicting evidence. Future research should focus on multimodal LFP (incorporating non-textual evidence like photos or audio), expanding to other jurisdictions and criminal law, and developing mechanisms to assess the credibility and authenticity of evidence rather than just its presence.

Summary updated

Abstract

Legal facts refer to the facts that can be proven by acknowledged evidence in a trial. They form the basis for the determination of court judgments. This paper introduces a novel NLP task: legal fact prediction, which aims to predict the legal fact based on a list of evidence. The predicted facts can instruct the parties and their lawyers involved in a trial to strengthen their submissions and optimize their strategies during the trial. Moreover, since real legal facts are difficult to obtain before the final judgment, the predicted facts also serve as an important basis for legal judgment prediction. We construct a benchmark dataset consisting of evidence lists and ground-truth legal facts for real civil loan cases, LFPLoan. Our experiments on this dataset show that this task is non-trivial and requires further considerable research efforts.
BibTeX
@misc{liu2024legal,
  author = {Junkai Liu and Yujie Tong and Hui Huang and Shuyuan Zheng and Muyun Yang and Peicheng Wu and Makoto Onizuka and Chuan Xiao},
  title = {{Legal Fact Prediction: Task Definition and Dataset Construction}},
  year = {2024},
  eprint = {2409.07055},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.07055},
}
Figure