lecavrdv2-eval
LeCaRDv2: A Large-Scale Chinese Legal Case Retrieval Dataset — Li et al. (2023) (arXiv:2310.17609, 2023)
What this evaluates
Probes a model's ability to retrieve relevant Chinese criminal case documents from a large corpus based on legal queries. It specifically tests alignment with multi-dimensional legal relevance criteria, including case characterization, penalty matching, and procedural similarity.
Datasets
Metrics
Recall@K (primary) — range: [0, 1]
- Recall@K measures the proportion of queries for which the ground-truth relevant case appears in the top K retrieved results. Formula: Recall@K = (1/|Q|) * Σ_{q∈Q} 1[relevant_doc ∈ top_K(q)].
Input / output format
Input: A legal query (case description) and a fixed candidate corpus of 55,192 criminal case documents.
Output: A ranked list of candidate cases for each query.
Scoring recipe
def compute_recall_at_k(predictions, gold, k):
hits = 0
for pred_list, gold_id in zip(predictions, gold):
if gold_id in pred_list[:k]:
hits += 1
return hits / len(gold)
Common pitfalls
- Zero-shot evaluation uses all 800 queries without any training data, whereas fine-tuning strictly uses an 80/20 split per charge (640 train, 160 test).
- Relevance is defined by three legal dimensions (characterization, penalty, procedure), so standard semantic similarity often fails to capture true legal relevance.
- The candidate pool is fixed at 55,192 cases, but metrics are reported only for top-100/200/500/1000, not full-corpus recall.
Evidence (verbatim from paper)
Since we focus on retrieval performance in large corpus, we adopt recall as the evaluation metric.
Citation
@misc{li2023lecavrdv2,
title={LeCaRDv2: A Large-Scale Chinese Legal Case Retrieval Dataset},
author={Li et al. (2023)},
year={2023},
note={arXiv:2310.17609}
}
1---2name: lecavrdv2-eval3description: Probes a model's ability to retrieve relevant Chinese criminal case documents from a large corpus based on legal queries. It specifically tests alignment with multi-dimensional legal relevance criteria, including case characterization, penalty matching, and procedural similarity. Use when the user wants to benchmark on LeCaRDv2, or asks about evaluating this task. Reports Recall@K.4---56# lecavrdv2-eval78> LeCaRDv2: A Large-Scale Chinese Legal Case Retrieval Dataset — Li et al. (2023) (arXiv:2310.17609, 2023)910## What this evaluates1112Probes a model's ability to retrieve relevant Chinese criminal case documents from a large corpus based on legal queries. It specifically tests alignment with multi-dimensional legal relevance criteria, including case characterization, penalty matching, and procedural similarity.1314## Datasets1516- **LeCaRDv2** — total 800; splits: train (640), test (160); repo https://github.com/THUIR/LeCaRDv21718## Metrics1920- `Recall@K` **(primary)** — range: [0, 1]21 - Recall@K measures the proportion of queries for which the ground-truth relevant case appears in the top K retrieved results. Formula: Recall@K = (1/|Q|) * Σ_{q∈Q} 1[relevant_doc ∈ top_K(q)].2223## Input / output format2425**Input**: A legal query (case description) and a fixed candidate corpus of 55,192 criminal case documents.2627**Output**: A ranked list of candidate cases for each query.2829## Scoring recipe3031```python32def compute_recall_at_k(predictions, gold, k):33 hits = 034 for pred_list, gold_id in zip(predictions, gold):35 if gold_id in pred_list[:k]:36 hits += 137 return hits / len(gold)38```3940## Common pitfalls4142- Zero-shot evaluation uses all 800 queries without any training data, whereas fine-tuning strictly uses an 80/20 split per charge (640 train, 160 test).43- Relevance is defined by three legal dimensions (characterization, penalty, procedure), so standard semantic similarity often fails to capture true legal relevance.44- The candidate pool is fixed at 55,192 cases, but metrics are reported only for top-100/200/500/1000, not full-corpus recall.4546## Evidence (verbatim from paper)4748> Since we focus on retrieval performance in large corpus, we adopt recall as the evaluation metric.4950## Citation5152```bibtex53@misc{li2023lecavrdv2,54 title={LeCaRDv2: A Large-Scale Chinese Legal Case Retrieval Dataset},55 author={Li et al. (2023)},56 year={2023},57 note={arXiv:2310.17609}58}59```6061- arXiv: 2310.17609