Introduction
In the judicial domain, identifying relevant precedents is a cornerstone of ensuring legal consistency and fairness. However, legal case retrieval presents unique challenges that standard information retrieval systems struggle to address. Legal documents are exceptionally long, often exceeding the token limits of dense retrievers like BERT. Furthermore, a single case may involve multiple distinct criminal acts (e.g., arson combined with theft), making it difficult for "black-box" models to capture the specific nuances required for accurate matching. Perhaps most importantly, legal professionals require interpretability; they need to understand exactly which factual elements of a past judgment align with the current case.
Methodology: The KELLER Framework
To address these challenges, the authors propose KELLER (Knowledge-guidEd case reformuLation for LEgal retrieval). This framework shifts the burden of document comprehension from the retriever to a Large Language Model (LLM), specifically leveraging the Qwen-72B model to distill complex documents into structured, legally relevant summaries.
1. Knowledge-Guided Case Reformulation
Instead of processing raw text, KELLER uses a three-step reformulation process:
- Extraction: The LLM identifies all crimes and law articles cited within the document.
- Knowledge Enhancement: Law article titles are expanded into full legal provisions using an expert database to provide the LLM with necessary context.
- Summarization: The LLM generates concise "sub-facts" associated with each identified crime. By using law articles as anchors, the system ensures that critical legal details are preserved while noise is eliminated.
2. Relevance Modeling and Interpretability
Once reformulated, these sub-facts are encoded using SAILER, a specialized legal retriever. To determine similarity between a query and a candidate case, KELLER employs MaxSim and Sum operators. This approach identifies the best-matching sub-fact in the candidate document for every sub-fact in the query, creating a matching matrix. This matrix provides a clear heat map of relevance, allowing users to see which specific criminal acts triggered the match.
Evaluation and Results
KELLER was evaluated on two major Chinese legal retrieval benchmarks: LeCaRD and LeCaRDv2. The framework consistently outperformed traditional models (BM25), standard neural retrievers (BERT, RoBERTa), and specialized legal models (Lawformer, SAILER).
Key Findings
- State-of-the-Art Performance: On LeCaRDv2, KELLER achieved a Mean Average Precision (MAP) of 68.29, a significant improvement over the previous best of 60.62 (SAILER).
- Handling Complexity: The model demonstrated its greatest strength in "controversial" cases—complex scenarios requiring expert legal review—where it improved MAP by 24.04% over baselines.
- Zero-Shot Robustness: KELLER outperformed fine-tuned models even in zero-shot settings, suggesting that its knowledge-guided approach generalizes well across different legal contexts.
Conclusion and Future Work
KELLER demonstrates that offloading document comprehension to LLMs while using legal knowledge as a structural guide significantly improves both retrieval accuracy and interpretability. While the current implementation relies on a pre-built database of Chinese law, the underlying logic of using law articles as anchors is applicable to other legal systems. Future research will focus on reducing the computational costs associated with large-scale LLM reformulation and exploring generative models that can provide natural language explanations for retrieved results.
Summary updated