Abstract
The THUIR team from Tsinghua University participated in the COLIEE 2023 Legal Case Entailment task, securing third place. Their research demonstrates that scaling model parameters and incorporating domain-specific legal knowledge are critical for navigating complex judicial texts. By combining traditional lexical matching with large-scale sequence-to-sequence models and specialized legal architectures, they achieved significant performance gains over general-purpose models.
Introduction
In "Case Law" systems, such as those in the United States and Canada, judicial decisions rely heavily on past precedents. However, the vast volume of digital legal records makes it labor-intensive for practitioners to identify the specific paragraph in a supporting case that justifies a decision in a new query case. This is the core of the Legal Case Entailment task: given a query case and a supporting case, identify the specific paragraph that logically supports or necessitates the decision. This task requires deep semantic understanding of legal logic, representing a "needle in a haystack" problem where the target is a specific legal argument.
Methodology
The authors approached the entailment task as a ranking problem, implementing a multi-stage pipeline:
- Lexical Baselines: Traditional models like BM25 and QLD (Query Likelihood Model) were used to rank paragraphs based on keyword overlap.
- Cross-Encoders: Pre-trained language models (PLMs) including BERT, RoBERTa, DeBERTa, and LEGAL-BERT were fine-tuned. These models process the query and candidate paragraph as a single input to capture deep interactions.
- Sequence-to-Sequence (Seq2Seq) Models: monoT5 and FLAN-T5 were utilized. These models are trained to generate the tokens "true" or "false" based on entailment, using the probability of the "true" token as the ranking score.
- Learning-to-Rank (LTR): To integrate these diverse models, LightGBM was used to ensemble features, including model scores and metadata like query/candidate length.
Dataset and Experimental Setup
The study utilized the COLIEE 2023 Task 2 dataset, consisting of Federal Court of Canada case law. The training set included 625 query cases, while the test set contained 100. Each query case is associated with a supporting case containing approximately 35 candidate paragraphs, typically with only one correct entailing paragraph.
Results and Key Insights
Experimental results highlighted several critical factors in legal entailment performance:
- Scale as a Superpower: The monoT5-3B model (3 billion parameters) significantly outperformed its smaller "base" version (250M parameters), suggesting that the nuanced language of law requires high model capacity.
- Domain Knowledge vs. General Scale: Notably, LEGAL-BERT-base (110M parameters) outperformed larger general models like RoBERTa-large (340M). This underscores that pre-training on legal corpora is more valuable than parameter count alone when using general web text.
- Instruction Tuning Mismatch: FLAN-T5, despite its strong zero-shot reputation, performed poorly. This suggests an inconsistency between general instruction-following pre-training and the specific requirements of legal entailment.
Competition Performance
In the official competition, the THUIR team's best single-model run (monoT5) placed 3rd with an F1 of 0.7182. While their ensemble model showed exceptional performance on the validation set (Precision@1 of 0.930), it struggled with overfitting on the final leaderboard. Post-competition refinement using a more conservative "early stop" strategy improved their score to 0.7273.
Conclusion and Future Work
The primary challenge identified was data sparsity, which makes complex ensemble models prone to overfitting. Future research will explore even larger Large Language Models (LLMs), develop legal-oriented pre-training tasks (e.g., domain-specific masking), and investigate optimized prompt formats for instruction-tuned models in legal reasoning contexts.
Summary updated