CaseEncoder: A Knowledge-enhanced Pre-trained Model for Legal Case Encoding
Yixiao Ma, Yueyue Wu, Weihang Su, Qingyao Ai, Yiqun Liu
Abstract
Legal case retrieval is a critical process for modern legal information systems. While recent studies have utilized pre-trained language models (PLMs) based on the general domain self-supervised pre-training paradigm to build models for legal case retrieval, there are limitations in using general domain PLMs as backbones. Specifically, these models may not fully capture the underlying legal features in legal case documents. To address this issue, we propose CaseEncoder, a legal document encoder that leverages fine-grained legal knowledge in both the data sampling and pre-training phases. In the data sampling phase, we enhance the quality of the training data by utilizing fine-grained law article information to guide the selection of positive and negative examples. In the pre-training phase, we design legal-specific pre-training tasks that align with the judging criteria of relevant legal cases. Based on these tasks, we introduce an innovative loss function called Biased Circle Loss to enhance the model’s ability to recognize case relevance in fine grains. Experimental results on multiple benchmarks demonstrate that CaseEncoder significantly outperforms both existing general pre-training models and legal-specific pre-training models in zero-shot legal case retrieval. The source code of CaseEncoder can be found at https://github.com/Anonymous-EMNLP2023/CaseEncoder.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Parametric Retrieval Augmented Generation cites Language Models are Few-Shot Learners
- Joint Evaluation of Answer and Reasoning Consistency for Hallucination Detection in Large Reasoning Models cites Parametric Retrieval Augmented Generation
- Robust Fine-tuning for Retrieval Augmented Generation against Retrieval Defects cites Parametric Retrieval Augmented Generation
Cited by top-tier papers10
- Parametric Retrieval Augmented GenerationWeihang Su, Yichen Tang, Qingyao Ai, Junxi Yan et al.SIGIR 2025 · 25 citations
- Joint Evaluation of Answer and Reasoning Consistency for Hallucination Detection in Large Reasoning ModelsChangyue Wang, Weihang Su, Qingyao Ai, Yiqun LiuAAAI 2026 · 13 citations
- CaseLink: Inductive Graph Learning for Legal Case RetrievalYanran Tang, Ruihong Qiu, Hongzhi Yin, Xue Li et al.SIGIR 2024 · 10 citations
- Robust Fine-tuning for Retrieval Augmented Generation against Retrieval DefectsYiteng Tu, Weihang Su, Yujia Zhou, Yiqun Liu et al.SIGIR 2025 · 9 citations
- Learning Interpretable Legal Case Retrieval via Knowledge-Guided Case ReformulationChenlong Deng, Kelong Mao, Zhicheng DouEMNLP 2024 · 3 citations
Builds on4
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Don't Stop Pretraining: Adapt Language Models to Domains and TasksSuchin Gururangan, Ana Marasovic, Swabha Swayamdipta, Kyle Lo et al.ACL 2020 · 93 citations
- Circle Loss: A Unified Perspective of Pair Similarity OptimizationYifan Sun, Changmao Cheng, Yuhan Zhang, Chi Zhang et al.CVPR 2020
Related papers
- SAILER: Structure-aware Pre-trained Language Model for Legal Case RetrievalHaitao Li, Qingyao Ai, Jia Chen, Qian Dong et al.SIGIR 2023 · 68 citations
- DELTA: Pre-Train a Discriminative Encoder for Legal Case Retrieval via Structural Word AlignmentHaitao Li, Qingyao Ai, Xinyan Han, Jia Chen et al.AAAI 2025 · 3 citations
- Wikiformer: Pre-training with Structured Information of Wikipedia for Ad-Hoc RetrievalWeihang Su, Qingyao Ai, Xiangsheng Li, Jia Chen et al.AAAI 2024
- Contract Discovery: Dataset and a Few-shot Semantic Retrieval Challenge with Competitive BaselinesLukasz Borchmann, Dawid Wisniewski, Andrzej Gretkowski, Izabela Kosmala et al.EMNLP Findings 2020 · 16 citations
- CFGL-LCR: A Counterfactual Graph Learning Framework for Legal Case RetrievalKun Zhang, Chong Chen, Yuanzhuo Wang, Qi Tian et al.KDD 2023 · 9 citations
