LeCaRDv2: A Large-Scale Chinese Legal Case Retrieval Dataset

Haitao Li, Yunqiu Shao, Yueyue Wu, Qingyao Ai, Yixiao Ma, Yiqun Liu

Introduction

Legal case retrieval is a fundamental task in the judicial system, requiring the identification of relevant precedents to ensure consistency and fairness. However, existing datasets often fall short due to limited scale, narrow definitions of relevance, and simplistic candidate sampling. LeCaRDv2 addresses these issues by providing a massive benchmark for Chinese legal case retrieval, featuring 800 queries and over 55,000 expert-annotated candidates. By moving beyond simple factual similarity to include legal "characterization, penalty, and procedure," it provides a more sophisticated and realistic playground for training the next generation of legal AI.

Methodology

The construction of LeCaRDv2 follows a rigorous pipeline designed to capture the complexity of statutory law systems. The process begins with a massive corpus of 4.3 million Chinese criminal case documents.

The construction pipeline of LeCaRDv2, detailing the stages from query selection to expert annotation.

The pipeline includes several key innovations:

  • Query Selection: Queries are categorized into Common (standard cases), Controversial (revised judgments), and Procedural (disputed legal processes) to ensure diversity and difficulty.
  • Two-Level Candidate Pooling: Candidates are retrieved using a combination of sparse lexical matching (BM25), dense semantic retrieval (RoBERTa), and a novel Inverse Provision Frequency (IPF) metric. IPF measures similarity based on shared citations of rare law articles, reflecting deep legal connections.
  • Expert Annotation: 41 legal experts (who passed the National Bar Exam) annotated cases across four dimensions: Characterization, Penalty, Procedure, and Overall Relevance.

Dataset Analysis

LeCaRDv2 significantly expands the scope of legal retrieval benchmarks. It includes 800 queries and 55,192 candidate cases. A key feature of the dataset is its multi-dimensional relevance labeling, which moves beyond simple factual similarity to reflect the nuances of legal reasoning.

Distribution of relevance labels (0-4) across the four dimensions: Overall, Characterization, Penalty, and Procedure.

As shown in the label distribution, "Procedure" relevance is particularly challenging, with a high proportion of non-relevant (label 0) cases, reflecting the extreme specificity required for procedural disputes. The dataset also captures the "long-tail" nature of criminal law by intentionally covering 50 different charges, ensuring models do not simply learn to recognize the most common crimes.

Key Insights and Results

The evaluation of state-of-the-art models on LeCaRDv2 reveals several critical findings:

  1. Legal Relevance vs. Semantic Similarity: In the legal domain, two cases might have different facts but be highly relevant due to shared procedural errors or sentencing guidelines. General-purpose models often struggle with this distinction.
  2. Baseline Performance: Traditional keyword-based models like BM25 remain surprisingly competitive in zero-shot settings, achieving a Recall@100 of 0.6262, far outperforming generic pre-trained models like Chinese-BERT-WWM (0.1165).
  3. Fine-Tuning Impact: Domain-specific fine-tuning on LeCaRDv2 leads to substantial gains. For instance, the RetroMAE model achieved a Recall@1000 of 0.8174, demonstrating the dataset's value as a training signal.

Conclusion and Future Work

LeCaRDv2 provides a sophisticated and realistic environment for advancing legal AI. While currently focused on criminal law, it sets a new standard for dataset scale and depth. Future work will aim to expand this framework to civil and administrative law and explore ways to extract expert "rationales" to build more interpretable AI judges and legal assistants.

Summary updated

BibTeX
@inproceedings{li2023lecardv,
  author = {Haitao Li and Yunqiu Shao and Yueyue Wu and Qingyao Ai and Yixiao Ma and Yiqun Liu},
  title = {{LeCaRDv2: A Large-Scale Chinese Legal Case Retrieval Dataset}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2023},
}
Figure